Digital input not reading: NPN or PNP, step by step
129 Views •4-20 mA input reading wrong: check it step by step
126 Views •RS-485: how to check a bus step by step
115 Views •Relay or transistor output: which one and how to check it
111 Views •Scaling a 4-20 mA signal in the PLC: formula, constants and code
80 Views •Upload fails: 6 checks before blaming the code
19 Views •Modbus RTU timeout: 6 checks before blaming the wiring
17 Views •Modbus RTU timeout: 6 checks before blaming the wiring
Short answer: when a Modbus RTU master gets a timeout, the wiring may be fine. Check the slave address, the serial settings, that there is a single master, the response timeout, any exception code and the physical layer, in this order.
Download the checklist (PDF, 2 pages)
Descarga la lista de comprobación (PDF, 2 páginas)
These checks apply to any PLC acting as Modbus RTU master over RS-485, and to any slave device (meter, drive, sensor, I/O module).
Six checks, in this order
| Check | What to do | Good result |
|---|---|---|
| 1. Address | Poll the slave ID set in the device. Valid slave addresses go from 1 to 247; address 0 is broadcast and slaves do not reply to it. No two devices on the bus with the same ID. | Each device answers only to its own ID. |
| 2. Serial settings | Baud rate, parity, data bits and stop bits must be the same on every device. The Modbus serial line specification sets even parity as default, but many devices ship with other settings: take them from each device manual. | Master and slaves use exactly the same settings. |
| 3. One master | Modbus RTU allows a single master on the bus. A second one, like a SCADA or a configuration tool, causes collisions. | Only one device sends requests. |
| 4. Timing | The response timeout must cover the time the slave needs to process the request and send the reply. If it is too short, a valid reply reads as no response. Increase it and test again; the device manual may state its response time. | The reply arrives before the timeout. |
| 5. Exception code | If the reply carries the function code plus 0x80 (for example 01 83 02), the link works. Code 01 means illegal function, 02 illegal data address, 03 illegal data value. Check the function code and the register address: many manuals number registers from 1 (40001), while the address in the frame starts at 0. | A normal reply with the requested data. |
| 6. Physical layer | Still nothing? Check the A/B wires, the 120 Ω termination at both ends of the bus and the bias at one point. The RS-485 Know-How lesson goes through it step by step. | The bus passes the RS-485 checks. |
Source
Addressing, default serial settings and exception codes follow the Modbus Organization specifications: Modbus over Serial Line V1.02 and Modbus Application Protocol V1.1b3.
Modbus RTU master getting a timeout from a slave? Check the address, serial settings, single master, response timeout, exception codes and the physical layer, in this order.
Commenting is not enabled on this course.