Function
The operating system of the CPU enters the errors detected by the CPU and the diagnostics-capable modules into the diagnostics buffer in the order in which they occurred. This includes the following events:
-
Every mode change of the CPU (POWER UP, change to STOP mode, change to RUN mode)
-
Every hardware and diagnostic error interrupt
The top entry contains the most recent event. The entries in the diagnostics buffer are stored permanently. They are retained even if the power supply fails and can only be deleted by resetting the CPU to factory settings.
A diagnostics buffer entry contains the following elements:
-
Time stamp
-
Error ID
-
Additional information specific to the error ID
Advantages of the diagnostics buffer
The diagnostics buffer offers the following advantages:
-
After the CPU has changed to STOP mode, you can evaluate the last events prior to the STOP so that you can locate and identify the cause of the STOP.
-
You can detect and eliminate the causes of errors more quickly and thus increase the availability of the system.
-
You can evaluate and optimize the dynamic system response.
Organization of the diagnostics buffer
The diagnostics buffer is a ring buffer. With the S7-1200 CPUs, the maximum number of entries is 50. When the diagnostics buffer is full and a further entry needs to be made, all existing entries are shifted one position (which means that the oldest entry is deleted) and the new entry is made at the first position that is now free (FIFO principle: first in, first out).
Evaluation of the diagnostics buffer
The contents of the diagnostics buffer can be accessed as follows:
-
Using the Online and Diagnostics view
The evaluation of events occurring prior to the error event (e.g., transition to STOP mode) allows you to obtain a picture of the possible causes or to zero in more closely or specify in more detail the possible causes (depending on the error type).
Read the detailed information about the events carefully and use the "Help on event" text box to obtain additional information and possible causes of individual entries.
|
Note To make the best use of the time stamp information on the diagnostics buffer entries in time-critical systems, it is advisable to check and correct the date and time of day on the CPU occasionally. Alternatively, it is possible to perform a time-of-day synchronization using an NTP time server. |