Manual creation of a core dump

Manual creation of a core dump 1:

Available from TC3.1 Build 4024.11

Manual creation of a core dump 2:

Core dump can only be used with the associated compile info file

If you archive or save a core dump file, please note that the associated project and associated compile info file (*.compileinfo file, which is stored, for example when creating the project, in the "_CompileInfo" folder) must be present in order to load a core dump. If this is not the case, TwinCAT cannot use the dump later.

Please also note here the setting options on the Settings tab. With the help of the Core Dump setting, you can configure whether the core dump file, which may be located in the project directory, is to be saved together with the available compile info files in a TwinCAT file archive.

Manual creation of a core dump of the logged-in PLC project

A PLC project is in online mode in the development environment. The PLC project is currently at a breakpoint or an exception error has occurred.
1. Select the Command Generate core dump.
TwinCAT generates a new core dump and creates the file with the name <PLC_project_name>.<PLC_project_GUID>.core in the local PLC project directory.

Loading a manually created core dump into the project

You can load a core dump from the project directory into the project in offline mode. You will then get an online view of the PLC project with the call stack and the variable values at the time the core dump file was created.

Prerequisites:

In the development environment, you have opened the project for which you want to load a core dump. The PLC project is in offline mode in the development environment.
The "_CompileInfo" folder of the project contains a compile info file matching the core dump.
1. Use the Command Load core dump to load the desired core dump into the project.
TwinCAT displays an online view of the PLC project. You can see the call stack and the variable values at the time the core dump was created.
2. After completing the core dump analysis, select the Command Close core dump.
TwinCAT closes the core dump view of the PLC project. The development environment reappears with the views of normal offline operation.
Manual creation of a core dump 3:

Core dump online view: not all commands available

In the online view that TwinCAT generates when loading the core dump into the project, menu commands appear as available that are not effective in this state. If you select such a command, you will receive a corresponding message.

In addition, you can only close the core dump view using the command Close core dump. The Logout command is not effective in this view.