IF_ProductManager - AddProductToBelt (Method)
Type: |
Method |
Available as of: |
V1.0.0.0 |
Versions: |
Current version |
Adds a new product to a belt
The product is entered into the list of all detected products and moved with the belts.
Input |
Data type |
Description |
---|---|---|
i_udiBeltId |
UDINT |
The number of the belt on which the product is located |
i_lrLeadEdge |
LREAL |
The distance of the front edge of the product to the end of the belt on which the product is located |
i_lrTrailEdge |
LREAL |
The distance of the rear edge of the product to the end of the belt on which the product is located |
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 |
Interface of the added product |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
ExecutionAborted |
68 |
The maximum number of manageable products has been reached. |
|
InputParameterInvalid |
11 |
BeltId is outside the valid range. |
|
UnexpectedProgramBehavior |
13 |
The belt is invalid. |
|
UnexpectedProgramBehavior |
38 |
No valid logger POU has been transferred. |
|
UnexpectedProgramBehavior |
48 |
The POU is in an undefined state. |
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 input i_udiBeltId, the number of the belt has to be specified to which the product is to be added. The number must be between one and the number of parameterized belts. |
Enumeration name: |
BeltInvalid |
Enumeration value: |
13 |
Description: |
The belt is invalid. |
Issue |
Cause |
Solution |
---|---|---|
- |
An error occurred in the internal execution. |
Please inform the support team about this error. |
Enumeration name: |
LoggerInvalid |
Enumeration value: |
38 |
Description: |
No valid logger POU has been transferred. |
Issue |
Cause |
Solution |
---|---|---|
- |
An error occurred in the internal execution. |
Please inform the support team about this error. |
Enumeration name: |
MaxNrOfProductsReached |
Enumeration value: |
68 |
Description: |
The maximum number of manageable products has been reached. |
Issue |
Cause |
Solution |
---|---|---|
- |
There was an attempt to add more than the maximum number of products to the infeed distance. |
At no time more than Gc_udiMaxNumberOfProducts products may be located on the infeed distance. The global parameter Gc_udiMaxNumberOfProducts must be set to a value that is greater than the maximum number of products on the infeed distance. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The product has been added to the belt.
Enumeration name: |
UnknownCase |
Enumeration value: |
48 |
Description: |
The POU is in an undefined state. |
Issue |
Cause |
Solution |
---|---|---|
- |
An error occurred in the internal execution. |
Please inform the support team about this error. |