Function
Output alarm clear signal.
Format
Ret = SmcWSetAlarmClear( Id, AxisNo )
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.
Return Value
Ret [ C, C++: long ] [ Python: ctypes.c_long ]
0 |
Terminated normally |
Non-zero |
Terminated abnormally |
See also: Error code details
Remarks
Execute this function after
handling the motion by the alarm.
It can not be executed while motor is already in motion.
Set the signal width of alarm clear in SmcWSetErcAlmClearTime
function.
But, it is valid when CtrlTypeOut1 to CtrlTypeOut3 are set to "1 :
Alarm clear signal" in SmcWSetCtrlTypeOut
function.
It can not be executed while motor is already in motion.
Example
An alarm clear signal of axis number 1 is output.
C, C++
long Ret;
Ret = SmcWSetAlarmClear( Id , 1);
Python
Ret = ctypes.c_long()
Ret.value = csmc.SmcWSetAlarmClear( Id , 1)
See Also