FC_EtBeltTypeToString - General Information
Type: |
Function |
Available as of: |
V1.0.0.0 |
Versions: |
Current version |
Converting an enumeration element of type ET_BeltType of the PD_SmartInfeed library to a string.
Every enumeration element has a name or value. The return value of the function is the name of the enumeration element.
Input |
Data type |
Description |
---|---|---|
i_etType |
The ET_BeltType value to be converted |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General, library-independent statement on the diagnostic A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.ET_Diag.Ok -> diagnostic message |
Data type |
Description |
---|---|
STRING[80] |
Name of the enumeration element that has been transferred at the i_etType input |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
77 |
BeltType is invalid. |
Enumeration name: |
BeltTypeInvalid |
Enumeration value: |
77 |
Description: |
BeltType is invalid. |
Issue |
Cause |
Solution |
---|---|---|
- |
At the i_etType input, a number has been transferred the value of which is not allocated to any element of ET_BeltType. |
An element of the ET_BeltType enumeration must be transferred at the i_etType input. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The enumeration has been successfully converted into text.