FC_EtStateToString - General Information
Type: |
Function |
Available as of: |
V1.0.2.0 |
Inherits from: |
- |
Implements: |
- |
Versions: |
Current version |
Convert the status messages of the FB_AxisModule to a string.
The i_etState status message of the axis module from the ET_State enum list is converted to a string.
Input |
Data type |
Description |
---|---|---|
i_etState |
The state to be translated |
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] |
The state converted to a string. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
61 |
Unknown State. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The state has successfully been converted to a string.
Enumeration name: |
StateRange |
Enumeration value: |
61 |
Description: |
Unknown State. |
Issue |
Cause |
Solution |
---|---|---|
- |
An unknown state was transferred at the i_etState input. |
Ensure that only elements from the ET_State list are transferred at the i_etState input. |