.. _enum_robot_control: ROBOT_CONTROL ------------------------------------------ This enumeration specifies the commands that convert or change the operation state of the robot controller, and is defined as follows. .. list-table:: :header-rows: 1 :widths: 5 20 75 * - Value - Constant Name - Description * - 0 - CONTROL_INIT_CONFIG - Switches the state from |br| STATE_NOT_READY to STATE_INITIALIZING. Only the |br| T/P application executes this function. * - 1 - CONTROL_ENABLE_OPERATION - Switches the state from |br| STATE_INITIALIZING to STATE_STANDBY. Only the |br| T/P application executes this function. * - 2 - CONTROL_RESET_SAFET_STOP - Switches the state from |br| STATE_SAFE_STOP to STATE_STANDBY. In Auto mode, |br| a program restart can be set. * - 2 - CONTROL_RESET_SAFE_STOP - Switches the state from |br| STATE_SAFE_STOP to STATE_STANDBY. In Auto mode, |br| a program restart can be set. |br| (Alias of CONTROL_RESET_SAFET_STOP) * - 3 - CONTROL_RESET_SAFET_OFF - Switches the state from STATE_SAFE_OFF |br| to STATE_STANDBY. * - 3 - CONTROL_RESET_SAFE_OFF - Switches the state from STATE_SAFE_OFF |br| to STATE_STANDBY. |br| (Alias of CONTROL_RESET_SAFET_OFF) * - 3 - CONTROL_SERVO_ON - Alias of CONTROL_RESET_SAFET_OFF. |br| Used internally for backward compatibility with servo-on |br| control in earlier firmware. * - 4 - CONTROL_RECOVERY_SAFE_STOP - Switches the state by software from |br| STATE_SAFE_STOP2 to STATE_RECOVERY. * - 5 - CONTROL_RECOVERY_SAFE_OFF - Switches the state by software from |br| STATE_SAFE_OFF2 to STATE_RECOVERY. * - 6 - CONTROL_RECOVERY_BACKDRIVE - Switches the state by hardware from |br| STATE_SAFE_OFF2 to STATE_RECOVERY. The state cannot |br| then change to STATE_STANDBY; the robot controller |br| must be power-cycled. * - 7 - CONTROL_RESET_RECOVERY - Switches the state from STATE_RECOVERY |br| to STATE_STANDBY. * - 8 - CONTROL_LAST - Internal end marker of the ROBOT_CONTROL enumeration. |br| It does **not represent an actual control command**, but defines |br| the total number of valid constants within this enumeration. |br| Used internally for array size definition and boundary checking. **Defined in:** ``DRFC.h`` .. code-block:: cpp // robot control enumerated value typedef enum { CONTROL_INIT_CONFIG, CONTROL_ENABLE_OPERATION, CONTROL_RESET_SAFET_STOP, CONTROL_RESET_SAFE_STOP = CONTROL_RESET_SAFET_STOP, CONTROL_RESET_SAFET_OFF, CONTROL_RESET_SAFE_OFF = CONTROL_RESET_SAFET_OFF, CONTROL_SERVO_ON = CONTROL_RESET_SAFET_OFF, CONTROL_RECOVERY_SAFE_STOP, CONTROL_RECOVERY_SAFE_OFF, CONTROL_RECOVERY_BACKDRIVE, CONTROL_RESET_RECOVERY, CONTROL_LAST } ROBOT_CONTROL;