IF_ProductManager - GetNumberOfProductsOnBelt (Method)
Type: |
Method |
Available as of: |
V1.0.0.0 |
Versions: |
Current version |
Returns the number of products on a belt
The number of products allocated to a belt is determined and returned.
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 |
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_udiNrOfProducts |
UDINT |
The number of products that are allocated to the belt |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
11 |
BeltId is outside the valid range. |
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 the belt has to be specified of which the number of allocated products is to be determined. The number must be between one and the number of parameterized belts. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The number of products is returned.