MC_MoveLinearAbsolute (FB)¶
FUNCTION_BLOCK FINAL MC_MoveLinearAbsolute
This function block commands a linear movement of an axis group to an absolute position in the specified coordinate system.
Note
The velocity/acc-/deceleration/jerk of each axis are properties
of each axis and not specified within this function block.
See also inputs VelFactor, AccFactor and JerkFactor.
- InOut:
Scope
Name
Type
Initial
Comment
Inout
AxisGroupReference to a group of axes
Input
ExecuteBOOLStart the motion at rising edge
PositionEnd position in the specified coordinate system
VelocityLREALMaximum path velocity [u/s] for the coordinate system in which the path is defined. Always positive. Not necessarily reached.
AccelerationLREALMaximum path acceleration [u/s²]. Always positive. Not necessarily reached.
DecelerationLREALMaximum path deceleration [u/s²]. Always positive. Not necessarily reached.
JerkLREALMaximum path jerk [u/s³]. Always positive. Not necessarily reached.
CoordSystemSMC_COORD_SYSTEMApplicable coordinate system
BufferModeMC_BUFFER_MODEDefines the chronological sequence of the FB relative to the previous block.
TransitionModeDefined the blending in case of a blending buffer mode
TransitionParameterARRAY [0..(SMC_RCNST.MAX_TRANS_PARAMS - 1)] OF LREAL
Parameters for blending
OrientationModeDetermines how the orientation is interpolated.
VelFactorLREAL1
The maximum velocity of each axis is multiplied by this factor, which must be in the range ]0, 1].
AccFactorLREAL1
The maximum acceleration of each axis is multiplied by this factor, which must be in the range ]0, 1].
JerkFactorLREAL1
The maximum jerk of each axis is multiplied by this factor, which must be in the range ]0, 1].
TorqueFactorLREAL1
The maximum torque of each axis is multiplied by this factor, which must be in the range ]0, 1]. A dynamic model must have been set using SMC_GroupSetDynamics for this factor to have an effect.
AdditionalAxesIAdditionalAxesMovementIf an instance of SMC_MoveAdditionalAxesAbsolute or SMC_MoveAdditionalAxesRelative is assigned to this input, the additional axes of the axis group will perform the specified movement while this function block is active. Set to
0if no additional axes movement has to be performed or if there are no additional axes.NameSTRING‘MC_MoveLinearAbsolute’
The name of the movement.
Output
DoneBOOLCommanded end positions reached for all axes
BusyBOOLThe FB is not finished
ActiveBOOLIndicates that the FB has control on the axis
CommandAbortedBOOLCommand is aborted by another command
CommandAcceptedBOOLThe command has been accepted by the axis group. If the output becomes
TRUE, the function block instance can be used to command the next movement with a new rising edge onExecute. While the output isFALSE, keep calling the function block without a new rising edge ofExecute. The output is reset toFALSEon a falling edge ofExecute.ErrorBOOLSignals that an error has occurred within the function block
ErrorIDSMC_ERRORError identification
MovementIdSMC_Movement_IdThe unique identifier of the movement. Valid if
CommandAcceptedorDoneisTRUE.