Skip to main content

7.16.4 MC_MOVERELATIVE

Function

This function block command performs controlled movement of a specified distance relative to the set position when executed.

LD graphics

alt text

Parameter description

ParametersTypeDeclarationDescriptionRemarks
AxisAXISVAR_IN_OUTSystem axis for executing commandsInvoke Function Block
ExecuteBOOLVAR_INRising edge activation
DistanceLREALVAR_INRelative distance of movement[u]
VelocityLREALVAR_INMaximum speed [u/s], which can be a signed value
AccelerationLREALVAR_INAcceleration[u/s2]
DecelerationLREALVAR_INDeceleration[u/s2]
JerkLREALVAR_INJerk[u/s3]
BufferModeUSINTVAR_INDefine the time sequence of FB:
0 means to immediately abort the ongoing movement (default value);
1 means to affect the axis when the last movement is "complete"
DoneBOOLVAR_INReach command distance
BusyBOOLVAR_OUTWhether there is a valid output for FB, True:FB is not terminated
ActiveBOOLVAR_OUTFB control axis
CommandAbortedBOOLVAR_OUTThe command was terminated by another command
ErrorBOOLVAR_OUTAn error signal has occurred within the FB
ErrorIDWORDVAR_OUTError ID