MC_GrpReadInfo

This function block supplies information concerning an axis group. 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

If TRUE, supplies cyclic information about the axis group.

VAR_OUTPUT

Variable name

Data type

Description

Valid

BOOL

TRUE when the information is available.

InPosition

BOOL

Target position is reached.

ErrorDetected

BOOL

Is TRUE when an error is detected in the motion controller. This means that the emergency strategy is initiated.

ErrorDetectedSync

BOOL

Is TRUE when an error related to conveyor belt synchronisation is detected in the motion controller. This means that the emergency strategy is initiated.

SyncState

UDINT

Current state of an axis group relating to a command that leads to synchronisation with a conveyor belt.

Table 1 shows the possible values for the synchronisation state.

Error

BOOL

TRUE indicates that an error occurred.

ErrorID

WORD

Error code

Values at the “SyncState” output

Constant

Value

Note

HLI_GRP_NO_SYNCH

0

No synchronisation command is active.

HLI_GRP_SYNCH_IN

1

The axis group executes a synchronisation command

HLI_GRP_SYNCH_LINKED

2

The axis group motions to synchronise with a conveyor belt axis are completed and the conveyor belt axis and the axis group now move synchronously.

HLI_GRP_SYNCH_OUT

3

The state commanding an axis group to move synchronously with a conveyor belt is cancelled.

HLI_GRP_SYNCH_STOPPED

4

An error occurred in an axis group that moves synchronously with a conveyor belt axis. The axis group starts its strategy in the event of an error.