Input Motor Operating Status

Example) Get the motor operating status of axis number 1.

■ Visual Basic

Dim Ret As Integer
Dim MoveSts As Short

' Get the motor operating status
Ret = SmcWGetMoveStatus( Id , 1, MoveSts )
 

■ C

long Ret;
short MoveSts ;

// Get the motor operating status
Ret = SmcWGetMoveStatus( Id , 1, &MoveSts );
 

■ C#

int Ret;
short MoveSts ;

// Get the motor operating status
Ret = Smc.WGetMoveStatus( Id , 1, out MoveSts );
 

■ Python

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

# Get the motor operating status
Ret.value = csmc.SmcWGetMoveStatus( Id , 1, ctypes.byref(MoveSts) )