IF_ProductManager - GetLastProductInterfaceOnBelt (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Versions:

Current version

Task

Returns the interface to the last product of a belt

Description

The product that is closest to the beginning of the belt is determined and its interface returned.

Interface

Input

Data type

Description

i_udiBeltId

UDINT

The number of the belt the first product of which is to be determined

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_ifLastProduct

IF_Product

The interface with the product that is closest to the beginning of the belt.

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.

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 i_udiBeltId input, the number of the belt has to be specified the interface of the last product of which is to be returned. The number must be between one and the number of parameterized belts.

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 selected at the i_udiBeltId input.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The interface to the last product of the belt is returned.