# RS-485 and Modbus: how to wire a bus that works

> How RS-485 and Modbus RTU fit together: wiring rules, termination, biasing, cable length vs baud rate, the A/B naming trap and a troubleshooting table.

RS-485 is the cable, Modbus RTU the language spoken on it. Here are the numbers from TIA-485-A and the Modbus serial line specification, the wiring rules that matter and a table for the day the bus stays silent.

**The short answer:** RS-485 is the electrical layer, Modbus RTU the protocol on top. RS-485 sends data as a voltage difference on a twisted pair, so one bus can serve 32 unit loads over about 1,000 m (3,300 ft). Wire it as a daisy chain with a common wire, terminate both ends and bias the line at one point.

## RS-485 and Modbus: two layers, one cable

RS-485 was approved by the Electronics Industries Association in 1983 and lives on as TIA/EIA-485-A. It is an electrical-only standard. It defines drivers and receivers for a balanced multipoint line. It says nothing about protocol, connector or baud rate [1].

Modbus fills in the rest. Its serial line specification defines the frames and also adds the wiring rules RS-485 leaves open: topology, common wire, termination, biasing and cable [2].

| Question | Answered by |
|---|---|
| Voltages, number of loads, common-mode range | TIA/EIA-485-A |
| Topology, termination, biasing, cable, pin names | Modbus over Serial Line, chapter 3 |
| Baud rate, parity, framing, addresses, CRC | Modbus over Serial Line, chapter 2 |
| Registers and function codes | Modbus Application Protocol |

## Key RS-485 numbers

| Parameter | Value |
|---|---|
| Signal | Differential. Drivers deliver at least 1.5 V across a 54 Ω load. Receivers detect 200 mV. [1] |
| Common-mode range | −7 V to +12 V [1] |
| Loads | 32 unit loads, one unit load ≈ 12 kΩ. 1/8 unit load transceivers allow up to 256 nodes. [1] |
| Highest data rate | 10 Mbit/s at 40 ft (12 m) [1] |
| Longest cable | 4,000 ft (about 1,200 m) at 100 kbit/s [1] |
| Modbus: longest trunk without repeater | 1,000 m at 9,600 bit/s with AWG26 or thicker; Category 5 cable up to 600 m [2] |
| Modbus: devices per segment | 32 always allowed without repeater [2] |
| Modbus: addresses | 1–247 [2] |

The differential signal is why RS-485 survives plant floors. Noise hits both wires of the twisted pair alike. The receiver only looks at the difference.

## RS-485 vs RS-232

Modbus RTU also runs on RS-232. The two are often confused because both show up as a COM port on a PC.

| | RS-232 | RS-485 |
|---|---|---|
| Signal | Single-ended, measured against ground | Differential, on a twisted pair |
| Devices | Point to point, two devices | Multipoint, 32 unit loads per segment |
| Reach for Modbus | Short, typically under 20 m [2] | Up to 1,000 m at 9,600 bit/s [2] |
| Typical use | A PC talking to one analyzer | Several devices on one bus |

If more than one device has to share a line, or the line leaves the cabinet, RS-485 is the right choice.

## How to wire an RS-485 Modbus bus

1. **Daisy chain, no star.** One trunk cable runs from device to device. Drops to a device, called derivations, stay under 20 m. A multi-port tap with *n* drops allows 40 m ÷ *n* per drop [2].
2. **Three conductors, not two.** A twisted pair for D0 and D1 plus a common wire: "a third conductor must also interconnect all the devices of the bus" [2]. Connect the common to protective ground at one point only, usually at the master [2].
3. **Shielded cable.** Ground the shield at one end of each cable. AWG 24 is always thick enough for Modbus data. A characteristic impedance above 100 Ω is preferred at 19,200 bit/s and up [2].
4. **Terminate both ends.** One line termination near each end of the trunk, never on a drop, never more than two per pair. Modbus allows 150 Ω (0.5 W). A 120 Ω resistor in series with 1 nF is the better choice when the line is biased [2]. Termination stops reflections at the cable ends.
5. **Bias once.** An idle RS-485 line is not driven and picks up noise. If a device needs biasing, add one pull-up from D1 to 5 V and one pull-down from D0 to common, each 450–650 Ω, at a single point, usually the master. The allowed device count then drops by four [2].
6. **Two-wire unless you need four.** Two-wire, half duplex, is the common Modbus case. Four-wire uses one pair for the master and one for the slaves. A crossed Category 5 cable in a two-wire system "may cause damages" [2].

## A, B, D0, D1: the naming trap

The Modbus specification names the conductors D0 and D1 and maps them to the TIA terms: **D0 = A, D1 = B**. For a binary 1, the idle state, D1 is more positive than D0 [2].

Device makers do not agree. Some print A and B the other way round. Many print + and −, where + usually means B. The pin label on a transceiver chip may not match the standard's A and B either [3]. Swapped wires rarely damage anything. They just stop all communication.

**Field check:** with the bus biased and idle, measure D1 against D0. The reading should be positive. A negative value means the pair is crossed somewhere.

## Cable length vs baud rate

A conservative rule of thumb from Texas Instruments: cable length in meters times data rate in bit/s should stay below 10⁷ [1].

| Baud rate | Rule-of-thumb length | Modbus specification |
|---|---|---|
| 9,600 bit/s | about 1,000 m | 1,000 m with AWG26 or thicker |
| 19,200 bit/s | about 520 m | – |
| 38,400 bit/s | about 260 m | – |
| 115,200 bit/s | about 85 m | – |

Real cables often do better than the rule. The Modbus specification adds that the limit depends on baud rate, gauge, capacitance, number of loads and wiring. Four-wire cable used as two-wire halves it [2]. For long runs across a biogas plant, 9,600 or 19,200 bit/s are safe choices.

Distance also brings ground potential differences between buildings. They add to the signal as common-mode noise. Galvanically isolated transceivers tolerate several kilovolts [1].

## How many devices fit on one bus?

Three limits apply. The lowest one wins:

- **Electrical:** 32 unit loads. Reduced-load transceivers allow more. Bias resistors cost load too. TI counts up to 20 unit loads for a failsafe bias network [1].
- **Protocol:** 32 devices always, more only if the device documentation says so. Addresses end at 247 [2].
- **Time:** the master polls one device after another. Reading many registers from 32 devices at 19,200 bit/s takes seconds per round. The math is in [Modbus TCP vs RTU](https://factory-software.com/learn/modbus-tcp-vs-rtu/).

## Troubleshooting table

| Symptom | Likely causes |
|---|---|
| No device answers | A and B swapped; baud rate, parity or stop bits differ; RTU and ASCII mode mixed; wrong address |
| One device silent, the rest fine | Duplicate or wrong address; that device's serial settings |
| Works on the bench, fails in the field | Missing termination on the long cable; no bias; ground potential difference |
| Random CRC errors or timeouts | Star wiring or long drops; termination missing or tripled; master polls faster than the device answers |
| Errors when a pump or motor starts | Cable laid next to power cables; shield not grounded; no isolation |
| Problems start after adding a device | Too many unit loads; a second bias network; a third termination |

## Example: analyzers in a container

A typical biogas or RNG site puts its gas analyzers in a container or cabinet. Three analyzers on one RS-485 bus, a short trunk and an isolated USB-to-RS-485 converter at a PC in the same container: that is a small, sturdy setup. Terminate at the converter and at the last analyzer. Bias at the converter if it offers it. Run the trunk away from the power cables of the heated sample lines and pumps.

## Where Factory fits

The [Factory connector](https://factory-software.com/platform/connector/) reads Fresenius Instruments gas analyzers over exactly these cables: RS-485, RS-232, USB or a serial-to-Ethernet converter. It finds the analyzers on its own by trying the baud rates they can be set to and asking each one who it is. It checks its serial ports again every few minutes, so an analyzer added later turns up without a restart. Settings live in Factory, not on the PC. The connector speaks each analyzer's own format, not Modbus RTU.

**Coming 2027:** [Factory Studio](https://factory-software.com/studio/) also reads Modbus RTU devices from other makers, such as flow meters and drives, next to Modbus TCP, OPC UA, Siemens S7, MQTT and BACnet.

## Sources

1. Texas Instruments, Thomas Kugelstadt, *The RS-485 Design Guide*, SLLA272D, February 2008, revised May 2021. [ti.com](https://www.ti.com/lit/an/slla272d/slla272d.pdf)
2. Modbus Organization, *Modbus over Serial Line Specification and Implementation Guide V1.02*, 20 December 2006, chapter 3. [modbus.org](https://modbus.org/modbus-specifications)
3. Advantech, "Polarities for Differential Pair Signals", white paper. [advantech.com](https://www.advantech.com/resources/white-papers/2fde048f-f42c-439b-b0a9-485cd548f172)

## FAQ

### Is RS-485 the same as Modbus?

No. RS-485 only defines the electrical signals on the wire. Modbus RTU defines the messages. Modbus RTU usually runs on RS-485, but RS-485 also carries other protocols. See [Modbus TCP vs RTU](https://factory-software.com/learn/modbus-tcp-vs-rtu/).

### How many devices can share one RS-485 Modbus bus?

32 devices per segment are always allowed by the Modbus specification. Transceivers with a reduced unit load allow more, up to 256 with 1/8 unit load parts. Repeaters extend further. Modbus addresses stop at 247.

### What is the maximum RS-485 cable length?

RS-485 is rated for about 1,200 m (4,000 ft) at 100 kbit/s. The Modbus specification gives 1,000 m at 9,600 bit/s with AWG26 or thicker cable. The faster the baud rate, the shorter the cable.

### Do I need termination resistors on RS-485?

The Modbus specification requires a line termination near each of the two ends of the bus and none anywhere else. Short bench setups may work without, but a real installation should not rely on luck.

### Should I use 2-wire or 4-wire RS-485 for Modbus?

Two-wire is the common Modbus case: one twisted pair plus the common wire, half duplex. Four-wire is an optional add-on with separate pairs for master and slaves.

### How do I connect an RS-485 device to a PC?

With a USB-to-RS-485 converter, preferably galvanically isolated, or with a serial-to-Ethernet converter on the network. The PC then sees a COM port or a network address.

---

Source: https://factory-software.com/learn/rs485-modbus/
Publisher: Fresenius Instruments (Fresenius Umwelttechnik GmbH), Herten, Germany.
