Function
Outputs deviation counter clear signal.
Format
Ret = SmcWSetCountCLR( 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 for clearing deviation counter.
It can not be executed while motor is already in motion.
Set signal width of deviation counter clear in initial setting utility.
Set signal width of deviation counter clear in SmcWSetErcAlmCLRTime function.
But, it is valid when CtrlTypeOut1 to CtrlTypeOut3 are set to "2 : Deviation counter clear" in SmcWSetCtrlTypeOut function.
This function cannot be used for the devices without motor control function.
This function can be executed even if the device is in operation.
Example
See Also