Tiza Group

Home / Guides / Testing, commissioning and faults

Modbus RTU errors after extending the cable

Modbus RTU fails after the RS-485 bus is extended: termination, biasing, stubs, length and how to measure them. We support your crew remotely.

By Shadai García, CEO and protection engineer at Tiza Group.

Short answer

If the bus worked and began failing when it was extended, suspect the extension: a terminator left in the middle, a long stub, a different cable, swapped wires or a signal common with no continuity. Confirm it by removing the new section and adding it back in a controlled way.

Symptom

The master read every device fine. A meter, a panel or several meters of cable were added and since then there are CRC error responses, timeouts or devices that answer only now and then. Sometimes only the new ones fail; other times also old ones nobody touched, which is confusing.

The frame, functions and registers are explained in Modbus RTU and TCP. Here the protocol did not change: the line did, and diagnosis starts there.

Likely causes, from most to least probable

CauseHow to recognise itWhat confirms itWhat rules it out
Terminator left at the old endSeveral devices fail, more at higher speedA resistor active at an intermediate point, or none at the new endExactly two terminators, at the ends
Long stub or star branchThe new section tees off the busDisconnecting the branch restores the restDaisy chain with no branches
Swapped wires or faulty spliceNothing answers beyond one pointCrossed or intermittent continuity, measured de-energizedDevices at the end answer well on their own
Signal common broken or connected at several pointsErrors when loads start or between buildingsThe third conductor is missing, or current flows on it or on the shieldContinuous common grounded at one point only
Different cable in the extensionControl cable without twisted pair was usedInspection of the cable typeSame cable and cross section
Biasing missing or duplicatedGarbage characters between framesIdle voltage between the two wires close to zero, or several bias networksOne bias network and a stable idle state
Too many devicesIt failed when nodes were added, not metersMore than 32 with no repeater and no documented reduced unit loadsFew nodes
Parameters or address of the new onesOnly new ones fail or two collideCompare baud rate, parity and addressesNew ones answer fine when tested alone

How to diagnose it

Give notice first: while the bus is worked on, data is lost, and if commands or permissives travel on it the process can be affected.

  1. Save a baseline. Request, response and error counters per device over a fixed period.
  2. Draw the real bus. Connection order, length of each section, location of terminators and biasing, and cable route.
  3. Go back to the previous state. Disconnect the extension at its joint and restore the old terminator. If errors disappear, the cause is in what was added.
  4. Add it back in stages, moving the terminator to the end of each stage and measuring again.
  5. Measure with devices de-energized. Between the two wires, with pure 150 Ω terminators at both ends, the reading is around 75 Ω, shifted by cable resistance. A 120 Ω terminator in series with a capacitor is invisible to an ohmmeter.
  6. Observe with an oscilloscope or passive analyzer, with someone who knows where to reference the probe: reflections after each edge point to termination or stubs; coupled noise, to routing or common.
  7. Check master timing. More devices lengthen the scan cycle, and a converter or repeater adds delay.

The Modbus guide sets the silence between frames at 3.5 characters and the maximum gap within a frame at 1.5 characters; above 19,200 baud it recommends fixed values of 1.75 ms and 750 µs. With 11 bits per character, at 9,600 baud each one lasts 11 / 9,600 = 1.15 ms and the silence is about 4 ms.

Illustrative example

A 200 m bus with 8 devices worked at 19,200 baud. It was extended 150 m to a new panel and 3 more devices were connected. The total length, 350 m, is far from the limit, so meters alone do not explain the fault.

Inspection finds that device number 8 keeps its terminator enabled and the new end also has one, besides the one at the start: three on a pair that allows two. With three 150 Ω resistors the transmitter sees about 50 Ω instead of 75 Ω, cable aside, and loses signal margin; there are also reflections at the intermediate one. The terminator of device 8 is disabled and errors go from 120 in 6,000 requests (2 %) to 0 in another 6,000. The figures are illustrative; yours must come from the counters before and after.

Field checklist

  • Same parameters everywhere: baud rate, parity and stop bits. By default the guide expects even parity.
  • Addresses not repeated, from 1 to 247.
  • Same polarity of both wires at every terminal; A and B labels are not uniform among manufacturers.
  • Exactly two terminators, at the ends.
  • Biasing at one place only; the guide states resistors of 450 to 650 Ω.
  • Stubs of 20 m at most; with a multiport tap, 40 m divided among them.
  • Signal common continuous and grounded at one point only.
  • Same cable type and shield continuous as designed.
  • Route separated from power cables and variable speed drives.

What to do

  • Termination and biasing. Relocate them and record on the drawing which device carries them.
  • Topology. Turn stars into a chain; if the route does not allow it, use a repeater that separates segments.
  • Cable. Replace any section that is not a suitable twisted pair.
  • Common. Restore it; between buildings or with potential differences, use galvanic isolation or fiber with converters.
  • Nodes. Split over two ports or add a repeater.
  • Timing. Set the timeout from the measured cycle, not at random, and limit retries.

What not to do

  • Do not splice or move wires inside energized panels without qualified personnel and lockout where required.
  • Do not add resistors at every device to reinforce the signal.
  • Do not ground the shield at extra points without reviewing the design.
  • Do not hide the problem by raising retries: data will arrive late and the error remains.
  • Do not connect an oscilloscope blindly: its ground can short the reference.

When to call us

Call if the error persists with the bus corrected, if there are runs between buildings at different potentials or if you need the link documented before handing over the extension. Your local crew measures and we review drawings, counters and captures online. Request remote support.

Common problems

Biasing and termination causing errors on the bus

The same problem appears without adding a single meter of cable: the device that provided the biasing was replaced, a converter was installed with its own bias enabled, or someone moved a DIP switch during maintenance.

  • No biasing when a device needs it. At idle no transmitter drives the pair and the receiver may read noise as data. It shows up as stray characters before or after frames and errors that change with nearby activity.
  • Biasing repeated. Several resistor sets add load on the transmitters. The Modbus guide asks for a single set for the whole bus, usually at the master or its tap.
  • Reversed biasing. The idle state has the opposite sign and communication fails consistently.
  • Extra, missing or misplaced terminator. The first loads the bus; the others leave reflections that matter more as speed goes up.

To confirm it, check the manual and the actual position of jumpers or DIP switches on each device. With the bus powered and the master not transmitting, measure the voltage between the two wires: RS-485 receivers only guarantee a defined state from 200 mV of difference, unless the manufacturer builds in its own idle protection. That measurement is for qualified personnel, without referencing the instrument to the wrong points.

Illustrative example: with 5 V, two 650 Ω bias resistors and two 150 Ω terminators (75 Ω in parallel), the ideal idle level is 5 × 75 / (650 + 75 + 650) = 0.27 V. It is an approximation that leaves out device loading. Where biasing is needed, the guide considers a 120 Ω terminator in series with a 1 nF capacitor a better choice, since it draws no DC current, and warns that with biasing the maximum number of devices drops by 4.

Correct one item at a time and compare counters over equal periods.

References

  • Modbus Organization, MODBUS over serial line specification and implementation guide, V1.02.
  • TIA/EIA-485-A, Electrical characteristics of generators and receivers for use in balanced digital multipoint systems.
  • Modbus Organization, MODBUS application protocol specification.

Frequently asked questions

What is the maximum length of a Modbus RTU bus?

The Modbus over serial line guide states 1,000 m for the trunk cable at up to 9,600 baud with AWG26 or wider conductors. The real limit depends on speed, cable, loads and topology; with Category 5 cable the same guide states up to 600 m.

Where does the terminator go after extending the bus?

At the two physical ends of the trunk cable and nowhere else. After extending, the former last device is no longer an end: remove or disable its terminator and fit it at the new end.

Does lowering the baud rate fix the errors?

It can add margin and works as a diagnostic test, but it does not fix reversed polarity, a badly made stub or a missing common. If it improves at lower speed, the physical medium is at its limit and should be corrected.

WhatsApp