Email us

Este artículo está en inglés. Ver el sitio en español

Cet article est en anglais. Voir le site en français

Dieser Artikel ist auf Englisch. Website auf Deutsch ansehen

Este artigo está em inglês. Ver o site em português

本文为英文。 查看中文网站

When an HMI can talk Modbus TCP directly without a PLC

An Ethernet panel with a Modbus TCP client driver reads a Modbus TCP server device directly on TCP port 502 — no PLC in the path. You map tags from the device's register map, keep each read inside the 125-register cap, and add a PLC only when the job needs logic, protocol translation or interlocks.

NEMA4 Enclosure engineering team · Published November 11, 2026 · 7 min read

Short answer: yes — an Ethernet panel with a Modbus TCP client driver polls a Modbus TCP server device directly on TCP port 502, and no PLC sits in the path. The panel's configuration software decides it. When the driver list for your exact model offers Modbus TCP, you point the connection at the device's IP address, map its registers and start polling. The hardware was never the hard part; the register map, the address convention and the data types are. Add a PLC or a gateway only when the driver is missing for your panel, the panel has no Ethernet port, or the job needs logic between display and device. Below: the three checks on the panel, how the mapping works, what the polling costs the network, and how the Ethernet drop gets through the housing wall with the rating intact.

What does a panel need to reach a Modbus TCP device directly?

A panel reaches a Modbus TCP device on its own when three things line up. It needs an Ethernet port, a Modbus TCP client driver in its configuration software for that exact model, and a server in the device answering on TCP port 502. Modbus TCP keeps the roles the serial version always had: the client asks, the server answers, and each server takes its own connection.

Give both ends addresses on one subnet and the conversation needs nothing between them but a switch. A panel at 192.168.10.20 with mask 255.255.255.0 reaches a meter at 192.168.10.50 directly. The same meter at 10.0.4.50 needs a router and a route between the two networks. Enter 502 as the port unless the device manual says the server listens elsewhere. Set the unit ID the manual lists; TCP-only servers commonly answer 255.

Which panels can act as the Modbus TCP client?

The driver list for your exact panel target decides it. If it offers Modbus TCP — shown as Modicon Modbus TCP in many configuration tools — the panel is a client. A panel with no Ethernet port cannot run the protocol at all. Select the model in the software and read its own connection list; a driver shown for one panel family goes with that family, not with a different target.

Non-Ethernet micro panels still join the story over the serial side, where the same question becomes a Modbus RTU one. For a new build, pick a panel with two Ethernet ports. One serves the device network, one the office side, and you keep the two worlds separated without a router project.

What does a green connection status prove?

A green connection status proves the TCP link and nothing more. The transaction still needs a function code the device supports, a read within the 125-register cap, and a register the device actually maps. "TCP open but data wrong" is the classic trap in a direct connection, and it lives in the protocol, not the network. The Modbus application protocol caps every transaction's payload at a 253-byte PDU, so one read carries 125 two-byte registers (250 bytes) or up to 2000 bits. Build your tags inside those limits:

Function code What it does Limit per transaction
01 reads coils (0xxxx) up to 2000 bits
02 reads discrete inputs (1xxxx) up to 2000 bits, addresses 10001-19999
03 reads holding registers (4xxxx) up to 125 registers
04 reads input registers (3xxxx) up to 125 registers
06 writes one register 1 register
16 writes multiple registers up to 123 registers

A device that refuses a function code answers with an exception, and the panel paints that tag as an error, not as a lost connection. When the link is up but the tags misbehave, work through the communication-failure causes in the order they actually occur.

How do you map the device's registers into the panel?

You build every tag from the device's register map. A register printed as 40001 usually travels as protocol address 0, so the off-by-one between the printed number and the driver's offset is the most common cause of plausible but wrong values. The five-digit convention covers every data area:

  • Coils: displayed 0xxxx (00001-09999), read with function code 01.
  • Discrete inputs: 1xxxx (10001-19999), read with function code 02.
  • Input registers: 3xxxx (30001-39999), read with function code 04.
  • Holding registers: 4xxxx (40001-49999), read and written with function codes 03, 06 and 16.
  • Most drivers want the zero-based address, the displayed number minus 1: 40001 becomes 0.

For each tag, write down four things from the manual: data area, address, read or write, and representation. Width, signedness and word order are the ones that bite. A 32-bit float spans two registers, and swapping the pair turns 100.0 into a nonsense exponent. Scaling comes from the manual as well: a register holding 2341 against a documented 0.1 V per count decodes to 234.1 V, and the ×0.1 factor lives in the tag. Test writes only on registers the manual marks writable.

When do you still put a PLC or a gateway between them?

Add a PLC or a gateway when the job needs logic, scaling between unlike data types, protocol translation or control interlocks — a direct link only displays values and takes operator entries. Three cases show up on real jobs.

The device speaks only Modbus RTU, or only some other Ethernet protocol: a gateway between the two gives the panel one more server to poll, and the serial side keeps its slave address in the 1 to 247 range. Two panels and a SCADA head want the same meter: a controller or gateway fetches the data once and serves every client, which keeps the meter's connection count low. Anything that must keep running when the display is off — pump interlocks, alarm logic, timed duties — belongs in a controller, because logic stored in the panel dies with the screen. Display and entry stay direct; decision-making earns its own box.

How does the Ethernet drop get through the housing wall?

The rating survives the drop when you fit a rated RJ45 coupler or M12 gland over a round hole in a flat part of the wall, because the weakest accessory in it sets the assembly rating from there on. Pick the coupler by its datasheet. A coupler the maker documents at IP66 when mated keeps a sealed wall sealed; an unrated pass-through drags the whole housing down to that fitting's rating. A typical M20 cable gland takes a 24.5 mm [0.96 in] hole, and a typical RJ45 bulkhead coupler a 22 to 23 mm [0.87 to 0.91 in] hole — both cut with a hole saw, at least 1 in [25 mm] from any bend or weld seam.

On our HMI housings the rear cover is gasketed, so most builds take the drop through the rear plate and leave the door seal untouched. Deburr the hole, seat the gasket clean and dry, and tighten the gland nut to its printed torque — for a small nylon gland that is usually 2 to 3 N·m [18 to 27 lb·in]. Isolate the panel before you cut, and vacuum the stainless chips away before the display goes back in. The cutouts guide covers hole sizes and placement, and how the Type 4X / IP66 pair holds together.

How much network traffic does direct polling add?

Polling is light. One read of 8 holding registers every 500 ms moves about 100 bytes per transaction on the wire, roughly 1.6 kbit/s, so bandwidth never decides this — the driver and the register map do. Worked example, one power meter, 8 registers — three voltages, three currents, power, energy — polled every 500 ms:

  • Request: 7-byte MBAP header (the Modbus TCP wrapper) + 5 bytes (function code 03, start address, quantity) = 12 bytes.
  • Response: 7-byte header + 1 function code + 1 byte count + 8 × 2 data bytes = 25 bytes.
  • Per transaction: 12 + 25 = 37 protocol bytes, about 100 bytes on the wire once TCP, IP and Ethernet headers ride along.
  • Two transactions per second: 200 B/s, or 1600 bit/s ≈ 1.6 kbit/s — 0.0016% of a single 100 Mbit/s switch port.

Read blocks, not single registers: eight one-register reads spend eight round trips to fetch what one block read carries. A map wider than 125 registers splits into two reads, 125 and 25 for a 150-register map, and you spend two transactions per poll instead of one. Poll several servers in turn and the cycle stretches.

What do you put on the order?

Order the housing around the display and the drop. A 10.1 in panel PC needs an HMI housing for a 10.1 in panel PC in 304 stainless, with a rated front seal, a gasketed rear cover and an Ethernet cutout you specify. Our HMI housings mount the panel PC on a VESA 100 rear plate, and the standard display range runs from 7 in to 23.8 in; the front seal is IP65-type with the display installed, manufacturer rated, not UL listed. If you want a different size or your own cutout layout, custom enclosures take your material, width, height, depth and every hole, built from one piece and delivered in 10 business days from drawing approval.

The decision, by case:

  • Driver present and the device has a server: order the panel and housing, run one Ethernet drop, map the tags — done.
  • Panel lacks the driver or the port: change the panel or add the gateway, and give the gateway its own gland in the wall.
  • Logic, interlocks or translation needed: keep the direct link for display and entry, and find backplate room for the controller — sizing an enclosure helps when the box is already full.

Before you finalize the layout, check the cutouts, glands and HMI windows guide for hole placement, and compare 304 vs 316L stainless if the panel lives in a washdown or coastal area. For a browse of sizes and display ranges, see the HMI enclosures section.

Enclosures in this article

EnclosureMaterialOutside H x W x D / displayRating
10.1" HMI enclosure304 stainless8.72 x 12.66 x 3.48 inIP65-type front seal with the display installed, manufacturer rated; not UL listed

Questions

Can one read pull all 150 registers of a meter map?

No — one Modbus read carries at most 125 registers, because the response PDU tops out at 253 bytes and 125 two-byte registers fill 250 of them. Split the map into two reads, 125 and 25 registers, and schedule them a poll apart. At a 500 ms cycle that is 4 transactions per second, still under 4 kbit/s on the wire.

Does Modbus TCP have to use port 502?

Port 502 is the default the Modbus specification assigns to the protocol, and many servers let you move it. Both ends must agree: set the same port in the panel's connection and on the server, and keep the choice clear of whatever else shares the switch. A firewall that passes only 502 will block a server you moved to 1502.

How many Modbus TCP servers can one panel poll?

Each server takes its own connection, so the ceiling is the connection count in the panel's driver list, not the wire. Watch the cycle instead: 5 servers polled in turn at a 1 s cadence see fresh data every 5 s. Read whole register blocks rather than single tags, and the cadence holds without any special hardware.

What if the device speaks only Modbus RTU over serial?

Then there is no direct Ethernet path: fit a Modbus TCP-to-RTU gateway between them, and the panel polls it as one more server. Keep the serial segment inside its usual limits — about 1200 m [4000 ft] at 9600 baud with up to 32 unit loads before repeaters — and give the gateway its documented slave address, 1 to 247.

Why does a value read cleanly but look wrong on screen?

The link is healthy; the interpretation is off. A 32-bit value spans two registers, and servers disagree on word order — swap the register pair or change the encoding setting in the tag and the number snaps into range. Scaling matters just as much: a reading of 16384 against a documented 32767 full scale is exactly half scale, so check the tag's factor before blaming the device.

Checklist before you order

Specify it once, built to your drawing

  • Environment and NEMA type: Type 1, Type 3R, Type 4, Type 4X, Type 6P, Type 12, Type 13 (manufacturer ratings, not UL listed)
  • Material: 304 stainless steel, 316L stainless steel, Powder-coated carbon steel, Aluminum, Polycarbonate, Fiberglass (FRP)
  • Size: inside or outside height, width and depth, with the depth your deepest component needs
  • Cutouts, glands and windows, dimensioned from one datum on each face
  • Mounting and access: wall, pole or stand, hinge side, mounting panel
  • Quantity: from one piece

Delivered in 10 business days, anywhere in the world. Counted from your order; for custom work, from your approval of the drawing.

Configure an HMI housing in 3DRequest a custom quote

NEMA 4X enclosures: sizes for this job · HMI panel cutout dimensions by series

Keep reading

More on hmi and operator enclosures

All articles

Buying guides

The guides behind this answer

All guides