Function
Stops the operation of the motor deceleration time set.
Format
Ret = SmcWMotionDecStop( 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 stops immediately when deceleration stop is performed to an axis which is performing uniform speed movement.
When the function is executed,
the axis for synchronization also begins the deceleration stop at the
same time.
However, it is effective only in the synchronization in the board.
Please do not execute this function when the axis for synchronization is a starting point resume operation inside.
The time required to the
deceleration stop after executing this function varies between "deceleration
time" and "deceleration time + one cycle of start 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 start speed is 100 [pps], one cycle is 10 [ms].
When the deceleration time is 50ms, the time to
stop varies between "50ms" and "50ms + 10ms".
Example
The motor operation of axis number 1 stops decelerating.
C, C++
long Ret;
Ret = SmcWMotionDecStop( Id , 1);
Python
Ret = ctypes.c_long()
Ret.value = csmc.SmcWMotionDecStop( Id , 1)
See Also