FC_EtDiagExtToString - General Information
Type: |
Function |
Available as of: |
V1.0.4.0 |
Versions: |
Current version |
Converting an enumeration element of type ET_DiagExt of the PD_MultiBeltModule 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_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 was transferred at the input i_etDiagExt. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
4 |
EtDiagExt is allocated with an invalid value. |
Enumeration name: |
EtDiagExtInvalid |
Enumeration value: |
4 |
Description: |
EtDiagExt is allocated with an invalid value. |
Issue |
Cause |
Solution |
---|---|---|
- |
An invalid value was transferred at the i_etDiagExt input. |
Ensure that only elements of ET_DiagExt are transferred to the i_etDiagExt input. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The EtDiagExt has successfully been converted to a string.