MC_MoveVelocity

The MC_MoveVelocity FB commands an endless motion at the specified speed. The motion is always executed jerk-limited with 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.

To stop the motion, the FB must be interrupted by another FB that sends a new command to the axis.

The “InVelocity” output is reset when a falling edge is detected at the “Execute” input or when the effect of the FB is ended due to the command of another FB.

In conjunction with an MC_MoveSuperImposed FB, the “InVelocity” output remains TRUE.

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.

Velocity

LREAL

Velocity value of endless motion. This value must be specified positive.

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 3 values:

Positive direction

 3     negative direction

  4     current direction

VAR_OUTPUT

Variable name

Data type

Description

InVelocity

BOOL

The commanded velocity was reached (for the first time).

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: