IF_Configuration - AddLinearTrackingSystem3 (Method)

Overview

Type:

Method

Available as of:

V2.4.0.0

This chapter provides information on:

Task

Adding a linear tracking system to the robot.

Description

With the method AddLinearTrackingSystem3(...), a linear tracking system can be added to the robot.

In comparison to the method AddLinearTrackingSystem(…), an additional input (i_etTrackingDirection) defines the tracking direction.

The tracking direction is along one of the positive Cartesian axes, X, Y, or Z, of the coordinate system defined within the method. The velocity source is mapped to this axis.

The configuration of the logical encoder is verified during the configuration of the linear tracking system.

  • The parameter Enable has to be TRUE.

  • The logical encoder must not be linked to any other velocity source.

  • The parameters PhaseEnable, GearEnable, and EngageEnable have to be FALSE.

If the velocity source implements the interface SystemConfigurationItf.IF_MechanicMandatory, the following parameters Direction, GearIn, GearOut, and FeedConstant are verified. The parameterization of these parameters has to be equal to the parameterization of the velocity source.

In case the robot is moving in the linear tracking system, the logical encoder is also monitored if any manipulation of the position occurred. If a manipulation is detected, the robot stops immediately. The monitoring of the position is also active if only a change to the linear tracking system is requested by calling the method ROB.IF_RobotMotion.ChangeCoordinateSystem.

Interface

Input

Data type

Description

i_ifVelocitySource

SystemConfigurationItf.IF_IdentificationMandatory

Velocity source of the linear tracking system.

i_lencEncoder

SystemConfiguration.L_ENC

Logical encoder which is linked to the velocity source.

i_stOffset

PDL.ST_Vector3D

Describes the shifting of the origin of the linear tracking system in relation to the robot coordinate system ROB.ET_CoordinateSystem.CSR.

Unit: [mm]

i_etOrientationConvention

ROB.ET_OrientationConvention

Convention for the rotation angles of the orientation i_stOrientation.

i_stOrientation

PDL.ST_Vector3D

Describes the rotation of the linear tracking system in relation to the robot coordinate system ROB.ET_CoordinateSystem.CSR.

Unit: [°]

i_xInvertDirectionX

BOOL

Invert the positive X direction of the linear tracking system.

i_xInvertDirectionY

BOOL

Invert the positive Y direction of the linear tracking system.

i_xInvertDirectionZ

BOOL

Invert the positive Z direction of the linear tracking system.

i_etTrackingDirection

ROB.ET_RobotComponent

Positive Cartesian axis of the tracking coordinate system which is used for tracking.

Valid values are:

  • ET_RobotComponent.CartesianX

  • ET_RobotComponent.CartesianY

  • ET_RobotComponent.CartesianZ

i_etSystemId

ROB.ET_RobotComponent

ID of the linear tracking system.

The ID of a linear tracking system added to the robot must be unique.Valid values are:

ET_CoordinateSystem.Tracking1…ET_CoordinateSystem.Tracking30

NOTE: The maximum number of linear tracking systems which can be added to the robot remains by 10.

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 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_stDirectionEx

PDL.ST_Vector3D

Direction vector of the positive cartesian X axis of the linear tracking system in robot coordinate system ROB.ET_CoordinateSystem.CSR.

q_stDirectionEy

PDL.ST_Vector3D

Direction vector of the positive cartesian Y axis of the linear tracking system in robot coordinate system ROB.ET_CoordinateSystem.CSR.

q_stDirectionEz

PDL.ST_Vector3D

Direction vector of the positive cartesian Z axis of the linear tracking system in robot coordinate system ROB.ET_CoordinateSystem.CSR.

Return Value

Data type

Description

ROB.ET_CoordinateSystem

Number of the added linear tracking system.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

ExecutionAborted

TransformationMissing

172

The transformation is unavailable.

ExecutionAborted

ConfigurationAlreadyCompleted

154

The configuration is already completed.

ExecutionAborted

NoMoreTrackingSystemsAvailable

264

There are no more tracking systems available.

ExecutionAborted

ExternalPositionSourceConfigured

357

The external position source is configured.

ExecutionAborted

TrackingSourceAndTrackingSystemNotPossible

394

The combination of tracking source and tracking systems is not possible.

InputParameterInvalid

VelocitySourceInvalid

265

The velocity source is invalid.

InputParameterInvalid

OrientationConventionInvalid

266

The orientation convention is invalid.

InputParameterInvalid

OffsetInvalid

253

The Offset is invalid.

InputParameterInvalid

InvertDirectionXInvalid

255

InvertDirectionX is invalid.

InputParameterInvalid

InvertDirectionYInvalid

256

InvertDirectionY is invalid.

InputParameterInvalid

InvertDirectionZInvalid

257

InvertDirectionZ is invalid.

InputParameterInvalid

OrientationInvalid

254

The orientation is invalid.

InputParameterInvalid

DriveEncoderInvalid

51

The drive encoder is invalid.

InputParameterInvalid

TrackingDirectionInvalid

325

The tracking direction is invalid.

InputParameterInvalid

SystemIdInvalid

329

The system ID is invalid.

ExecutionAborted

SystemIdAlreadyConfigured

330

The system ID is already configured.

UnexpectedProgramBehavior

UnexpectedFeedback

28

A feedback value was invalid.

ConfigurationAlreadyCompleted

Enumeration name:

ConfigurationAlreadyCompleted

Enumeration value:

154

Description:

The configuration is already completed.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

The configuration of the robot is already completed. The method ConfigDone(...) is already called up successfully.

Ensure that the configuration method AddLinearTrackingSystem3(...) is not called after the configuration is completed.

DriveEncoderInvalid

Enumeration name:

DriveEncoderInvalid

Enumeration value:

51

Description:

The encoder is invalid.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

The type of the object transferred at the input i_lencEncoder is invalid.

At the input i_lencEncoder, an object of type SystemConfiguration.L_ENC_TYPE must be transferred.

-

The logical encoder transferred at the input i_lencEncoder is not enabled.

The value of the parameter Enable of the logical encoder, transferred at the input i_lencEncoder, must be TRUE.

-

The logical encoder transferred at the input i_lencEncoder is already coupled to an object.

Do not call the function SystemInterface.FC_SetMasterEncoder(...) to couple the logical encoder to another object.

-

The phase generator of the logical encoder transferred at the input i_lencEncoder is enabled.

The value of the parameter PhaseEnable of the logical encoder, transferred at the input i_lencEncoder, must be FALSE.

-

The gear of the logical encoder transferred at the input i_lencEncoder is enabled.

The value of the parameter GearEnable of the logical encoder, transferred at the input i_lencEncoder, must be FALSE.

-

The coupling of the logical encoder transferred at the input i_lencEncoder is enabled.

The value of the parameter EngageEnable of the logical encoder, transferred at the input i_lencEncoder, must be FALSE.

-

The velocity source transferred at the input i_ifVelocitySource implements the interface SystemConfigurationItf.IF_MechanicMandatory.

The value of the parameter Direction of the logical encoder, transferred at the input i_lencEncoder, does not match to the value of the parameter Direction of the velocity source transferred at the input i_ifVelocitySource.

Ensure that both values are equal.

-

The velocity source transferred at the input i_ifVelocitySource implements the interface SystemConfigurationItf.IF_MechanicMandatory.

The value of the parameter GearIn of the logical encoder, transferred at the input i_lencEncoder, does not match to the value of the parameter GearIn of the velocity source transferred at the input i_ifVelocitySource.

Ensure that both values are equal.

-

The velocity source transferred at the input i_ifVelocitySource implements the interface SystemConfigurationItf.IF_MechanicMandatory.

The value of the parameter GearOut of the logical encoder, transferred at the input i_lencEncoder, does not match to the value of the parameter GearOut of the velocity source transferred at the input i_ifVelocitySource.

Ensure that both values are equal.

-

The velocity source transferred at the input i_ifVelocitySource implements the interface SystemConfigurationItf.IF_MechanicMandatory.

The value of the parameter FeedConstant of the logical encoder, transferred at the input i_lencEncoder, does not match to the value of the parameter FeedConstant of the velocity source transferred at the input i_ifVelocitySource.

Ensure that both values are equal.

ExternalPositionSourceConfigured

Enumeration name:

ExternalPositionSourceConfigured

Enumeration value:

357

Description:

The external position source is configured.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

An external position source for the robot components cartesian, orientation and auxiliary axes is configured.

Configuring a linear tracking system is not possible when an external position source for the robot components is configured.

Do not configure a linear tracking system.

InvertDirectionXInvalid

Enumeration name:

InvertDirectionXInvalid

Enumeration value:

255

Description:

InvertDirectionX is invalid.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

A two-dimensional transformation, in the YZ plane, is configured.

Ensure that the input i_xInvertDirectionX is set to FALSE.

InvertDirectionYInvalid

Enumeration name:

InvertDirectionYInvalid

Enumeration value:

256

Description:

InvertDirectionY is invalid.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

A two-dimensional transformation, in the XZ plane, is configured.

Ensure that the input i_xInvertDirectionY is set to FALSE.

InvertDirectionZInvalid

Enumeration name:

InvertDirectionZInvalid

Enumeration value:

257

Description:

InvertDirectionZ is invalid.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

A two-dimensional transformation, in the XY plane, is configured.

Ensure that the input i_xInvertDirectionZ is set to FALSE.

NoMoreTrackingSystemsAvailable

Enumeration name:

NoMoreTrackingSystemsAvailable

Enumeration value:

264

Description:

There are no more tracking systems available.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

No more tracking systems of the robot can be configured.

The maximum number of configurable tracking systems is Gc_udiMaxNumberOfTrackingSystems.

OffsetInvalid

Enumeration name:

OffsetInvalid

Enumeration value:

253

Description:

The Offset is invalid.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

A two-dimensional transformation, in the XY plane, is configured.

Ensure that the input i_stOffset.lrZ is set to 0.

A two-dimensional transformation, in the XZ plane, is configured.

Ensure that the input i_stOffset.lrY is set to 0.

A two-dimensional transformation, in the YZ plane, is configured.

Ensure that the input i_stOffset.lrX is set to 0.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The configuration of the linear tracking system was successful.

OrientationConventionInvalid

Enumeration name:

OrientationConventionInvalid

Enumeration value:

266

Description:

The orientation convention is invalid.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

The value transferred at the input i_etOrientationConvention is invalid.

At the input i_etOrientationConvention, a value of ROB.ET_OrientationConvention must be transferred.

OrientationInvalid

Enumeration name:

OrientationInvalid

Enumeration value:

254

Description:

The orientation is invalid.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

A two-dimensional transformation, in the XY plane, is configured.

Ensure that the inputs i_stOrientation.lrX and i_stOrientation.lrY are set to 0.

A two-dimensional transformation, in the XZ plane, is configured.

Ensure that the inputs i_stOrientation.lrX and i_stOrientation.lrZ are set to 0.

A two-dimensional transformation, in the YZ plane, is configured.

Ensure that the inputs i_stOrientation.lrY and i_stOrientation.lrZ are set to 0.

SystemIdAlreadyConfigured

Enumeration name:

SystemIdAlreadyConfigured

Enumeration value:

330

Description:

The system ID is already configured.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

The system ID transferred at the input i_etSystemId is invalid.

Ensure that a system ID is used only once to configure a linear tracking system.

SystemIdInvalid

Enumeration name:

SystemIdInvalid

Enumeration value:

329

Description:

The system ID is invalid.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

The system ID transferred at the input i_etSystemId is invalid.

Ensure that the value of i_etSystemId is one of the following:

ET_CoordinateSystem.Tracking1 … ET_CoordinateSystem.Tracking30

TrackingDirectionInvalid

Enumeration name:

TrackingDirectionInvalid

Enumeration value:

325

Description:

The tracking direction is invalid.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

The value transferred at the input i_ifTrackingDirection is invalid.

Ensure that one of the following values is assigned to i_ifTrackingDirection:

  • ET_RobotComponent.CartesianX

  • ET_RobotComponent.CartesianY

  • ET_RobotComponent.CartesianZ

TrackingSourceAndTrackingSystemNotPossible

Enumeration name:

TrackingSourceAndTrackingSystemNotPossible

Enumeration value:

394

Description:

The combination of tracking source and tracking systems is not possible.

Issue

Cause

Solution

The configuration of the tracking system was not successful.

The combination of tracking source and tracking systems is not possible.

Ensure that no tracking system is configured for the robot when a tracking source is to be used.

For linear or rotary tracking, use tracking sources.

Always use tracking sources instead of tracking systems for new projects.

TransformationMissing

Enumeration name:

TransformationMissing

Enumeration value:

172

Description:

The transformation is unavailable.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

There is no transformation of the robot configured.

Ensure that the transformation of the robot is configured before adding a linear tracking system.

UnexpectedFeedback

Enumeration name:

UnexpectedFeedback

Enumeration value:

28

Description:

A feedback value was invalid.

The configuration of the linear tracking system was unsuccessful.

Adding the linear tracking system was aborted because of an invalid feedback value.

VelocitySourceInvalid

Enumeration name:

VelocitySourceInvalid

Enumeration value:

265

Description:

The velocity source is invalid.

Issue

Cause

Solution

The configuration of the linear tracking system was unsuccessful.

The velocity source transferred at the input i_ifVelocitySource is invalid.

A valid interface (SystemConfigurationItf.IF_IdentificationMandatory) of a velocity source must be transferred at the input i_ifVelocitySource.

Valid objects are for example drives, virtual encoders, Incremental encoders, and so on.

The transferred object at the input i_ifVelocitySource is of type SystemConfiguration.L_ENC_TYPE.

Objects of type SystemConfiguration.L_ENC_TYPE are not valid as a velocity source.