Skip to main content

7.17.2 MC_AxesLinearAbsolute

Function

两个轴以线性路径绝对位置移动到指定的终点

LD graphics

alt text

Parameter description

ParamertersTypeDeclarationDescriptionRemarks
A1AXISVAR_IN_OUTThe selected axis A1 to execute commandInvoke Function Block
A2AXISVAR_IN_OUTThe selected axis A2 to execute commandInvoke Function Block
ExecuteBOOLVAR_INStart the motion at rising edge
A1PostionLREALVAR_INCommanded relative position for Axis A11.User Unit.
2. Can't exceed the setting range in Axis Configuration.3. Velocity is line velocity, not for single axis.
A2PositionLREALVAR_INCommanded relative position for Axis A2
VelocityLREALVAR_INValue of the maximum velocity [u/s]. Can be a signed value.
AccelerationLREALVAR_INValue of the acceleration [u/s2].
DecelerationLREALVAR_INValue of the deceleration [u/s2].
JerkLREALVAR_INValue of the Jerk [u/s3].
BufferModeUSINTVAR_INDefines the chronological sequence of the FB.
0: aborting an ongoing motion immediately (default)
1: affects the axis as soon as the previous movement is 'Done'
DoneBOOLVAR_OUTCommanded position reached
BusyBOOLVAR_OUTTrue: The FB is not finished
ActiveBOOLVAR_OUTIndicates the FB has control on the axis1. If non buffer-mode, Active is set when the FB is executed and reset when the FB is done.
2. If buffer-mode, Active is set when the FB has control on the axis.
CommandAbortedBOOLVAR_OUT'Command' is aborted by another command
ErrorBOOLVAR_OUTSignals that an error has occurred within the FB
ErrorIDWORDVAR_OUTError ID