IF_ProductManager - SetFirstProductToBelt (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Versions:

Current version

Task

Transfers the first product of a belt to another belt

Description

The product that is closest to the end of the belt is allocated to the specified belt.

If a product changes the belt, it is automatically transferred to the next belt according to the set InTakeMode. If a product is to be allocated manually to another belt, this can be performed using this method.

Interface

Input

Data type

Description

i_udiRemoveBeltId

UDINT

The number of the belt from which the first product is to change the belt

i_udiAddBeltId

UDINT

The number of the belt to which the product is to be allocated

i_lrLeadEdge

LREAL

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

i_lrTrailEdge

LREAL

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

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

The interface with the product that has changed the belt

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

ExecutionAborted

NoProductExisting

71

No product could be found.

InputParameterInvalid

AddBeltIdRange

70

AddBeltId is outside the valid range.

InputParameterInvalid

RemoveBeltIdRange

69

RemoveBeltId is outside the valid range.

UnexpectedProgramBehavior

LoggerInvalid

38

No valid logger POU has been transferred.

AddBeltIdRange

Enumeration name:

AddBeltIdRange

Enumeration value:

70

Description:

AddBeltId is outside the valid range.

Issue

Cause

Solution

-

An invalid value has been transferred at the input i_udiAddBeltId.

At the i_udiAddBeltId input, the number of the belt has to be specified to which the product is to change. 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 does not exist.

It must be made sure that a product is located on the belt specified at the i_udiRemoveBeltId input.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The product has successfully been allocated to another belt.

RemoveBeltIdRange

Enumeration name:

RemoveBeltIdRange

Enumeration value:

69

Description:

RemoveBeltId is outside the valid range.

Issue

Cause

Solution

-

An invalid value has been transferred at the input i_udiRemoveBeltId.

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