CDRFLEx.get_last_alarm
Features
This is a function for checking the latest log and alarm code that have occurred in the robot controller.
Parameter
None
Return
Value | Description |
---|---|
Struct.LOG_ALARM* | Refer to definition of structure |
Example
LPLOG_ALARM pLogAlarm= Drfl.get_last_alarm();
switch(pLogAlarm->_iGroup)
{
case LOG_GROUP_SYSTEMFMK:
switch(pLogAlarm->_iLevel)
{
case LOG_LEVEL_SYSINFO:
cout << "index(" << pLogAlarm->_iIndex << "), ";
cout << "param(" << pLogAlarm->_szParam[0]<< ", ";
cout << "param(" << pLogAlarm->_szParam[1]<< ", ";
cout << "param(" << pLogAlarm->_szParam[2]<< ")" << endl;
break;
default:
break;
}
break;
default:
break;
}