IF_ProductManager - GetProductInterfaceById (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Versions:

Current version

Task

Returns the interface of the product with the specified identification number

Description

The list of all products is searched and the product with the specified identification number is determined. The interface with this product is returned.

Interface

Input

Data type

Description

i_udiProductId

UDINT

The identification number of the searched product

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 with the identification number

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 with the identification number applied at the i_udiProductId input is located on the infeed distance.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The interface to the product with the required identification number is returned.