1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

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

C++
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;
}