States, Modes and Events

Introduction

A State is an abstraction of the system’s hardware state. For instance, the system can be in OFF State, where power to the drives and motors is off, or ENGAGED State where the system is tracking external setpoints or executing a motion program.

A Mode is an abstraction of the way how signals are routed through the control system. The system can for instance be in Automatic Mode or Manual Mode.

There are also intermediate States/Modes between other State/Modes. These are called Transitions or Transitional States/Modes. Transitions are protected by a Timeout if the system remains in the Transition for too long (for instance, the system is commanded to go from OFF to IDLE State and because of some hardware failure it cannot switch on the drives, a timeout error will occur in the Transitional State OFF_TO_IDLE).

An Event is a trigger that initiates some change in the Control System, such as changing States or Modes. Events can be triggered by user interaction or programmatically.

States

ID State Name
0 Init
1 Off
2 Idle
3 Paused
4 Engaged
5 Homing
6 Forced Idle
7 E-Stop Off
ID Transitional State Name
102 OFF_TO_IDLE_T
201 IDLE_TO_OFF_T
204 IDLE_TO_ENGAGED_T
302 PAUSED_TO_IDLE_T
403 ENGAGED_TO_PAUSED_T
600 TO_FORCEDIDLE_T
602 RESET_FORCEDIDLE_T
700 TO_ESTOP_T
701 RESET_ESTOP_T

Modes

ID Mode Name
0 Init
1 Pause
2 Auto Run
3 Manual Joint Mode
4 Manual Cart Mode
5 Semi Auto
6 Torque
7 Move To Start
ID Transitional Mode Name
102 PAUSE_TO_AUTO_RUN_T
103 PAUSE_TO_MANUAL_JOINT_T
104 PAUSE_TO_MANUAL_CART_T
105 PAUSE_TO_SEMI_AUTO_T
106 PAUSE_TO_TORQUE_T
107 PAUSE_TO_MOVE_TO_START_T
301 MANUAL_JOINT_TO_PAUSE_T
304 MANUAL_JOINT_TO_MANUAL_CART_T
401 MANUAL_CART_TO_PAUSE_T
403 MANUAL_CART_TO_MANUAL_JOINT_T
601 TORQUE_TO_PAUSE_T
701 MOVE_TO_START_TO_PAUSE_T