MC_ReadStatus

This FB is used to maintain the current PLCopen state of an axis. It is assigned to the group of administrative FBs.

Blockdiagramm

Parameters of the FB

VAR_IN_OUT

Variable name

Data type

Description

axis

AXIS_REF

Axis reference

VAR_INPUT

Variable name

Data type

Description

enable

BOOL

If the value is TRUE, the axis state data is indicated continuously.

VAR_OUTPUT

Variable name

Data type

Description

Valid

BOOL

TRUE if valid values are available.

Error

BOOL

Indicates whether an error has occurred in an FB.

ErrorID

WORD

Error code.

Errorstop

BOOL

Axis is in “Errorstop” state

Disabled

BOOL

Axis is in “Disabled” state

Stopping

BOOL

Axis is in “Stopping” state

Homing

BOOL

Axis is in “Homing” state

Standstill

BOOL

Axis is in “Standstill” state

TorqueControl

BOOL

Axis is in “Torque Control” state

DiscreteMotion

BOOL

Axis is in “Discrete Motion” state

ContinuousMotion

BOOL

Axis is in “Continuous Motion” state

SynchronizedMotion

BOOL

Axis is in “Synchronised Motion” state

Behaviour of the FB