IMDTouchKnowledge BaseShop main store

Troubleshooting

Why a TP700 Alarm Timestamp Shows Only Seconds

HMI and touchscreens Published 5 min read

Short answer

An alarm screen that shows whole seconds does not prove the stored event time lacks milliseconds, and a display format cannot add precision the record never captured. Check where the timestamp is assigned, compare the alarm view against the archived record, and if the runtime alarm view offers only whole seconds, capture the event time in a PLC-side record.

On this page
  1. Why does a TP700 alarm timestamp show only seconds?
  2. Where is the alarm time assigned, at the PLC or at the HMI?
  3. Can the alarm view format add milliseconds it never stored?
  4. Does the archived alarm record keep fractional seconds?
  5. How do I measure the real resolution at the source?
  6. What is the fix when whole seconds are all the alarm view offers?
  7. Questions asked

A TP700 alarm timestamp that shows only seconds has one of two causes: the alarm view format hides the fractional part of a stored time, or the record itself was captured to whole-second resolution. You cannot tell them apart from the screen, so work through the checks below in order. A display format can never add precision the event record never held, so the decision always comes down to where the timestamp is assigned and what the stored value contains.

Why does a TP700 alarm timestamp show only seconds? #

Either the alarm view column format has no fractional-second field, or the event record was rounded to whole seconds when it was created. Read one archived alarm record and the view format side by side; that comparison, not the screen, tells you which case you have.

On Comfort Panels, the alarm logging system stores every logged alarm time in UTC regardless of what the screen shows, so the log may hold finer resolution than the view column exposes. Export or read the log before you change anything in the project: if the stored value carries milliseconds and the screen shows seconds, your problem is purely a format setting on the alarm control.

Where is the alarm time assigned, at the PLC or at the HMI? #

The timestamp is assigned either when the PLC detects the event or when the HMI runtime receives the alarm, and these are different times. First establish which one your alarm uses.

  • A PLC-originated alarm carries the time the controller assigns when it detects the condition, if the alarm mechanism transfers that time to the panel.
  • An HMI-discrete alarm is stamped by the runtime when it sees the tag transition arrive, so cycle time, network delay and alarm queueing all shift it later.

Open the alarm configuration in the engineering project and identify the timestamp source for that alarm class. If the PLC assigns it, the resolution question moves to the controller; if the HMI assigns it, the question is what the runtime records on receipt. When a tagged event must be recorded exactly when the PLC saw it, the report in why HMI operation records miss PLC start stop transitions shows the same receipt-versus-event gap from the logging side.

Can the alarm view format add milliseconds it never stored? #

No. The alarm view formats a value for display; it cannot recover digits that were never captured. In the project, open the alarm view or alarm control properties and look at the available date and time format settings for the time column.

If a format option explicitly includes fractional seconds, enable it and test with an event of known time. If the view offers only whole seconds, do not build a custom formatted string and treat its output as proof of anything: a string built from a whole-second value just prints trailing zeros. The format check settles the display half of the problem only; the stored record is the other half.

Does the archived alarm record keep fractional seconds? #

Read the archived or exported record. If it contains fractional seconds and the screen does not, enable a fractional format on the alarm control and stop here. If the record holds only whole seconds, the capture path is the problem, and no screen change will fix it.

When you work from exported logs, the same file-handling mistakes that make a log look shorter than it is, covered in WinCC data log shows fewer entries than configured, can also make timestamps look wrong, so confirm you are reading the records themselves and not a display intermediate.

How do I measure the real resolution at the source? #

For PLC-generated alarms, the resolution is bounded by how the controller detects the event, not by how many digits you print. A timestamp taken during a cyclic scan is no better than the scan's detection granularity. Here is a worked example:

  • Assume the alarm is evaluated in a cyclic program with a worst-case cycle time of 10 ms.
  • The controller can distinguish two events only if they fall into different cycles, so the worst-case uncertainty of any single event time is 10 ms, and two events inside one cycle can share a timestamp or appear only in trigger order.
  • Trigger two events 5 ms apart: with 10 ms cycles, expect identical or order-only timestamps. Trigger them 15 ms apart: expect distinct times, because the events land in different cycles.

If your application needs better than 10 ms ordering on this machine, cyclic alarm evaluation is not sufficient regardless of the panel; use a hardware or time-of-day interrupt to detect the event and read the controller clock inside that interrupt. Compare the PLC event time with the HMI record afterward: if the PLC time has fractional seconds but the HMI record does not, the alarm transfer or logging configuration is truncating it.

What is the fix when whole seconds are all the alarm view offers? #

Capture the event at the PLC in a dedicated record and let the HMI browse that record as data, instead of relying on the alarm view timestamp. This is the decision for the whole-second case.

  1. In the PLC, on event detection, store the event identifier, its state, and the controller clock value at detection resolution into a ring buffer or log block.
  2. Transfer those fields to the panel as ordinary tags or through the log mechanism, preserving the original time value untouched.
  3. On the HMI, display the captured timestamp field in a table or trend view rather than the standard alarm view time column.
  4. Verify end to end: trigger a test event and check that the source timestamp, the transferred record and the displayed value all agree, including fractional digits, and that appended zeros are not standing in for real fractions.

One safety note: if these alarms cover a safety-related condition, the alarm record is a diagnostic aid only. The safety function itself must meet its own standard's response-time requirements and must not depend on HMI logging resolution.

After a panel restart or a time synchronization, confirm the record still uses the intended clock and basis, because a UTC-stored log viewed in local time will shift by the timezone offset. If your logging setup also drops entries you expected, the segment handling described in copying archived logs from SD card to USB on Siemens TP1500 applies to the same Comfort Panel log files. The end state you are aiming for is simple: every stage from detection to display carries the fractional digits the application needs, and the test events prove it.

Questions asked

Why is the HMI alarm time later than the PLC event time?

The panel may stamp the alarm when the runtime receives it rather than when the PLC detected the condition. Cycle time, communication and alarm queueing all add delay between detection and receipt. Check whether the alarm transfers a PLC-assigned time or lets the runtime assign receipt time, and compare that source value with the panel record.

Can I force milliseconds into the alarm view with a custom text format?

No. A display format only reworks the value the record holds. If the stored timestamp was rounded or truncated to whole seconds, appending fractional digits in a formatted string prints zeros, not real time. Verify the stored record first, then decide whether a PLC-side event record is needed.

Do archived alarm records store the time differently from the screen?

Yes, they can. On Comfort Panels the logged alarm time is stored in UTC and may carry finer resolution than the on-screen alarm view column shows. Export the log and read the timestamp field directly; if the export contains fractional seconds, the limitation was presentation only.

How many test events do I need to prove millisecond capture?

Two closely spaced events with independently known times are enough to start. If their recorded times differ in the millisecond digits and match the source order, each stage preserves resolution. Repeat the test after a panel restart and after a time synchronization, because those can change the clock basis the record uses.

Keep reading

  • Troubleshooting

    Why WinCC shows only 1000 messages in the alarm list

    The 1000-message stop is a display cap in the WinCC alarm control, not lost data: the Alarm Logging archive keeps everything beyond the window. Reach older messages with a narrow time filter on an archive-based list. Never click Reset on the message archive, because it deletes the history, and read the "already exists" reply from Link archive as proof that the segment is already connected.

    HMI and touchscreens

  • Troubleshooting

    Why a PanelView 1000 Banner Shows Only One Alarm at a Time

    The banner is doing what it is configured to do: set to the first unacknowledged alarm, it holds one message while the rest wait in the alarm list. Alarms missing from the list too point to the single integer that can hold only one alarm number — replace it with one latched bit per alarm.

    HMI and touchscreens

  • How-to

    How to Show Only a PLC Connection Alarm in WinCC Flexible

    Yes, but on WinCC flexible 2005 you do it with a dedicated application alarm driven by the connection status, not by filtering the system-alarm stream: the 2005 alarm view selects whole alarm classes, not single messages. Decide first whether the operator must see communication loss or a CPU in STOP, since a stopped PLC can still communicate, and keep the unfiltered system-alarm view on a maintenance screen.

    HMI and touchscreens