Converting an enumeration element of the ET_DiagExt type of the PD_Template 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 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 error message. |
|
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Error 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 |
148 |
The DiagExt is indeterminable. |
|
UnexpectedProgramBehavior |
UnexpectedDiagExt |
147 |
An unexpected detected error occurred during the execution. |
|
Enumeration name: |
Ok |
|
Enumeration value: |
0 |
|
Description: |
Ok |
The enumeration has been successfully converted into text.
|
Enumeration name: |
UnexpectedDiagExt |
|
Enumeration value: |
147 |
|
Description: |
An unexpected detected error occurred during the execution. |
|
Issue |
Cause |
Solution |
|---|---|---|
|
- |
An internal execution error has been detected. The value applied at the i_etDiagExt input could not be correctly processed internally. |
Please inform your Schneider Electric representative about this detected error. |
|
Enumeration name: |
UnknownDiagExt |
|
Enumeration value: |
148 |
|
Description: |
The DiagExt is indeterminable. |
|
Issue |
Cause |
Solution |
|---|---|---|
|
- |
At the input i_etDiagExt a number was 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. |