TOnMonitoringCtrlIOExCB
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_CTRLIO_EX | - | Refer to definition of structure |
Return
None.
Example
void OnMonitoringCtrlIOExCB(const LPMONITORING_CTRLIO_EX pCtrlIO)
{
cout << "gpio data" << endl;
for (int i = 0; i < NUM_DIGITAL; i++)
cout << "DI#"<< i << ": " << pCtrlIO->_tInput._iActualDI[i] << endl;
}
int main()
{
Drfl.SetOnMonitoringCtrlIOEx(OnMonitoringCtrlIOExCB)
}