MDI_MoveVelocity (FB)

FUNCTION_BLOCK MDI_MoveVelocity

This function block is used to issue a velocity reference to the axis. In this mode of operation, the position loop is not used on the drive (no following error is recorded or acted upon). After Execute is issued the axis will remain in velocity control mode until motion of another control mode type is issued.

InOut:

Scope

Name

Type

Initial

Comment

Input

Execute

BOOL

FALSE

Starts the function block on a rising edge.

Velocity

REAL

100

Value for the velocity the axis will reach in user units, for e5x0 unit is units/sec, for ACSx80 unit is RPM. Can be modified whilst Execute is true to change the axis velocity.

Acceleration

REAL

1000

Acceleration rate(user units/sec^2 for e5x0, sec for ACSx80), range>0.

Deceleration

REAL

1000

Deceleration rate(user units/sec^2 for e5x0, sec for ACSx80), range>0.

Inout

Axis

MDI_AxisRef

Reference to the axis structure.

Output

InVelocity

BOOL

Commanded velocity is reached.

Busy

BOOL

Sets to true while the function block is in progress.

CommandAborted

BOOL

Command is aborted by another command from other MDI function block.

Error

BOOL

Signals that an error has occurred within function block.

ErrorID

ERROR_ID

Contains the error code when there is an error.