Troubleshooting
Why PI tags stop updating after manual clock changes
Short answer
Tags freeze because a backward clock step on the interface node or the PI server stamps new values older than the last archived time, so nothing replaces the snapshot until the clocks pass that time again. Give each network its own time source, both tracing to the same UTC reference, which needs no firewall rule between them. Where IT refuses, stop the interfaces, correct the server clock first, set the node to match, restart, and read the PI Message Log.
On this page
Your tags are not broken; their timestamps are. When someone steps a clock backward on the PI server or on an interface node, every new value arrives stamped older than the last value already archived, the server treats it as out of order, and the snapshot stops moving until the clocks pass the old archive time again. The fix that holds is one time source on each network, both tracing to the same UTC reference, with no firewall rule between them. Where IT refuses that, the manual correction has a fixed order: stop the interfaces, correct the server clock first, set the interface node to match, restart, then read the PI Message Log.
Why the tag freezes #
An interface node stamps the values it sends with its own system clock unless it is configured to take the timestamp from the data source instead; the vendor documents both modes in the time stamp options of the PI Interface for OPC DA. For each tag, the PI archive remembers the newest timestamp it has accepted. A value that arrives stamped earlier than that time is out of order: it does not replace the snapshot, so the tag reads frozen even though the interface is scanning and sending normally.
Interfaces also compensate clock differences themselves. UniInt-based interfaces learn an offset against the server's clock and apply it to the timestamps they send. That offset is picked up when the interface starts, so a clock edited by hand while the interface keeps running is not reflected in what it sends until the next restart. That is why your sequence, node set to the server and then the server corrected back toward GMT, froze tags without any hardware fault: two uncontrolled steps in a row, neither preceded by a restart.
Worked example: the freeze equals the backward step #
Assume the PI server clock is correct, an interface node is stepped back 7 minutes at 10:00:00, and the interface runs a 5-second scan class.
- The last value archived for the tag is stamped 10:00:00.
- Every value the interface sends afterwards is stamped from about 09:53 onward, earlier than 10:00:00, so it is out of order and the snapshot stays put.
- The freeze lasts until the node clock passes 10:00:00 again: 7 min x 60 = 420 seconds.
- In that window the interface sends 420 s / 5 s = 84 values, none of which becomes the snapshot.
Whether those 84 values are kept as out-of-order history or rejected depends on server settings, and the PI Message Log tells you which. The decision rule from the arithmetic: the stall lasts exactly the size of the backward step, so a one-hour correction freezes the tag for an hour, and only an interface restart after the correction clears it early.
Which clock moved decides what you see #
- Interface node stepped backward: new values are stamped older than the archive. Snapshots freeze and clear by themselves after the step size, or at once on an interface restart. This is the pattern in your sequence.
- PI server stepped backward: the archive's newest times now sit ahead of the server's own clock, and incoming values look future-dated. How the server treats future data depends on its configuration, so read the PI Message Log for the actual rejection text instead of guessing.
- Either clock stepped forward: the mismatch runs the other way, with values from the slower side looking late and values from the faster side looking future-dated. Correct the clocks, restart the interfaces, and check the log before you leave.
The fix that holds: one time source per network #
You do not need a time path across the firewall. Put one time source inside each network, an NTP server or a permitted upstream on each side, and make both trace to the same UTC reference. The machines then agree through the common reference, and no time traffic crosses between them.
- Agree with IT on one source in each network, both traceable to the same reference time.
- Point the PI server and its network peers at their local source; point the interface nodes at theirs.
- Set time zone and daylight-saving rules identically on both sides. A zone or DST mismatch is a fixed offset that no sync can cure, and it produces the same family of wrong readings as when a historian shows a real value hours off because of the UTC offset.
- Prefer slewing to stepping: configure the time service to correct small drift gradually and allow a step only at startup.
- Correct existing drift once, in a planned window with the interfaces stopped, before switching continuous sync on. Microsoft documents a default of 54,000 seconds, 15 hours, for the Windows time service values
MaxPosPhaseCorrectionandMaxNegPhaseCorrection; an offset beyond that limit is logged rather than stepped, so a badly drifted node stays wrong until you intervene deliberately. - Watch the source after commissioning. A process historian whose DCF77 time synchronization fails on the OS server shows how a sync source that silently stops leaves the clocks drifting again.
The correction order when NTP is refused #
One safety note first: while the clocks move, recorded data is not trustworthy, and a frozen trend can read as a steady process to an operator. Do this in a planned window and tell the control room which tags are affected.
- Stop the interfaces on the node whose clock will change, so no values are stamped across the step.
- Correct the PI server clock first, if it has drifted. Keep the change as small as the drift allows, and prefer a forward correction, because then no archived timestamp ends up ahead of the server's now.
- Set the interface node clock to match the corrected server time.
- Start the interfaces. The restart is required, not optional: a running interface keeps the offset it read at its last startup.
- Read the PI Message Log for rejected, out-of-order or future-time events before leaving the node.
- If the server had to go backward, expect the affected tags to stay frozen until the clocks pass their pre-change archive times; restarting their interfaces after the correction clears them sooner.
Prove the clocks are healthy #
| Check | Pass condition |
|---|---|
| Clock difference | Server time against each interface node, compared directly, stays well under one second and does not grow over a week |
| Tag freshness | Snapshot timestamps of the previously frozen tags track current time |
| PI Message Log | No out-of-order or future-time rejections after the change |
| Interface offset at startup | Small, and stable between restarts rather than jumping |
| One week with no manual edits | The clock difference stays flat, which proves the sync source is working |
If all five hold after a week without hand edits, the freeze will not return. If the difference grows instead, the sync source itself has stopped, and you are back in the failure mode that froze the tags, so fix the source before the next manual edit becomes necessary.
Questions asked
Does restarting the interface clear a frozen tag?
Usually. The interface reads its time offset to the server when it starts, so after the clocks are corrected its values are stamped ahead of the archive again and the snapshot moves. The values sent during the freeze remain in the archive as gaps or out-of-order points, so the trend keeps the hole even after the tag updates.
Why does the server clock drift from UTC when nothing synchronizes it?
The hardware clock runs slightly fast or slow, a typical crystal being off by parts per million, and with no source to correct it the error accumulates. At 20 ppm a clock gains or loses about 1.7 seconds a day, roughly 50 seconds in a month. That is why the manual edits became routine, and every edit risks a backward step.
Can the two networks stay completely firewalled from each other?
Yes. No machine needs to reach the other network for time. Each network syncs to its own source, and both sources trace to the same reference, so the server and the interface nodes agree indirectly. The only paths needed are from each machine to its local time source, and from each source to its permitted upstream.
Is a script that sets the clocks better than editing them by hand?
Not by itself. A script that assigns the time still steps the clock, and the step is what stalls the tags; it only saves typing. The automation that actually helps is a time service configured to slew small offsets and step only at startup, and that needs the same IT approval as NTP.
Where can I see the offset the interface applies?
The interface reports the offset it calculated against the server in its own startup messages, and the vendor documents the timestamp behavior for the OPC DA interface. Compare that offset across restarts: it should be small and stable. An offset that jumps between restarts points at a clock that moved while the interface was running.