1. The RS-485 Physical Layer: How Modbus RTU Transmits Data
Modbus RTU is an application-layer messaging protocol that runs on top of an RS-485 (TIA/EIA-485-A) physical serial layer. Unlike RS-232 (which uses single-ended voltage referenced to chassis ground), RS-485 uses differential voltage signaling over a twisted pair of copper wires.
In RS-485:
- Logic 1 (Mark / Idle State): Line B is at least 200mV higher in voltage than Line A ($V_B - V_A \ge +0.2\text{V}$).
- Logic 0 (Space / Active State): Line A is at least 200mV higher in voltage than Line B ($V_A - V_B \ge +0.2\text{V}$).
Because external electromagnetic noise (from nearby VFDs, motors, or contactors) couples equally into both tightly twisted wires, the differential voltage between the two lines remains unaffected. This common-mode rejection gives RS-485 incredible noise immunity across cable lengths up to 1,200 meters (4,000 feet) at baud rates from 9,600 bps to 115,200 bps.
2. Topology Rules: Daisy-Chain vs. Star Networks
The single most frequent wiring mistake made by electricians and technicians is connecting Modbus RTU devices in a star, tree, or ring topology. RS-485 is mathematically and physically designed strictly as a linear multidrop daisy-chain trunk line.
Daisy-Chain Wiring (The Only Correct Topology)
The cable must travel directly from the master controller to the first slave device, then from the first slave to the second slave, continuing in a continuous line to the final slave. At each device terminal block, the incoming cable and outgoing cable are tied directly together at the same screw terminal.
The Danger of Star Topology and Long Stub Lines (Tees)
When you create a star junction or branch off a trunk line with a long spur (stub > 1 meter), the stub behaves as an unterminated transmission line. High-frequency edge transitions bounce off the end of the stub and re-enter the main trunk as reflection echoes, corrupting valid byte frames and triggering constant CRC errors.
3. Termination Resistors (120 Ω): Where and Why
Industrial twisted-pair cable (such as Belden 9841 or 3105A) has a characteristic impedance ($Z_0$) of 120 ohms. When an electrical signal travels along this cable and reaches an open wire end, the abrupt impedance change causes 100% of the signal energy to reflect back toward the sender.
To eliminate reflections, you must install a 120-ohm, 1/4-watt resistor across Line A and Line B at the two extreme physical ends of the daisy-chain network:
- One resistor at the Master controller (or the first device if the master is located in the middle).
- One resistor at the furthest downstream Slave device.
4. Fail-Safe Biasing: Preventing Noise on Idle Lines
When no device on the Modbus network is actively transmitting (the idle line state between request and response frames), the differential lines enter a high-impedance floating state. In this condition, ambient factory floor electromagnetic noise can trigger phantom start bits on sensitive transceivers.
Fail-safe biasing resistors pull the idle line to a known, stable Logic 1 state:
- Pull-up Resistor (e.g. 560Ω to 1kΩ): Connects Line B (+) to +5V DC.
- Pull-down Resistor (e.g. 560Ω to 1kΩ): Connects Line A (-) to 0V DC (Signal Ground).
This guarantees that during idle periods, $V_B - V_A$ remains at least +200mV, completely preventing false frame triggers.
5. A vs B Polarity: Resolving the Universal Manufacturer Confusion
Different PLC and instrument manufacturers label RS-485 terminals inconsistently:
| Standard / Vendor | Non-Inverting Line (Data +) | Inverting Line (Data -) | Idle Voltage Relative to Ground |
|---|---|---|---|
| TIA/EIA-485 Standard | Line B | Line A | Line B is positive ($+3.3\text{V} / +5\text{V}$), Line A is negative |
| Modicon / Schneider Electric | Line A (D1 / Data +) | Line B (D0 / Data -) | Line A is positive, Line B is negative |
| Siemens / Allen-Bradley | TxD/RxD-P (+) | TxD/RxD-N (-) | P is positive, N is negative |
| Generic Energy Meters & VFDs | RS485+ or A+ | RS485- or B- | A+ is positive, B- is negative |
6. Shielding and Signal Ground: Preventing Ground Loops
RS-485 transceivers require a common voltage reference. While the data travels differentially across A and B, transceivers will be destroyed if the ground potential difference between two buildings exceeds the standard's -7V to +12V common-mode limit.
- Use 3-Conductor or 2-Conductor Shielded Cable: Use one twisted pair for Data A and Data B, and use a third dedicated conductor for Signal Ground (GND/COM).
- Shield Grounding Rule: Ground the braided cable shield at ONE point only (typically at the main control cabinet ground bus). If you ground the shield at both ends of a 500-meter run, differences in earth potential will drive massive circulating ground currents through the shield, inducing noise into the communication lines.
7. How to Simulate & Validate Modbus RTU on PC Before Wiring
Instead of troubleshooting 30 physical field devices on-site in a noisy control room, automation engineers use software simulators to validate communication integrity in advance.
With Modbus Slave Simulator and an inexpensive USB-to-RS485 converter dongle:
- Plug the USB-to-RS485 adapter into your laptop. Windows assigns a COM port (e.g. COM3).
- Launch ModbusSimulator, select Modbus RTU Slave, and configure Unit ID, Baud Rate (e.g. 19200), Parity (Even), and Stop Bits (1).
- Connect the RS485 A/B terminals of the dongle to your PLC's serial communication card.
- Trigger polling from the PLC and inspect live raw hex byte traffic in the simulator's communication log window to confirm CRC integrity, response timing, and register addressing.
Test Modbus RTU & TCP Networks in Minutes
Download ModbusSimulator for Windows. Simulate up to 100 simultaneous RTU/TCP slave devices, inspect raw serial packets, and validate PLC logic without physical instruments.
8. Frequently Asked Questions
Why is a 120-ohm termination resistor required on an RS485 Modbus network?
RS-485 cables have a characteristic impedance of 120 ohms. When electrical signals reach an open-ended cable, the impedance step causes signal reflections that corrupt data frames. 120-ohm resistors at the bus ends absorb signal energy and prevent reflections.
Where should termination resistors be placed on an RS485 bus?
Termination resistors must be placed ONLY at the two extreme physical ends of the daisy-chain trunk line. Never add termination resistors to intermediate slaves.
Why does star or tee topology cause communication failures in RS485?
Star and tee topologies create multiple unterminated stub endpoints. Electrical signals reflect back from each stub into the main line, resulting in framing errors and checksum faults.
Is a third wire (Signal Ground) needed for RS485 communication?
Yes. Transceiver chips require a common reference within -7V to +12V. Connecting a dedicated signal reference wire prevents ground shifts between remote panels from burning out transceiver ICs.