IF_ProductManager - DeleteFirstProductFromBelt (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Versions:

Current version

Task

Deletes the first product from a belt

Description

The product that has been on the belt the longest is deleted from the list of all products.

Interface

Input

Data type

Description

i_udiBeltId

UDINT

The number of the belt from which the first product is to be deleted

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

NoProductExisting

71

No product could be found.

InputParameterInvalid

BeltIdRange

11

BeltId is outside the valid range.

UnexpectedProgramBehavior

LoggerInvalid

38

No valid logger POU has been transferred.

BeltIdRange

Enumeration name:

BeltIdRange

Enumeration value:

11

Description:

BeltId is outside the valid range.

Issue

Cause

Solution

-

An invalid value has been transferred at the input i_udiBeltId.

The number of the belt, from which the product is to be removed, must be specified at the i_udiBeltId input. The number must be between one and the number of parameterized belts.

LoggerInvalid

Enumeration name:

LoggerInvalid

Enumeration value:

38

Description:

No valid logger POU has been transferred.

Issue

Cause

Solution

-

An error occurred in the internal execution.

Please inform the support team about this error.

NoProductExisting

Enumeration name:

NoProductExisting

Enumeration value:

71

Description:

No product could be found.

Issue

Cause

Solution

-

The product to be deleted does not exist.

It must be made sure that a product is allocated to the belt selected at the i_udiBeltId input.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The product has been deleted.