State diagram
Note | Description |
|---|---|
Note 1 | State transition during XAR startup and axis initialization. This requires a link between |
Note 2 | Drive: |
Note 3 | The drive's state changes, preventing the controller from being enabled (e.g., |
Note 4 |
|
Note 5 |
|
Note 6 | From any state in which an error occurs. This also applies, for example, to |
Note 7 |
|
Note 8 | From any state, provided that |
Note 9 | The drive controller is no longer active, and the status word indicates that the controller is ready to be enabled (e.g., |
Note 10 |
|
Motion commands are always executed sequentially. All commands operate within the state diagram described. In the PLC, the states are contained in the enumeration type EAxisState. The numerical values stored there are listed in parentheses next to the states in the diagram (e.g., “Standstill (2)”).
The axis is always in one of the defined states. Each motion command that causes a transition changes the state of the axis and thus the motion profile. The state diagram is an abstraction layer that reflects the real axis state, comparable to the process image for I/O points. The axis state changes immediately when the command is issued.
The state diagram refers to single axes. Multi-axis blocks such as MC_CamIn or MC_GearIn influence the states of several axes, which can always be traced back to individual axis states of the axes involved in the process. For example, a cam plate master can be in the Continuous Motion state, while the associated slave is in the Synchronized Motion state. Coupling a slave has no effect on the state of the master.
The Disabled state is the default state of an axis. In this state, the axis cannot be moved by any function block, but it is ready for operation. When the MC_Power function block is called with Enable = TRUE, the axis changes to the Standstill state or, in the event of an error, to the ErrorStop state. If the MC_Power function block is called with Enable = FALSE, the state changes to Disabled.
The purpose of the ErrorStop state is to stop the axis and then reject any further commands until a reset has been triggered. The Error state transition only refers to actual axis errors and not to function block execution errors. Axis errors can also be indicated at the error output of a function block.
The Stopping state indicates that the axis is in a stop ramp. The state changes to the Standstill state once the axis has come to a complete stop.
Motion commands such as MC_MoveAbsolute that exit the Synchronized Motion state can be used without additional parameterization.
Function blocks that are not listed in the state diagram do not affect the state of the axis (e.g. MC_ReadStatus, MC_ReadParameter, MC_WriteParameter, ...).
Meaning of the states
Name | Description |
|---|---|
Invalid |
|
Disabled |
|
Standstill |
|
Homing |
|
ErrorStop |
|
Stopping |
|
DiscreteMotion |
|
ContinuousMotion |
|
SynchronizedMotion |
|
ResetPending |
|
Enabling |
|
Disabling |
|
NotReady |
|
Version information
- TwinCAT Standard >= v3.1.4026.23.1
- TF5500 MC3 Base >= v4.0.6