MC_SetPosition

This function block sets the position of the profile generation to the position specified at the Position input. The actual position of the drive is not influenced, no reference travel is performed. The axis movement is not interrupted by MC_SetPosition.

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

Execute

BOOL

Start execution of the function block.

Position

LREAL

Position to be set in [user units]

Relative

BOOL

  • FALSE: Set the profile generator position to the value of the Position input.
  • TRUE: Add the value of the Position input to the current setpoint position. This leads to a recalibration by a specified distance.
VAR_OUTPUT

Variable name

Data type

Description

Done

BOOL

Function block successfully completed

Busy

BOOL

Function block is active

Error

BOOL

An error has occurred in the function block

ErrorID

WORD

Error number