IMDHMIControls LibraryShop main store

Troubleshooting

Why an S7-1200 is reachable only after TIA Portal adds a PC IP address

SCADA and data logging Published 6 min read

Short answer

TIA Portal is not a runtime dependency: KEPServerEX only began reaching the S7-1200 because TIA Portal added a second IP address beside the PC's 169.254 link-local one. Give the operator PC a persistent static address in the PLC's subnet and the connection survives shift reboots with no engineering software installed.

On this page
  1. The fault is the adapter's address, not the software
  2. The subnet arithmetic, with example values
  3. Give the operator PC an address that survives every shift
  4. What the drivers need TIA Portal for
  5. Prove the runtime path with the tool gone
  6. The decision for each case
  7. Questions asked

Yes, and you can stop blaming the engineering tool. KEPServerEX reads and writes a physical S7-1200 with TIA Portal closed, or absent from the machine entirely. The connection came alive after TIA Portal connected once because that step added a second address to the PC's Ethernet adapter, and the adapter had no usable address before: Windows had self-assigned it a 169.254 link-local address after DHCP failed, and a link-local address has no path to a PLC on a 192.168 subnet. Give the operator PC a persistent static address in the PLC's subnet and the dependence disappears.

The fault is the adapter's address, not the software #

When an adapter is set to obtain an address automatically and no DHCP server answers, Windows self-assigns out of the IPv4 link-local block, 169.254.0.0/16 with mask 255.255.0.0, and calls it APIPA. The IETF reserved that block in RFC 3927 for exactly this fallback: the addresses work only on the local link and are never routed. A direct cable or small switch between an operator PC and an S7-1200 has no DHCP server on it, so the PC lands on a link-local address at every boot and every poll to the PLC times out.

TIA Portal's connection changed that. It added a second address in the PLC's subnet to the same adapter, because Windows keeps several addresses on one interface, and KEPServerEX reached the PLC through the added address. The software was never the dependency; the address it brought was.

Observed condition What it means Next check
Tags good only after TIA Portal connected once since boot An engineering action changed the adapter's addressing Run ipconfig /all before and after, and note the added address and its mask
Adapter shows a link-local address after every shift boot DHCP failed on a segment with no server Read the PLC's address and mask, then set a static address
Choosing the adapter in the server changes nothing The server binds fine; the adapter simply has no address in the PLC's subnet Fix the address, not the channel
Link lights on, data still bad Layer 1 is fine, layer 3 is not The same trap as when an S7-1200 shows link lights but TIA Portal cannot connect

The subnet arithmetic, with example values #

Take these as example values and put your own in their place: PLC at 192.168.1.10 with mask 255.255.255.0, operator PC self-assigned 169.254.37.82 with mask 255.255.0.0.

PC subnet: 169.254.37.82 AND 255.255.0.0 gives 169.254.0.0. PLC subnet: 192.168.1.10 AND 255.255.255.0 gives 192.168.1.0. Different subnets and no router on a direct cable, so there is no path and every poll fails.

Now give the PC 192.168.1.50 with the PLC's mask: 192.168.1.50 AND 255.255.255.0 gives 192.168.1.0, the PLC's subnet, so delivery is direct ARP on the cable and no gateway is needed.

The prefix alone proves nothing: 192.168.2.50 AND 255.255.255.0 gives 192.168.2.0, which is not 192.168.1.0 even though both addresses begin the same way. The mask also moves the answer: with a PLC mask of 255.255.255.252 the subnet would span only 192.168.1.8 to 192.168.1.11, and with the PLC on 192.168.1.10 the only address left for the PC is 192.168.1.9. Read the PLC's mask once and copy it.

Give the operator PC an address that survives every shift #

Windows stores a static address with the adapter and re-applies it at every boot, which is exactly what a machine that is powered off each shift needs. Do this once:

  1. Read the PLC's address and mask in its online properties or from the network plan: 192.168.1.10 and 255.255.255.0 in the example.
  2. Pick an unused address in that subnet, outside any DHCP range: 192.168.1.50 in the example. Ping it first to confirm nothing answers.
  3. On the operator PC, open the Ethernet adapter's IPv4 properties, enter that address and the PLC's mask, and leave the gateway empty on a dedicated PLC cable.
  4. Reboot the PC the way the shift crew does. The static address must return with no engineering tool involved, and ping 192.168.1.10 must answer.
  5. If this PC also sits on the plant network through DHCP, add the PLC-subnet address as a second static entry on the same adapter; the two coexist and traffic to the PLC follows the matching subnet.

If the operator station itself is still to be specified, an industrial panel PC for the KEPServerEX station is the machine-side computer this configuration lives on, and the steps above do not change.

What the drivers need TIA Portal for #

Nothing at runtime. The server talks to the PLC over a standard Ethernet adapter; the Siemens S7 Plus Ethernet driver is built for the S7-1200 and needs no additional libraries or hardware, and the Device ID in the Siemens TCP/IP Ethernet driver is simply the PLC's IP address in dotted decimals. Where TIA Portal comes in is tag import: the Siemens TCP/IP Ethernet driver's import workflow uses it to read the tag tables, which is why the tool was on the bench in the first place. The Siemens S7 Plus Ethernet driver pulls the tags without it. One exception: a simulated S7-1200 running inside the engineering environment does depend on that environment, so everything here applies to the physical controller on the cable.

So you have two clean options on the operator PC. Keep the working Siemens TCP/IP Ethernet driver, import the tags once on the engineering laptop and copy the finished project across, or move to the S7 Plus driver and import straight from the PLC. Neither driver rescues a wrong adapter address, so fix the network first and change one thing at a time. Your spreadsheet side does not change at all: Excel reads through the server, so once the server's tags are good the cells follow. And since this station links a spreadsheet to PLC tags, give the operator PC write access only to the tags the operator must change; machine safety stays in the PLC's safety program and the hardwired circuit, never behind this PC.

Prove the runtime path with the tool gone #

The proof is a boot with nothing else running. KEPServerEX installs as a Windows service, so after the shift reboot it starts on its own. With TIA Portal removed, watch a tag that changes by itself; a heartbeat bit is ideal, and the pattern in writing an S7-1200 heartbeat in ladder logic in TIA Portal gives you one to watch. When that tag toggles in the client with good quality and the spreadsheet follows, the runtime path is proven and TIA Portal has no role in it. The same direct path is why an S7-1200 does not need a second PLC to reach SCADA; here the server is the only middleman.

The decision for each case #

  • Dedicated cable or small switch between the operator PC and the S7-1200, no DHCP on it: static address in the PLC's subnet, mask copied from the PLC, gateway empty. This is the configuration for your operator PC.
  • Operator PC shared with a plant network: keep DHCP for the plant side and add the PLC-subnet address as a second static entry on the same adapter, following the plant addressing plan.
  • Tags: stay on the Siemens TCP/IP Ethernet driver with a one-time import from the engineering laptop, or use the Siemens S7 Plus Ethernet driver to import without TIA Portal at all.
  • TIA Portal: engineering laptop only. It never needs to be installed on the machine that runs the shift.

Questions asked

Does the operator PC ever need TIA Portal installed?

No. Give the operator PC the server, its driver and a static address, and leave the engineering software off it permanently. Keep one engineering laptop for program changes; when the PLC's tag table changes, import once more from that laptop and update the server project on the operator PC.

Can the PC keep DHCP for the plant network and still reach the PLC?

Yes. Windows holds several addresses on one adapter, so add the PLC-subnet address as a second static entry beside the DHCP-assigned one, or let the plant DHCP scope and its router deliver a routed path to the PLC subnet. The second static address is the simpler choice when the PLC cable is separate from the plant network.

Which PLCs work with KEPServerEX without their programming software running?

Every PLC the server has a driver for works this way. The server speaks the wire protocol itself, so an Allen-Bradley, Mitsubishi, Omron or Modbus device is polled exactly like the S7-1200 and never needs its editing package at runtime. Engineering software only helps with one-time tag import; the runtime path is addressing, routing and the driver.

Should we keep the address TIA Portal added to the adapter?

Do not rely on it. An address an engineering tool added during a session is not a documented configuration, and this PC restarts every shift. Enter a static address in the adapter's IPv4 properties instead; Windows re-applies that at every boot, and you confirm it with ipconfig before the server starts.

Keep reading

  • Troubleshooting

    Troubleshooting a SCADA PC station that reaches only one S7-1500

    When every S7-1500 answers ping but SCADA updates only one PLC, ping has proven nothing about the S7 link. Work the checks in order: four distinct MAC addresses on the PLC subnet, the S7ONLINE access point bound to the connected network card, one HMI connection per CPU, and every tag's Connection pointing at its own CPU's connection.

    SCADA and data logging

  • Troubleshooting

    Why CitectSCADA cannot read MicroLogix data-table tags with ABCLX

    ABCLX talks to the Logix tag database, and a MicroLogix 1400 programmed with RSLogix 500 has none: its bits live in numbered data files, so an address like PROGRAM:MainProgram.B33{0} can never resolve. Change the I/O device to the ABMLXEIP driver, address the bit by file/element/bit as B33:0/0, and enter the controller's IP as a bare host address (192.168.0.100), never with a /24 suffix.

    SCADA and data logging

  • How-to

    Adding a second redundant S7-400H system to WinCC SCADA

    Yes — one WinCC SCADA can run two independent redundant S7-400H systems. Inventory the installed WinCC version, channel and licensed external tag count, add a redundancy-aware connection set for the new pair instead of copying the first system's connections, and accept the work with a forced switchover test before go-live.

    SCADA and data logging