Function
Retrieves the settings of deviation counter clear signal.
Format
Ret = SmcWGetErcMode( Id, AxisNo, ErcMode )
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 the axis number.
ErcMode
[ VB.NET: Short ] [ C, C++: short * ] [ C#: out 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 [ 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 : Not output ERC signal
Remarks
This function can be executed even if the axis is in operation.
Example
The set up information of a deflection counter clear signal of axis number 1 is acquired.
VB.NET
Dim Ret As Integer
Dim ErcMode As Short
Ret = SmcWGetErcMode( Id , 1, ErcMode )
C, C++
long Ret;
short ErcMode;
Ret = SmcWGetErcMode( Id , 1, &ErcMode );
C#
int Ret;
short ErcMode;
Ret = Smc.WGetErcMode( Id , 1, out ErcMode );
Python
Ret = ctypes.c_long()
ErcMode = ctypes.c_short()
Ret.value = csmc.SmcWGetErcMode( Id , 1, ctypes.byref(ErcMode) )
See Also