1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

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

C++
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()
}