Skip to main content

Performing an Error Analysis with Core Dump

Loading the core dump and the device log into the project for analysis

Requirement: You have a project open with an application that has produced an exception on the PLC. The runtime system is able to create core dumps. The application in the project is in offline mode.

  1. Click Debug → Load Core Dump to load the required core dump from the controller.

    CODESYS displays an online view of the application. You see the variable values and call stack from the time of error (see below). This includes also the values of the I/O variables in the mapping dialog of the device configurator and the task configuration. "Core dump loaded" is displayed in the status line. CODESYS copies the core dump file as <project name>.<device name>.<application name>.<application GUID>.core to the local project directory.

  2. Click Debug → Load Device Log from Core Dump to load the device log from the time of error into the project.

    The log view opens (as in online mode of the device editor) with the events at the time of the core dump.

  3. After completing the core dump analysis, click Debug → Close Core Dump.

    CODESYS closes the core dump view of the application. The project returns to the normal offline mode with its views.

Creating core dump of the running application manually

Requirement: An application is in online mode in CODESYS. The runtime system supports core dump functionality.

  • Click Debug → Create Core Dump.

    CODESYS starts generating a new core dump. A progress bar appears in the status line with a button to cancel the process.

    CODESYS saves a core dump file to the local project directory as <project name>.<device name>.<application name>.<application GUID>.core.