Command Generate core dump

Function: The command causes TwinCAT to first check whether a core dump file is already available on the target system.

The core dump file generated is saved directly in the PLC project directory: <PLC_project_name>.<PLC_project_GUID>.core

Call: menu PLC > Core Dump

Requirement: The PLC project is in online mode.

Command Generate core dump 1:

Automatic generation of a core dump on the target system

If the PLC project running on a target system is not currently logged into a development environment, the runtime system automatically generates a core dump on the target system in the event of an exception error. This file is located by default in the boot folder of the target system (by default under < TC3.1.4026.0: C:\TwinCAT\3.1\Boot\Plc; >=TC3.1.4026.0: C:\ProgramData\Beckhoff\TwinCAT\3.1\Boot\Plc). If desired, the storage path of the automatic core dump creation can also be modified, see Error analysis with core dump for more information.

The automatic loading of this core dump file from the target system to the local project directory is possible with the help of the command Generate core dump. It is also possible to copy the core dump file from the target system to the development computer.

Displaying the dump using the command Load core dump can thus be used for (subsequent) error analysis.

Command Generate 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.

See also: