例)軸番号1のエンコーダのカウント値を取得します。
■ Visual Basic
Dim Ret As Integer
Dim CountPulse As Integer
' エンコーダのカウントパルス数入力
Ret = SmcWGetCountPulse( Id ,
1, CountPulse )
■ C言語
long Ret;
long CountPulse ;
// エンコーダのカウントパルス数入力
Ret = SmcWGetCountPulse( Id ,
1, &CountPulse );
■ C#
int Ret;
int CountPulse ;
// エンコーダのカウントパルス数入力
Ret = Smc.WGetCountPulse( Id
, 1, out CountPulse );
■ Python
Ret = ctypes.c_long()
CountPulse = ctypes.c_long()
# エンコーダのカウントパルス数入力
Ret.value = csmc.SmcWGetCountPulse(
Id , 1, ctypes.byref(CountPulse) )