Transform an orientation from a combination of a source coordinate system and a tool into an orientation for another combination of target coordinate system and tool.
The method can be used to transform an orientation from a certain combination of coordinate system and tool to the corresponding orientation described by another combination of coordinate system and tool.
If the input i_udiSourceTool or i_udiTargetTool is zero, the robot flange is used instead of a tool.
All tools and coordinate systems used for the conversion must be configured.
The orientation input is interpreted according to the convention reported by IF_RobotFeedback.etOrientationConvention and the orientation output is also provided according to this convention. The default orientation convention used by the robot is ZYX. The orientation convention can be changed with the method IF_RobotConfigurationAdvanced - SetOrientationConvention(...).
Input |
Data type |
Description |
---|---|---|
i_stOrientation |
Orientation to be transformed. |
|
i_etSourceCoordinateSystem |
Source coordinate system. |
|
i_udiSourceToolId |
UDINT |
ID of the source tool i_udiSourceToolId = 0 uses the robot flange as source. Further valid values are the IDs of the configured tools, refer to the property raudiConfiguredToolIds. |
i_etTargetCoordinateSystem |
Target coordinate system |
|
i_udiTargetToolId |
UDINT |
ID of the target tool i_udiTargetToolId = 0 uses the robot flange as target. Further valid values are the IDs of the configured tools, refer to the property raudiConfiguredToolIds. |
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. |
Data type |
Description |
---|---|
Transformed orientation described in the target coordinate system with the target tool. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
Ok |
0 |
Ok |
OK |
IdenticalCoordinateSystemAndTool |
261 |
Coordinate system and tool are 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. |
InputParameterInvalid |
ToolNotConfigured |
260 |
The selected tool is not configured. |
Enumeration name: |
CoordinateSystemInvalid |
Enumeration value: |
117 |
Description: |
The coordinate system is invalid. |
Issue |
Cause |
Solution |
---|---|---|
The conversion could not be calculated. |
The value transferred at the input i_etSourceCoordinateSystem is invalid. |
Ensure that a valid value is transferred at the input i_etSourceCoordinateSystem. Valid values are:
For further information, refer to ET_CoordinateSystem. |
The value transferred at the input i_etTargetCoordinateSystem is invalid. |
Ensure that a valid value is transferred at the input i_etTargetCoordinateSystem. Valid values are:
For further information, refer to ET_CoordinateSystem. |
Enumeration name: |
CoordinateSystemNotConfigured |
Enumeration value: |
172 |
Description: |
The coordinate system is not configured. |
Issue |
Cause |
Solution |
---|---|---|
The conversion could not be calculated. |
The coordinate system selected on the input i_etSourceCoordinateSystem is not configured. |
Ensure that the selected coordinate system was configured successfully. |
The coordinate system selected on the input i_etTargetCoordinateSystem is not configured. |
Ensure that the selected coordinate system was configured successfully. |
Enumeration name: |
ExternalPositionSourceConfigured |
Enumeration value: |
205 |
Description: |
Coordinate system and tool are identical. |
Issue |
Cause |
Solution |
---|---|---|
The conversion could not be calculated. |
An external position source is configured for the robot. |
Transforming the coordinates from or into tracking coordinate systems is not possible when an external position source is configured for the robot. |
Enumeration name: |
IdenticalCoordinateSystemAndTool |
Enumeration value: |
261 |
Description: |
Coordinate system and tool are identical. |
The transformation was successful. The result of the transformation is equal to its input.
Enumeration name: |
ToolNotConfigured |
Enumeration value: |
260 |
Description: |
The selected tool is not configured. |
Issue |
Cause |
Solution |
---|---|---|
The conversion could not be calculated. |
The tool selected with the input i_udiSourceToolId is not configured. |
Ensure that the tool with the tool Id was configured successfully. |
The tool selected with the input i_udiTargetToolId is not configured. |
Ensure that the tool with the tool Id was configured successfully. |