Troubleshooting
Connect a Comfort Panel to a PLCSIM S7-300 with NetToPLCSim
Short answer
Classic PLCSIM listens only inside the PC, so a physical TP900 Comfort panel cannot reach it over the network on its own. Run NetToPLCSim with administrative rights before any Siemens software starts, set Network IP Address to the panel-facing adapter, set PLCSIM IP address to the simulated CPU, point the panel's controller connection at the PC adapter address, and keep the S7DOS Help Service off TCP port 102.
On this page
A classic PLCSIM instance never puts its simulated S7-300 on the wire, so a physical TP900 Comfort panel (6AV2 124-0JC01-0AX0) cannot reach it by assigning an IP in the TIA Portal network view. The working setup is NetToPLCSim as the bridge: it opens the S7 ISO-on-TCP listener on TCP port 102 on the PC's Ethernet adapter and forwards the panel's connection into the simulator. Run NetToPLCSim with administrative rights before any Siemens application starts, enter the PC adapter address in Network IP Address and the simulated CPU address in PLCSIM IP address, then point the panel's controller connection at that adapter address. If the bridge cannot run elevated, stop the S7DOS Help Service by hand first.
Why classic PLCSIM has no external endpoint #
PLCSIM under SIMATIC Manager executes the program inside the PC. STEP 7 V5.5 SP1 and other tools on the same computer reach the simulated CPU without touching the network card, so PLCSIM opens no listener on any adapter. The address drawn in the TIA Portal V12 network view stays project data until something on the PC actually listens at it, so assigning one changes nothing by itself.
NetToPLCSim supplies the missing piece: its documented purpose is to make S7-PLCSim reachable from other machines through the PC's network interface, speaking ISO-on-TCP. That is the same limit described in why an online simulator cannot reach a simulated S7 PLC endpoint — an internal simulator endpoint is not a network address, and no project setting turns one into the other.
Scope the tool to classic PLCSIM driven from SIMATIC Manager, which is the combination in this setup. TIA Portal's integrated PLCSIM and PLCSIM Advanced are separate products with their own endpoint behavior; a posted report of bridging PLCSIM Advanced had to disable its virtual network adapter and was itself untested against NetToPLCSim, so treat that pairing as unproven until a bench run shows it working.
Free the S7 port before the bridge starts #
Every S7 Ethernet connection lands on TCP port 102, and only one process can hold a listener on an address and port. The S7DOS Help Service — in earlier STEP 7 versions the IEPG Helper — starts with Windows, claims every available network interface, and opens its own TCP server on the S7 port. When it wins the race, NetToPLCSim cannot bind its listener and the panel has nothing to connect to.
The order that works, as the NetToPLCSim project discussions document it: restart the PC, and before starting any Siemens application run NetToPLCSim.exe as administrator. Elevated that way, it stops the S7DOS Help Service, captures TCP port 102, and restarts the service behind it. Only then start SIMATIC Manager and PLCSIM and download the program. If the bridge has to run without elevation, stop the service manually in the Windows Services list, then start NetToPLCSim.
If this PC also programs real S7 CPUs day to day, the service's behavior matters beyond one bench session; there is a dedicated page on troubleshooting the S7DOS Help Service for exactly that situation.
Set the two NetToPLCSim address fields #
The two fields do different jobs, and swapping them is the most common self-inflicted failure. Network IP Address takes the address of the PC's wired Ethernet adapter, the one cabled to the panel — the tool's own instruction is to enter your system IP there. PLCSIM IP address takes the address configured for the simulated CPU — the PLC address. The bridge uses the second field internally to find the simulator; the panel never dials it.
Bind the wired adapter deliberately. A PG usually carries Wi-Fi, VPN and virtual adapters next to the NIC, and a listener left on one of those is unreachable from the panel cable. The panel's controller connection targets the Network IP Address value, and no other port entry is needed.
Worked example: panel and PG on one 192.168.1.0/24 link #
Inputs, with the addresses illustrative and the rest from the bench in question: a TP900 Comfort panel at 192.168.1.10 with mask 255.255.255.0; the PC wired adapter at 192.168.1.50 with mask 255.255.255.0; the simulated S7-300 CPU configured at 192.168.1.60; one Ethernet cable between panel and PG.
Rule in words: two devices on one link talk directly when each address combined bitwise with the mask gives the same network number, and the panel must be able to reach the bridge listener rather than the simulator itself.
Arithmetic: 192.168.1.10 AND 255.255.255.0 = 192.168.1.0, and 192.168.1.50 AND 255.255.255.0 = 192.168.1.0. The network numbers match, so the cable is a direct link and no gateway entry is needed on either device.
Settings that follow from the match: Network IP Address = 192.168.1.50; PLCSIM IP address = 192.168.1.60; the panel's controller connection address = 192.168.1.50.
Decision: with this plan the panel's S7 connection terminates on the bridge listener on the PG adapter and NetToPLCSim forwards it to the simulated CPU, so the screens read live simulator values. If the PG also holds a Wi-Fi address on another network, keep the panel on the cable and make sure nothing routes the 192.168.1.0 network somewhere else.
Prove the simulator, then the panel, in that order #
Start PLCSIM from SIMATIC Manager, download the project, and put the CPU in RUN. An open simulator window alone proves nothing: force one input in a watch table and watch the logic drive its output. Pick the one read tag and one write tag the HMI screens actually use and note their addresses and data types, so a later failure is a connection fault and not a wrong tag.
Then download the corrected panel project from TIA Portal V12 to the physical panel, with the controller connection aimed at the PG adapter address. A WinCC runtime on the PG validates screens and tags, but a pass there says nothing about the cable, the listener or the panel. The panel's own built-in simulation is a separate matter with its own limits — see why HMI simulation cannot talk to a simulated PLC.
Work the failures in this order #
- NetToPLCSim not elevated: without administrative rights it cannot stop the S7DOS Help Service or capture the S7 port, and the listener never starts.
- Service still ahead in the queue: start the bridge before any Siemens application, or stop the service by hand first.
- Wrong adapter bound: Network IP Address set to Wi-Fi or a virtual adapter while the panel is cabled to the wired NIC leaves the listener off the panel's network.
- Fields swapped: PLCSIM IP address holding the PC's own address makes the bridge look for the simulator at its own front door.
- Panel still dials the old PLC address: the connection must target the PG adapter address, and the corrected project must be re-downloaded to the panel.
- Subnet or gateway mismatch: repeat the AND check with your real addresses; unequal network numbers need a gateway on both ends.
- Simulator idle: no program downloaded or CPU not in RUN gives a clean connect with no data, so check the watch table first.
- Host firewall: permit inbound traffic on the S7 port for the wired adapter only, and close that opening when the bench session ends.
Questions asked
Where does the value for the PLCSIM IP address field come from?
From the hardware configuration of the simulated S7-300 in SIMATIC Manager: set the CPU's Ethernet address there, download it to PLCSIM, and enter that same value in NetToPLCSim's PLCSIM IP address field. The panel never sees this address. The panel's own connection always targets the PC adapter address held in Network IP Address.
Why does WinCC Runtime on the PG connect while the panel does not?
Runtime on the same PC reaches the simulated CPU locally and never crosses the network, so a pass there tests tags and screens only. The panel must cross the cable, find the bridge listener and get past the host firewall. Test from the panel with NetToPLCSim running as administrator and the S7DOS Help Service out of the way.
Can the S7DOS Help Service stay stopped after the test?
On a bench PC that only runs simulations, yes. On a PC that also programs real S7 CPUs day to day, start it again afterward, because Siemens engineering tools rely on it. NetToPLCSim started as administrator stops the service, captures the listener port and restarts the service afterward, so a shared engineering PC survives a test session.
Which software versions does this setup apply to?
The setup described here pairs TIA Portal V12 for the panel project with STEP 7 V5.5 SP1 and classic PLCSIM for the simulation on the same PG. The bridge works at the ISO-on-TCP level and does not care how the panel project was engineered, but the simulated CPU must be classic PLCSIM; a TIA-integrated PLCSIM instance behaves differently.