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
JogForwardBOOLMove forward as long as JogForward = TRUE.
JogBackwardBOOLMove backward as long as JogBackward = TRUE.
VelocityREAL100
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.
AccelerationREAL1000
Acceleration rate (user units/sec^2 for e5x0, sec for ACSx80), range>0.
DecelerationREAL1000
Deceleration rate (user units/sec^2 for e5x0, sec for ACSx80), range>0.
Inout
AxisReference to axis.
Output
InVelocityBOOLCommanded velocity is reached.
BusyBOOLSets to true while the function block is in progress.
CommandAbortedBOOLCommand is aborted by another command from other MDI function block.
ErrorBOOLSignals that an error has occurred within function block.
ErrorIDContains the error code when there is an error.