Explainer
WinCC PLC Connection Loss Alarm and NO Connect Display
Short answer
WinCC detects a dropped PLC connection through its communication driver, and an integrated project records the failure in Alarm Logging automatically. Drive one central NO Connect text object from that connection status; where the status is not exposed to your screens, a toggling PLC heartbeat bit under a fixed supervision interval detects the loss instead.
On this page
- How does WinCC detect that the PLC connection has dropped?
- Why can't I watch a process value to know the connection died?
- How do I put a NO Connect message in the middle of every screen?
- When is a PLC heartbeat bit the better source?
- Example: how fast does a heartbeat watchdog catch a pulled cable?
- What does Lifebeat Monitoring add over a heartbeat bit?
- How do I prove the indication works before trusting it?
- Questions asked
When the cable between a WinCC station and its PLC pulls out, the runtime notices on its own: the communication driver flags the configured connection as faulty, and in an integrated project the controller communication failure is entered automatically in Alarm Logging, where the runtime alarm window can display it. Make that status the source of one central NO Connect text object shown on every screen, and treat a frozen process value as proof of nothing. Where your WinCC product does not expose connection status to display logic, fall back to a toggling heartbeat bit in the PLC with a fixed supervision interval; that design detects a pulled cable within seconds when the toggle and watchdog are sized from the acquisition cycle. Test the banner by pulling the cable and by restoring it on the bench before you trust it on a running machine.
How does WinCC detect that the PLC connection has dropped? #
The runtime's communication subsystem, not your script, detects the drop: the driver stops receiving replies on the configured connection and flags that channel as faulty, and in an integrated project the controller communication failure is entered automatically in Alarm Logging. That is the fastest path to a warning, because it needs no extra logic in the PLC or on the screens.
The catch is that "WinCC" names several different products: classic WinCC 7.x, TIA Portal WinCC, and WinCC Unified. Feature names, configuration locations, and scripting interfaces are not interchangeable between them, so identify which product and project arrangement you have before choosing an implementation. In an integrated project, where controller and supervisory engineering live together in one project environment, the communication failure message appears without you configuring anything beyond making the runtime alarm display and its filters include communication messages. In a non-integrated arrangement, or where the message must drive screen logic, you need one of the explicit sources described below.
If the connection never comes up at all rather than dropping while running, work through the standard causes first: an integrated connection that is not configured, a hardware or cabling fault, or wrong connection parameters. A runtime that reaches the PLC only while the engineering tool is open has a separate, well-known cause, covered in Fix WinCC Runtime That Connects to the PLC Only via TIA Portal.
Why can't I watch a process value to know the connection died? #
A frozen process value proves nothing in either direction: the process can sit steady for hours with healthy communication, and after the cable pulls, the screen keeps displaying the last value the runtime received. A level that stops moving might mean the tank is simply full, or that updates have stopped, and a value-based test cannot tell you which.
The screen behavior is the trap. Most runtimes retain the last received value rather than blanking the field, so the operator sees plausible numbers that are no longer current. Where the connection exposes tag quality, use it: quality distinguishes a current reading from a retained one, and enabling the runtime's invalid-value presentation makes stale fields visibly wrong. Where quality is not available to your display logic, keep a deliberately changing test tag on the screen during commissioning so you can verify updates are flowing.
On a multi-controller screen, the same logic scales up: derive one warning per connection, because a single value that stops changing tells you nothing about which controller, if any, is still supplying valid data.
How do I put a NO Connect message in the middle of every screen? #
Build one text object that reads NO Connect, drive its visibility from a single authoritative communication-status signal for the affected connection, and place it in the shared screen template so every display inherits it without carrying its own logic. Use the runtime's supported connection status or communication alarm condition as that signal wherever it is accessible to display logic, and never derive the warning from a production value that might legitimately stop changing, or from an alarm acknowledgement, which proves nothing about recovery.
Define three display states, not two: healthy communication, failed communication, and startup or unknown. Before the first valid update arrives, a retained or initialized value is not evidence of a working connection, so the banner should show its unknown state until the diagnostic confirms health. Where more than one connection exists, include the connection or equipment description alongside the warning so the operator knows which controller has dropped. Recovery behavior matters as much as detection: remove the active warning only when the selected diagnostic returns to healthy status or the supervised heartbeat resumes, and keep the event in alarm history separately so the fault remains on record. The same pattern extends to a SCADA-level link-loss alarm, and the page How to create a SCADA PLC communication alarm for link loss walks through it for a general SCADA client.
One safety note belongs here: the banner is an operator warning, not a safety function. Stopping the machine safely stays in the PLC and its safety logic, never in a screen object.
When is a PLC heartbeat bit the better source? #
Use a heartbeat when the runtime's connection status is not exposed to your display logic: a bit in the PLC toggles on a fixed period, and whatever watches it notices the toggle stop within one supervision interval. The PLC writes the bit, the HMI reads it, and a comparison script or the PLC itself raises the fault when the value stops changing. A constant heartbeat means updates have stopped; there is nothing ambiguous about it.
Two limits keep the design honest. First, a heartbeat tests only the path carrying that signal: it proves the PLC is reaching the runtime, not that every tag is updating or that every screen is functioning. Second, a controller-side timer cannot see whether a passive monitoring PC stopped listening. For the PLC to supervise the PC, the PC must echo a changing signal back, so the PLC watches its own bit return inverted. The same toggle-and-watch pattern is documented for the lifebit approach in Monitoring a PLC Lifebit Heartbeat in WinCC With an Alarm, and the principle is general enough that it shows up outside HMIs entirely, down to small embedded devices, as described in How do Raspberry Pi heartbeat alarms detect offline devices
Example: how fast does a heartbeat watchdog catch a pulled cable? #
With an illustrative design using a 1 s heartbeat toggle, a 1 s acquisition cycle, and a 5 s PLC watchdog, worst-case detection from the moment the cable pulls is 7 s, from 5 s + 2 x 1 s. Here is where those figures come from and how they move.
The illustrative inputs: the PLC toggles a heartbeat bit every 1 s; the HMI reads it on a 1 s acquisition cycle; the HMI echoes the inverted bit back; and the PLC runs a watchdog timer, preset to 5 s, that resets every time the echo toggles. When the cable pulls, the echo freezes. The freeze becomes visible to the PLC up to one acquisition cycle (1 s) after the pull, then the watchdog must run its full preset of 5 s, and the resulting PLC fault bit reaches the banner logic within one more acquisition cycle (1 s). Worst case: 5 s + 1 s + 1 s = 7 s, plus one screen update to paint the banner.
The general rule from those inputs: detection delay equals the watchdog preset plus twice the acquisition cycle. Substitute your own project's values before you quote a number to anyone: with the acquisition cycle raised to 2 s, the same 5 s watchdog gives 9 s; halving the toggle period alone does not move the result, because the watchdog preset and the acquisition cycle dominate it. Size the watchdog from the rule in the FAQ: at least three times the longest acquisition cycle in the chain, so one missed or delayed cycle cannot raise a false alarm.
What does Lifebeat Monitoring add over a heartbeat bit? #
Lifebeat Monitoring, in the WinCC configurations that provide it, watches operator stations rather than a single tag: you list each OS, meaning each supervisory computer participating in the control system, and the monitor reports when a listed station stops responding. Configure the stations or supported monitored participants explicitly, and check which failures your installed implementation reports before relying on it.
Its scope is the point. Station availability and the health of a particular PLC process-data connection are separate diagnostic questions: a station can be alive while one of its controller connections is dead, and a heartbeat bit can keep toggling while a station that hosts a second client is down. Use Lifebeat Monitoring when the question is whether an operator station itself is present, and a per-connection status or heartbeat when the question is whether one controller is still supplying valid data. On a system with several stations and several controllers you will typically run both, each answering its own question.
How do I prove the indication works before trusting it? #
Test both directions on an isolated bench with verified test tags: pull the cable and confirm the NO Connect banner appears, then reconnect and confirm it clears, while a deliberately changing test tag proves values were moving before and after the fault. Measure detection and recovery separately, using the actual driver timeout and refresh cadence, and note both times against the settings in the project.
Detection delay and recovery behavior are different measurements and often differ in size: the banner may appear after the driver times out but clear on the first successful cycle, so time-stamp each observation instead of assuming symmetry. Watch for the two classic false passes: a banner that never appears because the display logic only runs while the connection is healthy, and a banner that clears because an operator acknowledged the alarm rather than because communication returned. Where the loss is intermittent rather than a clean pull, the fault-hunting method in Diagnosing intermittent HMI to PLC Ethernet comms hangs applies before any banner logic can be trusted. Record the tested settings with the results, because the detection delay you quote is only as good as the acquisition cycles and timeouts it was measured against.
Questions asked
Does a green link LED on the switch prove WinCC is still talking to the PLC?
No. A lit link LED shows only that the Ethernet physical layer is up. The connection can still be broken at the driver, the addressing can be wrong, or the runtime can stop polling while the lights stay green. Judge communication by the runtime's own connection status or a supervised heartbeat, never by link lights.
Why does the screen keep showing the last pressure reading after the cable is pulled?
The runtime holds the last value it received and keeps displaying it. Unless the connection exposes tag quality and the invalid-value presentation is enabled, an operator cannot tell a retained reading from a current one. That is exactly why the warning must come from connection status or a heartbeat, not from the value itself.
How do I choose the heartbeat toggle period and the supervision interval?
Set the toggle period from your acquisition cycle: a bit that changes every PLC scan is wasted if the HMI reads it once per second. As a design rule, make the supervision interval at least three times the longest acquisition cycle in the chain, so one missed or delayed cycle does not raise a false alarm.
Can one NO Connect banner cover several PLCs?
One banner can, but it should not stand alone. Drive it from an OR of the per-connection fault signals and show the affected controller's name beside it. A single undifferentiated message on a multi-controller screen hides which equipment has stopped supplying valid data and slows the operator's response.