エンコーダカウントパルス数プリセット

例)軸番号1のエンコーダのカウント値を0にプリセットします。

■ Visual Basic

Dim Ret As Integer
Dim CountPulse As Integer
CountPulse = 0

' エンコーダカウントパルス数を0にプリセット
Ret = SmcWSetCountPulse( Id , 1 , CountPulse )
 

■ C言語

long Ret;
long CountPulse ;
CountPulse = 0 ;

// エンコーダカウントパルス数を0にプリセット
Ret = SmcWSetCountPulse( Id , 1 , CountPulse );
 

■ C#

int Ret;
int CountPulse ;
CountPulse = 0 ;

// エンコーダカウントパルス数を0にプリセット
Ret = Smc.WSetCountPulse( Id , 1 , CountPulse );
 

■ Python

Ret = ctypes.c_long()
CountPulse = ctypes.c_long()
CountPulse.value = 0

# エンコーダカウントパルス数を0にプリセット
Ret.value = csmc.SmcWSetCountPulse( Id , 1 , CountPulse )