MC_MoveRelative

A relative motion is commanded with the MC_MoveRelative FB, in addition to the current position. This is regardless of whether the axis is in "Discrete Motion" or "Continuous Motion" state. The motion is always executed jerk-limited at the constant set input "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

The motion starts at the rising edge of this input signal.

Distance

LREAL

Relative distance for 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]

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: