The method is used to calculate the direct transformation of the configured additional components. The inputs i_stPositionTCP and i_stOrientationTCP represent the TCP position and orientation calculated by the configured main transformation. i_alrPositionAxis contains the positions of the drives.
The new TCP position including the values from additonal components must be forwarded to the robot on the outputs q_stPositionTCP and q_stOrientationTCP.
In case a component is not affected by the additional transformation, the value for this component must be forwarded from the input to the respective output.
The outputs q_etDiag, q_etDiagExt and q_sMsg can be used to trigger an exception on the robot in case there is any exception detected by the user code implemented in this method. An exception can be triggered by setting the output q_etDiag to a value not equal to GD.ET_Diag.Ok.
When a value unequal to zero for a not configured TCP component is calculated and transferred to the robot via the outputs q_stPositionTCP.lrX / lrY / lrZ or q_stOrientation.lrX / lrY / lrZ, the robot returns the diagnostic message ET_Diag.ExecutionAborted / ET_DiagExt.ComponentNotConfigured.
When an additional component transformation is configured, it is called after the main transformation and receives the result of this main transformation as well as the drive positions of the drives A through F.
When all options for the transformation are configured, the direct sequence is as follows:
The additional transformation for the axes is called, followed by the main transformation.
The additional component transformation is called, and the additional transformation TCP is the last.
Input |
Data type |
Description |
---|---|---|
i_stPositionTCP |
Position of the TCP from the configured main transformation |
|
i_stOrientationTCP |
Orientation of the TCP from the configured main transformation |
|
i_etOrientationConvention |
Orientation convention |
|
i_alrPositionAxis |
ARRAY [ET_RobotComponent.AxisA .. ET_RobotComponent.AxisAll +Gc_udiMaxNumberOfAxes] OF LREAL |
Position of the robot axes |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to a diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
|
q_sMsg |
STRING[80] |
Event-triggered message that gives additional information on the diagnostic state. |
q_stPositionTCP |
Position of the TCP including the additional components |
|
q_stOrientationTCP |
Orientation of the TCP including the additional components |