Automatic creation of a core dump archive

Automatic creation of a core dump archive 1:

Available from TC3.1 Build 4026.9

In the event of an exception error, runtime systems automatically store a core dump archive on the target system. As the corresponding PLC project and the compile info file matching the core dump are required to load the core dump, these files are automatically archived on the target system together with the core dump file.

A folder with the following name is created for each core dump creation:

Port_<port of the PLC project>.<timestamp>

The timestamp in the name of the folder represents the system time in milliseconds.

The folder (core dump archive) contains:

The automatic generation of a core dump also occurs if the exception error occurs within the code of an FB_init/FB_reinit/FB_Exit method (from TC3.1 Build 4024.25).

Storage path

By default, the core dump is stored in the boot folder of the target system. Further information on the (adjustable) storage path can be found below: Storage path for automatic creation.

Load core dump archive from target system

You can load a core dump archive (*.tszip, *.tpzip, *.tizip, *.core) from the target system onto the engineering computer. You will then receive an online view of the PLC project with the call stack and the variable values at the time of the exception error or at the time the core dump file was created.

Requirement:

The network path to the target system must be configured.
1. Open the development environment.
2. Click on the File > Open > Open project from target system command.
An overview of all devices in the network opens.
3. Select the Display PLC dumps checkbox in the dialog.
For the connected target devices, one entry per available core dump is displayed below the target system.
4. Select the desired core dump entry and confirm the dialog with OK.
The Select Folder for new Solution dialog opens.
5. Create a new folder or select an existing folder in which the project to be loaded from the target system is to be saved.
The project, the compile info file and the core dump are saved in the selected folder. The project is also opened in the development environment.
6. Use the PLC > Core Dump > Load Core Dump command to load the core dump from the local project folder 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.
7. 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.
Automatic creation of a core dump archive 2:

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.