IF_ProductManager - AddProductToBelt (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Versions:

Current version

Task

Adds a new product to a belt

Description

The product is entered into the list of all detected products and moved with the belts.

Interface

Input

Data type

Description

i_udiBeltId

UDINT

The number of the belt on which the product is located

i_lrLeadEdge

LREAL

The distance of the front edge of the product to the end of the belt on which the product is located

i_lrTrailEdge

LREAL

The distance of the rear edge of the product to the end of the belt on which the product is located

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

q_ifProduct

IF_Product

Interface of the added product

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

ExecutionAborted

MaxNrOfProductsReached

68

The maximum number of manageable products has been reached.

InputParameterInvalid

BeltIdRange

11

BeltId is outside the valid range.

UnexpectedProgramBehavior

BeltInvalid

13

The belt is invalid.

UnexpectedProgramBehavior

LoggerInvalid

38

No valid logger POU has been transferred.

UnexpectedProgramBehavior

UnknownCase

48

The POU is in an undefined state.

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.

At the input i_udiBeltId, the number of the belt has to be specified to which the product is to be added. The number must be between one and the number of parameterized belts.

BeltInvalid

Enumeration name:

BeltInvalid

Enumeration value:

13

Description:

The belt is invalid.

Issue

Cause

Solution

-

An error occurred in the internal execution.

Please inform the support team about this error.

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.

MaxNrOfProductsReached

Enumeration name:

MaxNrOfProductsReached

Enumeration value:

68

Description:

The maximum number of manageable products has been reached.

Issue

Cause

Solution

-

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

At no time more than Gc_udiMaxNumberOfProducts products may be located on the infeed distance.

The global parameter Gc_udiMaxNumberOfProducts must be set to a value that is greater than the maximum number of products on the infeed distance.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The product has been added to the belt.

UnknownCase

Enumeration name:

UnknownCase

Enumeration value:

48

Description:

The POU is in an undefined state.

Issue

Cause

Solution

-

An error occurred in the internal execution.

Please inform the support team about this error.