MC_ReadStatus
This FB is used to obtain the status data of an axis. It is assigned to the group of administrative FBs.
Block diagram
Parameters of the FB
VAR_IN_OUT | |||
| Axis | AXIS_REF | Axis reference |
VAR_INPUT | |||
| Enable | BOOL | Get the values of the parameters continuously while enabled. |
VAR_OUTPUT | |||
| Valid | BOOL | True if ‘Valid’ outputs available. |
| Error | BOOL | Indicates if an error has occurred. |
| ErrorID | WORD | Error identification. |
| Errorstop | BOOL | Axis is in state ‘Errorstop’ |
| Disabled | BOOL | Axis is in state ‘Disabled’ |
| Stopping | BOOL | Axis is in state ‘Stopping’ |
| Homing | BOOL | Axis is in state ‘Homing’ |
| Standstill | BOOL | Axis is in state ‘Standstill’ |
| TorqueControl | BOOL | Axis is in state ‘Torque Control’ |
| DiscreteMotion | BOOL | Axis is in state ‘Discrete Motion’ |
| ContinuousMotion | BOOL | Axis is in state ‘Continuous Motion’ |
| SynchronizedMotion | BOOL | Axis is in state ‘Synchronized Motion’ |
Behavior of the FB
- The data of an axis is updated cyclically if ‘Enable’ has the value TRUE.