A Trend Cursor Only Proves What the Clocks Agree On
HMI, historian, PLC log and alarm list stamp one event seconds apart. SourceTimestamp vs ServerTimestamp in OPC UA Part 4, DNP3 object groups 1 and 2, IIN1.4, and what an uncorrected crystal costs you per day.
An operator drops a cursor on a trend, points at the readout, and says the header pressure fell before the pump tripped. In the incident review that sentence becomes a cause. But it is only a cause if the HMI client, the SCADA server, the historian, the PLC, and whatever report tool printed the record all agree on how time was stamped and how it is displayed. Often they don't, and the disagreement is small enough — two, five, sometimes eight seconds — to survive a casual look.
That is what makes trend time errors nasty: the line still looks plausible. Nothing is flagged bad quality. The problem only surfaces when you lay the alarm list, the batch record, the PLC event log, and the historian trend side by side and the order of events stops making sense.
Identify where the timestamp is created
Before blaming the trend display, find the timestamp source for each signal path.
| Data path | Common timestamp source | What to verify |
|---|---|---|
| Live HMI tag | SCADA server receive time | Driver group delay and server clock |
| Historian sample | Historian interface or archive node | Compression, buffering, and late data handling |
| PLC event record | PLC real-time clock | Time sync method and daylight saving handling |
| Alarm event | Alarm engine evaluation time | Alarm delay, shelving, and server redundancy behavior |
| Batch or MES record | Application service or database server | Time zone storage and report conversion |
Do not assume one project uses one rule. A live pen may show server receive time while a historical pen beside it shows historian archive time.
OPC UA makes the split explicit, which is worth pulling into the light because a lot of SCADA drivers hide it again. Every DataValue carries two timestamps: SourceTimestamp, the time the value was acquired at the device or gateway, and ServerTimestamp, the time the OPC UA server processed it. The DataValue structure itself is defined in OPC UA Part 4 (Services); OPC UA Part 8 (Data Access) is the part to read for which of the two a server is expected to populate from field equipment. If your historian subscribes to the server and stores ServerTimestamp while the operator reads it as field time, every sample is late by the transport and polling latency — tens of ms on a wired segment, 250 ms and up over a cellular or radio link. Pick one, archive it, and write down which one you picked.
DNP3 has the same split, and IEEE 1815 states it in object terms, which makes it checkable on the wire. A binary input read as static data (object group 1) carries no timestamp of its own, so the master stamps it on receipt. The event form carries the outstation's own clock inside the object: group 2 variation 2 holds an absolute time, variation 3 a time relative to a common time-of-occurrence. The same point reported both ways can therefore disagree by a full poll interval, with neither value flagged. The outstation also tells you when it has stopped trusting its own clock — IIN1.4 set in the response header is a request for time synchronisation, answered by a write of group 50 variation 1. A master that logs events but ignores IIN1.4 is archiving timestamps that drift on the outstation's crystal, and the trend will not say so.
Compare live values against historical replay
A simple commissioning test is to force a safe test signal and watch it in both live and historical modes.
Useful checks:
- Toggle a non-production test bit or simulator tag at a known time.
- Watch the live trend cursor while the value changes.
- Wait until the historian has archived the point, then reload the same range from history.
- Compare the timestamp, value, and quality shown in both views.
- Repeat through a SCADA server failover if the system is redundant.
If the live display shows the edge at 10:00:02 and the historical replay shows it at 10:00:07, decide whether this is expected buffering or a configuration defect. Do not leave it as an unexplained difference.
Check time zones and daylight saving behavior
Many trend issues are not sampling problems. They are display conversion problems.
Field checks:
- Confirm whether the historian stores UTC or local time.
- Confirm whether the HMI client converts timestamps or simply displays server strings.
- Test from an engineering laptop set to a different time zone only if that use case is allowed.
- Review daylight saving rules for sites that report across regions.
- Verify exported CSV files include a time zone or offset column when they leave the HMI system.
A one-hour offset after a daylight saving change can look like a process delay. For regulated or audited processes, trend exports should make the time basis unambiguous.
Cursor interpolation can mislead root cause analysis
Some trend controls show the nearest stored sample. Others interpolate a value between two samples. Both behaviors can be acceptable, but the operator and engineer need to know which one is being used.
Watch for these cases:
- A digital signal appears half-on because the cursor value is interpolated.
- A slow historian sample hides the exact order of two fast events.
- A compressed analog tag shows a straight line across a real disturbance. A 2 % deadband on a 0-100 bar header pressure is 2 bar of blind spot: the 1.5 bar dip the operator is pointing at was never stored.
- The cursor value changes when the time range is zoomed because the trend control requests different resolution data.
For event analysis, do not rely on a compressed analog trend alone. Use alarm events, PLC sequence numbers, totalizers, or high-resolution historian points when order matters.
Align pens with different sample rates
A common mistake is to put fast status bits, slow analog values, and calculated KPIs on the same trend and then read the cursor as if every value was sampled at the same instant.
A better trend page separates the context:
- Fast event pens for commands, feedback, permissives, and sequence states.
- Process pens for analog values with engineering units and reasonable scaling.
- Calculated or MES values with clear labels that show they are not real-time PLC samples.
- A notes field or event markers for recipe changes, mode changes, and operator actions.
When the cursor lands between samples, the trend should make the sample age visible if the tool supports it. At minimum, document the collection rate for important pens.
Common failure modes
- Historian interface buffering data after a network outage but writing samples with the wrong receive time.
- HMI clients using local workstation time while the server uses UTC.
- Redundant SCADA servers with clocks that differ by several seconds.
- PLC event arrays running on the controller's free-running RTC with no time sync at all. Price it before you argue about it: a 30 ppm crystal, ordinary for an industrial controller, is 2.6 s of drift per day and nothing in the system corrects it. NTPv4 (RFC 5905) over a quiet control LAN holds a controller inside roughly 1 ms of its source, which settles every ordering question a trend cursor is able to ask. PTP (IEEE 1588-2008) reaches sub-microsecond, but only when every switch in the path is a boundary or transparent clock; through an ordinary store-and-forward switch it is NTP with more configuration to get wrong. The rule I use on site: if two records of the same event differ by more than 1 s, stop theorising about buffering and go compare the clocks.
- Trend export files losing milliseconds even though the archive stores them.
- Report queries mixing local date filters with UTC archive timestamps.
- Cursor readouts showing rounded values while the plot uses raw values.
Most of these problems are found only when someone compares two records during an incident. It is better to test them during commissioning.
Write down the time basis before you leave site
The one artifact worth producing for each critical trend or report is a few lines naming, per pen: the timestamp source (live, historical, alarm, exported), the storage basis (UTC or site local), the sample rate plus deadband, compression and interpolation behavior, and the expected worst-case lag between live display and historian availability. Add one line on how far you trust the millisecond ordering, because that is the claim someone will over-read during an incident.
None of this needs to be long. It exists so that the next engineer — probably you, at 2 a.m., a year from now — treats a clean-looking trend line as what it is: a display, not a calibrated time sequence, until the clocks behind it have been checked.