MC_MoveAbsolute

This function block triggers an absolute movement to a specified target position.

  • For modulo axes: Valid absolute position values are in the range of [modulo min, modulo max], in which case modulo max is excluded.
  • With Direction "mcShortestWay", the shortest route is used. The decision as to which direction to move in depends on the current position at which the command is executed.
VAR_IN_OUT

Variable name

Data type

Description

Axis

AXIS_REF

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

VAR_INPUT

Variable name

Data type

Description

Execute

BOOL

Start execution of the function block.

Position

LREAL

Target position in [user units]

Velocity

LREAL

Setpoint speed in [user units/s]

Acceleration

LREAL

Acceleration in [user unit/s2]

Deceleration

LREAL

Deceleration in [user unit/s2]

Jerk

LREAL

Jerk in [user unit/s3]

Direction

MC_Direction

Direction or modulo mode of movement. Only relevant for modulo axes. MC_Direction.mcDefault always moves linearly.

BufferMode

MC_BUFFER_MODE

Chronological sequence of the function block

VAR_OUTPUT

Variable name

Data type

Description

Done

BOOL

Function block successfully completed

Busy

BOOL

Function block is active

Active

BOOL

Function block controls the axis

CommandAborted

BOOL

The function block was canceled by another command

Error

BOOL

An error has occurred in the function block

ErrorID

WORD

Error number