MDI_MoveRelative (FB)
FUNCTION_BLOCK MDI_MoveRelative
- This function block is used to command a controlled motion of a specified distance relative to the actual position at the time of the execution.
Note
This function block only supports e5x0 drive.
- InOut:
Scope
Name
Type
Initial
Comment
Input
ExecuteBOOLFALSE
Starts the motion on a rising edge.
DistanceREALTarget distance for the move (in user units), range>0 if the axis type is modulo.
VelocityREAL100
Maximum velocity (not necessarily reached) in user units/sec, range>0.
AccelerationREAL1000
Acceleration rate in user units/sec^2, range>0.
DecelerationREAL1000
Deceleration rate in user units/sec^2, range>0.
Inout
AxisReference to the axis structure.
Output
DoneBOOLIndicates that the axis has reached the target position successfully.
BusyBOOLSets to true while the relative move 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.