MC_SetPosition

The function block shifts the coordinate system of an axis by changing both the command position and the actual position to the same position value which is applied to the “Position” input. The axis is not moved during this operation.

To permit the block to execute its function, the parameter kenngr.set_refpos_mode (P-AXIS-00278) must be assigned in the associated axis parameter list as follows:

kenngr.set_refpos_mode          PLC

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

Starts the command on the rising edge.

Position

LREAL

Position which is to be adopted as command and actual position if a rising edge is detected at the "Execute" input.

Value range [-2147483648.0, 2147483647.0] Default unit [0.1 µm or 10-4 °].

VAR_OUTPUT

Variable name

Data type

Description

Done

BOOL

Is TRUE when the position was successfully adopted.

Error

BOOL

Indicates whether an error has occurred in the FB.

ErrorID

WORD

Error code.