Troubleshooting
Is It the Driver, the Tag or the Screen? Diagnosing HMI Values
Short answer
A stale or wrong value on an HMI is a controller, driver or OPC server, or binding fault, and testing one representative value through those layers in order isolates it without screen edits. Test read and write paths separately: a moving graphic proves nothing about the connection, and a failed write does not prove the read path is down.
On this page
- Three layers, one test value
- Step one: confirm the value at the controller
- Step two: confirm the driver or OPC server exposes the item
- Step three: check the tag definition and the object binding
- Test the write path on its own
- Worked example: a parts counter frozen at 4,128 on a filler line
- Read the log that belongs to the failing layer
- Symptom-to-layer quick table
- Questions asked
A value that sits still, shows the wrong number, or ignores a command is one of three faults: the controller is not producing the value, the driver or OPC server is not delivering it, or the tag-to-object binding on the screen points somewhere else. Trace one representative value through those layers in order and the fault isolates itself without screen edits. Two rules keep the test honest: a moving graphic proves nothing about the connection, and a failed write does not prove the read path is down. Treat reads and writes as separate paths and test both.
Three layers, one test value #
Every displayed value crosses the same three layers, in this order:
- The controller and its I/O: the value must exist, be correct, and change.
- The driver or OPC server: it must connect, expose that item, and actually poll it.
- The tag and the object: the tag must map to the right item with the right data type, and the object must reference that tag.
Pick one value that changes on a known cycle: a parts counter, a free-running clock, a totalizer. A steady value cannot distinguish a live link from a dead one. The rule for the whole test: walk downstream, and the first layer that stops tracking the one above it owns the fault.
Step one: confirm the value at the controller #
- Open the controller in its engineering software and monitor the address online.
- Record the value and the timestamp, and note the data type and address exactly as the controller defines them.
- For command points, note the bit's current state before any write test.
Reading the variable at the source beats trusting anything in between; the approach is the same as reading controller variables without an OPC UA server. If the controller value itself is wrong or frozen, the HMI is innocent: fix the logic or the field device and stop diagnosing the screen.
Step two: confirm the driver or OPC server exposes the item #
- Open the driver's or server's tag browser on the HMI PC and read the same item you watched at the controller.
- Read the reported quality. Good quality means the server holds fresh device data. An unknown-item error means the path or ItemID never resolved and no data was ever returned.
- Confirm the tag is actually being scanned: a configured tag can still be disabled or outside the active poll group, which is exactly what configuring driven groups versus disabled tags controls.
- Check the server's console or diagnostic log for connection-level errors before touching the project.
A quality of Bad (Out of Service) means the server is configured but is not receiving updates from the underlying interface or device, so the fault starts server-side or further down. When the whole station is quiet rather than one object, trace the communication path end to end before you edit anything on screen.
Step three: check the tag definition and the object binding #
At the tag layer, compare against the notes from step one:
- The tag's source item or ItemID against the controller address you recorded.
- The data type. Some editors validate this at edit time and refuse to run, with errors such as TAG-002, Tag Data type does not match, or TAG-005, Define a valid Move animation X-Axis Tag.
- Multi-register values: floats assembled from two registers display nonsense when the word order is swapped, the case covered in displaying a PLC real value over Modbus on an HMI.
- Read/write access at the driver, because a tag mapped read-only accepts no command no matter how the object is drawn.
After an import or a screen copy, near-duplicate tag names are the classic trap: the object is alive, but it is bound to the sibling tag. A digit-type mismatch shows up on writes instead, the case in why an HMI writes the wrong PLC value above 9.
The decisive check: if the tag browser tracks the controller and the object does not, stop diagnosing communications and open the object.
Test the write path on its own #
A popup closing or a graphic flashing proves only that the screen reacted. While an operator presses the control, watch the target bit or register in the controller's online monitor: the memory changing there is the pass. A documented symptom worth knowing is a value-change event that fires exactly once and never retriggers; that points at event configuration on the tag or object, not at communications. Never test writes on a point that can start machinery or defeat a safety function: use a spare output, a test register, or a bench controller.
Worked example: a parts counter frozen at 4,128 on a filler line #
Inputs (an illustrative bench example; substitute your own readings). The tag counts finished bottles, one count per bottle:
- 10:00:00, controller watch table: 4,132 counts
- 10:01:00, controller watch table: 4,156 counts
- Same two instants, driver tag browser on the HMI PC: 4,132 counts, then 4,156 counts
- Screen numeric display across the same minute: 4,128 counts, unchanged
A gap that never closes within one update cycle is staleness, not lag.
The arithmetic:
- Controller: 4,156 − 4,132 = 24 counts in 60 s, so 24 ÷ 60 = 0.4 counts/s, which is 0.4 × 60 = 24 counts/min.
- Tag browser: 4,156 − 4,132 = 24 counts/min, matching the controller.
- Screen: 4,128 − 4,128 = 0 counts/min. It trails the tag by 4,132 − 4,128 = 4 counts, and the gap never closes.
The first divergence sits between the tag and the object, so the fault is the binding. In this trace the object referenced a duplicate counter left behind by a screen import.
The decision: any object one count or more behind a tag that keeps advancing, with no catch-up, is a binding fault. Rebind the object's tag reference and leave the driver alone. Then retest the write path before signing off: issue the counter reset from the screen, watch the reset bit toggle 0 to 1 at the controller, and watch the count clear. Both directions proven, the value is commissioned.
Read the log that belongs to the failing layer #
The point of split logging is knowing whether an error is communication-side, development-side or runtime-side, and each family lives in a different place:
- Reproduce the symptom and note the screen, the tag, the operation and the time.
- Capture the communication-side record: the driver or OPC server console and diagnostics.
- Capture the application-side record: the development and runtime logs, filtered to binding or visualization categories if the tool offers them.
- Find the first layer where the record diverges from what the controller shows.
Whole-application ghosting has a documented cause worth remembering: a corrupted HMI server tag cache in FactoryTalk View SE, cleared by stopping the runtime and deleting the cache per the vendor's steps. That is a station-level fault, not a per-object one. Keep the logs from acceptance as a baseline, the discipline described in verifying a SCADA system end to end, so an intermittent fault can be compared against a known-good record.
Symptom-to-layer quick table #
| Symptom | First layer to inspect | Confirming check |
|---|---|---|
| Every value on the station is stale or shows ??? | Driver, server, network or controller source | Check connection status, then trace the path end to end |
| One value is wrong while its neighbors update | Tag definition or object binding | Compare the tag source with the intended controller item |
| Tag browser tracks the controller, the object does not | Object binding | Inspect the object's tag reference, animation condition and event configuration |
| Graphic animates but the controller value never changes | Write path or command binding | Watch the target bit in the controller while the command is pressed |
| Value runs, then stops after minutes or hours | Poll scope or server quality | Check item quality and whether the tag is disabled or outside the active group |
| Value has the right size but wrong or negative magnitude | Data type mapping | Check the tag type and multi-register word order against the controller |
Whole-station question marks are their own fault class, and the same layer-one diagnosis applies on a dedicated operator terminal. Pick one changing value, walk it downstream, test the write path on its own, and the layer at fault names itself.
Questions asked
The tag browser shows the value moving, but the screen object never changes. Is that a driver fault?
No, that is a binding fault, so open the object rather than the connection. Check the animation's scaling first: an object with limits set for 0 to 100 driven by a raw integer that runs 0 to 32,000 sits motionless at one end of its range and looks frozen even though the tag is alive. Then look for a near-duplicate tag name left behind by a screen import or copy.
Can a spinning fan graphic prove the PLC connection is healthy?
No. Rotation and blink animations are often driven by a script, a loop or a neighboring tag, so they can keep moving with the controller offline. For a real link indicator, bind an object to the driver's connection status or heartbeat, then prove it by pulling the cable and confirming the indicator actually fails.
Every value on the station went stale at once after weeks of running. Where do I start?
Start at the connection, not the screens. A fault that touches every object lives below the tag layer, so check driver or server status, the network path and the controller first. Only after the path proves good consider a corrupted server tag cache, which vendors document clearing by stopping the runtime and deleting the cache.
The controller bit changes when I press the button, but the machine ignores it. Which layer do I fix?
Neither the driver nor the binding. The write path is proven the moment the controller's memory shows the change, so a machine that ignores a verified command is a controller-logic problem. Diagnose it in the logic, starting with the interlock and permissive chain, not in the HMI.