IF_TrackingSource - UpdateTrackingDataCartesian (Method)

Overview

Type:

Method

Available as of:

V3.6.5.0

This chapter provides information on:

Task

The method is called once, by the FB_Robot, per Sercos cycle while the robot is enabled. During each cycle, an update of the position and the velocity for the configured tracking components is necessary.

Description

The method must be implemented by the user according to the needs of the tracking. The method is called once every Sercos cycle by the FB_Robot functionality.

When the method is called, the values of the outputs q_stCartesianPosition and q_stCartesianVelocity must be updated according to the cartesian movement of the tracking target.

The outputs for components which are not configured must be zero.

For further information, refer to Implement a User Specific Tracking Source.

The outputs q_etDiag, q_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.

Interface

Output

Data type

Description

q_etDiag

GD.ET_Diag

General library-independent statement on the diagnostic.

A value not equal 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 additional information on the diagnostic state.

q_stCartesianPosition

SE_Math.ST_Vector3D

Cartesian tracking position.

q_stCartesianVelocity

SE_Math.ST_Vector3D

Cartesian tracking velocity.