IF_ProductManager - GetProductInterfaceById (Method)
Type: |
Method |
Available as of: |
V1.0.0.0 |
Versions: |
Current version |
Returns the interface of the product with the specified identification number
The list of all products is searched and the product with the specified identification number is determined. The interface with this product is returned.
Input |
Data type |
Description |
---|---|---|
i_udiProductId |
UDINT |
The identification number of the searched product |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General, library-independent statement on the diagnosis. A value unequal GD.ET_Diag.Ok equates an error message. |
|
q_etDiagExt |
POU-specific output on the diagnosis. q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.ET_Diag.Ok -> error message |
|
q_ifProduct |
The interface with the product with the identification number |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
ExecutionAborted |
71 |
No product could be found. |
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. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The interface to the product with the required identification number is returned.