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
ExecuteBOOLFALSE
Starts the motion on a rising edge.
PositionREALTarget position for the move in user units.
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.
DirectionMDI_DirectionType.DEFAULT
DEFAULT (0) - Default direction, SHORTEST (1) Shortest direction (only available if axis is configured as modulo).
Inout
AxisReference to the axis structure.
Output
DoneBOOLIndicates that the axis has reached the target position successfully.
BusyBOOLSets to true while the absolute move is in progress.
CommandAbortedBOOLCommand is aborted by another command from other MDI function block.
ErrorBOOLSignals that an error has occurred within function block.
ErrorIDERROR_ID.NO_ERROR
Contains the error code when there is an error.