IMDTouchKnowledge BaseShop main store

How-to

Connect a CPU 315-2 PN/DP to WinCC Flexible RT over PROFINET

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

Yes. WinCC flexible RT talks to the PN port of a CPU 315-2 PN/DP over ordinary TCP/IP S7 communication, with no PROFINET IO configuration on the HMI side. Give the CPU and the runtime PC addresses on one subnet, select the SIMATIC S7 300/400 driver with access point S7ONLINE, rack 0 slot 2, and bind that access point to the wired network adapter.

On this page
  1. Can WinCC flexible RT reach a CPU 315-2 PN/DP over its PN port?
  2. Which IP addresses do the CPU and the runtime PC need?
  3. How do you set the IP address on the CPU's PN port?
  4. How do you configure the connection in WinCC flexible?
  5. Why does WinCC flexible RT stay offline or show bad tags?
  6. How do you prove the connection works before you rely on it?
  7. Questions asked

Yes — a CPU 315-2 PN/DP serves WinCC flexible RT from its PN port as an ordinary S7 communication partner. The HMI connection runs over TCP/IP, exactly like any Industrial Ethernet link to an S7-300, and needs no PROFINET IO configuration anywhere in the project. Give the CPU and the runtime PC addresses on one subnet, then build one connection row in WinCC flexible with the SIMATIC S7 300/400 driver. The sections below walk through the addressing, the STEP 7 and runtime settings, the faults that keep the link down and the bench test that proves it before the machine runs.

Can WinCC flexible RT reach a CPU 315-2 PN/DP over its PN port? #

Yes. The PN port of the CPU 315-2 PN/DP carries normal TCP/IP S7 communication next to its PROFINET IO traffic, so a PC running WinCC flexible RT connects to it as a standard Industrial Ethernet peer with no special PROFINET configuration and no extra driver on the PC.

Nothing about the HMI side is PROFINET-specific. The CPU is the server of that one-sided S7 communication and the HMI is the client, so the HMI project needs a driver, an address and no PROFINET device entry anywhere. The communication drivers for SIMATIC S7-200 and SIMATIC S7-300/400 controllers come with WinCC flexible and install with it, which is why the connection needs no additional software package on the runtime PC.

A hardware panel on the same port follows the same pattern: a Mobile Panel 277, for instance, is configured with the Ethernet communication setting for PROFINET operation, and the CPU still serves it as an S7 partner. Everything below applies to that case unchanged once the panel's Ethernet communication is enabled.

Which IP addresses do the CPU and the runtime PC need? #

Put both devices on one IPv4 subnet: in this worked example the CPU takes 192.168.0.1 and the runtime PC takes 192.168.0.10, both with subnet mask 255.255.255.0 and an empty router field.

Device Address Subnet mask Role
CPU 315-2 PN/DP, PN port 192.168.0.1 255.255.255.0 S7 server
Runtime PC, WinCC flexible RT 192.168.0.10 255.255.255.0 S7 client (HMI)
Router field on both empty — no routing on the HMI link

Keep the HMI subnet off the plant-wide network: a PROFINET IO substitution or a broadcast storm on a shared segment shows up at the HMI as flickering values and lost tags, and you lose the ability to tell an HMI fault from a network fault. If the segment must be shared, put the addresses in the project documentation so the next engineer knows the plan was deliberate.

Before you assign anything, make sure the runtime PC's address is not already used by another SIMATIC station on the segment. A duplicate address makes the station search come back empty and the connection fail in ways that look like a driver fault rather than an address fault — the same failure described for the case where NetPro rejects a PG/PC with the same Ethernet IP as the SIMATIC station (why NetPro rejects a duplicate Ethernet IP).

How do you set the IP address on the CPU's PN port? #

Assign the address in the CPU's hardware configuration in STEP 7 and download the hardware configuration to the CPU, so the PN port carries its address from the project rather than from a temporary assignment.

  1. Open the S7 project in SIMATIC Manager and start the hardware configuration for the CPU 315-2 PN/DP station.
  2. Open the properties of the PN interface and choose a fixed IP address rather than DHCP; a machine HMI must not depend on a lease renewing.
  3. Enter 192.168.0.1 with subnet mask 255.255.255.0 and leave the router field empty, matching the plan above.
  4. Save and compile, then download the hardware configuration to the CPU.
  5. From the runtime PC, run ping 192.168.0.1 and confirm a reply before you touch WinCC flexible at all.

If the CPU came out of the box without a project, it has no usable address to ping yet — steps 2 to 4 are what give the port one. Configure the CPU first and the HMI second, always in that order; reversing it produces an offline runtime that looks like a WinCC problem.

How do you configure the connection in WinCC flexible? #

One connection row is enough: create it under the RT station's WinCC flexible RT > Communication > Connections view in the project, select the SIMATIC S7 300/400 driver, and enter the CPU's address with its access point and backplane position.

  1. In SIMATIC Manager, open the SIMATIC HMI station and navigate to WinCC flexible RT > Communication > Connections.
  2. Create a new connection and select the driver SIMATIC S7 300/400.
  3. Activate the connection for online operation so the runtime opens it at startup.
  4. Enter the CPU's address from the plan as the PLC address — four octets separated by dots, no subnet mask.
  5. Set rack 0 and slot 2, the backplane position of an S7-300 CPU.
  6. Leave the access point at its default for S7 communication, and set the tag acquisition cycle to fit the value — 1 s cyclic, for example, for ordinary process values.

Then open Set PG/PC Interface on the runtime PC and bind the access point named S7ONLINE to the wired network adapter that faces the CPU. With more than one adapter present — LAN plus Wi-Fi — leave only the wired entry in that access point's assignment. The wireless adapter must not appear there, because the access point decides which physical port carries every S7 telegram the runtime sends.

Why does WinCC flexible RT stay offline or show bad tags? #

Work through three causes in order: a broken physical link, an access point bound to the wrong network adapter, and a CPU that has no free HMI connection resource left.

  • No ping reply. Cabling or addressing. The PN port runs standard switched Ethernet at up to 100 Mbit/s, so a plain patch cable to a switch or a direct link to the PC is enough; check the link LEDs before opening any software.
  • Ping works, the runtime stays offline. The access point is bound to the wrong adapter. The classic variant is a runtime that only connects while a TIA Portal session is open, because the other application has taken the access point — the same mechanism described for WinCC runtime that connects to the PLC only via TIA Portal (fix WinCC runtime that connects only via TIA Portal).
  • The runtime connects but tags stay bad or frozen. The CPU has no free connection resource for the HMI. Every panel, runtime and engineering tool holds one of the CPU's OP resources while connected, and the accounting behaves exactly as it does when an S7-1200 runs out of HMI connection resources (why an S7-1200 runs out of HMI connection resources); close unused engineering sessions and panels and the tags return.
  • The connection never opens even with the right driver. Check which network the connection row was built for. If the tags were entered under a serial network selection, the row points at a transport the PN port does not serve — the reason WinCC flexible asks for PPI, MPI or DP up front is that this choice fixes the transport for the whole connection (why the WinCC flexible network choice is PPI, MPI or DP).

One safety rule for the next section: do the write test on an isolated bench or a stopped machine, because a tag write from the runtime goes straight to the process without an intermediate confirmation step.

How do you prove the connection works before you rely on it? #

Prove the link on the bench before the machine runs: one tag, one screen, a value change from the PLC side, then a deliberate cable interruption and recovery.

  1. Load a known value into a data block word in the CPU, from STEP 7 or from an operator field.
  2. Run WinCC flexible RT with one screen showing one tag on the new connection, cyclic acquisition, and confirm the displayed value tracks the CPU value within one acquisition cycle.
  3. Write to the tag from the runtime and confirm the new value arrives in the CPU, read back online with STEP 7.
  4. Unplug the Ethernet cable and confirm the runtime reports a connection fault instead of freezing stale values; restore the cable and confirm the tag returns within the next cycle.

The decision: if the tag tracks on both a read and a write and recovers cleanly after one interruption, the PN port connection is production-ready. Keep the CPU's fixed address, the access point binding and the rack and slot pair in the project documentation so the next engineer rebuilds the link in minutes instead of rediscovering it.

Questions asked

Does the runtime PC need SIMATIC NET or other extra communication software?

No. The communication drivers for SIMATIC S7-200 and SIMATIC S7-300/400 controllers ship with WinCC flexible and install automatically, and the HMI connection itself is plain TCP/IP. What the PC does need is the access point named S7ONLINE mapped to the wired network adapter in the PG/PC interface settings, and a runtime license that matches the runtime version you install.

Can a hardware panel instead of a PC use the same PN port the same way?

Yes. Panels treat the link the same way: a Mobile Panel 277, for example, is configured with the Ethernet communication setting for PROFINET operation, and the CPU still serves it as the S7 partner. The addressing plan, the driver family and the rack and slot entries follow the same pattern as the runtime PC connection in this article.

What do the rack and slot numbers mean in the connection settings?

They describe where the CPU sits on the backplane. A CPU 315-2 PN/DP occupies rack 0 at slot 2, so those are the values the connection needs no matter where its PN port physically plugs in. Multi-rack systems such as S7-400 use other rack numbers, which is why the field exists at all.

Can I leave the PC's Wi-Fi adapter enabled while the runtime runs?

Yes, as long as the access point used by the connection is bound explicitly to the wired adapter. If it is left on automatic, the operating system can route the S7 traffic to the wireless adapter; the ping still answers and the runtime still sits offline. Bind the access point to the wired entry only and the wireless link stops competing for it.

Keep reading

  • How-to

    Transfer a WinCC flexible project to an MP277 via S7 routing

    Yes, the engineering PC reaches the CPU 315-2 PN/DP over Ethernet, the CPU forwards the WinCC flexible transfer onto its MPI subnet, and the MP277 receives it at its MPI node address. That takes the CPU's routing configuration compiled and loaded, the panel configured on the MPI subnet, transfer enabled on the panel's MPI/PROFIBUS channel, and the PC's online access bound to its Ethernet adapter. Routing never targets the panel's Ethernet channel.

    HMI and touchscreens

  • Troubleshooting

    Why a WinCC flexible PC runtime connection stays on Softbus

    When the communication interface in a WinCC flexible PC runtime project is stuck on Softbus, the project's HMI target or connection definition still describes a software controller, not an external CPU. Copying the project carries that configuration with it. Rebuild a clean PC runtime target with an IE connection to the CPU and import the screens and tags selectively.

    HMI and touchscreens

  • How-to

    Connecting a PROFIBUS DP slave to WinCC flexible over OPC

    Yes, no PLC is needed: a PC with a CP 5611 and SIMATIC NET takes the PROFIBUS DP master role, the slave-only device is configured from its GSD file inside the PC station, and the SIMATIC NET OPC server publishes its cyclic data. In WinCC flexible you select the OPC channel, not a controller driver from the device list.

    HMI and touchscreens

Why a WinCC named connection fails when TCP/IP tags work