Command Generate core dump
Function: The command causes TwinCAT to first check whether a core dump file is already available on the target system.
- If a core dump file is available on the target system, TwinCAT offers you to load this file into the project directory. There are three different ways to respond to the query as to whether the core dump file is to be loaded from the target system.
- Yes: If the core dump file of the target system matches the currently logged-in PLC project, TwinCAT loads the core dump file from the target system to the project directory. You can open this file by subsequently logging out the PLC project and using the Command Load core dump.
- No: A new core dump file will be generated in the project directory. The prerequisite for this is that the PLC project is currently at a breakpoint or that an exception error has occurred.
- Cancel: The generation of a core dump file is aborted.
- If no core dump file is available on the target system, TwinCAT initiates the generation of a new file with the current PLC project data in the project directory. The prerequisite for this is that the PLC project is currently at a breakpoint or that an exception error has occurred.
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.
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. |
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:
- PLC documentation: PLC project at runtime > Error analysis with core dump
- Command Load core dump