IF_BalancingStrategy - AssignTargetsOwners (Method)

Overview

Type:

Method

Available as of:

V1.4.1.0

This chapter provides information on:

Task

Implements the algorithm that is then applied to assign the owners of the targets in the list.

Description

With the method AssignTargetsOwners(...), the algorithm that is then applied to assign the owners of the targets in the list is implemented.

The call of this method is unsuccessful, if the property xValidData has a FALSE value.

Interface

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.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

Ok

Ok

0

Ok

Ok

MaxNumberOfAssignmentsPerCallReached

169

The value of the max number of assignments per call is out of range

ExecutionAborted

BalancingStrategyDataInvalid

164

A balancing strategy function block is not configured with valid data.

BalancingStrategyDataInvalid

Enumeration name:

BalancingStrategyDataInvalid

Enumeration value:

164

Description:

A balancing strategy function block is not configured with valid data.

Issue

Cause

Solution

The method was not successfully called.

i_etRobotId contains an invalid robot ID.

Ensure that the value of i_etRobotId is within the range [ET_SystemEntity.Robot1...ET_SystemEntity.Robot10].

MaxNumberOfAssignmentsPerCallReached

Enumeration name:

MaxNumberOfAssignmentsPerCallRange

Enumeration value:

169

Description:

The value of the max number of assignments per call is out of range.

Issue

Cause

Solution

The method was not successfully called.

The method was called but no valid data was configured.

Ensure that xValidData = TRUE before calling this method.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Success

Status Message: The method was successfully called.