Stop Motor

Example) Immediately stop the current X (axis number 1) motor operation.

■ C

long Ret;
short Id;

// Stop the motor.
// Axes that are set to be synchronized will also stop.
Ret = SmcWMotionStop( Id, 1 );
 

■ Visual Basic

Dim Ret   As Integer
Dim Id   As Short

' Stop the motor.
' Axes that are set to be synchronized will also stop.
Ret = SmcWMotionStop( Id, 1 )
 

■ C#

int Ret;
short Id;

// Stop the motor.
// Axes that are set to be synchronized will also stop.
Ret = Smc.WMotionStop( Id, 1 );
 

■ Python

Ret = ctypes.c_long()
Id = ctypes.c_short()

# Stop the motor.
# Axes that are set to be synchronized will also stop.
Ret.value = csmc.SmcWMotionStop( Id, 1 )