Input Pulse Output Status

Example) Get the pulse output status of axis number 1.

■ Visual Basic

Dim Ret As Integer
Dim PulseSts As Short

' Get the status of pulse output to the motor
Ret = SmcWGetPulseStatus( Id , 1, PulseSts )
 

■ C

long Ret;
short PulseSts ;

// Get the status of pulse output to the motor
Ret = SmcWGetPulseStatus( Id , 1, &PulseSts );
 

■ C#

int Ret;
short PulseSts ;

// Get the status of pulse output to the motor
Ret = Smc.WGetPulseStatus( Id , 1, out PulseSts );
 

■ Python

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

# Get the status of pulse output to the motor
Ret.value = csmc.SmcWGetPulseStatus( Id , 1, ctypes.byref(PulseSts) )