With the method TransformCoordinate(...) a position, described by the Cartesian X, Y and Z coordinates in a predefined coordinate system, can be transformed into the corresponding position, described in another coordinate system.
A successful call generates an application logger entry with LogLevel.UserAction. It includes the inputs as well as the result of the transformation.
In case the transformation was not successful, an application logger entry with LogLevel.Exception and a corresponding error string is created.
Input |
Data type |
Description |
---|---|---|
i_stPosition |
Cartesian position described in the source coordinate system passed at input i_etCoordinateSystem. |
|
i_etSourceCoordinateSystem |
Source coordinate system |
|
i_etTargetCoordinateSystem |
Target coordinate system |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General, library-independent statement on the diagnostic. A value not equal to GD.ET_Diag.Ok corresponds to a diagnostic message. |
|
q_etDiagExt |
POU-specific output for 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_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
Ok |
0 |
Ok |
OK |
IdenticalCoordinateSystem |
183 |
The coordinate system is identical. |
ExecutionAborted |
ExternalPositionSourceConfigured |
205 |
The external position source is configured. |
InputParameterInvalid |
CoordinateSystemInvalid |
117 |
The coordinate system is invalid. |
InputParameterInvalid |
CoordinateSystemNotConfigured |
172 |
The coordinate system is not configured. |
UnexpectedProgramBehavior |
UnexpectedFeedback |
13 |
A feedback value was invalid. |
Enumeration name: |
CoordinateSystemInvalid |
Enumeration value: |
117 |
Description: |
The coordinate system is invalid. |
Issue |
Cause |
Solution |
---|---|---|
Transforming the coordinates was not successful. |
The value transferred at the input i_etSourceCoordinateSystem or i_etTargetCoordinateSystem is invalid. |
At the inputs i_etSourceCoordinateSystem, and i_etTargetCoordinateSystem, a value of ET_CoordinateSystem must be transferred. Refer to q_sMsg for detailed information. |
Enumeration name: |
CoordinateSystemNotConfigured |
Enumeration value: |
172 |
Description: |
The coordinate system is not configured. |
Issue |
Cause |
Solution |
---|---|---|
Transforming the coordinates was not successful. |
The requested coordinate system at the input i_etSourceCoordinateSystem or i_etTargetCoordinateSystem is not configured. |
If required, configure a coordinate system of type ET_CoordinateSystem using the corresponding method. Refer to q_sMsg for detailed information. |
Enumeration name: |
ExternalPositionSourceConfigured |
Enumeration value: |
205 |
Description: |
The external position source is configured. |
Issue |
Cause |
Solution |
---|---|---|
Transforming the coordinates was not successful. |
An external position source for the robot components cartesian, orientation and auxiliary axes is configured. |
Transforming the coordinates from or into tracking coordinate systems is not possible when an external position source for the robot components is configured. |