Troubleshooting
Why Ignition OPC tags stay static when Quick Client updates
Short answer
A Good tag that never changes has received only the initial data change. On a PLCSIM Advanced OPC UA server the usual cause is a global DB member typed from a PLC UDT, which the server exposes as one structured variable whose components send no change notifications. Redeclare the elements inline in a STRUCT, keep them accessible to OPC UA, full-download the DB, then restart the connection and re-add the tags, after ruling out trial expiry, tag group mode and item-path mismatches.
On this page
A tag that shows Good quality and never changes has received exactly one value: the initial data change the server sends when its monitored item is created, and nothing after it. On a PLCSIM Advanced OPC UA server the usual reason is the shape of the data block: a global DB member declared from a PLC UDT is exposed as one structured variable, and the server delivers the initial value but never reports changes on the components underneath. The fix is in TIA Portal, not in Ignition: declare the same elements inline in the DB inside a STRUCT, keep them accessible to OPC UA, full-download the DB, then restart the connection and re-add the tags. Rule out trial expiry, tag group mode and a mismatched item path first, because each of those takes a minute.
What Good and static actually tells you #
Quick Client and the Designer show two different things. Quick Client is the gateway's built-in OPC browser: when you subscribe there, it opens its own subscription on the server connection and displays raw data change notifications. The Designer Tag Browser shows the value the tag system currently holds, delivered through a monitored item the tag system creates on behalf of the tag's Tag Group. Same session, same server, separate subscriptions, separate monitored items, separate client handles.
That difference is the whole diagnostic. Good quality with a frozen value means exactly one sample reached the tag system, the initial data change, and no notification since. Quality stays Good because nothing invalidated it: OPC UA reports Bad only when the server or the connection reports an error, and the tag system does not age a value to Bad on its own unless a stale timeout is configured on the tag. Good confirms that one sample was delivered, not that delivery is ongoing.
The pattern ignores the data type. In the setup this article works, boolean, integer and real elements all froze the same way, which is the first hint that the element's type is not the variable; its declaration in the DB is.
Eliminate the gateway-side causes first #
Four gateway conditions produce a static Good tag, and each is faster to test than a download:
- Expired trial. When the trial timer runs out, every tag on the gateway freezes while the connection still shows Connected. Check the trial banner on the gateway home page: it must show a valid license, not a countdown.
- Tag Group mode and rate. Open the Tag Group editor. A tag that must update on its own sits in a group with Mode Direct and Rate 1000 ms. A group left in Leased or Driven mode with nothing holding the lease or driving the scan shows its last value at Good quality.
- OPC Item Path mismatch. A tag that was copied or hand-edited can point at a different node than the one you watched in Quick Client. Open the tag editor and compare the OPC Item Path character-for-character with the browsed node.
- Clock skew. Ignition stamps values with the server timestamp, so compare the gateway's system clock with the server's
Server/ServerStatus/CurrentTimenode. Skew corrupts historian and alarm ordering, but it freezes a tag only if each new timestamp is older than the previous one. Timestamps that advance, even minutes off, do not cause this fault; fix the clock and move on.
Two quick checks prove which side you are on. Subscribe to the node in Quick Client and toggle the bit in the PLC program: the displayed value must alternate within one publishing interval. Then watch the Designer tag's timestamp while you toggle: a timestamp that never moves confirms that no notifications are arriving for the tag's monitored item, whatever the value column says.
Read the subscription on the wire #
A packet capture settles whether the server is publishing for the tag's monitored item at all:
- Configure a second OPC UA connection to the server's unsecured endpoint, security policy None and message security mode None, so the payloads are readable.
- Start the capture before you drag the tag into the Tag Browser, filtering on
opcua, soCreateSubscriptionRequestandCreateMonitoredItemsRequestare both in the file. - In
CreateMonitoredItemsResponse, read theStatusCode(expect Good) and theRevisedSamplingInterval(expect a value at or below the tag group rate), and note theClientHandlethe tag system assigned. - Leave the capture running and toggle the boolean in the PLC program at least three times, several seconds apart.
- Filter for
PublishResponseand inspect theDataChangeNotificationpayloads. Expect oneDataChangeNotificationper toggle, each carrying the tag'sClientHandle.
Two readings close the case. A capture that ends before the first toggle proves nothing beyond the initial value: the server reported it and the file simply stopped. And if the tag's ClientHandle carries only the initial value while the Quick Client subscription shows every toggle, the client is behaving correctly and the node itself is the problem. The OPC UA services specification, Part 4, defines the DataChangeNotification as the list of monitored items whose values changed since the previous publish; a monitored item that never appears in one is not being reported by the server, and no client setting changes that.
The DB declaration that freezes the value #
TIA Portal publishes a PLC UDT to the OPC UA address space as a custom structured DataType. Declare a global DB member with that UDT and the server exposes the member as a single structured variable: one node whose Value attribute is an ExtensionObject holding every field, with the individual elements browsable underneath it. Browsing looks normal, and a read resolves the structure and returns a sensible field value, which is why the initial data change carries the right value and the tag goes Good before it freezes.
What stops is change reporting on the components. The OPC UA companion mapping for IEC 61131-3 maps structure data types to subtypes of the OPC UA DataType Structure and requires a server to describe explicitly how those types are encoded; how the instances are exposed and sampled is left to the server implementation. Sampling and change detection on the components of a structured variable is a separate capability from sampling a scalar, and on the PLCSIM Advanced OPC UA server in this case the component monitored item is accepted, the initial value is sent, and no further notification is ever generated. Declare the same elements inline in the DB inside a STRUCT instead, and the server publishes each element as an ordinary scalar variable, with its own NodeId and its own Value attribute, sampled on the publishing cycle, which is the shape a tag needs.
Ignition adds its own layer: it imports S7-1500 structs as JSON document tags rather than plain scalar tags, a behavior covered in Why Ignition imports S7-1500 structs as JSON document tags. A structured tag that fails loudly with Bad_DecodingError instead of freezing silently is a different fault with its own fix, described in Why a ControlLogix OPC UA struct reads Bad_DecodingError in Ignition.
One check names the culprit before you change anything. Browse to the tag's node and read the DataType attribute of its parent variable. The node itself reads a scalar type such as Boolean even when it is frozen; the tell is the parent, whose DataType carries the UDT name when the member was declared from it. If the parent reads that way, the restructure below applies.
Restructure the DB and re-point the tags #
- Open the global DB in TIA Portal and delete the member declared with the UDT data type.
- Add a member of type STRUCT and declare the UDT's elements inline beneath it, keeping every element name and data type identical so the browsed paths stay recognizable. The UDT itself stays in the project for program code; only the exposed member changes.
- Leave
Accessible from HMI / OPC UAchecked on each element you will subscribe to, andWritable from HMI / OPC UAon anything the HMI writes back. - Compile the block and the station, then perform a full download of the DB to the PLCSIM Advanced instance; a delta download that leaves the old declaration in place does not change the server address space. On a physical CPU this download writes start values over live values, so make it with the machine stopped; on the virtual instance there is nothing to stop.
- In Ignition, restart the OPC UA connection or re-browse from the Designer OPC Browser, because the gateway caches the browsed address space and keeps showing the old node structure otherwise.
- Delete and re-add the affected tags, or edit the OPC Item Path on each one: NodeIds change with the declaration, so an untouched tag keeps watching the old node.
Then verify rather than assume: run the toggle count in the next section, and hold the tag out of service until it passes.
Working the static boolean on the virtual S7-1500SP #
Inputs.
- The PLC: a virtual S7-1500SP on PLCSIM Advanced with its OPC UA server enabled, the case's own setup.
- The tag: one boolean element inside the UDT-typed member of a global DB, the case's own node.
- The tag group: Mode Direct, Rate 1000 ms, read from the Tag Group editor.
- The stimulus: three toggles of the boolean in the PLC program, several seconds apart, the capture procedure above.
- The observation: the tag shows its initial value of false at Good quality and never moves, while Quick Client shows every toggle, the reported symptom.
Rule. Every value change at the PLC must produce one DataChangeNotification on the tag's monitored item, and the Designer value must follow within one rate period. The count of change notifications must equal the count of toggles.
Arithmetic.
- Expected change notifications = 3 toggles × 1 notification per change = 3.
- Expected values delivered = 1 initial value + 3 changes = 4.
- Values actually delivered = 1, the initial false.
- Change notifications actually delivered = 1 − 1 = 0.
- Changes reported = 0 ÷ 3 = 0 %, on a session that carried Quick Client's traffic without fault.
Result. Not one expected notification arrived. The session, the endpoint security and the server's sampling of the PLC are healthy; the monitored item the tag system created is starved by the node it points at, a component of a structured variable that this server never reports changes for.
Decision. Apply the restructure. The pass mark after the full download and the re-added tag is a notification for every toggle, each visible in the Designer within one rate period of its toggle; at that count the tag goes back into service. Anything less keeps it out: repeat the capture, confirm the re-added tag's parent now reads a scalar DataType, and confirm that a full download, not a delta, reached the instance.
Questions asked
Why does the tag not go Bad when the updates stop?
OPC UA sends Bad quality only when the server or the connection reports a failure, and a monitored item that silently never appears in a publish is not a failure report. The last value keeps its Good quality indefinitely. If silence must surface as an alarm, configure a stale timeout on the tag so an unrefreshed value is marked Bad after a set time, and alarm on that quality instead of on the value.
Do I have to delete the PLC UDT from the project?
No. The UDT stays in the project for program code and for any other instances; only the member exposed to OPC UA is redeclared with its elements inline in a STRUCT. Keep the element names and data types identical so the browsed paths stay recognizable. The restructured member receives new NodeIds, which is why the affected tags are deleted and re-added rather than left pointing at the old nodes.
Will a physical S7-1500 show the same freeze?
The resolved case ran on a PLCSIM Advanced instance, and component-level change reporting is a server implementation detail, so test a physical CPU the same way before trusting it: count change notifications against toggles. If every toggle is reported, the UDT-typed member can stay. If notifications are missing, apply the same inline STRUCT restructure; the program logic is unaffected either way.
Can I keep the UDT member and read the whole struct as a document tag?
Ignition imports S7-1500 structs as JSON document tags, so a whole-structure route exists in principle. Whether the top-level structured variable publishes changes on this server was not established; what was established is that its components do not, and that the inline STRUCT fixes the tag. For anything that must update live, use the inline STRUCT, the fix verified end to end.
Should the unsecured OPC UA connection stay after the capture?
No. The connection with security policy None and message security mode None exists only so the capture's payloads are readable; delete it once the toggle count is done and keep the runtime connection signed and encrypted. The diagnostic connection changes nothing on the server, but an open unsecured endpoint on a plant network is an exposure you do not need.