CDRFLEx.get_program_state
Features
This is a function for checking information on the execution state of the program that is currently being executed in automatic mode in the robot controller.
Parameter
None
Return
Value | Description |
---|---|
enum.DRL_PROGRAM_STATE | Refer to the Definition of Constant and Enumeration Type |
Example
if (drfl.get_program_state() == DRL_PROGRAM_STATE_PLAY){
// Stops the program execution state
drfl.drl_stop(STOP_TYPE_SLOW)
}
else if (drfl.get_program_state() == DRL_PROGRAM_STATE_HOLD) {
// Resumes the program execution state
drfl.drl_resume()
}