IF_TargetManager - AddTargetPos (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Versions:

Current version

Task

Create a target at a position on the target belt.

Description

Adds a new target to the list of targets that is located at the i_lrPosition position of the target belt.

Interface

Input

Data type

Description

i_lrPosition

LREAL

Position of the target belt at which the target is to be entered

Output

Data type

Description

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnosis.

A value unequal GD.ET_Diag.Ok equates an error message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnosis.

q_etDiag = GD.ET_Diag.Ok -> status message

q_etDiag <> GD.ET_Diag.Ok -> error message

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

ExecutionAborted

MaxNrOfTargetsReached

74

The maximum number of manageable targets has been reached.

InputParameterInvalid

PositionInvalid

75

The position is invalid.

MaxNrOfTargetsReached

Enumeration name:

MaxNrOfTargetsReached

Enumeration value:

74

Description:

The maximum number of manageable targets has been reached.

Issue

Cause

Solution

-

There was an attempt to add more than the maximum number of targets to the infeed distance.

At no time more than Gc_udiMaxNumberOfTargets targets may be defined for the infeed distance.

The global parameter Gc_udiMaxNumberOfTargets must be set to a value that is greater than the maximum number of targets for the infeed distance.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The target has been added successfully.

PositionInvalid

Enumeration name:

PositionInvalid

Enumeration value:

75

Description:

The position is invalid.

Issue

Cause

Solution

-

An invalid value has been transferred at the input i_lrPosition.

It must be made sure that a position that is located further away from the target belt than the last target is transferred at the input i_lrPosition. This ensures a consistent target sequence.