IF_ProductManager - GetLastProductInterface (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Versions:

Current version

Task

Returns the interface to the last product of the infeed distance

Description

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

Interface

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 infeed distance

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

ExecutionAborted

NoProductExisting

71

No product could be found.

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 infeed distance.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The interface to the last product of the infeed distance is returned.