MDI_Jog (FB)

FUNCTION_BLOCK MDI_Jog

This function block jogs the axis in the forward or backward direction at the specified jog velocity, acceleration and deceleration.

InOut:

Scope

Name

Type

Initial

Comment

Input

JogForward

BOOL

Move forward as long as JogForward = TRUE.

JogBackward

BOOL

Move backward as long as JogBackward = TRUE.

Velocity

REAL

100

Value for the velocity the axis will reach in units, range>=0. For e5x0 unit is units/sec, for ACSx80 unit is RPM. Can be modified whilst JogForward/JogBackward 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 axis.

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.