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
Validmay 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 = ACSand 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
AxisGroupReference to a group of axes
Input
EnableBOOLGet the commanded target position in the selected coordinate system of the axis group continuously while enabled
CoordSystemApplicable coordinate system
Output
ValidBOOLTRUEif valid outputs are availableStableBOOLTRUEif the outputs won’t change until commanding a new movementBusyBOOLThe FB is not finished
ErrorBOOLSignals that an error has occurred within the function block
ErrorIDSMC_ERRORError identification
PositionTarget position of the group
KinematicConfigTRAFO.CONFIGDATAKinematic configuration of the target position. Only set if the coordinate system is cartesian (i.e. not set for ACS)