SMC_GroupReadPositionInMovement (FB)ΒΆ
FUNCTION_BLOCK SMC_GroupReadPositionInMovement
Function block for reading the position in the current movement. The
result can be used for preparing a trigger using SMC_GroupPrepareTrigger
by setting the PositionType to MvtRelative and the
Position.MvtPosition to the Position output of this function block.
Note
If the position is read while blending between movements, then on the first
half of the blending the MovementId and Position will belong to the
first movement and on the second half, they will belong to the second
movement.
This is consistent with how trigger positions are handled when blending, but
in contrast to the behavior of the Active outputs of the movement command
FBs. The Active output of the second movement will become TRUE as
soon as the blending starts.
- InOut:
Scope
Name
Type
Comment
Inout
AxisGroupReference to a group of axes
Input
EnableBOOLThe position is read continuously while enabled.
Output
ValidBOOLTRUEif thePositionandMovementIdare valid.BusyBOOLThe FB is not finished
PositionLREALThe current position within the current movement. The value is between 0 and 1, where 0 is the start and 1 the end of the movement.
MovementIdSMC_Movement_IdThe id of the current movement.
ErrorBOOLSignals that an error has occurred within the function block
ErrorIDSMC_ERRORError identification