Troubleshooting
Why WinCC Ethernet connection status lags behind a cable break
Short answer
A WinCC channel reports its connection state from its own timeout and retry cycle, not from the PG/PC interface monitoring timeout you shortened; over TCP/IP the documented check-back message alone can take up to a minute, so an indication one to two minutes after the break is normal. The internal tag stays at 1 because a system message is an event: the disconnect message wrote 1 and nothing writes 0 until the connect message is given a write action.

On this page
- The timer you changed belongs to another component
- How a TCP/IP channel discovers the cable is gone
- Where the delay comes from, worked
- Measure the lag before changing settings
- Why the internal tag stays at 1 after reconnect
- Wire the state correctly or poll it instead
- The decision for each case
- Questions asked
You are not waiting on the timer you changed. A WinCC channel reports its connection state from its own request timeouts, retries and TCP/IP check-back cycle, and the documentation for the SIMATIC S7-1200, S7-1500 channel says it plainly: interrupted connections are not detected immediately over TCP/IP, and the check-back message can take up to a minute. The one-second value you set in the PG/PC interface monitors online engineering connections, not the runtime channel acquiring tags, so it cannot shorten the runtime indication. A loss message one to two minutes after pulling the cable is normal channel behavior, and the internal tag that stays at 1 after reconnect is a separate wiring problem with a clean fix below.
The timer you changed belongs to another component #
A communication channel is the driver component that acquires process values from a controller, and a timeout is the interval one component lets a request go unanswered before it declares failure. A timeout set in one component does not govern another component's requests, retries or alarm generation.
The connection-monitoring timeout in the PG/PC interface belongs to online engineering access through that interface. Your runtime channel, whichever driver this project uses for the controllers, carries its own connection properties: a response monitoring window, a retry count and an acquisition cycle, and detecting the break is its job using only its own numbers. Your test already proved the ownership, because shortening the interface setting changed nothing at runtime. Put it back and work on the channel instead.
How a TCP/IP channel discovers the cable is gone #
Physical link state and connection state are different facts:
- Pull the cable at the PC and the adapter's link drops at once, but no runtime message follows from that alone; the channel still has to fail its own requests before it reports anything.
- Pull the cable at the controller, or anywhere behind a switch, and the PC's link stays up; the channel learns of the break only by asking and getting no answer.
TCP/IP reports nothing when a peer disappears, so the driver's only evidence is silence: it sends a request, waits out its response window, retries the configured number of times, and only then marks the connection bad and generates the message. The check-back described in the introduction adds its own delay before the interruption is even noticed, and your channel, whatever controller it serves, detects the break by the same silence-and-retry logic. The lag you measured is the sum of those intervals, working as designed. The runtime alarm and the NO Connect display both follow that channel state, which is the subject of WinCC PLC connection loss alarm and NO Connect display.
Where the delay comes from, worked #
Illustrative numbers, not your channel's settings: assume the channel waits 10 s for each answer before retrying and raises the connection message after three unanswered requests.
- Failed requests: 3 attempts × 10 s = 30 s.
- Worst-case check-back added: 30 s + 60 s = 90 s, and retries that wait for the next acquisition cycle can stretch this further.
Ninety seconds matches the behavior you saw, and the arithmetic stays the same once you read your channel's real window and retry count off its connection properties. Do not shrink the window blindly: a window tighter than the controller's worst-case answer time turns busy scans into false connection alarms.
Measure the lag before changing settings #
Run this once, in an authorized maintenance window with the process in a safe state, and refit the cable before returning the machine to production.
- Open the channel diagnosis view and keep the affected channel unit visible.
- Pull the cable and timestamp four events: cable out, adapter link drop, channel unit state change, message arrival.
- Reconnect and timestamp the channel unit's return and the first plausible value update.
- Read the largest gap:
| Largest gap between | The time goes to | What to change |
|---|---|---|
| cable out and channel state change | response window, retries, TCP/IP check-back | nothing, unless the channel's documented range allows less |
| channel state change and the tag write or message | message assignments and your scripts | the event wiring below |
| the tag write and the operator screen | display refresh cadence | the screen's update, not the driver |
The same timestamped habit separates loss from recovery when the failure is intermittent, as shown in diagnosing intermittent HMI to PLC Ethernet comms hangs.
Why the internal tag stays at 1 after reconnect #
A system message is an event, not a state. The disconnect message fired once and its action wrote 1. Reconnecting writes nothing: the tag keeps 1 until some action writes 0, and in this project that action never runs. Either nothing is assigned to the recovery message, or the number wired for recovery is not the number the runtime actually sends, or another script overwrites the 0.
Confirm the pairing by observation before rewiring. If the project carries 1000024 and 1000205 as its connected and disconnected messages, pull and restore the cable during the measurement above and read the number and text of each message as it arrives. Wire the meanings to the observed pair, not the assumed one.
Wire the state correctly or poll it instead #
Two designs work; use the second for anything an operator watches.
- Event pair: assign the disconnect message an action that writes 1 and the connect message an action that writes 0, one writer each, and delete every other script that touches the tag. The latch disappears the moment the recovery write exists.
- Polled state: a cyclic script reads the tag's current status and drives the indication from it, so recovery clears itself on the next cycle with no second message needed.
For an indication that arrives in seconds, monitor freshness instead: the controller increments a counter, and a script alarms when the counter stops advancing for longer than a stale interval sized from the controller's update period, the acquisition cycle and the tolerated variation. A live-bit watchdog runs on the same event-versus-state logic, and its two-task pattern is worked through in why a WinCC Unified live bit needs two scheduled tasks.
The decision for each case #
- Runtime silent for a minute or more after a cable break: expected on a TCP/IP channel; the channel's own window, retries and check-back own the delay. Leave the PG/PC interface setting at its default.
- Only one connection indicates loss although the PC cable was pulled: every connection on that adapter loses its path together, so compare that connection's properties and acquisition cycle with the others and align them.
- Internal tag latched at 1: the recovery write is missing. Confirm the message pair by observation, wire disconnect to 1 and connect to 0 with a single writer each, or replace the pair with the polled status and get automatic clearing.
- The operator must know within seconds: no channel setting delivers that reliably; add the counter watchdog with its stale interval taken from the real update period.
Questions asked
Does a faster acquisition cycle shorten the detection time?
Only at the margin. The cycle decides how soon the next request goes out, but detection still waits out the response window and the retry count, and the check-back interval does not move. Halving the cycle mostly doubles request load on the controller and network while the documented detection behavior stays the same.
Is the value on screen still good while the delay runs?
No. The last acquired value stays in the tag, and quality remains good until the channel marks the tag bad, so a frozen number during the delay is expected, not a healthy reading. That is why a value that should be changing, not a steady one, is the honest freshness test for a live link.
Where do I watch the real channel state?
In channel diagnosis. The WinCC Channel Diagnosis view serves the RT Professional runtime, and in WinCC V7 the channel diagnostics are part of the WinCC diagnostics tooling. Keep the affected channel unit visible while an assistant pulls and restores the cable.
Can the alarm come from tag status instead of system messages?
Yes. Tag status monitoring is the documented pattern: a Global Script action returns the status of the tag being checked, with the option of also triggering an alarm. Because every run reads current quality, recovery clears the indication on the next cycle without any second message, which is exactly the write a latched tag is missing.
Does reconnecting clear everything by itself?
Mostly. The channel's own diagnostics return as soon as acquisition succeeds, and the process values need one successful cycle before they move again. Latched script tags are the exception: they clear only when your logic writes them, so give the polled-status design that job and the reconnect takes care of itself.


