例) 读取第1轴的报警代码。
■ C语言
long Ret;
short Id;
short AlarmCode;
// 读取报警代码
Ret = SmcWGetAlarmCode( Id , 1, &AlarmCode );
■ Python
Ret = ctypes.c_long()
Id = ctypes.c_short()
AlarmCode = ctypes.c_short()
# 读取报警代码
Ret = csmc.SmcWGetAlarmCode( Id , 1, ctypes.byref(AlarmCode) )