Troubleshooting
Modbus Server Port 8000 Causes HMI Client Read Timeouts
Short answer
When an external Modbus TCP master connects to an HMI's Local Modbus Server but every read times out, the server is on its nonstandard default port. Change the Local Modbus Server port from 8000 to 502 in System Parameters, Model tab on the iE series, point the master at 502, and verify that every mapped address answers. A local bit with no mapping row stays unreadable regardless of port.

On this page
An external Modbus TCP master can connect to an HMI's Local Modbus Server, complete every handshake, and still time out on every read that follows. That pattern means the server is listening on a port the master's Modbus stack never expects to find it on, and the fix is a two-line change: move the Local Modbus Server off the documented default of 8000 and onto 502, the port registered for Modbus TCP, then point the external master at 502. On an iE-series panel the server port lives in System Parameters, Model tab. This article works the reported iE-series case end to end: what a connect-without-reads proves, the two-sided port change, a five-address bench verification with the arithmetic shown, and the unmapped local bit that looked like a second fault but was not one.
What a connect without reads proves #
The reported master behaved in three distinct ways, and each one carries different information:
- The TCP connect succeeded, which proves only that something is listening and accepting connections on the configured port.
- Every read request, holding registers and coils alike, ended in a client-side timeout, which means the Modbus transaction layered on top of the connection never completed.
- The local bit the project watched never changed state, so every piece of downstream logic keyed to it looked dead.
The vendor's guide for the MODBUS Server feature documents the Ethernet server's port as a changeable setting with a shipped default, and vendor guidance for an external-master integration is to run the server on the registered Modbus TCP port instead. Read the symptom pattern accordingly: the completed connect rules out cabling, IP routing and a dead service, so the fault sits in the transaction layer, and a port mismatch is the first thing to eliminate there — before address offsets, function codes or the master's own logic.
Move the server and the master to the same port #
The change is two-sided: the server defines which port it serves, the master defines which port it dials, and both must name the same number. The registered Modbus TCP port is the one ordinary masters already target, so moving the server onto it removes the need for any per-device exception in the client.
- Open the HMI project in EasyBuilder Pro and go to System Parameters, Model tab; on an iE-series model this tab holds the Local Modbus Server port.
- Change that port from the shipped default to the registered Modbus TCP port.
- Compile and download the project to the panel, or re-run Online Simulation first if you are proving the fix on the bench.
- In the master, set the target port to the same registered port, and leave the station-number handling alone if the Local Server is set to use station no. given by client request.
- Poll one mapped holding register and one mapped coil; both must answer before you trust the read path.
Move both ends in the same sitting. A server on the new port with a master still dialed to the old one reproduces the exact timeout you began with, and so does the reverse. One neighboring fault is easy to confuse with this one: if EasyBuilder itself refuses to start its simulator and complains that port 8000 is already in use, that is a clash between EasyBuilder's own simulation components rather than an external master failing to read, and the offline simulation port 8000 already-in-use fix covers it separately.
Working the reported case: five mapped registers on an MT8071iE #
The reported case gives every input a bench retest needs:
- Panel and software: MT8071iE, project built in EasyBuilder Pro 6.10.02.300, exercised under Online Simulation.
- Server device: one Local Server entry, protocol MODBUS Server, Location Local, transport Ethernet, port left at the documented default of 8000.
- Retest target: 502 on both ends, the vendor's recommendation for an external-master integration.
- Station number: use station no. given by client request.
- Mapping table: five rows, all pointing at the local HMI — 4x-100 to LW-100, 4x-102 to LW-102, 4x-103 to LW-103, 0x-100 to LB-100, 0x-101 to LB-101.
- Master: a Node.js test client built on the modbus-serial package.
The rule the retest rests on: a Modbus server can only serve what its mapping table exposes. Each 4x row serves holding-register reads against the local word it names, and each 0x row serves coil reads against the local bit it names, so a verification pass is one read per mapped row, and it passes only when every mapped row answers.
The arithmetic comes straight from the table: 3 holding-register rows + 2 coil rows = 5 mapped addresses, so the verification poll is 5 request/response pairs per cycle. The station number drops out of the fault tree as well: because the server accepts whatever station number the client presents, the master's unit ID, left at the client library's usual default of 1, cannot cause a mismatch.
Result: once both ends sit on the registered port, the pass condition is all five addresses returning replies under Online Simulation.
Decision: 5 of 5 mapped addresses answering means the port was the fault and the read path is proven. Any single address still timing out while the connect succeeds moves the fault off the port and onto the address layer, which the next section takes up. The bit the project expected to trigger is not in this pass/fail set at all, because no row serves it — it fails by construction on any port, and the last section handles it.
If a mapped address still times out on the new port #
Prove one address before polling the set. Write a known value to LW-100 from the HMI side, read 4x-100 from the master, and compare. Master libraries and HMI tools disagree on whether a register number is one-based data-model numbering or zero-based protocol addressing, so the same 100 can land one register apart; if the value comes back shifted or absent, correct the offset convention in the master instead of re-editing the mapping. The offset and byte-order conventions behind this check have their own write-up on fixing Modbus TCP addressing errors between an HMI and a PLC.
Confirm the roles before blaming addresses. In this integration the HMI is the Modbus TCP server and the Node.js program is the client, so the server mapping you edited only answers polls and never initiates one. If the project actually expects the HMI to fetch data from a controller, that is the client role and it needs a device driver aimed at the target rather than a server mapping — the piece on HMI Modbus TCP client and server roles with no device driver sorts out which direction works and what each direction needs.
Separate silence from refusal. A pure timeout on every read points at the port or the mapping; Modbus exception responses mean the server is answering, and the question becomes the address or the function code instead of the port.
The unmapped bit that never triggered #
The reported case also watched one specific local bit, LB-9058, and saw it never trigger. The mapping table explains that before any port does: its five rows serve LW-100, LW-102, LW-103, LB-100 and LB-101, and nothing else. A local bit with no mapping row is invisible to every Modbus master; the server has nothing to translate the poll into, so reads of it can only fail, on any port, from either end. The decision: once the port change is proven, add a 0x row for that bit aimed at the local bit table, then poll it exactly like the five proven addresses. What drives that bit inside the HMI program is a separate question the material behind this article does not answer, so settle it against the vendor's address documentation rather than assuming the server should have moved it.
Questions asked
Which port should an HMI's Modbus TCP server use for an external master?
Run the server on port 502 and point every external master at 502; that is the port registered for Modbus TCP, so most masters already default to it. The vendor documents the server's shipped default of 8000 as a changeable setting, and vendor guidance for an external-master integration is to make that change rather than adapt the master to the default. Move both ends in the same edit, or the timeouts return.
Does the HMI's Modbus server work under Online Simulation?
Yes for this test. The vendor's compatibility table for the MODBUS Server feature lists online simulator support, so the five-address bench check runs under Online Simulation with no panel attached. It proves the port change and the mapping path only: a Local Server serves the HMI's own registers, so the bench run says nothing about field wiring, a real controller, or how a production master's timing behaves.
What drives LB-9058 on these panels?
The material behind this article never defines that bit, so no claim is made here about its function. What is certain from the reported case: the mapping table held rows only for LB-100 and LB-101, and a local bit without a mapping row cannot be served to any Modbus master. Add a 0x row targeting it, then poll it like the five proven addresses.
What station number should the master send?
With the server set to use the station number given by the client request, it accepts whatever unit ID the master presents, so the master's setting cannot cause a timeout; the client library's usual default of 1 works unchanged. That changes if the server is switched to a fixed station number: the master must then send that exact number, and a mismatch shows up as exception responses or dead reads.


