IMDHMIControls LibraryShop main store

Troubleshooting

Why a remote TIA Portal download to an S7-1200 needs a VPN

Industrial networks Published 6 min read

Short answer

A remote TIA Portal download to an S7-1200 needs a VPN, not port forwarding alone: discovery runs on subnet-local broadcasts that no router forwards, and the S7 session rides ISO-on-TCP to the CPU's own address, which a single forwarded port cannot map to more than one device. Put a routed tunnel in place and address the CPU directly, or hand off a prepared Automation Tool package or program card.

On this page
  1. What TIA Portal puts on the wire
  2. Why port forwarding alone cannot carry the download
  3. What the VPN changes, in numbers
  4. Field checklist when no accessible nodes appear
  5. Handing off a program when no tunnel is approved
  6. The decision, case by case
  7. Questions asked

A remote TIA Portal download to an S7-1200 needs a VPN, not port forwarding alone, because the engineering session is more than one TCP stream to one port. The accessible-devices scan runs on subnet-local Ethernet broadcasts that no router carries, and the S7 session itself is ISO-on-TCP aimed at the CPU's own address and TSAPs. A forwarded port maps one public port to one private device and leaves an unauthenticated CPU listener facing the internet. Put a routed tunnel between the engineering station and the plant subnet, then address the CPU directly. Where no tunnel can be approved, prepare the program in TIA Portal and hand it over as an Automation Tool package or a program card prepared in your card reader. The sections below show what the connection puts on the wire, the subnet arithmetic that decides reachability, and the decision for each case.

What TIA Portal puts on the wire #

Two traffic types matter, and they fail differently across a WAN.

Discovery. When TIA Portal lists accessible devices, it asks the local Ethernet who is there, using PROFINET DCP identify and related broadcast or multicast traffic. Broadcasts stop at the first router, and a NAT gateway is not a bridge, so the list comes back empty across an internet link. An empty list over a WAN is a scanning limitation, not a CPU fault; cross-subnet discovery comparison between TIA Portal and RSLinx shows exactly where that difference comes from. Once a routed path exists, ignore the scan and enter the CPU's address directly.

The S7 session. The download itself is an S7 connection: ISO-on-TCP per RFC 1006, over TCP port 102, with the local and remote TSAP values configured in the project matching the CPU's. The CPU's PN port carries that session next to its other traffic; how one S7 CPU PN port runs Modbus TCP and S7 comms together covers what shares the port. The hard requirement is therefore end-to-end TCP reachability to the CPU's address on the S7 port — a routing question, not a port-mapping question.

Why port forwarding alone cannot carry the download #

A forwarding rule is a pinned one-to-one mapping: one public address, one external port, one private IP. Forward the S7 port to 192.168.0.12 and the CPU at 192.168.0.11 has no path at all; add a second rule for that CPU and both now have public listeners. Three consequences follow:

  • The scan never works. Broadcasts do not traverse the mapping, so the accessible-devices list stays empty no matter how the router is set.
  • Everything else stays dark. The CPU's web server, a panel on the same subnet and any drive each need their own public mappings.
  • The exposure is standing. An S7 listener answering on a public address is reachable by every internet scanner around the clock, and the protocol was never designed as an internet-facing service.

Remote-desktop control of a PC at the site changes only who sits at the keyboard; that PC still needs a licensed TIA Portal, which is precisely what the client lacks. And a "no accessible nodes" result under forwarding is the expected outcome of all three consequences above, not a misconfigured PLC.

What the VPN changes, in numbers #

A VPN replaces the pinned mapping with a routed path: the engineering station gets IP reachability into the plant subnet at every port, and nothing on the plant side becomes public. The reachability question reduces to ordinary subnet arithmetic.

Worked example. The VPN client receives, for example, address 192.168.10.50 with mask 255.255.255.0; the S7-1200 sits at 192.168.0.12 with the same mask:

  • 192.168.10.50 AND 255.255.255.0 = 192.168.10.0 — the engineering PC's network ID
  • 192.168.0.12 AND 255.255.255.0 = 192.168.0.0 — the CPU's network ID
  • The two network IDs differ, so the session needs a route; the tunnel supplies one for the whole plant network, while a forwarded port supplies no route at all, only a mapping pinned to TCP port 102.

Give the client an address inside the plant subnet instead, for example 192.168.0.50, and even the broadcast scan crosses the tunnel as if the PC were on site.

Either way, enter the CPU's plant address directly in the device's online settings. The same subnet-membership rule that decides local bench connectivity decides the remote path; why an S7-1200 is reachable only after TIA Portal adds a PC IP address walks the local case. For the architecture trade-off itself, a comparison of VPN and port 502 forwarding for PLC remote access reaches the same conclusion for a different port.

Field checklist when no accessible nodes appear #

Work the remote site in this order:

  1. Confirm the tunnel is up and note the address it gave the engineering PC; compute that address's network ID against the CPU's as above.
  2. Skip the scan: enter the CPU's plant address in the online access settings and attempt the connection directly.
  3. If the S7 session still will not open, test plain TCP reachability to the CPU's address on the S7 port from the engineering PC.
  4. Treat link lights on the client's switch as cable physics, not routing; why an S7-1200 shows link lights but TIA Portal cannot connect works that exact fault.
  5. When the path is good and the load still refuses, check whether the CPU is demanding a stop transition before blaming the network; why an S7-1200 download in run demands a STOP transition covers that case.

One safety note: a remote download can stop a running process with nobody standing at the machine, so agree the safe state with the process owner before you push.

Handing off a program when no tunnel is approved #

When a VPN cannot be agreed, two documented paths move a verified program without TIA Portal at the client end:

  1. SIMATIC Automation Tool. Create and verify the program in TIA Portal on your side, produce the transferable package by writing it to the memory card in your card reader (in TIA Portal's program-card workflow, drag the CPU device from the project tree onto the card), send that package to the site, and have the client load it with SIMATIC Automation Tool, which the vendor distributes through its support portal as the commissioning and service tool for SIMATIC modules.
  2. Program card by courier. Prepare the same card yourself and ship it. The card is the CPU's SIMATIC memory card; a plain consumer SD card is not it. When the card is inserted the CPU goes to STOP, and at the next power-up it takes its user program from the card.

Both hand-offs need a machine at the site that reaches the CPU over Ethernet. If the cabinet has none, an industrial mini PC is the natural host for the tool today and for the tunnel endpoint when one is approved later.

The decision, case by case #

  • Ongoing remote service, or more than one device at the site: run a VPN whose client address is in, or routed to, the plant subnet; address the CPU directly and expect the scan to stay empty across a routed tunnel.
  • One-off update with no tunnel available: prepare the package in TIA Portal and hand it over as an Automation Tool load or a shipped program card, with a machine at the site to receive it.
  • Port forwarding alone: not for TIA Portal downloads. It reaches one device on one port, carries no discovery, exposes an unauthenticated S7 listener, and leaves every other device dark. If a forwarded session is ever forced as a stopgap, scope it to one device, remove it after the load, and make the tunnel the standing arrangement.

Questions asked

Does a site-to-site tunnel behave differently from a client VPN for the download?

For the download itself, no: both deliver routed reachability to the CPU's address, so the S7 session works over either one. For discovery, yes: a client VPN that assigns the engineer an address inside the plant subnet lets broadcasts cross, while a router-to-router site-to-site tunnel does not carry subnet broadcasts at all. With site-to-site, enter the CPU's plant address directly.

What does the client need on site for the SIMATIC Automation Tool hand-off?

A Windows PC on the plant network with Ethernet reachability to the CPU, SIMATIC Automation Tool obtained from the vendor's support portal, and the transfer package produced in TIA Portal. No TIA Portal license is required at the site, because the tool loads a program that TIA Portal has already prepared and verified.

Can the CPU's web server or a panel on the same subnet be reached through the same forwarded port?

No. A forwarding rule binds one external port to one internal address and one service. The web server on the same CPU needs its own mapping, a panel needs another, and every additional mapping is one more public doorway to close after use. A VPN reaches all of the site's devices at their own addresses without exposing any of them.

What should be settled with the client before a remote program load?

The safe state of the process and the roles around it. A download can stop the CPU, and the CPU may demand a stop transition before the new program becomes active, so production can halt with nobody at the machine. Agree who confirms the safe state, who raises and closes the tunnel, and who rolls back if the CPU will not return to run.

Keep reading

  • Explainer

    Why a RevPi Connect S needs a PROFINET gateway for an S7-1500

    In PROFINET the I/O controller defines the data layout, and it reads that layout from the device's GSDML file. A RevPi Connect S does not present a GSDML on its own, so it needs a RevPi Gate PROFINET IRT device module (or a CODESYS soft PLC acting as the PROFINET device) before the S7-1500 can exchange I/O with it.

    Industrial networks

  • Troubleshooting

    Why an S7-1500 X2 Modbus server accepts TCP but no DONE arrives

    The client's 0001-to-7005 loop means it builds a connection, sends a request and never receives an accepted response; the completed 7006 state and DONE never arrive. A blank Telnet session proves only that X2 accepts TCP on port 502. Match TCON_IP_v4.InterfaceID to X2's hardware identifier from device configuration, then read the one-scan ERROR and STATUS with a trace.

    Industrial networks

  • Troubleshooting

    Configure an S7-200 HMI connection in TIA Portal correctly

    The S7-200's port runs PPI, the RS-485 protocol it was built with; MPI is the PROFIBUS-based protocol of the larger S7 CPUs and the two are not interchangeable. Configure the panel in TIA Portal with the S7-200 connection its driver list documents, set the panel's rate equal to the CPU's configured port rate, and give every station a unique address.

    Industrial networks