SmcWGetErcAlmClearTime


機能

偏差カウンタクリア信号/アラームクリア信号幅、および偏差カウンタクリア信号OFFタイマ時間の設定情報を取得します。

書式

Ret = SmcWGetErcAlmClearTime( Id , AxisNo , ErcTime , ErcOffTimer , AlmTime )

引数

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

ErcTime [ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
偏差カウンタクリア信号幅を格納する変数のアドレスを指定します。

0

12[μsec]

1

102[μsec]

2

408[μsec]

3

1.6[msec]

4

13[msec]

5

52[msec]

6

104[msec]

7

レベル出力

ErcOffTimer [ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
偏差カウンタクリア信号OFFタイマ時間を格納する変数のアドレスを指定します。

0

0[μsec]

1

12[μsec]

2

1.6[msec]

3

104[msec]

AlmTime [ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
アラームクリア信号幅を格納する変数のアドレスを指定します。

0

12[μsec]

1

102[μsec]

2

408[msec]

3

1.6[msec]

4

13[msec]

5

52[msec]

6

104[msec]

戻り値

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

0

正常終了

0以外

異常終了

参照:エラーコード詳細

初期値

ErcTime

0 : 12[μsec]

ErcOffTimer

0 : 0[μsec]

AlmTime

0 : 12[μsec]

説明

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

使用例

軸番号1の偏差カウンタクリア信号/アラームクリア信号幅、および偏差カウンタクリア信号OFFタイマ時間の設定情報を取得します。

VB.NET
Dim Ret As Integer
Dim ErcTime As Short
Dim ErcOffTimer As Short
Dim AlmTime As Short
Ret = SmcWGetErcAlmClearTime( Id , 1, ErcTime , ErcOffTimer , AlmTime )

C, C++
long Ret;
short ErcTime ;
short ErcOffTimer ;
short AlmTime ;
Ret = SmcWGetErcAlmClearTime( Id , 1, &ErcTime , &ErcOffTimer , &AlmTime );

C#
int Ret;
short ErcTime ;
short ErcOffTimer ;
short AlmTime ;
Ret = Smc.WGetErcAlmClearTime( Id , 1, out ErcTime , out ErcOffTimer , out AlmTime );

Python
Ret = ctypes.c_long()
ErcTime = ctypes.c_short()
ErcOffTimer = ctypes.c_short()
AlmTime = ctypes.c_short()
Ret.value = csmc.SmcWGetErcAlmClearTime( Id , 1, ctypes.byref(ErcTime) , ctypes.byref(ErcOffTimer) , ctypes.byref(AlmTime) )

関連項目

SmcWSetErcAlmClearTime