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
- Pick an unused address from the system diagram or IP table. Do not trust the table alone: scan the network to confirm nothing answers on that address now.
- A device that is switched off, removed for maintenance, or connected only now and then (a laptop) may also use that IP. Keep a «sometimes connected» column in the IP table.
- The new device's factory IP (values like 192.168.0.1 or 192.168.1.10) may match an existing device. Connect it 1:1 to a PC and change it before plugging it into the machine network.
- Two devices on one IP both drop in turn, and a scanner sees the MAC change for that IP.
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
- A free switch port; on a managed switch, the port's VLAN and port security match the other machine ports.
- A copper Ethernet segment is generally up to 100 m. Further than that, add a switch or go to fibre.
- If the device is PoE-powered, check that the port supplies PoE, the PoE class the device needs (802.3af, at, etc.) and that the switch's total PoE power budget has room — from the manuals.
- Check the link LED, link speed and duplex. If only one side is fixed, duplex can mismatch and errors pile up.
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
- Ethernet is fast, but the device's processing is not. Several clients polling at short intervals slow replies or cause some timeouts.
- When the PLC starts reading a new device, check that its communication handling and scan time have not grown.
- Adding devices behind a Modbus gateway (TCP to RTU) lengthens the polling cycle of the serial bus behind it exactly as on RS-485 — the same calculation.
6. Checks afterwards and the diagram
- Scan the network again: the new device appears on the planned IP and there is no possible IP conflict.
- Read the new device once from a PC (Modbus TCP is port 502), then from the PLC and HMI.
- Existing devices' response times and timeouts are the same as before.
- Record in the diagram and IP table: IP, last four MAC digits, switch port number and which clients connect.
In PortDock
- Net Scan: finds devices on the subnet with IP, MAC and open ports, and marks «IP conflict?» when the MAC changes for an IP. Save results as CSV to compare before and after.
- Modbus Master: «Open in Modbus Master» from a Net Scan device row; response time and timeout statistics per table.
- Port Inspector «Network adapters on this PC»: read-only check of the test PC's IP, subnet and link state.
- «IP Subnet Calculator» web tool: network range from IP and mask, and whether two addresses share a network.
- «System Diagram Editor» web tool: add devices and switches, check duplicate IPs and subnet mismatches, import a Net Scan CSV.
Sources
- Modbus Messaging on TCP/IP Implementation Guide V1.0b — port 502, connection management — keep connections open, the number of connections is implementation-defined
- Wireshark Wiki — CaptureSetup/Ethernet — where to capture on a switched network (mirror port)
Published 2026-10-31