Overview
This reference describes how to bring a WinCC flexible Runtime station (running on a SIMATIC IPC or third-party PC) online against a SIMATIC S7-400 controller through a CP443-1 Ethernet communications processor. The configuration paths shown apply to WinCC flexible 2008 / 2008 SP2 / SP3 / SP4 / SP5 and the matching STEP 7 V5.4 / V5.5 engineering toolset, all integrated inside the SIMATIC Manager.
The most common failure mode reported in the field is that the configured S7 connection between WinCC flexible RT and the S7-400 CPU shows status Offline / Disconnected even though the project was created inside STEP 7 and compiled without errors. The root cause in nearly every case is a mismatched Ethernet node type in the WinCC flexible RT station: the station is created with a generic IE General interface that does not advertise the S7 communication services required by WinCC flexible. Replacing the IE General node with an HMI IE node brings the connection online immediately.
Prerequisites
- STEP 7 V5.4 SP3 or later (V5.5 recommended) with the HSP for the CP443-1 firmware installed.
- WinCC flexible 2008 SP2 or later, integrated into the SIMATIC Manager so that the WinCC flexible ES appears as a sub-project of the S7 project.
- SIMATIC S7-400 station with a CPU 41x-3 PN/DP or CPU 41x-4H and at least one CP443-1 in the central rack (UR1/UR2/CR2) or in an expansion rack with IM460/IM461.
- SIMATIC IPC (e.g. IPC227G, IPC427D, IPC477D, IPC647C) or a panel PC with Windows XP SP3 / Windows 7 (32-bit) / Windows 7 Embedded Standard. WinCC flexible RT is certified for these operating systems per the WinCC flexible Release Notes.
- Admin rights on the IPC for the WinCC flexible RT installation and for the SIMATIC Net / PC station configuration.
- An Ethernet switch or direct patch cable (CP443-1 ↔ IPC) on the same IP subnet, plus valid IP addresses, subnet masks, and (if used) router addresses.
Network Topology
The reference architecture is a single Industrial Ethernet subnet that carries the S7 communication between the HMI station and the controller. Switched Ethernet (managed IE/PB switches from the SCALANCE XC/XB/XR family) is recommended for any installation that also carries PROFINET or that will scale beyond a single HMI.
Hardware Configuration of the S7-400 Station
Open the S7-400 station in HW Config and place the CP443-1 in a free slot. The slot is required later for the S7 connection target. A common arrangement is:
| Slot | Module | Order number (example) | Notes |
|---|---|---|---|
| 1 | PS 405 10A | 6ES7405-1KA02-0AA0 | Power supply, mandatory slot 1 |
| 2 | — | — | Reserved / empty |
| 3 | CPU 416-3 PN/DP | 6ES7416-3ES06-0AB0 | Firmware V6.0 or later |
| 4 | — | — | Reserved / empty |
| 5 | CP 443-1 | 6GK7443-1EX30-0XE0 | Industrial Ethernet, ISO/TCP + TCP/IP |
| 6…9 | DI/DO/AI/AO | 6ES7… | Signal modules as required |
Double-click the CP443-1 to open Properties – CP 443-1. Configure the IP address, Subnet mask, and (optionally) a router. Under Ethernet -> Network Settings, enable the protocols used by WinCC flexible:
- ISO-on-TCP (RFC1006) – required for S7 communication via the S7-protocol family. This is the default transport used by WinCC flexible when the HMI IE node is selected.
- TCP/IP (native) – only required for S7 connections using the open TCP/IP variant (rarely used with WinCC flexible).
- Send / Receive mailbox – not used by WinCC flexible; can stay disabled.
Adding the WinCC flexible RT Station to the STEP 7 Project
Inside the SIMATIC Manager, insert a new station that represents the IPC:
- Right-click the project → Insert New Object → SIMATIC PC Station.
- Open HW Config for the new PC station. By default the catalog offers an IE General interface under SIMATIC PC Station -> CP & IF -> IE. Delete this IE General entry; the IE General node does not carry the WinCC flexible S7 protocol and the connection will never reach the S7-400.
- Insert an HMI IE interface instead: SIMATIC PC Station -> HMI -> HMI IE. Place it in slot 1 (or the slot reserved for the HMI software). The HMI IE node has the S7-on-TCP service active and is the node that WinCC flexible Runtime expects to bind to.
- Set the IP address of the HMI IE node to match the IPC's industrial Ethernet adapter (for example 192.168.0.10 / 255.255.255.0).
- Save and compile the PC station (Station → Save and Compile). The compiled configuration is exported as a *.pc file* and downloaded to the IPC with the PC Station Configuration Editor or via Station Configuration -> Import Station from a WinCC flexible project that uses the same STEP 7 integration.
Configuring the S7 Connection in NetPro
With the PC station (HMI IE node) and the S7-400 station (CP443-1) both inserted in the project, open NetPro. The HMI IE node on the PC station and the CP443-1 on the S7-400 station should each show a green S7 endpoint indicator when the compiled configurations match. Add an S7 connection as follows:
- Select the HMI IE node on the PC station row.
- Right-click → Insert New Connection → partner: the S7-400 station, type: S7 connection.
- In the connection properties dialog verify the parameters:
| Field | Local end (HMI IE) | Partner end (CP443-1) |
|---|---|---|
| Endpoint | HMI IE / IPC Ethernet | CP443-1 |
| Interface | Industrial Ethernet | Industrial Ethernet |
| Address (IP) | 192.168.0.10 | 192.168.0.20 |
| Rack / Slot | 0 / 0 (PC station) | Rack 0, Slot 5 (CP443-1) |
| Connection name | e.g. S7_HMI_to_400
|
|
| Connection path | S7 → ISO-on-TCP (default) | |
Save and compile NetPro. The connection is now part of the STEP 7 project; it is not yet active on the IPC, only on the ES.
WinCC flexible Connection Configuration
Open the WinCC flexible project that is integrated under the PC station. Switch to Project → Communication → Connections. Because WinCC flexible is integrated into STEP 7, the S7 connection you just created in NetPro is offered as a choice. Add a new connection of type SIMATIC S7 300/400 and point it to the existing NetPro connection S7_HMI_to_400.
If WinCC flexible is being used standalone (without STEP 7 integration), create the connection manually:
| Parameter | Value |
|---|---|
| Communication driver | SIMATIC S7 300/400 |
| HMI device | PC → WinCC flexible Runtime |
| Connection type | S7ONLINE (ISO-on-TCP) |
| Station address (HMI) | 192.168.0.10 |
| Partner IP (CPU side) | 192.168.0.20 |
| Partner rack | 0 |
| Partner slot (CP443-1) | 5 |
| Cycle / acquisition | 1000 ms typical, 250 ms for fast tags |
The Partner slot value must point at the CP443-1, not at the CPU. WinCC flexible routes the S7 frames through the Ethernet CP; the CP443-1 in turn forwards them to the CPU over the backplane. If the slot is wrong the connection setup will be refused by the CP.
Downloading the Configuration to the IPC
- On the IPC, install the SIMATIC Net PC software that matches the WinCC flexible RT version (or, for the integrated case, the SIMATIC Net that ships with STEP 7 V5.x).
- Start the Station Configuration Editor (Start → SIMATIC → SIMATIC NET → Configuration → Station Configuration Editor). The HMI IE node and its index correspond to the one defined in HW Config of the PC station.
- Import the compiled PC station configuration: Station → Import Station, then select the
*.pcfile generated by NetPro. - Start WinCC flexible Runtime. The status bar of the project must show the connection as Online; tags are polled from the CPU.
Verification
After the runtime starts, run the following checks in order. Each step gives a quick pass/fail signal that pinpoints the layer at which a fault lives.
- Layer 1 (cable/port): The link LED on the CP443-1 and on the IPC Ethernet adapter must be lit. If it is off, replace the patch cable or the SFP (SCALANCE fiber ports).
-
Layer 3 (IP): From the IPC open a command prompt and run
ping 192.168.0.20. A reply confirms the subnet; a timeout means the wrong IP, no default gateway, or VLAN separation. - S7 endpoint (Station Config): The Station Configuration Editor must show the HMI IE module as Configured and Running. If the module stays in Fault, the SIMATIC Net installation does not include the HMI IE driver or the imported *.pc file does not match the installed SIMATIC Net version.
- WinCC flexible status: Start the runtime in Configuration mode (WinCC flexible RT → File → Start Runtime). Open the connection diagnostics via Tools → Status of Connections. A green check next to the S7 connection means the S7 handshake completed; the OPC/area pointers (date/time, job mailbox) should also be green.
-
Tag test: Configure a tag, e.g.
DB1.DBD0, and display it in a screen with the Output field configured to refresh every second. The value must follow the value in the CPU online watch table. - PG diagnostic: From STEP 7, choose PLC → Diagnostics → Operating Mode and then PLC → Module Information on the CP443-1. The connection list must show an established S7 connection from the IPC.
Troubleshooting Matrix
| Symptom | Likely cause | Fix |
|---|---|---|
| Connection stays offline, Station Config shows HMI IE in Fault | WinCC flexible RT installed with the wrong SIMATIC Net variant (e.g. SOFTNET-DP instead of S7ONLINE), or imported PC station mismatches installed version | Reinstall SIMATIC Net for the same release as WinCC flexible RT, re-import the *.pc file, restart the S7DOS service |
| Connection offline, HMI IE in Configured | PC station was created with IE General in HW Config | Replace the IE General node with HMI IE in HW Config of the PC station, recompile NetPro, re-import *.pc to the IPC |
| Connection offline, HMI IE in Running, ping OK | Wrong partner slot in the WinCC flexible connection; the S7 frames hit the CP but cannot be routed to the CPU | Set Partner slot to the physical CP443-1 slot (commonly slot 5). Re-download the WinCC flexible RT project |
| Connection online, tags show question marks / quality bad | Tags address memory areas that the CPU does not have (e.g. DB1 outside the loaded blocks, or bit memory beyond the configured size) | Compare the tag addresses against the S7-400 symbol table; expand the configured DB or remap the tag |
| Connection oscillates online / offline every few seconds | CP443-1 has reached the maximum number of S7 connections (16 for 1EX30, 32 for 1EX40) | Consolidate connections or upgrade to CP443-1 Advanced. Verify with Module Information -> Connections on the CP |
| Connection fails only after PG/PC interface is changed | Set PG/PC interface was switched from S7ONLINE to a different access point | Open Set PG/PC Interface in Control Panel, set S7ONLINE (STEP7) → <Intel network card> |
| Connection works on a different subnet but not on the plant | Plant switch has VLAN / ACL that blocks ISO transport (TCP/102) | Allow TCP/102 between the IPC and the S7-400 CP; verify with Wireshark filter tcp.port == 102
|
| Connection works initially, drops after Windows update | Windows update changed firewall or jumbo-frame / offload settings of the Ethernet adapter | Allow WinCC flexible RT and S7DOS through Windows Firewall, disable TCP/UDP offload on the industrial Ethernet adapter |
Variant: Standalone WinCC flexible (No STEP 7 Integration)
If the WinCC flexible project is edited on a workstation without STEP 7 integration, the Connections editor in WinCC flexible is the only place to define the S7 link. Use the same parameters as the integrated case (table above), but be aware that:
- The PC station configuration must be set up manually on the IPC using the SIMATIC NET Configuration Console, mapping the WinCC flexible S7ONLINE channel to a physical Ethernet adapter.
- No *.pc file is generated; the S7 connection exists only inside the WinCC flexible project.
- Two ES stations editing the same project must not differ on the S7 connection parameters; the project always loads on the IPC with the values that were last compiled in the project.
Variant: Redundant S7-400 (H-CPU) and CP443-1 Advanced
With a redundant S7-400 (CPU 41xH) and a CP443-1 Advanced (6GK7443-1EX40-0XE0), WinCC flexible connects to the active CPU through the single IP address that the H-system exposes (the CP443-1 Advanced does the failover). No changes are required on the WinCC flexible side; only the STEP 7 project must contain both H-CPUs and the redundancy configuration compiled in HW Config.
Commissioning Checklist
- CP443-1 firmware and STEP 7 HSP versions match (see STEP 7 Readme for the supported CP443-1 versions).
- PC station in HW Config uses an HMI IE node, not IE General.
- NetPro connection points at the CP443-1 slot, not at the CPU slot.
- WinCC flexible RT connection type is SIMATIC S7 300/400 with S7ONLINE access point.
- Set PG/PC interface on the IPC is S7ONLINE (STEP7) → <IPC LAN adapter>.
- SIMATIC NET version on the IPC matches the STEP 7 version used to compile the *.pc file.
- Windows Firewall allows the S7DOS service and the WinCC flexible RT process.
Why does my WinCC flexible RT project stay offline even though NetPro was saved and compiled?
The PC station almost certainly contains an IE General interface instead of an HMI IE interface. Open HW Config of the PC station, delete the IE General entry, insert an HMI IE from SIMATIC PC Station -> HMI -> HMI IE, recompile NetPro, and re-import the *.pc file to the IPC.
Do I have to use NetPro for a WinCC flexible to S7-400 link?
Yes, when the WinCC flexible project is integrated into a STEP 7 project. NetPro generates the S7 connection that WinCC flexible references. For a standalone WinCC flexible project, you can define the S7 connection directly inside WinCC flexible without using NetPro.
Which slot do I have to enter as the partner in the WinCC flexible connection?
The partner slot is the slot of the CP443-1 in the S7-400 rack, not the slot of the CPU. Common placement is slot 5; check HW Config of the S7-400 station. If the slot is wrong, the CP443-1 will refuse the S7 setup frames even though the IP and ping are correct.
Is ISO-on-TCP the right transport, or should I use native TCP/IP?
WinCC flexible uses ISO-on-TCP (TCP port 102) for all S7 connections to S7-300/400. Enable ISO-on-TCP on the CP443-1 under Ethernet -> Network Settings. Native TCP/IP is used for open communication with FETCH/WRITE or for S7 communication with the Send/Receive interface and is not required here.
How many WinCC flexible RT stations can talk to a single CP443-1?
The CP443-1 (1EX30) supports 16 S7 connections in parallel; the CP443-1 Advanced (1EX40) supports 32. Each WinCC flexible RT station uses one S7 connection. If you need more, consolidate the HMI panels via a WinCC Comfort/Professional server, or upgrade the CP.