Diagnostic buffer

Updated: from version 1.11

PlantBeat reads the diagnostic buffer of the S7 at regular intervals and stores it permanently. You see stop causes, module faults and time errors without opening TIA Portal. If the CPU goes to STOP, PlantBeat reports this as an alarm, and by e-mail if you want.

Open it

  • On the "Connections" page, click Diagnostics in the row of the connection, or
  • click the CPU status LEDs in the connection list.

The page is called "Connection diagnostics", the area "Diagnostic buffer". Only an administrator has the way in via the "Connections" page. An operator can view the diagnostics page and trigger Read now. Only an administrator can change the settings.

A LOGO! has no diagnostic buffer. In that case, PlantBeat says so on the page.

Status LEDs in the connection list

For S7 connections, PlantBeat shows the LEDs in the connection list as on the front of the CPU:

LED Meaning
RUN/STOP green = RUN, yellow = STOP, flashing green/yellow = startup
ERROR red = error
MAINT yellow = maintenance required

If the CPU does not allow reading the LEDs, RUN/STOP comes from the last state change in the buffer. ERROR and MAINT then appear hatched as "unknown".

Search and export entries

The list shows the newest entries with CPU time, event and description. Click an entry to see the details.

  • Search: text or event ID.
  • From and To: narrow down the time range.
  • Category: for example, stop causes only.
  • Download as CSV: all entries as a file, including those the list no longer shows.
  • Help on event: explanation of the entry.
  • Read now: reads the buffer immediately instead of waiting for the next cycle.

If an entry carries an implausible time, PlantBeat points this out. Check the clock of the PLC in that case.

Diagnostic buffer settings

Setting Meaning
Read the diagnostic buffer continuously on by default
Read interval in seconds (30 to 900) default 60 seconds
Update RUN/STOP display (status LEDs) Keeps a connection to the CPU open for this. When the CPU changes between RUN and STOP, PlantBeat reads the diagnostic buffer immediately.

Report as alarm

Under Report as alarm you choose what triggers an alarm:

Category Default
CPU stop (ends with the next startup to RUN) on
Module and I/O faults (incoming only) off
Cycle time exceeded and other time errors off

An alarm appears under "Alarms" and stays there until someone confirms it. For a CPU stop, an all-clear follows as soon as the CPU is running again. Entries that are already in the buffer at the first read do not trigger an alarm.

Under Recipients you enter e-mail addresses separated by semicolons. Empty means: the global recipients from the settings. For e-mails, a mail server must be set up, see Alarms and maintenance.

Texts as in TIA Portal (optional)

Without further settings, PlantBeat shows its own texts for the entries. If you want, PlantBeat fetches the short text, description and help exactly as in TIA Portal from the web server of the CPU (S7-1200 and S7-1500).

Prerequisite in TIA Portal: the web server of the CPU is enabled, and the user (for example "Anonymous") has a role with the "Read diagnostics" right.

  1. Under Texts as in TIA Portal (optional), check Fetch short text, description and help from the CPU web server. It is off by default.
  2. Enter the Web server user and, if needed, the password, and save.
  3. On the first request, PlantBeat shows the certificate of the web server. Compare the fingerprint with TIA Portal and click Confirm web server certificate. Only then are the user name and password sent to the web server.

PlantBeat queries the web server only for new entries. If it cannot be reached, the PlantBeat texts remain. For a secured S7-1500, the texts only arrive after the PLC certificate has been confirmed.

Limits

PlantBeat reads the diagnostic buffer via classic S7 communication. This is not possible on an S7-1500 with "Only allow secure PG/PC and HMI communication" or with the protection level "No access".

How long entries are kept

By default, PlantBeat never deletes entries of the diagnostic buffer. You set an upper limit per connection under "Settings", area "Data", card "Data retention", field "Diagnostic buffer: upper limit of entries per connection (0 = none)". See Retention and storage.

Practice without a PLC

The practice machine (address demo) has a simulated diagnostic buffer. Every two hours, a new entry is added, such as a cycle time overrun or a module fault. Use it to practice search, filters and CSV export. The practice machine does not simulate a CPU stop.

Next steps