drl_resume
This is a function for resuming the DRL program (task) currently temporarily suspended in the robot controller.
Definition
DRFLEx.h within class CDRFLEx, public section (line 940)
bool drl_resume() {
return _drl_resume(_rbtCtrl);
};
Parameter
None
Return
Value |
Type |
Description |
|---|---|---|
0 |
int |
Error |
1 |
int |
Success |
Example
if (drfl.get_program_state() == DRL_PROGRAM_STATE_HOLD) {
bool bResult = drfl.drl_resume();
// Additional logic after resuming program...
}
This example resumes execution of a temporarily suspended DRL program. If the robot’s program state is in DRL_PROGRAM_STATE_HOLD, drl_resume() reactivates the DRL task that was paused using drl_pause.
This function is commonly used for controlled recovery of automatic tasks after an intentional pause or safety hold during operation.