Function
Stops motor motion of an axis.
Format
Ret = SmcWMotionStop( 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
It can not be executed while motor is already stopped.
The motor of slave axis stops at the same time when this function is performed. So it is possible to stop plural axes at the same time.
The time required to stop
after executing this function varies at the longest by "one cycle
of operating speed" in addition to the access time from function
execution to the LSI.
This is the specification of the LSI used.
Following the above variation, the status indicating the "stopped
operation" status of various statuses will also vary by the above
time.
Example:
When the operating speed is 100 [pps], one cycle
is 10 [ms].
Example
The motor operation of axis number 1 is stopped.
C, C++
long Ret;
Ret = SmcWMotionStop( Id , 1);
Python
Ret = ctypes.c_long()
Ret.value = csmc.SmcWMotionStop( Id , 1)
See Also
SmcWMotionStart SmcWMotionDecStop