SMC_GroupReadSetPosition (FB)ΒΆ
FUNCTION_BLOCK SMC_GroupReadSetPosition
This function block returns the current set-position of an axis group in the selected coordinate system. Typically, this will be the set-position from the end of the previous cycle. In order to obtain the set-position from the end of the current cycle, SMC_GroupUpdate has to be called before this function block. 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 position in the selected coordinate system of the axis group continuously while enabled
CoordSystemApplicable coordinate system
Output
ValidBOOLTRUEif valid outputs are availableBusyBOOLThe FB is not finished
ErrorBOOLSignals that an error has occurred within the function block
ErrorIDSMC_ERRORError identification
PositionCurrent position of the group
KinematicConfigTRAFO.CONFIGDATAKinematic configuration of current position. Only set if the coordinate system is cartesian (i.e. not set for ACS) Automatic periods are activated for any rotary axis with multiple periods. See SMC_KinConfigActivateAutomaticPeriods for more information. A kinematic configuration without automatic periods can be obtained by reading an ACS position and converting it to the MCS using SMC_GroupConvertPosition.