IMDTouchKnowledge BaseShop main store

Troubleshooting

Why a PC HMI runtime needs the controller in the same IP subnet

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

Running HMI runtime on a PC without a panel does not remove the Ethernet requirement: the PC and the controller must sit in one IP subnet. AND each address with its subnet mask — for example 192.168.0.10 and 192.168.0.2 with a 255.255.255.0 mask both give 192.168.0.0 — and only a match connects. Setting the access point alone does not prove the path.

On this page
  1. Why does a PC running HMI runtime still need an Ethernet path to the controller?
  2. What puts two devices in the same IP subnet?
  3. How do I check and fix the addresses on the runtime PC and controller?
  4. Why didn't setting the S7ONLINE access point fix the connection?
  5. What if the addresses look close but the subnets differ?
  6. Which project-version problems look like a connection fault?
  7. What should I collect when the runtime still will not connect?
  8. Questions asked

A PC that runs HMI runtime in place of a panel is the operator station, and it must reach the controller over a real Ethernet network exactly as a panel would. In the reported cases the fault is nearly always the same: the runtime PC and the controller sit in different IP subnets, so no screen setting can compensate. The fix is a two-line calculation — apply each device's subnet mask to its address and compare the results — and it decides the case before any tag or project work starts. This article walks through the calculation with example values, gives the check order from cable to project, explains why a configured access point is not proof of a connection, and lists what to collect when the runtime still will not talk.

Why does a PC running HMI runtime still need an Ethernet path to the controller? #

Because the PC is the operator station: without a panel, the runtime software itself must open the connection to the controller over a physical Ethernet network, and a software access point cannot replace the cable, the switch, and the IP addresses at both ends.

Reported setups confirm it from both sides: the one that worked put the runtime station on the PC's own address, inside the controller's subnet, while the failing one treated the missing panel as a reason the network should not matter. A panel-less runtime inherits every connection duty the panel had, down to the last cable. The setup work that comes before the connection — installation, licensing, first start — is covered in the guide to running an HMI project runtime on a PC without the panel; this article starts where that one ends, at the network fault.

If the PC is to stay at the machine as the permanent operator station instead of an engineering laptop on temporary duty, specify it as machine-grade hardware: industrial panel PCs combine the touchscreen, the runtime computer, and a panel-mount enclosure in one unit meant for the cabinet or the arm.

What puts two devices in the same IP subnet? #

Two devices share a subnet when their IP addresses, each combined with its own subnet mask, produce the same network address: bitwise-AND the address with the mask, compare the two results — equal means a direct path exists, different means it does not.

Work the rule with example values; these are illustrative numbers, not site addresses. A runtime PC at 192.168.0.10 with subnet mask 255.255.255.0 and a controller at 192.168.0.2 with the same mask both reduce to the network address 192.168.0.0:

192.168.0.10  AND 255.255.255.0  =  192.168.0.0     last octet: 10 AND 0 = 0
192.168.0.2   AND 255.255.255.0  =  192.168.0.0     last octet:  2 AND 0 = 0
192.168.1.10  AND 255.255.255.0  =  192.168.1.0     third octet: 1 stays 1

The third line is the fault case: the PC's third octet is 1, the mask keeps it, and the two network addresses disagree.

Case Device IP address Subnet mask Network address Decision
Working Runtime PC 192.168.0.10 255.255.255.0 192.168.0.0 Direct path
Working Controller 192.168.0.2 255.255.255.0 192.168.0.0 Direct path
Fault Runtime PC 192.168.1.10 255.255.255.0 192.168.1.0 No direct path
Fault Controller 192.168.0.2 255.255.255.0 192.168.0.0 No direct path

With this mask, the first three octets of both addresses must match — that is the whole test, and no setting inside the HMI project can override it.

How do I check and fix the addresses on the runtime PC and controller? #

Check four things in order — the cable path, the PC interface address and mask, the controller address and mask, and the calculated network addresses — and correct whichever one breaks the match, keeping every other device on the network reachable.

  1. Confirm the physical path: PC and controller cabled to the same switch with Cat 5 grade or better, link LEDs lit at both ends.
  2. On the runtime PC, read the address and mask of the interface that carries the runtime traffic; on Windows, ipconfig lists every interface with its own values.
  3. On the controller, read the address and mask from its own network settings screen or from the values configured in its program.
  4. Reduce both addresses to network addresses as above and compare them.
  5. From the PC, ping the controller address: a reply proves the IP layer, and silence after a passing calculation points back to the cable, the switch, or a firewall on the PC.
  6. Correct whichever value breaks the match — usually the PC's, because the controller's address is tied into its program and often into other devices' expectations — while staying inside the plant's addressing plan.

One address must never appear twice on the same network. A duplicate fails in its own way, covered in the article on why NetPro rejects a PG/PC with the same Ethernet IP as your SIMATIC PC.

Why didn't setting the S7ONLINE access point fix the connection? #

Setting the access point only tells the PC which interface to send from; it does not create a path. In the reported case the access point was set and the addresses looked right, yet the connection still failed, so the access point is a check, not a proof.

The setting lives in Windows Control Panel: open Set PG/PC interface, and under the application access point select the entry S7ONLINE (STEP 7) together with the PC's Ethernet interface. That points WinCC flexible Runtime at one network card, nothing more — the cable, the addresses, and the project still have to be right on their own. Treat the access point as one line on the checklist, after the physical path and the subnet calculation, never as the step that proves the connection. The configuration itself, including a simulation setup that uses the same access point, is described in the article on connecting WinCC to PLCSIM through the S7ONLINE access point.

What if the addresses look close but the subnets differ? #

Close is not the same: 192.168.1.10 and 192.168.0.2 sit one octet apart, yet with the 255.255.255.0 mask their network addresses come out 192.168.1.0 and 192.168.0.0 — different subnets, no direct connection, and the runtime will never find the controller.

The mask decides where the network part of the address ends, so with a 24-bit mask the first three octets of both addresses must be identical. Inside a machine cell there is normally no router between the runtime and the controller, which makes the decision binary: identical network addresses, or no connection at all. The practical fix is to bring the newly added device — almost always the PC — into the controller's network by giving it an address whose first three octets match, as long as the plant's addressing plan allows that address. A PC joining an existing machine network takes the network's parameters; the network does not adapt to the PC. If the site plan forbids that address, readdress the machine network as its own isolated subnet rather than routing between the two.

Which project-version problems look like a connection fault? #

A project that will not open stops the work before any connection is attempted: one reported case had WinCC flexible 2008 SP5 Update 1 crash while opening a project created in SP3, so the screen never reached the point where a subnet fault could even show.

That is one reported opening failure between an authoring version and an opening version, not a measured compatibility rule — but it shows why the tool version belongs in the record before any network work starts. Note the version that created the project and the version opening it now, and keep a compressed copy of the project untouched before any conversion attempt. If the tool refuses the file, capture the complete error text, because a truncated message hides the difference between a version fault and a connection fault. Fix the file first, then run the network checks; otherwise a healthy network gets blamed for a project that never launched.

What should I collect when the runtime still will not connect? #

Collect the identification and the evidence in one pass: the controller's order number and firmware version, the compressed controller and runtime projects, the engineering-tool version, the full error text, and screenshots of the tag, communication, and screen settings.

The order number and firmware version come first, because LOGO! generations differ in their Ethernet behavior and in what an HMI driver can address; they are the first values requested whenever a connection resists diagnosis. Send the compressed controller program and the compressed runtime project together so the project side and the network side can be checked against each other. Once a ping succeeds and tags still refuse to update, the fault has moved past the subnet: separate genuine communication failures from controller timing with the article on separating PLC scan time from real HMI communication faults, and use the runtime's own event list — the article on extending the HMI system event display time shows how a longer display window keeps the fault entry on screen long enough to read it.

Questions asked

Does the subnet mask matter if both devices are plugged into the same switch?

Yes. The switch forwards frames, but IP only delivers between devices whose addresses give the same network address once the mask is applied. Two devices on one switch with different network addresses still need a router between them, so the runtime cannot reach the controller even though the cable and link lights are fine.

Why does the connection work against a simulated controller but fail against the real one?

A simulation runs on the PC itself, so the runtime reaches it without any Ethernet path, and the check never exercises addresses, masks, or cables. The same project can look healthy in simulation and fail on the machine, which is why the subnet calculation has to be done against the real controller's configured address.

Which two numbers identify a LOGO! controller for a connection fault?

The order number and the firmware version. LOGO! generations differ in Ethernet behavior and in how an HMI driver may address them, so they are the first values requested whenever a connection resists diagnosis. Read the order number from the rating label on the module and the firmware version from the controller's own information screens.

Can the runtime PC stay on the office network at the same time?

Only if the runtime traffic leaves on the interface that sits in the controller's subnet. The access point setting ties the application to one chosen interface, so on a PC with two network cards, select the card wired to the machine network and leave the office card out of the runtime configuration. Keep the two networks separate rather than bridging them.

Keep reading

  • Troubleshooting

    Why WinCC Runtime Professional Shows No Data From PLCSIM

    The runtime window opening with static screens means the runtime process runs but its path to the simulated CPU does not. Point the access point in Set PG/PC Interface at PLCSIM or the matching TCP/IP route, compile the PC station, connect the TIA project to PLCSIM, and put the CPU in RUN before the runtime starts.

    HMI and touchscreens

  • Troubleshooting

    Why NetPro rejects a PG/PC with the same IP as your SIMATIC PC

    NetPro is rejecting the project because two declared stations claim one Ethernet address. Your engineering computer and the SIMATIC PC station are the same machine, so you do not add a second logical station: assign the engineering access through the existing station's interface, then send the Mobile Panel 177 project over the S7 route from WinCC flexible 2008.

    HMI and touchscreens

  • Explainer

    Why online simulation needs a PC interface the HMI driver supports

    Online simulation makes the PC act as the panel, so the PC must present the same physical interface and protocol settings the project configured. For an S7-300 project set to two-wire RS-485 at 187.5 kbps, station 2, the PC Adapter alone does not guarantee a working simulator path: the selected HMI driver must document that adapter as an interface it can use.

    HMI and touchscreens

Why WinCC cannot switch PLC connection IP at runtime