Function
Retrieves the settings of input filter for +/-LIM, SD, ORG, ALM and INP.
Format
Ret = SmcWGetInFilterType( 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#: out 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[µ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.
Example
The input filter setting of +/-LIM of axis number 1, SD, ORG, ALM, and INP is acquired.
VB.NET
Dim Ret As Integer
Dim FilterType As Short
Ret = SmcWGetInFilterType( Id , 1, FilterType )
C, C++
long Ret;
short FilterType;
Ret = SmcWGetInFilterType( Id , 1, &FilterType );
C#
int Ret;
short FilterType;
Ret = Smc.WGetInFilterType( Id , 1, out FilterType );
Python
Ret = ctypes.c_long()
FilterType = ctypes.c_short()
Ret.value = csmc.SmcWGetInFilterType( Id , 1, ctypes.byref(FilterType)
)
See Also