Exception Errors in the PLC Application: Saving and Loading Using "Core Dump" (PLC Designer)

Question:
How can the cause of an exception error in the PLC be identified?

Answer:

An exception can be caused, for example, by division by zero, accessing an element outside an array, or an incorrect pointer assignment.

After an exception occurs, the state of the PLC application can be analyzed using PLC Designer. To do this, PLC Designer can be connected to the controller and logged in even after the exception has occurred.

Procedure:

1. An exception has occurred.

1.jpg
2. Log in to the controller using PLC Designer.

3. Generate and save a core dump using the PLC Designer’s online function.

2.jpg
A file with the .core extension is created.

4.jpg

The core dump can be used to analyze the state of the PLC application at the time the exception error occurred. This allows you to identify the location in the application where the exception error occurred.

Important: The controller must not be restarted or powered off and back on before generating the core dump.

The PLC project can then be archived and sent, for example, for analysis purposes. It is important that the compilation information and the core dump file match. Therefore, you must use the exact project that was running on the controller at the time of the exception error. If a core dump file has been generated, it will be displayed during the archiving process. However, this file must already be located in the same folder on the hard drive where the PLC application is stored.

7.jpg

Loading and viewing the core dump offline:

3.jpg

5.jpg





[Automatic Translation]
URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/202300332/1/
Kontakt