モータ停止要因入力

例)軸番号1のモータの停止要因を取得します。

■ Visual Basic

Dim Ret As Integer
Dim StopSts As Short

' モータの停止要因の入力
Ret = SmcWGetStopStatus( Id , 1, StopSts )
 

■ C言語

long Ret;
short StopSts ;

// モータの停止要因の入力
Ret = SmcWGetStopStatus( Id , 1, &StopSts );
 

■ C#

int Ret;
short StopSts ;

// モータの停止要因の入力
Ret = Smc.WGetStopStatus( Id , 1, out StopSts );
 

■ Python

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

# モータの停止要因の入力
Ret.value = csmc.SmcWGetStopStatus( Id , 1, ctypes.byref(StopSts) )