FC_EtDiagExtToString - General Information
|
Type: |
Function |
|
Available as of: |
V1.0.0.0 |
|
Versions: |
Current version |
Converting an enumeration element of type ET_DiagExt 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_etDiagExt |
The ET_DiagExt value to be converted |
|
Output |
Data type |
Description |
|---|---|---|
|
q_etDiag |
General, library-independent statement on the diagnosis. A value unequal GD.ET_Diag.Ok equates an error message. |
|
|
q_etDiagExt |
POU-specific output on the diagnosis. q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.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 |
0 |
Ok |
|
|
InputParameterInvalid |
10 |
DiagExt is unknown. |
|
|
UnexpectedProgramBehavior |
9 |
DiagExt is unexpected. |
|
Enumeration name: |
Ok |
|
Enumeration value: |
0 |
|
Description: |
Ok |
The enumeration has been successfully converted into text.
|
Enumeration name: |
UnexpectedDiagExt |
|
Enumeration value: |
9 |
|
Description: |
DiagExt is unexpected. |
|
Issue |
Cause |
Solution |
|---|---|---|
|
- |
An error occurred in the internal execution. The value applied at the i_etDiagExt input could not be correctly processed internally. |
Please inform the support team about this error. |
|
Enumeration name: |
UnknownDiagExt |
|
Enumeration value: |
10 |
|
Description: |
DiagExt is unknown. |
|
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. |