Blog/Modbus

Modbus28 April 20266 minutes

Modbus RTU over RS-485: the five most common pitfalls when building the bus

RS-485 either runs for years without a hitch or causes sporadic trouble that cannot be reproduced. There is little in between. The cause is almost always one of five things – and all five arise during installation, not in operation.

Key points

  • Line topology with short stubs, no stars.
  • 120 Ω in exactly two places – the physical ends of the bus.
  • Every slave address exactly once.
  • A and B cannot be swapped, unlike M-Bus.

Pitfall 1: star wiring

By far the most common. RS-485 wants one continuous line from one end to the other, with stubs to the devices as short as possible. A star layout creates reflections at every branch.

The tricky part: at a low baud rate, a star-shaped bus often works anyway. It only fails when someone raises the baud rate or adds a device – months after installation, when nobody thinks about the wiring any more.

If you come from M-Bus, where star, tree and line topologies are explicitly allowed, it is particularly easy to fall into this trap.

Pitfall 2: termination resistors in the wrong place

120 Ω belongs at the two physical ends of the line. Not at every device, not in the middle, not at one end only.

Without termination you get reflections that show up as sporadic invalid CRC checksums – the bus runs, but individual telegrams are lost. With too many terminations, the signal level drops and distant devices fail.

Many devices have switchable termination on board. At commissioning, document on which two devices it is active.

Pitfall 3: duplicate slave address

Two devices with the same address answer at the same time. The master only sees corrupted telegrams and reports both as unreachable – which is misleading, because the problem looks like a wiring fault.

Valid addresses are 1 to 247. An address list kept before commissioning and handed over afterwards prevents the problem – and even more so the two-day search for it.

Pitfall 4: A and B swapped

RS-485 is not polarity-independent. A single wrongly connected device can disturb the whole segment, not just itself.

To make matters worse, the labelling varies between manufacturers – A and B, D+ and D−, or the assignment reversed. When in doubt, trust the manual, not the colour of the wire.

Pitfall 5: mismatched communication parameters

Baud rate, parity, data bits and stop bits must be identical on all devices. A device with different parity does not answer – or, worse, answers with garbage that disturbs other telegrams.

Then there is the silent interval of 3.5 character times that marks the start and end of a telegram. Pauses between requests that are too short lead to incomplete frames that occur sporadically and are hard to trace.

The checklist

  • Line topology, short stubs
  • 120 Ω in exactly two places, documented
  • Address list kept, each address once
  • A/B assignment checked against the manual for each device
  • Baud rate, parity, stop and data bits identical everywhere
  • Shield connected at one end, common reference present

The EMU M-Center has two separate RS-485 interfaces – useful for keeping two segments with different parameters apart instead of forcing everything onto one line.

Frequently asked questions


Why does my RS-485 bus only cause problems now and then?

Typically because of missing or too many termination resistors, or because of star wiring. Both cause reflections that show up as occasional invalid CRC checksums – the bus runs but loses individual telegrams.

Where do the 120-ohm termination resistors go?

At the two physical ends of the line, nowhere else. Too many terminations lower the signal level, too few cause reflections.

Which slave addresses are valid for Modbus RTU?

Addresses from 1 to 247, each exactly once on the segment. Duplicate addresses make devices answer at the same time and corrupt the telegrams.

Read more


SEITERS-485 / Modbus RTUInterface TXTModbus TCP or Modbus RTU? A decision guide for metering projectsBlog post SEITEEMU M-CenterProduct

Questions about your project?


Send us your meter list and the target system. We will tell you what works together – and what does not.

Phone
+41 (0)41 545 03 00

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