MC_GrpReadStatus

This function block supplies the axis group state depending on the axis group state diagram defined in PLCopen Part 4 specification. 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

Supplies state values cyclically when TRUE.

VAR_OUTPUT

Variable name

Data type

Description

Valid

BOOL

TRUE when state values are available.

GroupMoving

BOOL

Axis group is in the “GroupMoving” state

GroupHoming

BOOL

Axis group is in the “GroupHoming“ state

GroupErrorStop

BOOL

Axis group is in the “GroupErrorStop“ state

GroupStandby

BOOL

Axis group is in the “GroupStandby“ state

GroupStopping

BOOL

Axis group is in the “GroupStopping“ state

GroupDisabled

BOOL

Axis group is in the “GroupDisabled“ state

Error

BOOL

TRUE indicates that an error occurred.

ErrorID

WORD

Error code