SMC_ReadKinTransformForAxis (FB)ΒΆ
FUNCTION_BLOCK SMC_ReadKinTransformForAxis
This function block returns the kinematic transformation for a given axis.
If a coupled kinematics is used for the axis group, each axis either belongs to the position kinematics, the orientation kinematics, or to no transformation (additional axis).
If no coupled kinematics is used, then each axis that is part of the kinematics (i.e. that is not an additional axis) belongs the the main kinematics.
For example, to test whether a given axis with index i is an orientation or position axis, call the FB with IdentInGroup = i and then test the returned KinTransform:
itfOri : TRAFO.ISMOrientationKinematics;
itfPos : TRAFO.ISMPositionKinematics;
isOriAxis := __QUERYINTERFACE(KinTransform, itfOri);
isPosAxis := __QUERYINTERFACE(KinTransform, itfPos);
- InOut:
Scope
Name
Type
Comment
Inout
AxisGroupReference to a group of axis
Input
EnableBOOLGets the kinematic transformation information of the axis continuously while enabled
IdentInGroupThe index of the axis inside the axis group
Output
ValidBOOLTRUEif valid outputs are availableBusyBOOLThe FB is not finished
ErrorBOOLSignals that an error has occurred within the function block
ErrorIDSMC_ERRORError identification
KinTransformTRAFO.MC_KIN_REF_SM3The kinematic transformation for the axis
identInKinematicsUDINTThe index of the axis inside KinTransform