1.33 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.33 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

TOnLogAlarmCB

Features

This is a callback function for checking all alarms and log information generated in the robot controller. As the callback function is executed automatically in the case of a specific event, a code that requires an excessive execution time (within 50 msec) within the callback function should not be made.

Parameter

Parameter Name

Data Type

Default Value

Description

* pLogAlarm

struct.LOG_ALARM

-

Refer to definition of structure

Return

None.

Example

Python
void OnLogAlarm(LPLOG_ALARM pLogAlarm)
{
    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;
    }
}

int main()
{
	Drfl.SetOnLogAlarm(OnLogAlarmCB)
}