Know-How
Completed
RS-485: how to check a bus step by step
304 Views •Modbus RTU timeout: 6 checks before blaming the wiring
266 Views •Modbus register 40001 or address 0? 6 checks
101 Views •Modbus RTU master and slave with two ESP32 PLC, step by step
107 Views •4G PLC not connecting: 6 checks before blaming the code
188 Views •LoRa works on the desk, fails in the field: 6 checks before you install
209 Views •LoRaWAN node won't join: 6 checks, in order
156 Views •Choosing a PLC 2: which communications do you really need
149 Views •PLC on Ethernet with no ping? 6 checks
88 Views •Digital input not reading: NPN or PNP, step by step
343 Views •4-20 mA input reading wrong: check it step by step
330 Views •Scaling a 4-20 mA signal in the PLC: formula, constants and code
309 Views •RS-485: how to check a bus step by step
304 Views •Relay or transistor output: which one and how to check it
266 Views •Modbus RTU timeout: 6 checks before blaming the wiring
266 Views •Upload fails: 6 checks before blaming the code
224 Views •LoRa works on the desk, fails in the field: 6 checks before you install
209 Views •SD card corrupted? 6 habits for Linux in the field
193 Views •4G PLC not connecting: 6 checks before blaming the code
188 Views •Touch panel: screen turned, touch didn't. 6 checks
178 Views •Choosing a PLC 1: count the I/O and leave spare
166 Views •Arduino IDE compile error: 6 checks before the code
166 Views •LoRaWAN node won't join: 6 checks, in order
156 Views •Choosing a PLC 2: which communications do you really need
149 Views •Node-RED not starting after a reboot? 6 checks
116 Views •Modbus RTU master and slave with two ESP32 PLC, step by step
107 Views •Modbus register 40001 or address 0? 6 checks
101 Views •PLC on Ethernet with no ping? 6 checks
88 Views •RS-485: how to check a bus step by step
Short answer: with intermittent RS-485 errors, check the physical layer before the code. Check the bus in this order: topology, termination, bias, reference, cable and, last, the serial settings. Most of these checks need only a multimeter and the cable drawing.
Download the checklist (PDF, 2 pages)
Descarga la lista de comprobación (PDF, 2 páginas)
These checks work for any PLC, drive, meter or gateway with an RS-485 port. At the end you will find the page for your PLC range.
The idea in one minute
RS-485 sends data as the voltage difference between two wires, A and B. Noise that reaches both wires in the same way largely cancels out, as long as it stays inside the common-mode range of the receivers (−7 V to +12 V in TIA-485-A). This is why it works over long distances in noisy plants, as long as the bus is built as one line from node to node, with a termination resistor matching the cable impedance (typically 120 Ω) at each end.
Six checks, in order
| Check | What to do | Good result |
|---|---|---|
| 1. Topology | Draw how the cable is really installed | One line from node to node, short stubs, no star |
| 2. Termination | With all nodes powered off, measure the resistance between A and B | About 60 Ω (two 120 Ω in parallel). Bias resistors can lower it slightly |
| 3. Bias | Power on, stop all traffic and measure the DC voltage between + and - | Stable, at least 200 mV in magnitude |
| 4. Common reference | Disconnect the bus at one node and measure between the signal grounds of two distant nodes | Inside the common-mode range of the receivers, with no large jumps when machines start |
| 5. Cable and shield | Check the cable type and its route | Twisted pair matching the terminations (typically 120 Ω), away from drive outputs. Shield earthed as the device manufacturer or the site standard specifies |
| 6. Serial settings | Compare the settings of every node | Same baud rate, data bits, parity and stop bits, and no duplicate addresses |
What the readings tell you
- About 120 Ω: one termination is missing, or you are measuring only part of the bus.
- About 40 Ω or less: three or more terminations are enabled. Check the DIP switches of each device.
- Very high or open circuit: no termination, or a broken cable.
- Near 0 V with no traffic: the bus has no bias. Enable it at one point only, unless all receivers are true fail-safe.
If the bus has never worked
- Swap A and B at one device. Manufacturers do not use these letters in the same way, so follow the + and - marks.
- Compare the baud rate, parity and address on both sides.
- Check that the port is enabled and in the right mode. This depends on your PLC range.
Commenting is not enabled on this course.