1. Overview
Establishing a redundant connection between a WinCC Operator Station and a Siemens SIMATIC S7-400H station (for example the CPU 414-4H) under PCS 7 V7.0 is a recurring engineering task on brownfield plants. The H-station uses two synchronized CPUs and a fault-tolerant backplane bus; the OS must therefore keep a logical connection alive regardless of which CPU is currently the active partner. The naive approach — running the standard WinCC "Create Redundant Connection" Dynamic Wizard against a normal IE General (onboard PROFINET/Industrial Ethernet) interface — produces a C-action script that monitors tags such as @ConnectionState and @ConnectionError, but it does not implement the fault-tolerant S7 connection expected by an H-station. This reference explains the boundary between what the wizard can do, why it cannot replace S7-Redundancy on an S7-414-4H, and how to deploy the correct configuration with SIMATIC NET CP 1613.
2. S7-400H Redundancy Architecture in PCS 7 V7
An S7-400H system (CPU 414-4H or CPU 417-4H) is composed of two redundant subsystems, each with its own CPU, power supply, and synchronization module, mounted on a fault-tolerant backplane (UR2-H or UR1-H). Both CPUs execute the same user program; only one is the master at any instant. A fiber-optic sync link keeps event-of-state and process-image data identical so that failover is bumpless for the connected I/O.
| Component | Function | PCS 7 V7 relevance |
|---|---|---|
| CPU 414-4H / CPU 417-4H | Redundant controller pair | Master/back-up pair, identical program load |
| Sync module (e.g. 6ES7 962-1AB00-0AC0) | Fiber-optic link between H-CPUs | Required for event-synchronized operation |
| CP 443-1 (Industrial Ethernet) | Plant bus access on each CPU | Default ES/OS connection path in PCS 7 |
| CP 1613 / CP 1623 | SIMATIC NET IE card on ES/OS PC | Enables S7-Redundancy driver on PC side |
| UR2-H / UR1-H | Fault-tolerant rack | Mechanical and electrical backplane |
Two physical CP 443-1 modules are typically installed (one per CPU) so that the OS can reach both halves of the H-station. The S7-Redundancy driver on the OS PC must be able to address both CP 443-1 modules independently and switch the logical connection when the active CPU changes.
3. WinCC Redundant Connection Types
WinCC supports three conceptually different "redundant" mechanisms. They are not interchangeable.
| Mechanism | Driver / wizard | Hardware required | Use case |
|---|---|---|---|
| Software redundancy (SWR) | "Software Redundancy" wizard (Software redundancy.wnf) |
Standard IE interface on OS | Two separate S7-300/400 stations, not H-system |
| S7-Redundancy (H-system) | SIMATIC NET S7-Redundancy driver via S7REDUND.DLL
|
CP 1613 / CP 1623 on OS PC, CP 443-1 on both H-CPUs | Fault-tolerant connection to S7-400H / S7-1500R/H |
| OS server redundancy | WinCC Redundancy package | Dual OS servers | Operator station pairing, not field-level |
The Dynamic Wizard "Create Redundant Connection" populates the tags @ConnectionState, @ConnectionError, and a C-action that toggles a quality bit. It is designed for software redundancy against two discrete PLCs, not for the synchronized CPU pair inside one H-station. Re-using the script on an H-station fails because the two "partners" the script cycles between are not two separate stations — they are two roles played by the same logical controller.
4. CP 1613 vs. IE General: Hardware Boundary
SIMATIC NET CP 1613 (and its successors CP 1623, CP 1628) is more than a network interface: it ships with the S7-Redundancy protocol stack that knows how to negotiate with an H-station through both CP 443-1 channels. An onboard IE General port uses the standard Windows TCP/IP socket path; it cannot terminate the redundant S7 connection state machine.
| Card | S7-Redundancy capable | Typical OS in PCS 7 V7 | Notes |
|---|---|---|---|
| CP 1613 (PCI / PCIe) | Yes | Windows Server 2003 / 2008 | Install SIMATIC NET V8.x or V12 |
| CP 1623 | Yes | Windows 7 / Server 2008 R2 | Replaces CP 1613 in newer builds |
| IE General (onboard) | No | Any | Standard TCP/IP only |
| IE General with "Softnet" S7-Redundancy | Limited | Specific Softnet versions | Softnet S7-Redundancy not available for all Windows builds |
For a CP 1613 the configuration tool SIMATIC NET Commissioning (or Commissioning PC Station in newer releases) is used to bind the card to an "S7-Redundancy" access point. The access point is then referenced from the WinCC channel S7-Redundancy instead of S7.
5. The WinCC "Redundant Connection" Dynamic Wizard
The wizard invoked in a standard WinCC project from Dynamic Wizard > WinCC > Create Redundant Connection generates three artifacts:
- An internal tag group prefixed with
@:-
@ConnectionState— DWORD, current state of the active connection -
@ConnectionError— DWORD, last error code from the cyclic test -
@ConnectionName— TEXT, name of the monitored logical connection
-
- A C-action attached to a configurable trigger (default 1 s) that issues a small read request on the alternate connection and flips the active connection if the primary fails.
- A
Software redundancy.wnfscript artifact referenced internally by the C-action.
The C-action skeleton (paraphrased to illustrate behavior; values are read at runtime from the tag database):
// Excerpt — WinCC "Create Redundant Connection" C-action
if (GetTagDWord("@ConnectionError") != 0)
{
// Primary path failed, swap logical connection
SetTagChar("@ConnectionName", "S7_REDUND_B");
// Force quality code propagation
SetTagDWord("@ConnectionState", 2); // 2 = backup active
}
else
{
SetTagChar("@ConnectionName", "S7_REDUND_A");
SetTagDWord("@ConnectionState", 1); // 1 = primary active
}
This logic is appropriate for two discrete PLCs on the network. For an S7-414-4H the two "partners" share process image and program; routing C-actions at them confuses the redundant state machine because there is no "other PLC" to fail over to — both IP addresses point at the same logical controller.
6. Why the Wizard Script Fails on an H-Station
Three concrete failure modes appear in field engineering:
| Symptom | Root cause | Resolution |
|---|---|---|
@ConnectionState toggles every scan |
C-action alternates between two logical S7 connections that resolve to the same H-station; round-trip times differ by microseconds, not seconds. | Use S7-Redundancy driver; tag @ConnectionState is then driven by the protocol, not by the wizard. |
| Quality code = bad on all tags after CPU failover | Wizard's test read uses TCP/IP socket retry but does not re-trigger S7 partner selection. The card stays bound to the failed IP. | CP 1613 with S7-Redundancy re-resolves partner within ~200 ms. |
| PCS 7 OS project editor refuses to load project | PCS 7 V7 OS projects expect the "S7-Redundancy" channel; wizard-created "S7" channel with C-action scripts is rejected. | Migrate connection to S7-Redundancy channel; remove all wizard-generated @ tags. |
7. Configuring S7-Redundancy for WinCC PCS 7 V7
The correct end-state configuration is a channel of type S7-Redundancy in the WinCC project, backed by an access point CP_HMI (or customer-named equivalent) bound to the CP 1613.
7.1 Prerequisites
- SIMATIC NET installed on the ES/OS PC (version aligned with PCS 7 V7 — verify in the PCS 7 V7.0 readme).
- CP 1613 (or CP 1623) installed and recognized by SIMATIC NET.
- Two CP 443-1 modules in the S7-400H station, each with a unique IP address on the plant bus.
- STEP 7 / PCS 7 project with the S7-400H station compiled and downloaded; H-station is in RUN/Redundant.
- WinCC PCS 7 OS project with the AS-OS connection generated by the PCS 7 engineering toolchain.
7.2 Step-by-step
- In SIMATIC NET Commissioning, assign the CP 1613 to the access point
CP_HMIand select the mode S7-Redundancy. - Verify both CP 443-1 IP addresses are reachable from the OS PC with
ping; the S7-Redundancy driver uses both during partner discovery. - In the WinCC Explorer of the OS project, open Tag Management > S7-Redundancy. If the channel is missing, the SIMATIC NET install on this PC was either missing or installed after WinCC — repair the WinCC install.
- Create a new connection named (e.g.)
AS01_H. In the connection properties, set:- Partner IP A: CP 443-1 of CPU 0
- Partner IP B: CP 443-1 of CPU 1
- Rack/Slot: 0 / 3 (CPU 414-4H default slot in the H-rack)
- Connection resource: Automatic (driver picks next free on each CPU)
- Generate tags via the PCS 7 OS project editor; do not run the "Create Redundant Connection" Dynamic Wizard.
- Activate the WinCC Runtime. The status bar should report Connection OK (Primary) or Connection OK (Backup) for the S7-Redundancy channel.
8. Connection Resources and Limits
Each connection — redundant or not — consumes resources on the controller side. For an S7-400H the resources are counted per CPU; for the modern S7-1500R/H successor family Siemens publishes explicit connection-resource tables.
The S7-1500R/H documentation states: "Each communication connection to the redundant system S7-1500R/H occupies connection resources in the S7-1500R/H station." The same principle applied to S7-400H means that doubling the apparent number of connections (one per partner CPU) does not double the resource pool — the redundant driver presents a single logical connection to the application.
| Controller | Max S7 connections (sum across partners) | Reference |
|---|---|---|
| S7-414-4H | Up to ~64 S7 connections (depends on CP / CPU mix) | CPU 414-4H data sheet |
| S7-417-4H | Up to ~96 S7 connections | CPU 417-4H data sheet |
| S7-1500R/H (R-CPU / H-CPU) | Documented per firmware version | Siemens function manual "Communication with the redundant system S7-1500R/H" |
Engineers must size the OS-side connection count against the controller resource table, not against the OS project tag count. Background: see the official Siemens function manual Connection resources of the redundant system S7-1500R/H. The principle — one redundant connection still consumes two physical resources on the H-system (one on each partner CPU) but is exposed as one logical handle to WinCC — is identical for the older S7-400H.
9. Verification and Diagnostics
After commissioning, verify the redundant path with the following checks:
- Channel diagnostic: In WinCC Explorer, right-click S7-Redundancy > Connection > AS01_H > Status. Both partner IPs should report Reachable.
- Tag diagnostic: Force a value in STEP 7 (VAT table) on the standby CPU. Confirm WinCC shows the same value within one polling cycle. Repeat on the master CPU.
- Failover test: Run H-CiR or pull the master CPU from the rack. The WinCC status should transition Primary → Backup within ~1 s; tag values should remain constant.
- Resource audit: In STEP 7 Hardware > CPU Properties > Communication, verify the connection count does not exceed the controller's documented maximum.
-
SIMATIC NET trace: Enable the S7-Redundancy trace in SIMATIC NET Commissioning during commissioning; review
S7Redund.logfor partner switch events.
10. Troubleshooting Matrix
| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Channel "S7-Redundancy" missing in WinCC Explorer | SIMATIC NET not installed, or wrong install order | Control Panel > SIMATIC NET | Reinstall SIMATIC NET, then repair WinCC install |
| Connection status: "Not reachable" on partner B | CP 443-1 of CPU 1 unreachable / wrong IP |
ping from OS PC; check switch port |
Correct IP / VLAN; verify CP 443-1 in STEP 7 hardware config |
| Failover causes 2–5 s of bad quality on all tags | OS project uses S7 channel instead of S7-Redundancy | WinCC Explorer > Tag Management > Channel type | Migrate channel to S7-Redundancy; redo tag generation |
| CPU reports "Connection resource exceeded" | Total S7 connections exceed CPU ceiling | STEP 7 > CPU > Communication > Connection resources | Reduce OS-side connections or upgrade CPU |
| Wizard C-action compiled but has no effect at runtime | Wizard is diagnostic only on H-systems; no partner to switch to | Inspector > Trigger tab > Update | Remove wizard artifacts; deploy S7-Redundancy channel |
| Intermittent OPC quality bad during sync link failover | Sync module resynchronization time exceeded OS timeout | Check sync link LEDs; review S7Redund.log
|
Tune OS polling cycle to > sync link recovery time |
11. Migration Note: From S7-400H to S7-1500R/H
Plants replacing S7-414-4H stations with the modern S7-1500R/H family must verify that the OS PC side still uses a SIMATIC NET card supporting S7-Redundancy (CP 1623 / CP 1628 or Softnet S7-Redundancy). The protocol principle is unchanged: one logical connection in WinCC backed by two partner IP addresses and a redundant-aware driver. Engineers migrating PCS 7 V7 OS projects to PCS 7 V9 should re-generate the S7-Redundancy channel rather than port it byte-for-byte; firmware-specific behavior is documented in the per-version function manual.
FAQ
Can a normal IE General (onboard) NIC be used to talk to an S7-414-4H redundantly?
No. A fault-tolerant S7 connection to an H-station requires the SIMATIC NET S7-Redundancy driver, which is bound to a CP 1613 / CP 1623 (or an explicitly licensed Softnet S7-Redundancy). Onboard IE ports only expose the standard TCP/IP socket path used by the regular S7 channel, not the redundant-aware state machine.
What does the "Create Redundant Connection" Dynamic Wizard actually do?
It creates internal tags (@ConnectionState, @ConnectionError, @ConnectionName) and a C-action that toggles the active logical connection between two discrete S7 partners. It is intended for software redundancy against two separate PLCs, not for the synchronized CPU pair inside a single S7-400H station.
Do I need two CP 443-1 modules on the S7-414-4H?
Yes, one per CPU. The S7-Redundancy driver on the OS PC addresses both CP 443-1 IPs as independent partner endpoints and switches the logical connection when the active CPU changes. A single shared CP 443-1 is not sufficient for H-system redundancy.
How many connection resources does one redundant WinCC connection consume on an S7-400H?
One logical redundant connection consumes resources on both partner CPUs (one resource per CPU). The redundant driver exposes a single handle to WinCC, but the controller-side accounting is doubled. Refer to the S7-400H CPU data sheet for the per-CPU maximum and to the S7-1500R/H function manual for the equivalent principle on newer hardware: Connection resources of the redundant system S7-1500R/H.
After a master CPU failover, WinCC briefly shows bad quality on all tags. What parameter controls the recovery time?
Recovery is bounded by the OS polling cycle and the S7-Redundancy driver's partner switch time (typically < 1 s on a healthy network). Increase the WinCC update cycle in the S7-Redundancy channel properties, and verify that the sync-module resynchronization time on the S7-414-4H does not exceed that cycle; otherwise tune the sync link or upgrade the OS polling cadence.
Is the same wizard script approach valid for an S7-1500R/H upgrade?
No. S7-1500R/H also requires the S7-Redundancy driver path and an appropriate CP on the OS side. The Dynamic Wizard artifacts must be removed and the S7-Redundancy channel regenerated by the PCS 7 engineering toolchain for the new controller family.