MC_ReadStatus
This function block outputs the status of the axis via a single bit. To retrieve the axis state as an enumeration, use MC_SEW_ReadStatus. A detailed description of the PLCopen states can be found in the chapters State diagram and in the enumeration E_AxisStates in the library "SEW PLCopen MotionControl Interfaces" with the namespace "SEW_oIMoCo".

VAR_IN_OUT
Variable name | Data type | Description |
|---|---|---|
Axis | AXIS_REF | Reference to a logical device See also AXIS_REF. |
VAR_INPUT
Variable name | Data type | Description |
|---|---|---|
Enable | BOOL | Activate function block. |
VAR_OUTPUT
Variable name | Data type | Description |
|---|---|---|
Valid | BOOL | Outputs are valid |
Busy | BOOL | Function block is active |
Error | BOOL | An error has occurred in the function block |
ErrorID | WORD | Error number |
ErrorStop | BOOL | Axis is in the "ErrorStop" state |
Disabled | BOOL | Axis is in the "Disabled" state |
Stopping | BOOL | Axis is in the "Stopping" state |
Homing | BOOL | Axis is in the "Homing" state |
Standstill | BOOL | Axis is in the "Standstill" state |
DiscreteMotion | BOOL | Axis is in the "DiscreteMotion" state |
ContinuousMotion | BOOL | Axis is in the "ContinuousMotion" state |
SynchronizedMotion | BOOL | Axis is in the "SynchronizedMotion" state |
