PortDock

Adding an Ethernet device (Modbus TCP, PLC) — free IPs, conflicts, subnet, PoE, connection limits

Adding a PLC or Modbus TCP device to a machine network: a free IP without conflicts, subnet, switch ports and PoE, connection limits, polling load.

Tools for this guideNet Scan Windows program · freeModbus Master Windows program · freeIP Subnet Calculator web · no installSystem Diagram Editor web · no install

An Ethernet device looks like plug-and-go, but most problems after adding one are «duplicate IP», «different subnet» or «more connections than the device accepts». An IP conflict in particular shows up as an existing device dropping now and then, not the new one, which makes it hard to find.

1. Find a free IP — and avoid conflicts

2. Subnet mask and gateway

The new device's IP and subnet mask must be on the same network for the devices to reach each other without a router. On 192.168.1.0/24, for example, pick from 192.168.1.1–254 with mask 255.255.255.0. The gateway only matters for talking to other networks (office, remote access), but a wrong gateway causes trouble on some devices, so set it per site rules.

3. Switch ports, cables, PoE

4. Modbus TCP connection limits

The number of simultaneous TCP connections a Modbus TCP device accepts is not set by the spec; it is up to the device, and small devices often allow only a few. If the PLC, HMI, SCADA and a logging PC all read the new device, there may not be enough slots and the last one to connect is refused. An expansion that adds a new client (a new HMI, say) reading existing devices causes the same problem. Check the maximum in the manual and keep a table of who uses how many. The Modbus TCP implementation guide recommends keeping a connection open rather than opening and closing it for every request — a client that reconnects often can hold slots on the device side for a long time.

5. Polling load

6. Checks afterwards and the diagram

In PortDock

Sources

Published 2026-10-31