Function
Retrieves the settings of deviation counter clear signal.
Format
Ret = SmcWGetErcMode( Id, AxisNo, ErcMode )
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 the axis number.
ErcMode [ C, C++: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Specify the address of a variable to store the setting for ERC signal auto-output.
[ 0 | 0 | 0 | 0 | 0 | 0 | bit1 | bit0 ] Available range: 0 to 3 (Hex)
bit0 |
0 : Do not output ERC signal when stopping because of the input of LIM or ALM signal 1 : Output ERC signal automatically when stopping because of the input of LIM or ALM signal |
bit1 |
0 : Not output ERC signal when the origin return operation completes. 1 : Output ERC signal automatically when the origin return operation completes |
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 : Not output ERC signal
Remarks
This function can be executed even if the device is in operation.
Example
The set up information of a deflection counter clear signal of axis number 1 is acquired.
C, C++
long Ret;
short ErcMode ;
Ret = SmcWGetErcMode( Id , 1, &ErcMode );
Python
Ret = ctypes.c_long()
ErcMode = ctypes.c_short()
Ret.value = csmc.SmcWGetErcMode( Id , 1, ctypes.byref(ErcMode) )
See Also