A Modbus timeout error is the most common message a technician sees on site, and the least helpful one. "Timeout", "No response", "Slave not responding", "Error 37" or "80C8": every tool and PLC words it differently, but it always means the same thing. The master sent a request, waited, and no valid answer came back in time.
A timeout always has a cause you can find, and the list is short. This checklist goes from the most likely cause to the least likely, for Modbus RTU (RS-485) and Modbus TCP, with real numbers and real screenshots of ModLens reading the free ModLens Sim simulator.
What does a Modbus timeout error mean?
A timeout means silence. The master (client) sent a request and started a timer, the response timeout. If no complete, valid reply arrived before the timer ran out, it reports a timeout.
That silence has three possible origins:
- The request never reached the device: wrong wire, COM port, IP or cable.
- The device heard it but did not answer: wrong unit ID, wrong baud rate or parity (the frame looks like noise), a CRC error from interference, or a broadcast (unit ID 0), which never gets a reply.
- The device answered too late, or the answer was lost: timeout too short, slow gateway, reply corrupted on the way back.
A timeout is different from a Modbus exception code. An exception (for example code 2, Illegal Data Address) is a real answer: the device heard you and said "no". If you get an exception, your wiring and settings work and you can stop checking cables. See Modbus exception code 2 explained for that case.
| What you see | What it means | Where to look |
|---|---|---|
| "Could not connect" / "Connection refused" | TCP: no Modbus server on that IP and port. RTU: the COM port can't be opened | IP, port 502, firewall, COM port, driver |
| "Timeout" / "No response" | The link works but nothing valid came back | Unit ID, serial settings, wiring, timeout value |
| Exception code 1, 2, 3 | The device answered with an error | Address, table, quantity |
| Exception code 10 or 11 | A gateway answered for a device behind it | Serial side of the gateway |
| CRC / checksum error | Something came back, but corrupted | Wiring, termination, noise, two masters |
Modbus timeout checklist: the short version
- Timeout or connection error? They have different causes.
- Unit ID (slave address) matches the device?
- Baud rate, parity and stop bits match exactly? (RTU)
- A and B the right way round, common wire connected? (RTU)
- Only one master on the bus or connection?
- Timeout long enough for the baud rate, block size and gateway?
- Block size small enough for the device?
- Gateway mode right (Modbus TCP vs RTU over TCP)?
Step 1: Separate "could not connect" from "no response"
Read the exact error first. A TCP connection error and a Modbus timeout look alike in many tools, but they point to different problems.
On Modbus TCP, the master first opens a TCP connection, usually on port 502. If nothing listens on that IP and port, the connection fails. Only once it is open are Modbus requests sent, and only then can a Modbus timeout happen.
Here ModLens tries a device set on the wrong port (5021 instead of the simulator's 5020). The error is "Could not connect to 127.0.0.1:5021", and the tips are about IP address, subnet, ping, port 502, cable and firewall, not unit IDs.

Now a real Modbus timeout. Same simulator, correct IP and port (127.0.0.1:5020), but unit ID 5, which does not exist. The connection opens, the request goes out, nothing comes back: "No response from unit 5 (timeout)".

On RTU it is the same split: "could not open COM port" points to the USB adapter, its driver or another program holding the port; "timeout" means the request really went out on the wire.
Step 2: Check the unit ID (slave address)
A wrong unit ID is the number one cause of a Modbus no-response error. On RS-485 every device hears every request, and only the one whose address matches answers. Everyone else stays silent, by design. A wrong address gives a perfect timeout with no clue.
- RTU: device addresses run from 1 to 247 (Modbus Serial Line specification). Manuals also call it slave ID, node address or communication address.
- Unit ID 0 is broadcast on serial lines: devices execute writes, and none replies. A read on unit ID 0 always times out.
- TCP: a plain Modbus TCP device often answers on 1, 0 or 255, but check the manual.
- Gateway: use the real slave address of the serial device behind it.
If you don't know the address, scan for it. In ModLens, Scanner → Find unit IDs asks each address in a range. Scanning 1 to 10 on the simulator finds three devices: unit 1 (holding 0 = 145), unit 2 (answers with Illegal data address, which proves it exists) and unit 3 (holding 0 = 645). Units 4 to 10 stay silent.

Unit 2 answered with an exception, not a value. That still counts: any answer, even an error, proves the address is alive.
Back in the Explorer with unit ID 1, the request that timed out now returns data. Address 0 reads 147 (supply air temperature ×10, so 14.7 °C) and address 1 decodes to 21.83 as float32 ABCD (return air temperature). Addresses 5 to 9 don't exist on this device.

Step 3: Match the serial settings exactly (Modbus RTU)
Baud rate, parity, stop bits and data bits must be identical on the master and every device. If one differs, the device receives noise, the CRC fails, and it silently drops the frame: timeout.
| Setting | Common values | Notes |
|---|---|---|
| Baud rate | 9600, 19200 (also 38400, 115200) | 9600 and 19200 are the usual defaults |
| Data bits | 8 | Modbus RTU always uses 8 |
| Parity | Even (spec default), None, Odd | Many devices ship with None |
| Stop bits | 1 with parity, 2 without | The spec asks for 2 when parity is None; many devices use 8N1 anyway |
The Modbus Serial Line specification (V1.02) defines an RTU character as 11 bits: 1 start, 8 data, 1 parity and 1 stop bit, or 2 stop bits without parity. Even parity is the default in the spec, but many meters and VFDs ship with 8N1 at 9600 baud. Read the setting on the device.
If you don't know the settings, try 9600 8N1, 9600 8E1, 19200 8N1 and 19200 8E1 in turn, with a short timeout (0.3 s) and a known unit ID. If one device on a bus times out and the others don't, compare stop bits: some strict devices refuse 8N1 when set to 8N2.
Step 4: Check the RS-485 wiring
Swapped A and B wires give timeouts, never error messages. The signal is inverted, every byte is garbage to the device, and it stays silent. Manufacturers label the lines A/B, D+/D- or +/-, and don't agree which one is positive. Swapping is harmless, so it is always a valid test.
- Swap A and B at the adapter. Ten seconds, and it fixes many "no response" calls.
- Connect the common (reference) wire. Without it, devices may work on the bench and fail on site.
- Daisy chain, not star.
- 120 Ω termination at the two ends of long or fast buses, not on every device.
- Biasing once on the bus if the line floats.
- Power: is the device on, and its communication card enabled?
Our Modbus RS-485 wiring guide covers each point with diagrams.
Use the adapter LEDs. TX blinks but RX never does: nothing comes back (unit ID, settings or wiring). RX blinks but you still get timeouts or CRC errors: something comes back corrupted (settings, noise or termination).
Step 5: Make sure there is only one master
Modbus allows one master per serial bus, and many TCP devices accept only one or a few connections. Two masters on one RS-485 bus talk over each other, and both see random timeouts and CRC errors.
Typical cases: the BMS or PLC still polls the bus while you plug in your laptop; another program still holds the COM port; a small TCP device whose only connection slot is used by the BMS. Disconnect the other master or ask for a maintenance window rather than sharing the bus.
Step 6: Set the right Modbus timeout value
The response timeout must be longer than the request time, plus the device's processing time, plus the reply time. The specification gives no fixed number, only that it must be long enough for any slave to answer. So you calculate it.
How long does a Modbus RTU frame take?
With 11 bits per character, one byte takes 11 ÷ baud rate seconds. A read of N holding registers has an 8-byte request and a reply of 5 + 2N bytes (address, function, byte count, data, 2-byte CRC).
| Read | Reply size | At 2400 baud | At 9600 baud | At 19200 baud |
|---|---|---|---|---|
| 10 registers | 25 bytes | 115 ms | 29 ms | 14 ms |
| 50 registers | 105 bytes | 481 ms | 120 ms | 60 ms |
| 125 registers (max) | 255 bytes | 1,169 ms | 292 ms | 146 ms |
Add the request (37 ms at 2400 baud, 9 ms at 9600) and the device's processing time, from a few milliseconds to a few hundred.
Worked example
A heat meter on a 2400 baud bus. Your tool reads 125 registers with a 0.5 s timeout. The reply alone takes 1.17 s, so the timeout expires halfway through every reply. Small reads of 10 registers work; big reads always time out. Fix: raise the timeout to 2 s, or read smaller blocks (30 registers take about 300 ms at 2400 baud).
Typical Modbus timeout settings
| Situation | Timeout to start with |
|---|---|
| Modbus TCP device on the local network | 0.5 to 1 s |
| RTU at 9600 or 19200 baud | 0.5 to 1 s |
| RTU at 1200 to 4800 baud, or big blocks | 1 to 3 s |
| TCP-to-RTU gateway | 1 to 3 s |
| Radio, cellular or VPN link | 2 to 5 s |
| Scanning unit IDs | 0.2 to 0.3 s |
Don't set 10 seconds everywhere. A long timeout fixes nothing; it only makes every missing device cost 10 seconds and slows your whole poll cycle.
Timeout and retries add up
Each silent device costs about timeout × (1 + retries). The scan above used a 0.5 s timeout with 1 retry: 7 silent unit IDs × 0.5 s × 2 attempts = 7 s, and the scan reported "Done in 7.5 s". With a 3 s timeout and 2 retries, it would take over a minute.
In ModLens the timeout, retries and pause between requests are in Devices → Edit:

The device card shows live statistics. After the tests in this article: 24 requests, average 224.1 ms, 15 errors. The average is high because the timed-out requests count in it. On a healthy device, the average response time tells you how much margin your timeout has.

Step 7: Read smaller blocks and slow down
Some devices don't answer requests that are too big or too fast. The standard allows 125 registers per read, but many small controllers and meters accept fewer. Some reply with exception code 3; others stay silent.
- Read 1 register at an address you know exists. If that works, the link is fine.
- Increase the block size until it fails. That is the device's limit.
- Set that limit in your tool (in ModLens: Max registers per read); large reads are then split automatically.
On RTU, the specification requires at least 3.5 character times of silence between frames (fixed at 1.75 ms above 19200 baud). Some devices and gateways need more. For random timeouts, add a 20 to 100 ms pause between requests and poll less often.
Step 8: Modbus TCP and gateway timeouts
On Modbus TCP, a timeout means the connection opened but nothing answered for that unit ID. Usual causes:
- Wrong unit ID through a gateway. The serial device never answers. Some gateways return exception 11 (gateway target device failed to respond); others let your request time out.
- Wrong gateway mode. A converter in transparent mode expects Modbus RTU over TCP, not Modbus TCP. See Modbus RTU over TCP vs Modbus TCP.
- Timeout chain. Your tool's timeout must be longer than the gateway's own serial timeout.
- Gateway serial settings must match the devices on its RS-485 side: Steps 3 and 4 apply there too.
- Connection limit on small devices already polled by the BMS.
The Modbus TCP vs RTU guide explains the frame differences.
Common mistakes that cause Modbus timeouts
| Mistake | Symptom | Fix |
|---|---|---|
| Reading with unit ID 0 on RTU | Always timeout | Use the real address (1 to 247) |
| 8N1 on the master, 8E1 on the device | Timeout on every request | Match parity and stop bits |
| A and B swapped | Timeout, TX blinks, RX never | Swap the two wires |
| No common wire on a long bus | Works on the bench, fails on site | Add the reference wire |
| Two masters on one bus | Random timeouts and CRC errors | One master only |
| Timeout too short for big reads at low baud | Small reads work, big ones fail | Longer timeout or smaller blocks |
Quick diagnosis by pattern
- Every request times out: unit ID, serial settings, wiring, gateway mode.
- Small reads work, big reads time out: block size or timeout.
- Random timeouts, maybe 1 in 20: polling too fast, noise, termination or biasing, second master, weak cellular link.
- One device times out, the others are fine: that device's address, settings, power or cable branch.
How to troubleshoot a Modbus timeout with ModLens
- Devices → Add device: IP and port, or COM port with baud rate, parity and stop bits. Start with a 0.5 to 1 s timeout.
- Explorer: read 10 registers. Read the error (could not connect or no response) and its "What to try" tips.
- Scanner → Find unit IDs with a 0.2 to 0.3 s timeout, then read again with the address that answered.
- Devices → Edit: set timeout, max registers per read and pause between requests.
Practise first with the free ModLens Sim Modbus simulator, then use the free 14-day trial on your devices. The install and user guide covers USB to RS-485 adapters.
FAQ
What causes a Modbus timeout error?
A Modbus timeout means the master got no valid reply before its response timeout ran out. The most common causes are a wrong unit ID, a baud rate, parity or stop bit mismatch, swapped A and B wires, a missing common wire, two masters on the bus, or a timeout too short for the baud rate and block size. On Modbus TCP, look at the unit ID behind a gateway, the gateway mode, and connection limits.
What is a good Modbus timeout value?
For most Modbus TCP devices and RTU buses at 9600 or 19200 baud, 0.5 to 1 second works well. Use 1 to 3 seconds for gateways, slow baud rates or large blocks, and 2 to 5 seconds for radio or cellular links. For scanning unit IDs, 0.2 to 0.3 seconds keeps the scan fast.
What is the difference between a Modbus timeout and an exception code?
A timeout is no answer at all. An exception code is a real answer saying the device refused the request, for example code 2 for an address that doesn't exist. If you get an exception, your wiring, unit ID and serial settings work.
Why does Modbus RTU work for small reads but time out on large ones?
Either the device accepts fewer registers than the 125 the standard allows and stays silent beyond that, or the reply takes longer than your timeout. At 2400 baud, a 125-register reply takes about 1.17 seconds. Read smaller blocks or raise the timeout.
Does unit ID 0 cause a Modbus timeout?
On Modbus RTU, yes, for reads. Unit ID 0 is broadcast: every device executes the request but none replies, so the master always times out. Use the real address (1 to 247) for reads.
Why do I get random Modbus timeouts?
Random timeouts mean the link works but is marginal. Look for polling too fast, a second master, missing termination or biasing, cables running next to power cables, or a weak radio link. Add a 20 to 100 ms pause between requests and slow the poll rate as a first test.
How do I find the slave ID when every request times out?
Use a unit ID scanner: it asks each address from 1 to 247 and lists those that answer, even with an exception. Lower the timeout to 0.2 to 0.3 seconds to keep the scan short. If no address answers at all, the problem is serial settings or wiring, not the ID.