Skip to main content
Skip table of contents

TOnLogAlarmCB

기능

로봇 제어기에서 발생하는 모든 알람 및 로그 정보 데이터를 확인하기 위한 콜백함수이다. 콜백 함수는 특정 이벤트 발생시 자동으로 실행되므로, 콜백 함수 내에서 과도한 실행 시간(50msec 이내)을 요구하는 코드를 작성해서는 안 된다.

인수

인수명자료형기본값설명

* pLogAlarm

struct.LOG_ALARM

-

구조체 정의 참조

리턴

없음

예제

PY
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)
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.