Skip to main content
Skip table of contents

TOnMonitoringCtrlIOCB

Features

This is a callback function for checking I/O state data installed in the control box of 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

*pCtrlIO

struct. MONITORING_MODBUS

-

Refer to definition of structure

Return

None.

Example

CPP
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.SetOnMonitoringCtrlIO(OnMonitoringCtrlIOCB)
}
JavaScript errors detected

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

If this problem persists, please contact our support.