FC_EtStateToString - General Information
Type: |
Function |
Available as of: |
V1.0.0.0 |
Versions: |
Current version |
Convert the status messages of the FB_SmartInfeedModule to a string.
The status message i_etState of the SmartInfeed module from the enumeration list ET_State is converted to a string.
Input |
Data type |
Description |
---|---|---|
i_etState |
The status to be converted |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General, library-independent statement on the diagnostic A value unequal GD.ET_Diag.Ok equates an error message. |
|
q_etDiagExt |
POU-specific output on the diagnostic q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.ET_Diag.Ok -> error message |
Data type |
Description |
---|---|
STRING[80] |
The status converted to a string |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
31 |
The status is indeterminable. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The state has successfully been converted to a string.
Enumeration name: |
StateUnknown |
Enumeration value: |
31 |
Description: |
The status is indeterminable. |
Issue |
Cause |
Solution |
---|---|---|
- |
An indeterminable state was transferred at the i_etState input. |
Ensure that only elements from the ET_State list are transferred at the i_etState input. |