Example) Get the alarm code of axis number 1.
■ C
long Ret;
short Id;
short AlarmCode;
// Input the alarm code
Ret = SmcWGetAlarmCode( Id , 1, &AlarmCode );
■ Visual Basic
Dim Ret As Integer
Dim Id As Short
Dim AlarmCode As Short
' Input the alarm code
Ret = SmcWGetAlarmCode( Id , 1, AlarmCode )
■ C#
int Ret;
short Id;
short AlarmCode;
// Input the alarm code
Ret = Smc.WGetAlarmCode( Id , 1, out AlarmCode );
■ Python
Ret = ctypes.c_long()
Id = ctypes.c_short()
AlarmCode = ctypes.c_short()
# Input the alarm code
Ret.value = csmc.SmcWGetAlarmCode( Id , 1, ctypes.byref(AlarmCode) )