IF_AdditionalComponentsTransformation - Direct (Method)

Overview

Type:

Method

Available as of:

V3.6.6.0

This chapter provides information on:

Task

Calculating the direct transformation of the additional components.

Description

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_etDiagq_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.

Sequence of Direct Transformation Calls

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:

  1. The additional transformation for the axes is called, followed by the main transformation.

  2. The additional component transformation is called, and the additional transformation TCP is the last.

Interface

Input

Data type

Description

i_stPositionTCP

PDL.ST_Vector3D

Position of the TCP from the configured main transformation

i_stOrientationTCP

PDL.ST_Vector3D

Orientation of the TCP from the configured main transformation

i_etOrientationConvention

ET_OrientationConvention

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

GD.ET_Diag

General library-independent statement on the diagnostic.

A value not equal to ET_Diag.Ok corresponds to a diagnostic message.

q_etDiagExt

ET_DiagExt

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

PDL.ST_Vector3D

Position of the TCP including the additional components

q_stOrientationTCP

PDL.ST_Vector3D

Orientation of the TCP including the additional components