Problem Description
A SIMATIC TP900 panel connected to a S7-1200 CPU 1214C via TIA Portal V15.1 displays real-time alarms correctly in the alarm view, but the alarm history screen remains empty. No archived or logged alarm records are shown when the operator navigates to the historical alarm view, even though the runtime is online and discrete alarm tags are actively triggering.
This is one of the most common configuration faults when commissioning SIMATIC Comfort Panels, because alarm logging involves four separate layers that must each be correctly configured: a storage location, a logging task, an alarm class assignment, and a view filter. If any one of them is missing or misconfigured, the history view returns an empty result set without raising an error in the engineering environment.
Affected Hardware and Software
| Component | Specification | Notes |
|---|---|---|
| HMI | SIMATIC TP900 Comfort (6AV2 124-1JC01-0AX0 family) | 9" widescreen, 16M colors, WinCC Comfort/Advanced |
| PLC | SIMATIC S7-1214C DC/DC/DC (6ES7 214-1AG40-0XB0) | Firmware V4.4 typical for TIA V15.1 projects |
| Engineering | TIA Portal V15.1 + WinCC Comfort V15.1 | Update 4 or later strongly recommended |
| HMI Runtime | Comfort Panel image V15.1.x.x | Must match engineering version for compilation |
| Storage medium | USB 2.0 stick, FAT32, ≤ 32 GB typical | See USB compatibility section |
| Project type | Single-station with HMI ↔ PLC connection | No PC RT involved |
The reference documentation for alarm logging on this generation of Comfort Panels is the SIMATIC STEP 7 Basic/Professional V15.1 and SIMATIC WinCC V15.1 system manual, available from Siemens Industry Online Support: SIMATIC STEP 7 / WinCC V15.1 system manual (109755202).
Root Cause Analysis
Five independent root causes can each produce this exact symptom. Identify which applies before changing settings.
| ID | Root Cause | Probability | Detection Signal |
|---|---|---|---|
| RC1 | "Persistence" flag on the alarm log is disabled, so the internal buffer is volatile and never writes to a file | High | No log file ever appears on the USB stick; runtime shows alarm buffer but no archive |
| RC2 | No storage location assigned, or path is invalid, or USB medium is not visible to the HMI | High | System message "Storage medium not found" or "Path not available" |
| RC3 | USB stick format / controller incompatibility (USB 3.0, exFAT, SD-card-in-adapter, large capacity) | High | Stick is empty after runtime start; no log file created |
| RC4 | Alarm viewer filter excludes archived alarms or filters on a non-matching date range | Medium | Live alarms show, history view is empty even after fresh log |
| RC5 | Log segment size / number of segments is 0, or segments are not stored on the runtime medium | Low | Log file size is 0 bytes; no entries are written |
Diagnostic Procedure
- Open the HMI project in TIA Portal V15.1 and expand HMI_1 → Alarm logs in the project tree.
- Right-click the configured log (default name
AlarmLog) and confirm a storage location is assigned. If the field is empty, this is RC2. - Open the log's Properties → General tab and verify the Runtime persistence checkbox is enabled. If unchecked, the buffer exists only in memory and is lost on power-off or panel restart. This is RC1.
- Compile the project, download to the TP900, and let it run for at least 60 seconds with at least one alarm active.
- Check the configured storage path (typically
/media/simatic/HMI/alarmson the USB stick) on a PC. If the.csvor.rdblog file is missing or 0 bytes, see RC2 or RC3. - On the panel, navigate to Control Panel → System Messages and look for messages 130001–130005. These identify the exact failure path.
- Open the runtime alarm history view on the panel. Right-click the view and select Filter. Confirm the Display archived alarms / Display logged alarms box is checked. If unchecked, this is RC4.
- Confirm the filter time range covers the current shift. By default, the history filter may be set to "Today" only and will hide logs from the previous day.
Solution 1: Enable Runtime Persistence for the Internal Buffer
The single most common root cause is a missing persistence flag. On SIMATIC Comfort Panels the alarm log is a segmented circular log; the segments are written to a file only if persistence is enabled, and the storage location points to a writeable runtime medium.
- In the project tree select HMI_1 → Alarm logs → <your_log>.
- In the work area switch to the Properties inspector.
- Open General → Storage location and select Storage medium (USB) or Network (mapped SMB share).
If the field is greyed out, the runtime license does not include archiving — required option: WinCC Comfort/Advanced with the "Archives" option set. - Set Runtime persistence = Enabled (the property labelled "Persistent storage" in some builds).
- Set Number of segments = 1 (minimum) and Segment size = 1000 records for a typical commissioning log.
- Compile → Download (full, not delta) → Restart runtime.
LogOff / LogOn system functions for the log to detect the new medium.Solution 2: Configure USB Storage for the Alarm Log
Comfort Panels recognise only a constrained set of USB media. The supported envelope is:
| Parameter | Supported | Not supported |
|---|---|---|
| USB standard | USB 2.0 (Hi-Speed / Full-Speed) | USB 3.0-only sticks, USB-C, powered hubs |
| File system | FAT16, FAT32 | exFAT, NTFS, ext4, APFS |
| Capacity | ≤ 32 GB (FAT32 practical limit) | > 32 GB unless reformatted to FAT32 with third-party tools |
| Physical form | Native USB-A stick | SD card in USB adapter, microSD via OTG cable |
| Partitioning | Single primary partition, MBR | GPT, multiple partitions, hidden partitions |
- Format the USB stick as FAT32 (Windows:
format X: /FS:FAT32 /Q). Do not use the exFAT default offered by Windows 10/11 on large media. - Insert the stick into the TP900 before powering the panel.
- Power on. The panel mounts the medium as
/media/simatic/<label>. The label is taken from the volume name. - In the project, under Runtime settings → Alarm logs, set the storage path to
/media/simatic/<label>/Logsor simply/media/simatic/to let the runtime create its own subdirectory. - Verify the runtime detects the medium: trigger a known alarm and check the USB stick contents from a PC. The expected file is
AlarmLog_<hmi_name>_<date>.csvor.rdbdepending on the export format configured.
Solution 3: Review the Alarm Viewer Filter Configuration
The alarm viewer has two tabs in its properties that govern what is shown in the history view: the Display tab and the Filter tab. Both must permit archived records.
- Open the screen that contains the alarm history control and double-click the control.
- In the Properties → General pane, ensure the control type is Alarm view and the View mode is set to History (not Active and not Statistics).
- Switch to the Properties → Filter pane. Check:
–Show logged alarms= true
–Show archived alarms= true
–Filter by time range= disabled, or set to cover the full shift
–Filter by alarm class= "All" or includeErrors,Warnings,Systemas needed - If a PLC-side filter is also configured via the
AlarmViewConfigtag, verify the tag value at runtime. The filter bitmask is bit 0 = Acknowledged, bit 1 = Unacknowledged, bit 2 = Logged, bit 3 = Archived.
System Messages and HMI Event Log Reference
When the log cannot be created, the TP900 runtime emits a system message. Use the table below to map the message to the root cause and the corrective action.
| System Message | Meaning | Corrective Action |
|---|---|---|
| 130001 | Log could not be started | Check storage medium presence and path; check persistence flag (RC1) |
| 130002 | Log is full; oldest segment overwritten | Increase segment size or number of segments; archive off-load |
| 130003 | Storage medium full | Replace USB stick or move path to network share |
| 130004 | Storage medium write-protected | Disable write-protect switch on USB stick |
| 130005 | Path not available | Recreate path or remount medium; restart runtime |
| 130006 | Log file could not be opened | Check file system; reformat USB to FAT32 (RC3) |
| 130007 | Log file write error | Replace USB stick; check for bad blocks |
Verification Procedure
- With the panel in runtime, force a known alarm: set a bit in the PLC that is mapped to a discrete alarm in the HMI tag table.
- Acknowledge the alarm, then clear the trigger condition.
- Open the alarm history view. The alarm must appear with timestamp, state, and acknowledgement status.
- Power-cycle the panel. After the restart, navigate back to the alarm history. The record must still be present (proves persistence is working).
- Remove the USB stick and connect it to a PC. Confirm the file
AlarmLog_*.csvexists and contains the same record. - If the history is empty but the CSV is populated, the filter on the alarm view is the cause (RC4).
- If the CSV is empty but the live alarm appeared, persistence is disabled (RC1) or the storage path is not being written to (RC2/RC3).
Best Practices for TP900 Alarm Logging
- Use the internal buffer for commissioning, USB for production. During commissioning keep persistence off and the storage location empty; the runtime keeps the last 1024 alarms in volatile RAM and the history view shows them. Switch to persistent USB logging only when the system is handed over to operations, so the volatile buffer is not consumed by commissioning noise.
- Match the engineering version to the runtime image. A V15.1 engineering project compiled against a V15.0 or V16 runtime can produce silent logging failures. Use Online → HMI operator panel & version to confirm.
- Configure segment size based on alarm rate. With 200 alarms/min and a 1000-record segment, you retain 5 minutes of history per segment. Size for the longest expected investigation window plus 50% margin.
-
Set the storage path relative to a label, not a serial number. The volume label of the USB stick is stable; the device node (
sda1,sdb1) is not. Always reference/media/simatic/<label>/.... - Test the fail-state before handover. Pull the USB stick during runtime. The panel must either buffer to RAM (persistence off) or emit a system message (persistence on). An undetected failure is worse than a logged one.
-
Tag the log file with the HMI station name. In the log's Properties → General → File name, use the placeholder
<hmi_name>so each panel writes to a uniquely named file when multiple TP900s share a network share. - Disable the alarm filter by default. Many field engineers enable the time-range filter during commissioning to keep the test record short, then forget to widen it for production. Add a reminder in the project's release notes.
Frequently Asked Questions
Why is the SIMATIC TP900 alarm history empty even though live alarms appear in TIA Portal V15.1?
The most likely cause is that the alarm log's Runtime persistence flag is disabled under HMI_1 → Alarm logs → <log> → Properties → General, or that no storage medium is assigned. Enable persistence and assign a USB or network path, recompile, and re-download to the panel.
Which USB sticks are supported by SIMATIC TP900 Comfort Panels for alarm logging?
Use USB 2.0 sticks formatted as FAT32, single partition, capacity ≤ 32 GB. USB 3.0-only sticks, exFAT-formatted media, SD cards in USB adapters, and sticks larger than 32 GB are not reliably recognised and will prevent the alarm log file from being created.
What does system message 130001 "Log not started" mean on a TP900?
It means the runtime could not open the configured log file. Typical causes are: persistence is disabled, the storage medium is missing, the path is invalid, or the file system of the medium is not supported. Verify the USB stick is present, formatted as FAT32, and that the storage path in TIA Portal matches the mounted volume label.
How do I show only logged (archived) alarms in the TP900 alarm history view?
Open the alarm view control's Properties → Filter pane and enable both Show logged alarms and Show archived alarms. If a time-range filter is active, widen it to cover the full operating period, or disable it during commissioning.
Can a TP900 Basic Panel (WinCC Basic) log alarms at all, or is logging a Comfort-only feature?
Logging requires a WinCC Comfort, Advanced, or Professional runtime. WinCC Basic on TP1500 Basic and smaller panels does not support alarm logs; only the live alarm buffer is available. For the TP900 specifically, the runtime is Comfort-class and full alarm logging is available with the appropriate runtime licence.
Does the alarm log file survive a power cycle of the TP900?
Only if Runtime persistence is enabled and a writeable storage medium is configured. Without persistence the log is volatile RAM and is lost on restart. With persistence on, the segmented log files persist on the USB or network share across power cycles.