You're reading the documentation for an older, but still supported version
(GL013300).
For information on the latest version, please have a look at GL013301.
For information on the latest version, please have a look at GL013301.
drl_pause
This is a function for temporarily suspending the DRL program (task) currently executed in the robot controller.
Definition
DRFLEx.h within class CDRFLEx, public section (line 938)
bool drl_pause() {
return _drl_pause(_rbtCtrl);
};
Parameter
None
Return
Value |
Type |
Description |
|---|---|---|
0 |
int |
Error |
1 |
int |
Success |
Example
if (drfl.get_program_state() == DRL_PROGRAM_STATE_PLAY) {
drfl.drl_pause();
}
This example checks if the current DRL program is in the PLAY state using get_program_state(). If so, it suspends execution by calling drl_pause(). The suspended program can later be resumed using drl_resume, allowing safe interruption and continuation of automatic DRL tasks.