TOnProgramStoppedCB
Features
This is a callback function for checking if program execution in the robot controller has been completely terminated when the program is terminated due to errors or user command during execution in automatic mode. 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 |
---|---|---|---|
eStopCause | enum. PROGRAM_STOP_CAUSE | - | Refer to the Definition of Constant and Enumeration Type |
Return
None.
Example
void OnProgramStoppedCB(const PROGRAM_STOP_CAUSE eStopCause)
{
// Shows whether restart of program is possible
}
int main()
{
drfl.SetOnProgramStopped(OnProgramStoppedCB);
}