Function
Sets input filter for +/-LIM, SD, ORG, ALM and INP.
Format
Ret = SmcWSetInFilterType( Id, AxisNo, FilterType )
Parameters
Id
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
SSpecify the Deice ID retrieved by SmcWInit
function.
AxisNo
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Specify axis number.
FilterType
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Specify input filter characteristic.
0 |
Do not insert filter |
1 |
3.2[µsec] |
2 |
25[µsec] |
3 |
200[µsec] |
4 |
1.6[msec] |
DF series
Setting value : 4[µsec] fixation even if it specifies any of 1-4.
Return Value
Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long ]
0 |
Terminated normally |
Non-zero |
Terminated abnormally |
See also: Error code details
Initial Value
0 : Does not insert filter
Remarks
This function cannot be executed when the device is in operation.
After "Initial Setting function"
is executed, it is necessary to execute SmcWSetInitParam.
Refer to "About Initial
Setting function".
Example
The input filter of LIM of axis number 1,
SD,
ORG, ALM, and INP
is set.
The input filter is set at 3.2 microseconds.
VB.NET
Dim Ret As Integer
Dim FilterType As Short
FilterType = 1
Ret = SmcWSetInFilterType( Id , 1, FilterType )
C, C++
long Ret;
short FilterType ;
FilterType = 1;
Ret = SmcWSetInFilterType( Id , 1, FilterType );
C#
int Ret;
short FilterType ;
FilterType = 1;
Ret = Smc.WSetInFilterType( Id , 1, FilterType );
Python
Ret = ctypes.c_long()
FilterType = ctypes.c_short()
FilterType.value = 1
Ret.value = csmc.SmcWSetInFilterType( Id , 1, FilterType )
See Also