Function
Stops motor motion of an axis.
Format
Ret = SmcWMotionStop( Id, AxisNo )
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 axis number.
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
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.
VB.NET
Dim Ret As Integer
Ret = SmcWMotionStop( Id , 1)
C, C++
long Ret;
Ret = SmcWMotionStop( Id , 1);
C#
int Ret;
Ret = Smc.WMotionStop( Id , 1);
Python
Ret = ctypes.c_long()
Ret.value = csmc.SmcWMotionStop( Id , 1)
See Also
SmcWMotionStart SmcWMotionDecStop