SmcWGetZCountMotion


機能

Z相カウント動作の動作設定情報を取得します。

書式

Ret = SmcWGetZCountMotion( Id , AxisNo , ZMoveCount , ZLog )

引数

Id [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
SmcWInit 関数で取得したデバイスIDを指定します。

AxisNo [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
軸番号を指定します。

ZMoveCount [ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
設定したZ相カウント数を格納する変数のアドレスを指定します。

ZLog [ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Z相信号の入力信号論理を格納する変数のアドレスを指定します。
 0:立下りエッジ
 1:立上りエッジ

戻り値

Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long ]

0

正常終了

0以外

異常終了

参照:エラーコード詳細

初期値

ZMoveCount

1  :  1回カウント

ZLog

0  :  立下りエッジ

説明

SMC-2/4/8DL シリーズ では使用できません。

この関数は軸が動作中の場合も実行可能です。

関連項目

SmcWSetZCountMotion