SmcWGetErcAlmClearTime


Function

Retrieves the settings of the width of deviation counter clear/alarm clear signals and the OFF timer time of deviation counter clear signal.

Format

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

Parameters

Id [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
SSpecify the Deice ID retrieved by SmcWInit function.

AxisNo [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
Specify the axis number.

ErcTime [ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Specify the address of a variable to store the width of deviation counter clear signal.

0

12[usec]

1

102[usec]

2

408[usec]

3

1.6[msec]

4

13[msec]

5

52[msec]

6

104[msec]

7

Level output

ErcOffTimer [ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Specify the address of a variable to store the OFF timer time of deviation counter clear signal.

0

0[usec]

1

12[usec]

2

1.6[msec]

3

104[msec]

AlmTime [ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Specify the address of a variable to store the width of alarm clear signal.

0

12[usec]

1

102[usec]

2

408[msec]

3

1.6[msec]

4

13[msec]

5

52[msec]

6

104[msec]

Return Value

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

0

Terminated normally

Non-zero

Terminated abnormally

See also: Error code details

Initial Value

ErcTime

0 : 12[usec]

ErcOffTimer

0 : 0[usec]

AlmTime

0 : 12[usec]

Remarks

This function can be executed even if the axis is in operation.

Example

The set up information at the width of an alarm clear signal and clearness/time of the deflection counter of axis number 1 of deflection counter clear signal OFF timer is acquired.

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) )

See Also

SmcWSetErcAlmClearTime