Skip to main content
Skip table of contents

TOnMonitoringStateCB

기능

로봇제어기에서 운용 상태 정보 변경시 이를 확인하기 위한 콜백함수이다. 콜백 함수는 특정 이벤트 발생시 자동으로 실행되므로, 콜백 함수 내에서 과도한 실행 시간(50msec 이내)을 요구하는 코드를 작성해서는 안 된다.

인수

인수명자료형기본값설명

eState

enum.ROBOT_STATE

-

상수 및 열거형 정의 참조

리턴

없음

예제

PY
void OnMonitoringStateCB(const ROBOT_STATE eState)
{
	switch((unsigned char)eState)
    {
        case STATE_SAFE_OFF:
            // 로봇 제어기 서보온
			drfl.SetRobotControl(CONTROL_RESET_SAFET_OFF);
        break;
        default:
        break;
	}
}

int main() 
{
	drfl.SetOnMonitoringState(OnMonitoringStateCB);
}
JavaScript errors detected

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

If this problem persists, please contact our support.