All posts
2026-11-20

Reading two PLCs that share one IP address from a single PC

Two identical machines, two Siemens PLCs, one factory-default address — and an OEM configuration I was not allowed to touch.

Two wire-drawing machines arrived from the same OEM, each with a Siemens S7-1500 PLC. Both PLCs had the same factory IP address. Changing one would have meant editing the OEM project and risking the warranty, so it was off the table.

The usual answers

The textbook fixes are to re-address one PLC or to put a 1:1 NAT device in front of each machine. The first changes the OEM installation; the second adds hardware, cost and another box that can fail.

What I did instead

The industrial PC that runs the SCADA has two Ethernet ports. I gave each port its own source address in the PLC subnet and connected each one to one machine's isolated control network.

Windows uses the strong host model: a packet leaves only through the interface that owns its source address. So before connecting, each S7 client socket is bound to its line's source address. Two sessions to the same destination address leave through different ports and reach different PLCs.

The control interfaces have no default gateway. Only the Wi-Fi interface routes to the office network, so the PC is the single, read-only conduit between the control zones and the office — the zone-and-conduit idea from IEC 62443.

Lessons

  • Read the OS networking model before buying hardware.
  • Keep supervisory systems strictly read-only; I added an automated test that fails if any write path appears in the code.
  • Verify against the machine's own panel: every value in the historian was checked against the OEM HMI before I trusted it.
#PLC#Networking#SCADA