SmcWSetAlarmClear


Function

Output alarm clear signal.

Format

Ret = SmcWSetAlarmClear( Id, AxisNo )

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 axis number.

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

Remarks

Execute this function after handling the motion by the alarm.
It can not be executed while motor is already in motion.
Set the signal width of alarm clear in SmcWSetErcAlmClearTime function.
But, it is valid when CtrlTypeOut1 to CtrlTypeOut3 are set to "1 : Alarm clear signal" in SmcWSetCtrlTypeOut function.

It can not be executed while motor is already in motion.

Example

An alarm clear signal of axis number 1 is output.

VB.NET
Dim Ret As Integer
Ret = SmcWSetAlarmClear( Id , 1)

C, C++
long Ret;
Ret = SmcWSetAlarmClear( Id , 1);

C#
int Ret;
Ret = Smc.WSetAlarmClear( Id , 1);

Python
Ret = ctypes.c_long()
Ret.value = csmc.SmcWSetAlarmClear( Id , 1)