TOnMonitoringSafetyStateCB
Features
This is a callback function called when the safety state is updated in the robot controller. Since the callback function is automatically executed when a specific event occurs, you should not write code that requires an excessive execution time (within 50msec) within the callback function.
Parameter
Parameter Name | Data Type | Default Value | Description |
---|---|---|---|
eSafetyState | enum.SAFETY_STATE | - | Refer to the Definition of Structure |
Return
None.
Example
void OnMonitoringSafetyStateCB (SAFETY_STATE iState)
{
//When safety state is updated
}
int main()
{
Drfl.set_on_monitoring_safety_state(OnMonitoringSafetyState);
}