SmcWSetInFilterType


機能

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

書式

Ret = SmcWSetInFilterType( 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#: short ] [ Python: 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 : フィルタを挿入しない

説明

軸が動作中の場合、この関数は実行できません。

初期設定関数実行後は、SmcWSetInitParam関数を実行する必要があります。
初期設定関数について」を参照してください。

使用例

軸番号1の±LIM、SD、ORG、ALMINPの入力フィルタを設定します。
入力フィルタ特性を 3.2[μsec] に設定します。

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

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

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

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

関連項目

SmcWGeInFilterType