Function
Retrieves the settings of input filter for +/-LIM, SD, ORG, ALM and INP.
Format
Ret = SmcWGetInFilterType( Id, AxisNo, FilterType )
Parameters
Id [ C, C++: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved by SmcWInit function.
AxisNo [ C, C++: short ] [ Python: ctypes.c_short ]
Specify axis number.
FilterType [ C, C++: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Specify the address of a variable to store the input filter characteristic.
0 |
Do not insert filter |
1 |
3.2[usec] |
2 |
25[usec] |
3 |
200[usec] |
4 |
1.6[msec] |
DF series
Setting value : 4[usec] fixation even if it specifies any of 1-4.
Return Value
Ret [ C, C++: long ] [ 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.
Example
The input filter setting of +/-LIM of axis number 1, SD, ORG, ALM, and INP is acquired.
C, C++
long Ret;
short FilterType ;
Ret = SmcWGeInFilterType( Id , 1, &FilterType );
Python
Ret = ctypes.c_long()
FilterType = ctypes.c_short()
Ret.value = csmc.SmcWGeInFilterType( Id , 1, ctypes.byref(FilterType) )
See Also