MC_MoveAbsolute

A motion of the axis to an absolute position is commanded by the FB MC_MoveAbsolute. The motion is always executed jerk-limited at constant jerk set in "Jerk”. This value is valid for both "Acceleration" and “Deceleration”.

If the optional parameters “Acceleration, “Deceleration” and “Jerk” are not specified or set to <= 0, the dynamic values are taken from the corresponding axis list.

Block diagram

FB parameters

VAR_IN_OUT

Variable name

Data type

Description

Axis

AXIS_REF

Axis reference

VAR_INPUT

Variable name

Data type

Description

Execute

BOOL

A rising edge at the input commands the motion to an absolute position.

Position

LREAL

Target position of the motion,
Value range [-2147483648.0, 2147483647.0]
Default unit [0.1µm or 10-4 °]

Velocity

LREAL

Maximum velocity of the motion. This value must be specified positive. The velocity is not necessarily reached.

Value range [1.0, 2147483647.0]
Default unit [1µm/s or 10-3 °/s]

Acceleration

LREAL

Acceleration value. This value must be specified positive.

Value range [0.0, 2147483647.0]
Default unit [1mm/s2 or 1°/s2]

Deceleration

LREAL

Deceleration value. This value must be always be specified positive.

Value range [0.0, 2147483647.0]
Default unit [1mm/s2 or 1°/s2]

Jerk

LREAL

Jerk value. This value must be always be specified positive.

Value range [0.0, 2147483647.0]
Default unit [1mm/s3 or 1°/s3]

Direction

INT

Direction in which the motion is started. One of the 4 values:

   1     positive direction

   2     shortest path

   3     negative direction

   4     current direction

Specifying the direction is effective only if a modulo coordinate system was defined for the axis in the axis-specific machine data using parameter kenngr.achs_mode (P-AXIS-00015) since the direction is always unambiguous with linear axes.

VAR_OUTPUT

Variable name

Data type

Description

Done

BOOL

The axis is within a range close to the target position. The range is specified by the parameter getriebe[...].window (P-AXIS-00236) of the axis-specific machine data.

CommandAborted

BOOL

TRUE indicates that the command was aborted by another command.

Error

BOOL

Is TRUE if an error occurs in the FB.

ErrorID

WORD

Error identifier

Behaviour of the FB: