FB_ApplicationLoggerHandler - GetLogEntry (Method)
Type: |
Method |
Available as of: |
V1.0.4.0 |
Read out a logger message from the application logger.
This method searches in the ring buffer for logger messages inside the application logger for a message with the given ID. If this message is found, a copy of the logger entry including the message and the source information is returned.
Input |
Data type |
Description |
---|---|---|
i_udiId |
UDINT |
The identification number of the logger message that has to be read. |
Output |
Data type |
Description |
---|---|---|
q_stLogEntry |
The logger entry with message and source information. |
|
q_etDiag |
General, library-independent statement on the diagnostic. A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.ET_Diag.Ok -> diagnostic message |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
11 |
The Id is invalid. |
|
UnexpectedProgramBehavior |
14 |
The application logger interface is not supported. |
|
UnexpectedProgramBehavior |
13 |
The application logger has not been set. |
|
UnexpectedProgramBehavior |
3 |
A feedback value was invalid. |
ApplicationLoggerItfNotSupported
Enumeration name: |
ApplicationLoggerItfNotSupported |
Enumeration value: |
14 |
Description: |
The application logger interface is not supported. |
Cause |
Solution |
---|---|
An error has been detected in the internal execution. |
Contact your Schneider Electric service representative. |
Enumeration name: |
ApplicationLoggerNotSet |
Enumeration value: |
13 |
Description: |
The application logger has not been set. |
Cause |
Solution |
---|---|
The global variable G_ifApplicationLogger has been changed. |
Make sure not to write the variable G_ifApplicationLogger. |
Output q_etDiag shows GD.ET_Diag.UnexpectedProgramBehavior An error has been detected in the internal execution. |
Contact your Schneider Electric service representative. |
Enumeration name: |
IdInvalid |
Enumeration value: |
11 |
Description: |
The Id is invalid. |
Cause |
Solution |
---|---|
At the input i_udiId, an invalid value has been transferred. |
At the input i_udiId, a value between udiFirstLogEntryId and udiLastLogEntryId has to be transferred. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The LogEntry data is returned.
Enumeration name: |
UnexpectedFeedback |
Enumeration value: |
3 |
Description: |
A feedback value was invalid. |
Cause |
Solution |
---|---|
An error has been detected in the internal execution. |
Contact your Schneider Electric service representative. |