SmcWMotionDecStop


Function

Stops the operation of the motor deceleration time set.

Format

Ret = SmcWMotionDecStop( 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 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.

It adds in the deceleration stop after this function is executed and the required time is added to the access time from the function execution to LSI.
The difference is caused from "Deceleration time" between "Deceleration time + One cycle of Start Speed".
This is a specification of use LSI.
It follows to this difference, and the difference for the above-mentioned time is caused also in status that shows "Operation stop" state of various status.
Example:
The one cycle becomes 10ms for beginning speed 100pps.
When the deceleration time is 50ms, the difference of "50ms + 10ms" is caused from "50ms".

Example

The motor operation of axis number 1 stops decelerating.

VB.NET
Dim Ret As Integer
Ret = SmcWMotionDecStop( Id , 1)

C, C++
long Ret;
Ret = SmcWMotionDecStop( Id , 1);

C#
int Ret;
Ret = Smc.WMotionDecStop( Id , 1);

Python
Ret = ctypes.c_long()
Ret.value = csmc.SmcWMotionDecStop( Id , 1)

See Also

SmcWMotionStop