Type: |
Function |
Available as of: |
V1.0.0.0 |
Versions: |
Current version |
This chapter provides information on:
Converting an enumeration element of the type ET_DiagExt from the library Robotic 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 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 -> diagnositc 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 |
Ok |
0 |
Ok |
InputParameterInvalid |
UnknownDiagExt |
5 |
The DiagExt is indeterminable. |
UnexpectedProgramBehavior |
UnexpectedDiagExt |
11 |
The DiagExt is invalid. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
Reading the ET_DiagExt value as text was successful.
Enumeration name: |
UnexpectedDiagExt |
Enumeration value: |
11 |
Description: |
The DiagExt is invalid. |
Reading the ET_DiagExt value as text was not successful.
Enumeration name: |
UnknownDiagExt |
Enumeration value: |
5 |
Description: |
The DiagExt is indeterminable. |
Issue |
Cause |
Solution |
---|---|---|
Reading the ET_DiagExt value as text was not successful. |
The value transferred at the input i_etDiagExt is indeterminable. |
At the input i_etDiagExt, a value of ET_DiagExt must be transferred. |