SmcWGetOrgLog


機能

原点入力論理の設定情報を取得します。

書式

Ret = SmcWGetOrgLog( Id , AxisNo , OrgLog )

引数

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 ]
軸番号を指定します。

OrgLog [ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
原点入力論理を格納する変数のアドレスを指定します。

[ 0 | 0 | 0 | 0 | 0 | 0 | Z | ORG ]   設定範囲:0~3

Z

0:立下りエッジ

1:立上りエッジ

ORG

0:負論理

1:正論理

戻り値

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

0

正常終了

0以外

異常終了

参照:エラーコード詳細

初期値

Z

0:立下りエッジ

ORG

0:負論理

説明

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

使用例

軸番号1の原点入力論理の設定情報を取得します。

VB.NET
Dim Ret As Integer
Dim OrgLog As Short
Ret = SmcWGetOrgLog( Id , 1, OrgLog )

C, C++
long Ret;
short OrgLog ;
Ret = SmcWGetOrgLog( Id , 1, &OrgLog );

C#
int Ret;
short OrgLog ;
Ret = Smc.WGetOrgLog( Id , 1, out OrgLog );

Python
Ret = ctypes.c_long()
OrgLog = ctypes.c_short()
Ret.value = csmc.SmcWGetOrgLog( Id , 1, ctypes.byref(OrgLog) )

関連項目

SmcWSetOrgLog