MC_GrpReadError
This function block supplies the error number when the axis group is in the “GroupErrorStop state. This is an administrative FB, i.e. no motion job is generated.
Block diagram

FB parameters
VAR_IN_OUT | ||
Variable name | Data type | Description |
AxesGroup | AXES_GROUP_REF | Axis group reference |
VAR_INPUT | ||
Variable name | Data type | Description |
Enable | BOOL | As long as input is TRUE, the current error is indicated at the “GroupErrorID” output when the axis is in the “GroupErrorStop” state. |
VAR_OUTPUT | ||
Variable name | Data type | Description |
Valid | BOOL | TRUE if the FB is active. |
Error | BOOL | TRUE indicates that an error occurred. |
ErrorID | WORD | Error identifier. |
GroupErrorID | UDINT | Error identifier of the axis group. |
JobID | UDINT | Ordinal number of the command when the displayed error occurred. |