SmcWGetInFilterType


機能

±LIM、SD、ORG、ALMINPの入力フィルタ設定情報を取得します。

書式

Ret = SmcWGetInFilterType( Id , AxisNo , FilterType )

引数

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

FilterType [ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
入力フィルタ特性を取得します。

0

フィルタを挿入しない

1

3.2[μsec]

2

25[μsec]

3

200[μsec]

4

1.6[msec]

DFシリーズの場合
設定値:1~4 いずれを設定しても 4[μsec] 固定

戻り値

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

0

正常終了

0以外

異常終了

参照:エラーコード詳細

初期値

0 : フィルタを挿入しない

説明

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

使用例

軸番号1の±LIM、SD、ORG、ALMINPの入力フィルタ設定を取得します。

VB.NET
Dim Ret As Integer
Dim FilterType As Short
Ret = SmcWGetInFilterType( Id , 1, FilterType )

C, C++
long Ret;
short FilterType ;
Ret = SmcWGetInFilterType( Id , 1, &FilterType );

C#
int Ret;
short FilterType ;
Ret = Smc.WGetInFilterType( Id , 1, out FilterType );

Python
Ret = ctypes.c_long()
FilterType = ctypes.c_short()
Ret.value = csmc.SmcWGetInFilterType( Id , 1, ctypes.byref(FilterType) )

関連項目

SmcWSeInFilterType