Skip to main content

Tab: Log

You can view the PLC log on this tab of the generic device editor. It lists the events that were recorded on the target system. This concerns the following:

  • Events during the startup and shutdown of the system (components loaded, with version)

  • Application download and loading of the boot application

  • Custom entries

  • Log entries from I/O drivers

  • Log entries from data sources

Tip

The Log tab also opens when you click the Open Log Page command. You can configure this as a menu command in the Customize dialog.

Tab: Log

Table 46. Menu bar
_cds_icon_update.png

Refreshes the list of log events for all runtime system component

Components

Filters the display of log events by the runtime system components selected in the list box

Example:

CmpApp displays all events which occur in these components, for example "Application [ <name> ] loaded via [OnlineChange]".

<all components>: Displays the reported events of all components

_cds_icon_move_up.png

Loads the next page with newer log messages

_cds_icon_move_down.png

Loads the previous page with older log messages

_cds_icon_move_top.png

Loads the page with the newest log entries and enables automatic scrolling

_cds_icon_move_top_refresh.png

_cds_icon_move_top_refresh.png: Indicates that there are new log messages which have not been displayed yet

Tip

This is also displayed on the status bar as Auto-Scroll: ON.

_cds_icon_move_bottom.png

Loads the page with oldest log messages

_cds_icon_warning.png

Filters events with the severity Warning and notifies about how many

Blue-outlined button: Warnings are displayed.

_cds_icon_error.png

Filters events with the severity Error and notifies about how many

Blue-outlined button: Errors are displayed.

_cds_icon_exception.png

Filters events with the severity Exception and notifies about how many

Blue-outlined button: Exceptions are displayed.

_cds_icon_info.png

Filters events with the severity Information and notifies about how many

Blue-outlined button: Information is displayed.

_cds_icon_debug.png

Filters events with the severity Debug and notifies about how many

Blue-outlined button: Debug messages are displayed.

Search in messages

Input field for search text

When you enter one or more characters in the search field, the logger messages will highlight the hits in yellow.

_cds_icon_goto_next.png

Jumps to the next hit

_cds_icon_goto_previous.png

Jumps to the previous hit

Logger

Enables a logger for displaying its recorded events

By default, the <default logger> defined by the system is set. For example, that is the logger PlcLog for a CODESYS Control Win runtime system.

AuditLog: This logger shows all user interactions with the PLC. The user name is also logged. These are actions such as download, start, stop or set breakpoints. Failed attempts are also logged if a user is not allowed to perform certain actions.

UTC time

_cds_icon_option_deactivated.png: Converts the times displayed below Timestamp to the local time of the development system

The conversion is based on the time zone of the operating system where the CODESYS is running. (default setting)

standard icon: Displays the original timestamp of the runtime system

If you change the option, then the displayed timestamp is converted automatically.

_cds_icon_save_in_xml_file.png

Exports the list contents to an xml file

You can select the file name and location.

_cds_icon_load_from_xml_file.png

Imports an XML file with log messages stored in the file system

A separate window opens to display the log messages.



Table 47. Configuration of the time interval for displayed log messages

This window is available for controllers with Version 3.5 SP22 and higher.

Clicking the refresh button _cds_icon_refresh.png will load the log messages of the standard logger PLCLog as long as the logger provides timestamps.

_cds_ico_log_clock_blue.png

The application is connected to the controller and the time interval for displaying the logger messages can be configured.

Start

Start of the time interval when log messages are displayed

The specified time can be changed manually or in the expandable calendar.

End

End of the time interval when log messages are displayed

The specified time can be changed manually or in the expandable calendar.

Selection _cds_img_green_bold_arrow_right.png

The log messages for the selected time interval are displayed. If the end time is before the start time, then this is indicated by the UUID-8c7688a7-e0f5-818f-d358-8dd0c03dbbfa.png symbol and a corresponding tooltip is displayed.

Last hour _cds_img_green_bold_arrow_right.png

The log messages from the past hour are displayed. The displayed time interval will update accordingly.

Today _cds_img_green_bold_arrow_right.png

The log messages for today (24 hours) are displayed. The displayed time interval will update accordingly.

_cds_img_green_douple_arrow_left.png 24 h

The two times Start and End will be postponed by 24 hours. The displayed time interval will update accordingly.

_cds_img_green_arrow_left.png1 h

The two times Start and End will be postponed by one hour. The displayed time interval will update accordingly.

Next

Can be activated when more than 10,000 logger messages are available. Clicking this button will display the remaining, previously unseen logger messages (max. 10,000).

_cds_img_green_douple_arrow_right.png 24 h

The two times Start and End will be advanced by 24 hours. The displayed time interval will update accordingly.

_cds_img_green_arrow_rights.png 1 h

The two times Start and End will be advanced by one hour. The displayed time interval will update accordingly.



Display window with log file

Tabular display of the log messages

Ten thousand log messages are displayed per page.

Severity

  • _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 message

Time Stamp

Date and time of the development system or of the runtime system)

Example: 1/12/2007 9:48

Description

Description of the event

Example: PLC started

Component

Runtime component where the reported event occurred

Table 48. Status bar

Auto-Scrolling

Displays whether auto-scrolling is enabled (ON) or disabled (OFF)

  • ON: The log list is refreshed automatically when changes occur.

  • OFF: When a new log event occurs, it is displayed next to Off. Moreover, the _cds_icon_move_top.png button is decorated with _cds_icon_move_top_refresh.png on the menu bar.

Tip

Hint: Click the _cds_icon_move_top.png button to enable Auto-Scroll.



Note

Error checking

For exceptions with the *SOURCEPOSITION* description, the affected function opens in the editor by double-clicking it or by means of the Display Source Code in Editor command in the context menu. The cursor jumps to the line that is causing the error. You can also perform this diagnosis when you have the CODESYS project archive, including the download information files and the exported log file.

When the affected function is protected, then the following message appears: "The source code is not available for <function name>."

Tip

If a VendorException is reported, then a manufacturer-specific exception error has occurred in the CODESYS runtime. Contact the PLC manufacturer for more information.