MC_ReadAxisInfo

This FB is used to obtain the current status data of an axis. It is assigned to the group of administrative FBs.

Block diagram

FB parameters

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 identifier

IsHomed

BOOL

Homing is completed.

RefType

DINT

Reference type (single axis, path axis, spindle, etc.)

AxisLogNr

UINT

Logical axis number

Values of RefType output

Constant

Value

Note

REF_NONE

0

No reference available

REF_ANY_AXIS

1

Reference available but not yet assigned

REF_AXGRP_AXIS

2

Axis is in an axis group

REF_SAI_AXIS

3

Single axis / SAI

REF_IO_STATION

4

I/O station

REF_TO_REF

5

Reference to an axis reference

REF_ENC_AXIS

6

Encoder axis

Behaviour of the FB: