Converting an enumeration element of the type ET_DiagExt of the PD_MultiBelt library into 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_etDiagExt |
The ET_DiagExt value that has to be converted |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Diagnostic message |
Data type |
Description |
---|---|
STRING[80] |
Name of the enumeration element that is transferred at the input i_etDiagExt. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
Ok |
20 |
Ok |
InputParameterInvalid |
EtDiagExtInvalid |
40 |
The EtDiagExt is invalid. |
Enumeration name: |
EtDiagExtInvalid |
Enumeration value: |
40 |
Description: |
The EtDiagExt is invalid. |
Issue |
Cause |
Solution |
---|---|---|
The EtDiagExt is invalid. |
At the input i_etDiagExt a number is transferred whose value cannot be related to any element of ET_DiagExt. |
At the input i_etDiagExt, an element of the enumeration ET_DiagExt must be transferred. |