Knowledge/Interfaces explained/RS485 and Modbus RTU

Interfaces explainedRS485

What is RS485 and Modbus RTU? Line and protocol explained

RS485 and Modbus RTU are often mentioned in the same breath, but they are two different things. RS485 defines how the signals travel over the line, Modbus RTU defines what is in the telegrams. Together they are one of the most widespread meter interfaces in industry and building services.

Key facts

  • RS485 (TIA/EIA-485) transmits data as a voltage difference on two wires, robust against interference and up to about 1200 m.
  • Modbus RTU is a master-slave protocol: one master asks, slaves with addresses 1 to 247 answer.
  • The line is laid as a daisy chain and terminated with 120 Ω at both ends.
  • Measured values are held in 16-bit registers. 32- and 64-bit values occupy two or four registers.
  • Every telegram is secured with a CRC16 checksum.

On this page

What is RS485?

RS485 is a standard for electrical transmission, not a protocol. The data travels as a voltage difference between two wires, usually called A and B, sometimes D+ and D−. Because the receiver only evaluates the difference, interference that affects both wires equally largely cancels out. That is why RS485 also works in control cabinets with frequency converters and over long distances.

Classically, one segment handles 32 nodes (unit loads); modern drivers load the bus with only a fraction of that. The line can be about 1200 m long, less at high baud rates.

Various protocols run over RS485, besides Modbus RTU for example BACnet MS/TP. With an RS485 power meter, it is therefore only clear together with the protocol how it is read.

How is an RS485 bus cabled correctly?

  • Lay it as a line: from device to device, without a star and without long branches.
  • Fit one 120 Ω terminating resistor at each of the two ends of the line, not at every device.
  • Use twisted, shielded data cable, ideally with a characteristic impedance of around 120 Ω.
  • Run the reference ground (GND) along with it if the devices are far apart or powered differently.
  • Set the same baud rate, parity and stop bits on all devices.

The most common pitfalls when building the bus are described in the article Modbus RTU over RS-485: the five most common pitfalls.

What is Modbus RTU?

Modbus is an open protocol that Modicon developed for controllers in 1979. RTU stands for Remote Terminal Unit and denotes the binary variant for serial lines. A master, such as a PLC, a data logger or an energy management system, sends a request to a slave address, and only that device answers. A slave never transmits of its own accord.

A telegram consists of address, function code, data and a CRC16 checksum. Between two telegrams there is a pause of at least 3.5 character times, by which the devices recognise beginning and end.

Function codeMeaningTypical use
03Read holding registersMeasured values and settings
04Read input registersMeasured values
06Write a single registerChange a setting
16Write multiple registersWrite several values in one block

How do you read Modbus registers correctly?

Modbus only knows 16-bit registers. A meter reading with 32 or 64 bits is spread over two or four consecutive registers. Whether the high-order word comes first is up to each manufacturer. If a system delivers nonsensical values, the byte or word order is usually swapped.

The way addresses are counted also differs: some manuals count from 0, others from 1. If a value is shifted by exactly one register, that is almost always the reason.

When does Modbus RTU over RS485 fit?

Modbus RTU fits when a controller or data logger polls meters directly in the same control cabinet or building and no network runs to the meters. With many meters in several buildings or several target systems, a gateway pays off. The comparison with the network variant is in the article Modbus TCP or Modbus RTU? and on the page What is Modbus TCP?.

RS485 and Modbus RTU with EMU devices

The RS485 power meter EMU Professional II speaks Modbus RTU, as EMU Professional II 3/100 for direct connection up to 100 A or as 3/5 for CT connection.

The EMU M-Center has two RS485 ports, reads up to 64 Modbus RTU devices and passes the values on via BACnet IP or MQTT.

Frequently asked questions


What is the difference between RS485 and Modbus?

RS485 is the electrical transmission on two wires, Modbus RTU the protocol that runs over it. Other protocols can also run over RS485, and Modbus also exists over Ethernet as Modbus TCP.

Can an RS485 bus be laid in a star?

No. Only a line with short branches works reliably. Stars and long branches cause reflections that make telegrams unreadable. If the devices are distributed in a star, a repeater or a hub with separate segments helps.

Where does the terminating resistor go?

At the two physical ends of the line, 120 Ω each between A and B. A resistor at every device loads the bus too heavily.

How many devices fit on one Modbus RTU bus?

The protocol allows 247 addresses. Electrically, RS485 limits a segment to 32 unit loads; with drivers that draw only a fraction of that, more devices are possible. In practice the polling time is often the limit: the more devices, the longer one cycle takes.

Which settings have to match?

Baud rate, data bits, parity and stop bits must be the same on the master and on all slaves. 9600 or 19200 baud with 8 data bits are common.

Read more


SEITERS485 power meterEMU Professional II with Modbus RTU SEITERS485 pitfallsThe five most common pitfalls when building the bus SEITEModbus TCP or RTU?Decision guide for metering projects SEITEInterfaces explainedAll five interfaces compared

Questions about your RS485 bus?


Send us the number of devices, the cable lengths and the target system. We will tell you which set-up works reliably.

Phone
+41 (0)41 545 03 00

Technical support
helpdesk [at] emuag.ch
Support form →