IMDTouchKnowledge BaseShop main store

Troubleshooting

Why WinCC runtime loses an S7-300 connection after startup

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

No. A runtime that exchanged live data for two minutes has already passed its license checks, so the missing STEP 7 V5.5 license is not the cause; STEP 7 licenses the engineering tool, not a running S7 connection. Open Channel Diagnose under WinCC Tools, record the last four-digit hex error at the failure, and let its documented meaning choose between the project's connection settings, the path to the PLC, and the SIMATIC NET communication license.

On this page
  1. Is the missing STEP 7 V5.5 license why the S7-300 connection drops?
  2. What does a connection that fails only after startup tell you?
  3. How do you capture the last error code with Channel Diagnose?
  4. What does the captured hex code point to?
  5. Which license actually covers S7 communication from WinCC runtime?
  6. How do you compare the working PC without guessing?
  7. What proves the repair once the error stops?
  8. Questions asked

WinCC runtime starts, shows live values from the S7-300, and about two minutes later the connection drops and will not come back. That is not a missing STEP 7 V5.5 license: entitlement is checked when software starts and when a connection opens, never on a timer after data has already flowed. The disconnect is a channel fault, and the tool that names it is Channel Diagnose under WinCC Tools, which reports the last error as four hexadecimal digits. Capture that code while the fault is present and it decides between three suspects: the project's connection settings, the path to the PLC, or a communication license that is not STEP 7 at all.

Is the missing STEP 7 V5.5 license why the S7-300 connection drops? #

No — a license check runs when the software starts and again when the connection opens, so a runtime that has already exchanged live data for two minutes has passed both, and the disconnect is a channel fault to diagnose, not an entitlement problem.

STEP 7 V5.5 is the engineering package for the S7-300 and S7-400. Its license authorizes editing and loading the PLC program and plays no part in a running HMI connection. A missing license also fails in a characteristic way: a message when the component starts, and no connection at all, before any data moves. Your PC did the opposite. The working machine's S7 license is a difference worth writing down, but two PCs differ in more than one thing, and only the captured error code says which difference matters.

What does a connection that fails only after startup tell you? #

A connection that worked and then failed is a maintenance failure, not an establishment failure, and that gap eliminates every check that runs only at startup, so time the interval from Runtime start to the last live value and confirm the data was genuinely updating before the drop.

An open Runtime screen proves nothing by itself, because a displayed value stays frozen after communication dies. Watch a value you know changes in the PLC and treat the moment it stops as the fault time. Separating a dead link from a merely slow update is the subject of separating PLC scan time from real HMI communication faults, and the same changing-value test applies here. Record what recovery takes: a link that returns with a Runtime restart points at the channel, one that needs a PC reboot points lower, at the interface or its driver. How a panel on the same machine reports this loss is a display question of its own, covered in WinCC PLC connection loss alarm and NO Connect display.

  • Runtime opens at PC startup — the application runs; communication is still unproven. Watch a changing value.
  • Values stop at a repeatable interval — you now have a timestamp for the transition. Capture Channel Diagnose at that moment.
  • Reconnection fails until a restart — the fault state outlives the first failure. Record which restart level recovers it.
  • A second PC communicates — reference values exist for the comparison later.

How do you capture the last error code with Channel Diagnose? #

Open Channel Diagnose under WinCC Tools in the Windows menu while the fault is present, and write down the last error code exactly as displayed: four hexadecimal digits with leading zeros, the text beside it, and the time you read it.

  1. Record the configuration before anything fails again: WinCC edition and version, operating system, the communication channel in use, the physical medium, and the connection name in the project. This decides which documentation the code lookup uses.
  2. Start Runtime and confirm live data on a value that changes.
  3. Open Channel Diagnose and note the healthy state: the connection identification and an empty or old error field.
  4. At the drop, capture the last error code with its text and the time; a photo of the window is enough. Do not restart anything first — the useful value is the one present at the failure.
  5. When the fault lands unattended, read the log instead: on an RT Professional V11 installation the channel-specific log file sits in the Siemens\Automation\SCADA-RT_V11\WinCC\Diagnose folder and opens in a text editor, so the code and its timestamp survive until morning.

What does the captured hex code point to? #

The documented meaning of the code sorts the fault into three directions — licensing, connection configuration, or the path to the PLC — and only the first involves a license, which is never the STEP 7 one.

Look the code up in the installed help or the Siemens documentation for your channel and version. The reference is the S7DOS error codes, as of version 7.1.99, and its entries pair a decimal value with the four-digit hex you captured: for example INVALID_BLOCK_TYPE_NUM appears as decimal 272 and hex 0110, with the text invalid block type or invalid block number. Check the conversion once so the two columns stop confusing you: hex 0110 = (1 × 256) + (1 × 16) + (0 × 1) = 272 decimal. That example is a data-access fault — it points at the addresses configured in the connection, not at any license. Now read your own code the same way:

  • The code names a license or a communication component — take the licensing branch below; the shortfall is on the SIMATIC NET side, not STEP 7 V5.5.
  • The code names a block, an address or a data area — compare the project's connection settings with the working PC's; the addresses changed, or the PLC program changed underneath them.
  • The code names the destination, the route or the interface — the path is at fault. Check which adapter the project resolves to, then hunt an address conflict: a link that dies on a timer after power-on often means a second device claimed the address as it finished booting, and one repeat with that device switched off settles it.
  • No error and the channel reads healthy — the channel believes all is well while values stay stale. Check the CPU's connection resources for another client holding the slot, and trust live values over the screen.

Which license actually covers S7 communication from WinCC runtime? #

Not STEP 7 V5.5, which authorizes only the PLC engineering tool: runtime S7 traffic is covered by the WinCC runtime license together with SIMATIC NET communication software licenses, configured as SOFTNET or HARDNET-IE S7 connections for the S7-300 and S7-400.

The Siemens licensing overview for WinCC S7 communication assigns the required communication software license to the configured connection type, SOFTNET or HARDNET-IE S7. One documented threshold is worth knowing: for WinCC Unified PC Runtime, using more than ten S7 connections requires a suitable SIMATIC NET license and the SIMATIC NET PC software matching the WinCC version. That is a licensing trigger, not a technical cutoff. Runtime keys also differ from combined keys, a distinction sorted out in WinCC RT versus RC licenses and moving a runtime key. If the captured code does name a license shortfall, resolve it through Siemens or an authorized distributor, then rerun the acceptance test below.

How do you compare the working PC without guessing? #

Change one variable at a time and rerun past the failure interval after each change, or you will never know which difference mattered; the working PC is a source of reference values, never proof of a cause.

  1. Back up the project and photograph every setting you are about to touch.
  2. Compare the connection settings: controller destination, channel and connection parameters. A difference here explains a different path and a different result.
  3. Compare the interface selection: which adapter each project resolves to. Put the affected PC on the intended physical adapter, not a virtual or disconnected one that happens to be selected.
  4. Compare installed components: WinCC version, communication components and operating system, checked against the supported combinations for the configured channel.
  5. Compare the license inventory on both machines, matching license type and capacity to the actual configuration.
  6. Keep the test clean: no extra clients while you compare, because added connection demand changes the behavior you are measuring.

After each single change, restart Runtime and watch live values past the interval. The change that clears the captured code is the fix; everything you left untouched is exonerated.

What proves the repair once the error stops? #

Hold the run past the point where the fault always appeared: at least ten times the observed interval — 10 × 2 minutes = 20 minutes here — and then through a full production shift with live values watched.

Then prove the recovery that failed at the start. With the machine in a safe state or on an isolated bench, pull the network link once, confirm the channel reports the loss, reconnect, and confirm the channel re-establishes without a PC reboot. Last, make the next drop visible the moment it happens rather than at end of shift: a time-stamped link-loss alarm at runtime level, per how to create a SCADA PLC communication alarm for link loss, turns a repeat of this fault into one dated line in the alarm list.

Questions asked

Does the runtime PC need STEP 7 installed at all?

No. STEP 7 V5.5 exists to edit and load the PLC program; the runtime PC needs WinCC runtime and the communication components that install with it, plus the licenses those components call for. Installing or licensing STEP 7 on the affected PC changes nothing about an S7 connection that already carried live data, so do not accept that as the fix.

Why would a link die on a timer shortly after power-on?

The repeatable delay is a clue, not a cause. Typical mechanisms: a second device finishing its boot and claiming the same address, a keepalive or retry limit expiring, or a network adapter dropping into a power-saving state, and each leaves a different last error in Channel Diagnose. Time the drop from PC power-on rather than Runtime start, and note what other equipment boots inside the same window.

Could the S7-300 itself be refusing the connection?

Yes. The CPU offers a limited number of connection resources, and a client that loses its slot sees the failure on its own channel. If the code names the destination or a connection resource, check what else holds connections to that CPU: a programming station left online, a second HMI or a gateway with configured connections can each consume a slot the runtime was using.

Will reinstalling WinCC fix a disconnect like this one?

Not as a first move. A reinstall replaces components, interface bindings and registered settings in one sweep, so if the fault clears you will not know why, and if it persists you have destroyed the comparison with the working PC. Capture the code first, and reinstall only when the code points at a damaged component and the single-component repair has failed.

Keep reading

  • Troubleshooting

    Why a WinCC Flexible PPI Link Fails on Baud Rate and Address

    Matching baud rates satisfies only one of the five settings a PPI link needs between a WinCC flexible 2008 PC Runtime and an S7-200. Check the other four in order — cable mode, the CPU station address in the system block (typically address 2 at 9.6 kbps), the master address with the highest station address, and the tag binding — with Micro/WIN closed so Runtime can open the COM port.

    HMI and touchscreens

  • Explainer

    Why WinCC cannot switch PLC connection IP at runtime

    No WinCC edition exposes a script function that re-points a configured PLC connection to a new IP while the runtime runs. Engineer the switchover into the project: software redundancy in the S7-300 pair with WinCC following the master status, a tag-prefix switch between two tag sets, or a preconfigured alternative connection whose recovery interval you measure on the bench.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Runtime Advanced shows no data through a CP343-1 Lean

    STEP 7 goes online through the CP343-1 Lean, but WinCC Runtime Advanced opens with no tag update and no error banner, because the S7 connection was given the CP's slot number. The CP cannot service an HMI read; the CPU-side endpoint lives in the CPU. Enter the CP's IP address with rack 0 and slot 2 — the CPU 316-2 DP's slot in a standard S7-300 central rack — and no FC5 or FC6 call is needed in the PLC program.

    HMI and touchscreens

Why WinCC 6.2 runtime pictures disappear during operation