MC_ReadActualPosition

This function block reads the actual position of an axis.

VAR_IN_OUT

Variable name

Data type

Description

Axis

AXIS_REF

Reference to a logical device
(name of the logical device)

See also AXIS_REF.

VAR_INPUT

Variable name

Data type

Description

Enable

BOOL

Activate function block.

VAR_OUTPUT

Variable name

Data type

Description

Valid

BOOL

Outputs are valid

Error

BOOL

An error has occurred in the function block

ErrorID

WORD

Error number

Position

LREAL

Actual position in [user unit]

In the case of a modulo axis, the current modulo position is output; in the case of a linear axis, the current linear position is output.

LinearPosition

LREAL

Current linear position in [user unit]