Skip to main content
Skip table of contents

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

PY
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()
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.