FC_EtOpModeToString - General Information
Type: |
Function |
Available as of: |
V1.0.2.0 |
Inherits from: |
- |
Implements: |
- |
Versions: |
Current version |
Convert the operating modes of the FB_AxisModule to a string
The operating mode of the axis module at the i_etOpMode input from the ET_OpMode enum list is returned as a string.
Input |
Data type |
Description |
---|---|---|
i_etOpMode |
The operating mode to be converted to a string. |
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[20] |
The operating mode converted to a string. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
146 |
Unknown operating mode. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The operating mode has successfully been converted to a string.
Enumeration name: |
OpModeUnknown |
Enumeration value: |
146 |
Description: |
Unknown operating mode. |
Issue |
Cause |
Solution |
---|---|---|
- |
An unknown operating mode was applied at the i_etOpMode input. |
Ensure that only elements from the ET_OpMode list are transferred at the i_etOpMode input. |