Troubleshooting
Why Ignition Edge OPC drops every 2 minutes from an S7-1500
Short answer
An Ignition Edge OPC UA connection that faults and reconnects on a fixed 2-minute interval is a timeout loop, not a configuration error: the S7-1500 stops servicing publish or keep-alive traffic under communication load, the client times out, re-subscribes the full tag set, and the burst repeats. Capture who sends the FIN or RST and log PLC load before changing anything.
On this page
- Why does the connection drop on a fixed 2-minute interval?
- How does an OPC UA session time out without any configuration error?
- Is 7,500 tags against a 10,000-item limit the problem?
- Why does a hard restart start the loop?
- How do I prove which side closes the session?
- What changes actually stop the loop?
- How do I confirm the connection is stable?
- What replaces the Edge device if it is part of the cause?
- Questions asked
An Ignition Edge OPC UA connection to an S7-1500 that disconnects and reconnects every 2 minutes, while the same setup ran for weeks before a hard restart, is a repeating timeout loop on the server side. The reported setup holds about 7,500 subscribed tags against a server configured for a 10,000-item maximum, with the PLC at 25-50% load and spiking to about 75% at each drop. The evidence rules out the Ignition configuration: recreating the client, rolling back the gateway, swapping between Ubuntu and Windows, a direct patch cable, disabled firewalls and repeated restarts all produced the same fault.
Why does the connection drop on a fixed 2-minute interval? #
A fixed interval means a timer expired, not a random network event; cabling and switch faults drop connections at random times, not on schedule. The timers that can expire are the OPC UA session timeout, the subscription lifetime and keep-alive counters defined in the OPC UA specification Part 4, or a recurring load event inside the PLC. Compare the measured gap between disconnects with the negotiated session and subscription timeout values in a packet capture before touching the Ignition side.
How does an OPC UA session time out without any configuration error? #
An OPC UA client holds a session over a secure channel and creates subscriptions of monitored items, one per tag; the server returns a publish response at each publishing interval, or a keep-alive when nothing changed. If the client sees no publish response within its keep-alive window it faults the connection and reconnects; if the server sees no publish requests within the session or subscription lifetime it deletes the session itself. Either direction shows in Ignition as the same symptom: connection status faulted, then re-established.
Is 7,500 tags against a 10,000-item limit the problem? #
At 7,500 of a 10,000-item configured maximum you are at 75% of the monitored-item pool, and Siemens documents the monitored-item maximum as CPU-dependent, so the headroom belongs to that CPU only. The limit counts all monitored items across all subscriptions, so a second client or a stale session from one of the recreated clients draws from the same pool. In this reported case the Edge device was the only client, which makes load per item, not the count alone, the pressure point.
Why does a hard restart start the loop? #
After a hard restart the client re-creates all 7,500 monitored items at once and requests a full initial data set. On an S7-1500 the OPC UA server runs inside the CPU, so that burst competes with the program cycle under the CPU's communication-load budget. If servicing falls behind, the keep-alive window expires, the session closes, the client re-subscribes, the same burst repeats, and the loop locks in. The spike to about 75% at each disconnect is consistent with exactly that feedback loop.
How do I prove which side closes the session? #
Capture the traffic and the PLC state together, in this order:
- Log cycle time, communication load and CPU load in TIA Portal online diagnostics across at least three disconnect cycles, and note whether the load rises before the drop (load causes it) or after it (re-subscription causes it).
- Run Wireshark or tshark on the Edge host or a mirror port, filtered to the PLC address and the OPC UA port, from before one disconnect to after the next.
- Identify the last packets: a FIN or RST from the PLC means the server closed; a client FIN or RST after a silent gap means the client gave up on a publish response.
- Measure the widening gap between publish responses before the drop and compare it with the negotiated keep-alive and session timeout values in the same capture.
- Look for a closing or error response from the server and note the request that precedes it. An S7-1500 that resets TCP connections on close instead of finishing them is a known variant of this pattern, covered in S7-1500 TDISCON RST instead of FIN.
What changes actually stop the loop? #
Work from the capture result. If the server closes after a silent servicing gap, reduce what the CPU must serve per interval:
- Lengthen publishing and sampling rates for slow tags in the OPC connection and tag group settings, and split tags into subscription groups by required rate so slow data does not ride a fast subscription.
- Remove unused tags and test at a reduced monitored-item count; if the 2-minute drop disappears, the fault is load-related.
- Check that no leftover session from the recreated clients still holds server resources until it times out.
- Stagger tag enablement after a PLC restart instead of hitting the startup cycle with the full set at once.
- If the interval instead matches a negotiated lifetime exactly, the fault is renewal failure, and the capture of the renewal request decides the fix.
The same reasoning scales up: subscription sizing against a server's servicing capacity is covered in sizing one Ignition gateway for 100,000 OPC UA tags.
How do I confirm the connection is stable? #
Re-run the checks that caught the fault:
- PLC communication load and cycle time over the same window as before: steady values, no recurring spike toward 75% at fixed intervals.
- One full packet-capture window: publish responses or keep-alives at a regular interval, no FIN or RST, no session re-creation.
- An Edge gateway restart: the full subscription establishes and holds through the first several minutes after the initial burst.
- A hard PLC restart: the connection recovers and holds, since the original fault appeared after exactly that event.
A fault that cleared on its own overnight is not a fix. The same tag count and rates will reproduce the loop the next time plant traffic rises, so keep the healthy capture as a baseline and apply the rate and count reductions anyway.
What replaces the Edge device if it is part of the cause? #
Nothing here implicates the Edge hardware, but if the unit is due for replacement anyway, the same role fits a fanless industrial mini PC running the Edge gateway.
Questions asked
Why did a fresh trial Ignition client connect fine to the same PLC?
A trial client with an empty project subscribes few or no tags, so it never loads the server. The difference is subscription size and session state, not credentials or network. Only a test client carrying the same tag count is a valid comparison.
Does a successful ping prove the OPC UA connection is healthy?
No. Ping uses ICMP and says nothing about the OPC UA TCP port, default 4840 unless changed, or the service queue behind it. A PLC can answer ping while its OPC UA server is too loaded to return publish responses.
Should I raise the Ignition keep-alive timeout to stop the drops?
No. A widened keep-alive only hides a server that is late on publishes; the session will still fail when the delay exceeds the new value. Fix the load and subscription pressure first, and use the timeout reading only as diagnostic evidence of slow servicing.