Breadcrumbs

CDRFLEx.set_on_monitoring_ctrl_io

Features

This is a function for registering the callback function that automatically checks information on the current state of the I/O installed in the control box of the robot controller. It is useful when functions that should be executed automatically are made.

Parameter

Parameter Name

Data Type

Default Value

Description

pCallbackFunc

TOnMonitoringCtrlIOCB

-

Refer to definition of callback function

Return

None.

Example

C++
void OnMonitoringCtrlIOCB(const LPMONITORING_CTRLIO pCtrlIO)
{
// Displays the digital input GPIO state data
cout << "gpio data" << endl;
for (int i = 0; i < NUM_DIGITAL; i++)
cout << "DI#"<< i << ": " << pCtrlIO->_tInput._iActualDI[i] << endl;
}

int main()
{
drfl.set_on_monitoring_ctrl_io(OnMonitoringCtrlIOCB)
}