MCV_InitPosition

The “MCV_InitPosition” FB initialises the command position of the interpolator of an SAI axis with the current command position of the position controller of this SAI axis. This FB is always used to compensate for position differences between of the interpolator and the position controller caused by commanding an instance of the FB MCV_AddCmdValues (see [MCP-CTRL] or by a axis coupling.

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

Execute

BOOL

TRUE, starts the initialisation of the command position of the interpolator with the command position of the position controller of the SAI axis.

VAR_OUTPUT

Variable name

Data type

Description

Done

BOOL

TRUE, the command position of the interpolator of the SAI axis is initialised with the command position of the position controller.

Error

BOOL

Is TRUE when an error occurs in the FB.

ErrorID

WORD

Error code.

Behaviour of the FB

Notice

notice

Several CNC cycles are required to synchronise the position, i.e. this FB should not be used before each positioning for time-critical actions without good reason.