IMDTouchKnowledge BaseShop main store

Explainer

Why an HMI second Ethernet port does not route PC Runtime to the PLC

HMI and touchscreens Published 6 min read

Short answer

A WinCC flexible transfer to the HMI's second Ethernet port proves only PC-to-HMI reachability. The two interfaces are separate networks; a PC Runtime reaches the controller through an explicitly configured network route or supported S7 routing, never automatic bridging inside the HMI.

On this page
  1. Does a transfer to the HMI's second port prove the PC can reach the PLC?
  2. Why don't two ports on one HMI forward traffic between themselves?
  3. What does each connection test actually prove?
  4. How do you set up the transfer over the second port?
  5. Where does the PC runtime point at the controller, and why does it fail here?
  6. What are the two legitimate ways to give the PC a path to the controller?
  7. Which values must you record before changing any cabling?
  8. What is the decision for each case?
  9. Questions asked

An HMI panel with two Ethernet ports gives you two network interfaces, not a router. The setup is common: a SIMOTION controller, a PLC and the HMI's first port all sit on one machine network, the second port is spare, and the idea is to hang that port on the plant network so a wireless PC can transfer projects and run runtime. The transfer works. The runtime-to-PLC part does not, unless you configure a real route.

Does a transfer to the HMI's second port prove the PC can reach the PLC? #

No. A WinCC flexible transfer to the HMI's second-port address proves exactly one thing: the PC can reach the HMI's transfer service on that interface. In the transfer settings you select Ethernet as the transfer mode and enter the panel's IP address or computer name; that address identifies the download target and nothing else. It does not create any path from the PC to the controller, and it does not change the controller connection inside any project. When the Siemens documentation shows a transfer across two networks, it is S7 routing, deliberately configured on every participating device, not something the second port does by default.

Why don't two ports on one HMI forward traffic between themselves? #

Because an IP address belongs to an interface on a subnet, and forwarding between subnets is a function that must be switched on and configured. A dual-interface panel behaves like any dual-homed computer: each interface answers on its own subnet, and packets arriving on one interface destined for another subnet are dropped unless the operating system is configured to forward them and knows the route. This is the same reason a gateway used as a hub locks up when engineers assume it bridges networks, as covered in why an industrial gateway locks up when used as a network hub. The panel's two ports being in one chassis changes nothing at the network layer.

What does each connection test actually prove? #

Run the tests separately and read each result for what it is worth:

Test What it proves What it does not prove
Ping or transfer to the HMI's second-port address PC-to-HMI reachability on the plant network Any path to the controller on the machine network
HMI's own runtime shows live PLC data The HMI project's controller connection works over the machine network That a PC can reuse that connection
PC runtime shows live PLC data The PC project's controller connection and network path work That the HMI routed anything, unless S7 routing was configured

The middle row is the trap: the panel's runtime and the PC's runtime are separate runtime instances, each with its own configured controller connection. Running runtime on the panel's own CPU is not the same as running runtime on the engineering PC.

How do you set up the transfer over the second port? #

This part is straightforward and safe to do first:

  1. Give the second port an approved address from the plant network design, with the correct subnet mask and gateway.
  2. Connect the port to the plant network and confirm from the wireless PC that the second-port address responds to ping.
  3. In WinCC flexible, select Ethernet as the transfer mode and enter that second-port address as the target.
  4. Run the transfer. A completed transfer confirms the PC-to-HMI path and you stop there for question one of the original setup.

Keep the first port and its machine-network connection untouched throughout; nothing in this procedure touches the controller side.

Where does the PC runtime point at the controller, and why does it fail here? #

The runtime project on the PC points at the controller with the address configured in its own connection, exactly as the panel project does. That address sits on the machine network. The PC, now on the plant network, has no route to it. Worked example with illustrative addresses:

  • PLC: 192.168.214.20, mask 255.255.255.0
  • HMI first port: 192.168.214.30, mask 255.255.255.0
  • HMI second port: 10.10.1.10, mask 255.255.255.0
  • PC on the plant network: 10.10.1.50, mask 255.255.255.0

The PC's routing table has a directly connected route to 10.10.1.0/24 only, plus its default gateway. A ping to 10.10.1.10 succeeds: 10.10.1.10 falls inside the PC's own subnet. A ping to 192.168.214.20 fails: 192.168.214.0/24 is not directly connected and not reachable through the panel, because the panel does not forward. The PC's runtime connection to 192.168.214.20 therefore times out even though the transfer to 10.10.1.10 worked minutes earlier.

What are the two legitimate ways to give the PC a path to the controller? #

Both are documented approaches; pick one and configure it end to end:

  1. S7 routing through the HMI or IPC. S7 routing carries communication across subnet boundaries between configured partners. You enable routing on the dual-homed device, and each participating device (PC engineering interface, controller, HMI) carries routing entries naming the subnets and the forwarding node. The TIA Portal network view manages these routing tables and downloads them with the configuration. The runtime connection is then addressed to the controller and routed through the HMI. This is the arrangement the Siemens transfer documentation depicts for reaching a panel across two networks.
  2. An actual network route. Put a router between the two networks, give the PC and the controller that router as the gateway for the other subnet, and the ordinary TCP connection to the controller's address works. The HMI plays no part in it.

If you want the panel's two ports serving two PLC networks rather than bridging for a PC, that is a different arrangement, covered in configuring dual LAN HMI ports for two PLC networks.

Which values must you record before changing any cabling? #

Write these down from the device configurations, not from memory:

  • Full IP address and subnet mask of the controller, the PLC, the HMI first port, the proposed second-port address and the PC's plant-network address. Partial addresses like 192.168.214.x are enough to plan but not to configure.
  • The PC's mask and gateway on the plant network.
  • Which HMI interface address each transfer targets.
  • The controller address configured in both runtime projects, the panel's and the PC's.

What is the decision for each case? #

  • Transfer projects to the HMI over the plant network: configure the second port, target its address in the transfer settings, done. It works without any routing.
  • Run PC runtime against the controller: not possible over the second port as-is. Either configure S7 routing on every participating device and verify it, or place a real route between the networks, or keep a direct PC connection to the machine network. Choose based on how often the PC runtime is needed: occasional use favors the direct cable, permanent use favors configured routing.

One safety note: do all of this with the machine stopped or on an isolated bench. A runtime connection that fails silently leaves stale values on a PC screen, and an operator trusting a stale screen is a hazard, whatever the network diagram says.

Questions asked

Does enabling S7 routing slow the HMI's own screen updates?

No measurement supports that claim. S7 routing forwards engineering and HMI communication through the device's CPU as configured; on a panel with modest forwarding load it does not compete meaningfully with screen updates. If in doubt, compare screen refresh before and after enabling routing on the bench.

Can a standard office router replace S7 routing between the two networks?

Only if it routes the TCP ports the runtime connection uses and the controller and PC are given it as their gateway. S7 communication over ISO-on-TCP uses port 102; a plain IP router passing that port works, but a NAT-only device hides the controller from the PC's configured connection and breaks it.

Where do you enter the S7 routing tables in the TIA Portal project?

In the network view of the project: open the HMI or IPC's properties, find its routing table under the interface configuration, and verify each listed partner and subnet matches the physical network. The transfer then carries the routing entries to the device with the configuration.

Is the PC runtime's controller connection configured once per project?

Yes. Each WinCC flexible runtime project, whether it runs on the panel or on a PC, carries its own controller connection with its own configured controller address. Copying the panel project to a PC copies that address too, which is why the PC project must be checked against the PC's actual network path.

Keep reading

  • Troubleshooting

    Diagnosing intermittent HMI to PLC Ethernet comms hangs

    Stop changing the topology. Put one packet capture where it can see the PLC-to-HMI unicast exchange — a mirror port or a tap, not a spare switch port — run it through at least three hangs with device logs on the same clock, set every panel update cycle to 1000 ms, and confirm the three devices hold unique IP addresses. Whether panel requests stop or PLC responses disappear decides which side you repair.

    HMI and touchscreens

  • Troubleshooting

    Why a Comfort Panel IP Reverts to 0.0.0.0 After Power Cycle

    The panel is losing its stored network settings at cold start because the settings area on its internal flash is damaged. Repair it with an OS update run with reset to factory settings selected, re-enter the fixed address on the panel, then prove it with a 30 s power-off. Measure the 24 V supply first and correct it if the reading falls outside 19.2 to 28.8 V.

    HMI and touchscreens

  • Troubleshooting

    Configure a PROFIBUS to EtherNet/IP gateway for HMI and PLC

    Selecting PROFIBUS-DP Slave and EtherNet/IP Scanner in SYCON.net assigns only the gateway's own roles on each network. The link still needs the MP277 configured as PROFIBUS DP master from the gateway's GSD description, and the SLC 5/05 configured as the documented target of that scanner connection. Verify each side's status separately before mapping data; PC recognition of the gateway proves none of it.

    HMI and touchscreens