Reading the PLC Log
CODESYS provides the capability of displaying the events and error messages which are logged in the controller.
Reading the log
Requirement: The PLC is running.
In the device tree, select the controller.
Click
.The device editor opens.
Click the Log tab.
Click the
button to refresh the view.
A connection to the controller is established. The controller is highlighted in green in the device tree.
All log events of the controller is displayed. The prepended icon indicates the severity of the log event:
: Warning
: Error
: Exception
: Information
: Debug
If you do not want to see the events of a specific severity, then click the corresponding icon in the menu bar. When you click this icon again, these log events will be displayed again. For example, click the
icon in the menu bar if you do not want log events with the "Error" severity to be displayed.
In the Search in messages input field, specify a search term to find a specific event in the list. Then you can use the
and
buttons to jump to the color-coded search results.
To filter the events by Severity, Timestamp, Description, or Component, click the respective column title.
Click the
button to save the displayed log events to a file.