FB_EntitiesHandler - CalcEntitiesRelativePose (Method)

Overview

Type:

Method

Available as of:

V1.4.1.0

This chapter provides information on:

oTask

oDescription

oInterface

oReturn Value

oDiagnostic Messages

Task

Calculate the relative Cartesian pose between the base frame of a source entity and the base frame of a target entity.

Description

The method CalcEntitiesRelativePose is used to calculate the relative Cartesian pose between the base frame of a source entity and the base frame of a target entity.

G-SE-0078376.1.gif-high.gif

 

 

Interface

Input

Data type

Description

i_etSourceSystemId

ET_SystemEntity

An ID used to unequivocally identify an entity in the system.

Admissible values are in the range:

oET_SystemEntity.Conveyor1...ET_SystemEntity.Conveyor30 and

oET_SystemEntity.Robot1...ET_SystemEntity.Robot10.

i_etTargetSystemId

ET_SystemEntity

An ID used to unequivocally identify an entity in the system.

Admissible values are in the range:

oET_SystemEntity.Conveyor1...ET_SystemEntity.Conveyor30 and

oET_SystemEntity.Robot1...ET_SystemEntity.Robot10.

i_etOrientationConvention

ROB.ET_OrientationConvention

Orientation convention used to represent the orientation of the resulting pose.

Admissible values are in the range:

oROB.ET_OrientationConvention.XYZ

oROB.ET_OrientationConvention.ZYX

Refer to Robotic Library - ET_OrientationConvention.

Output

Data type

Description

q_etDiag

GD.ET_Diag

General library-independent statement on the diagnostic. A value unequal to GD.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 more detailed information on the diagnostic state.

Return Value

Data type

Description

ST_CartesianPose

A Cartesian pose describing the relative Cartesian pose transformation from the source system base pose to the target system base pose.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value of q_etDiagExt

Description

Ok

Ok

0

Ok

InputParameterInvalid

ConveyorIdUnknown

133

A provided conveyor ID is unknown.

InputParameterInvalid

EntityIdInvalid

132

A provided entity ID is invalid.

InputParameterInvalid

OrientationConventionInvalid

38

Invalid orientation convention.

InputParameterInvalid

RobotIdUnknown

130

A provided robot ID is unknown.

UnexpectedProgramBehavior

UnexpectedFeedback

4

Internal error detected.

ConveyorIdUnknown

Enumeration name:

ConveyorIdUnknown

Enumeration value:

133

Description:

A provided conveyor ID is unknown.

Issue

Cause

Solution

The relative pose has not been successfully evaluated.

i_etSourceSystemId contains an unknown conveyor system ID.

Ensure that the value of i_etSourceSystemId refers to a previously configured conveyor.

i_etTargetSystemId contains an unknown conveyor system ID.

Ensure that the value of i_etTargetSystemId refers to a previously configured conveyor.

EntityIdInvalid

Enumeration name:

EntityIdInvalid

Enumeration value:

132

Description:

A provided entity ID is invalid

Issue

Cause

Solution

The relative pose has not been successfully evaluated.

i_etSourceSystemId contains an invalid entity ID.

Ensure that the value of i_etSourceSystemId refers to an entity ID in the range:

oET_SystemEntity.Conveyor1...ET_SystemEntity.Conveyor30 or

oET_SystemEntity.Robot1...ET_SystemEntity.Robot10

i_etTargetSystemId contains an invalid entity ID.

Ensure that the value of i_etTargetSystemId refers to an entity ID in the range:

oET_SystemEntity.Conveyor1...ET_SystemEntity.Conveyor30

oET_SystemEntity.Robot1...ET_SystemEntity.Robot10.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

Status message: The relative pose has been evaluated successfully.

OrientationConventionInvalid

Enumeration name:

OrientationConventionInvalid

Enumeration value:

38

Description:

Invalid orientation convention.

Issue

Cause

Solution

The relative pose has not been successfully evaluated.

i_etOrientationConvention contains an invalid orientation convention.

Provide a valid value for the orientation convention.

Admissible values are:

oROB.ET_OrientationConvention.XYZ

oROB.ET_OrientationConvention.ZYX

Refer to Robotic Library - ET_OrientationConvention.

RobotIdUnknown

Enumeration name:

RobotIdUnknown

Enumeration value:

130

Description:

A provided robot ID is unknown.

Issue

Cause

Solution

The relative pose has not been successfully evaluated.

i_etSourceSystemId contains an unknown robot system ID.

Ensure that the value of i_etSourceSystemId refers to a previously configured robot.

i_etTargetSystemId contains an unknown robot system ID.

Ensure that the value of i_etTargetSystemId refers to a previously configured robot.

UnexpectedFeedback

Enumeration name:

UnexpectedFeedback

Enumeration value:

4

Description:

Internal error detected.

Issue

Cause

Solution

The relative pose has not been successfully evaluated.

An unexpected exception occurred.

-