SMC_GroupTargetPosition (FB)¶
FUNCTION_BLOCK SMC_GroupTargetPosition
This function block returns the commanded target position of an axis group in the selected coordinate system.
- There are several reasons why the output
Valid
may beFALSE
: The last commanded movement is relative and its start-position is not known yet (e.g. because there is a tracking-movement before).
The last commanded movement is a halt / stop and has not been processed yet.
The last commanded movement is not processed yet,
CoordSystem = ACS
and the movement’s coordinate system is different fromACS
.
By „processing“ we mean an internal method that is called for at most one movement per cycle, and only if its start-position is known.
Valid
and not Stable
means that the target position moves in the
selected coordinate system.
This is an administrative FB, since no movement is generated.
- InOut:
Scope
Name
Type
Comment
Inout
AxisGroup
Reference to a group of axes
Input
Enable
BOOL
Get the commanded target position in the selected coordinate system of the axis group continuously while enabled
CoordSystem
Applicable coordinate system
Output
Valid
BOOL
TRUE
if valid outputs are availableStable
BOOL
TRUE
if the outputs won’t change until commanding a new movementBusy
BOOL
The FB is not finished
Error
BOOL
Signals that an error has occurred within the function block
ErrorID
SMC_ERROR
Error identification
Position
Target position of the group
KinematicConfig
TRAFO.CONFIGDATA
Kinematic configuration of the target position. Only set if the coordinate system is cartesian (i.e. not set for ACS)