Skip to main content

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.

  1. In the device tree, select the controller.

  2. Click Project → Edit Object.

    The device editor opens.

  3. Click the Log tab.

  4. Click the _cds_icon_update_log.png 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:

    _cds_icon_warning.png: Warning

    _cds_icon_error.png: Error

    _cds_icon_exception.png: Exception

    _cds_icon_info.png: Information

    _cds_icon_debug.png: Debug

  5. 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 _cds_icon_error.png icon in the menu bar if you do not want log events with the "Error" severity to be displayed.

  6. In the Search in messages input field, specify a search term to find a specific event in the list. Then you can use the _cds_icon_goto_next.png and _cds_icon_goto_previous.png buttons to jump to the color-coded search results.

  7. To filter the events by Severity, Timestamp, Description, or Component, click the respective column title.

  8. Click the _cds_icon_save_log.png button to save the displayed log events to a file.