MDI_MoveAbsolute (FB)

FUNCTION_BLOCK MDI_MoveAbsolute

This function block is used to command a controlled motion to a specified absolute position. This function can be used with modulo axes (in which case the shortest route to the specified position will be taken).

Note

This function block only supports e5x0 drive.

InOut:

Scope

Name

Type

Initial

Comment

Input

Execute

BOOL

FALSE

Starts the motion on a rising edge.

Position

REAL

Target position for the move in user units.

Velocity

REAL

100

Maximum velocity (not necessarily reached) in user units/sec, range>0.

Acceleration

REAL

1000

Acceleration rate in user units/sec^2, range>0.

Deceleration

REAL

1000

Deceleration rate in user units/sec^2, range>0.

Direction

MDI_DirectionType

MDI_DirectionType.DEFAULT

DEFAULT (0) - Default direction, SHORTEST (1) Shortest direction (only available if axis is configured as modulo).

Inout

Axis

MDI_AxisRef

Reference to the axis structure.

Output

Done

BOOL

Indicates that the axis has reached the target position successfully.

Busy

BOOL

Sets to true while the absolute move 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

ERROR_ID.NO_ERROR

Contains the error code when there is an error.