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
AxisGroup
Reference to a group of axes
Input
Enable
BOOL
The position is read continuously while enabled.
Output
Valid
BOOL
TRUE
if thePosition
andMovementId
are valid.Busy
BOOL
The FB is not finished
Position
LREAL
The 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.
MovementId
SMC_Movement_Id
The id of the current movement.
Error
BOOL
Signals that an error has occurred within the function block
ErrorID
SMC_ERROR
Error identification