Call Phone +8618073152920 Hotline: +8618073152920
Call Phone +8618073152920
English
CONTACT US/ CONTACT US
Consumer hotline +8618073152920
Changsha Zoko Link Technology Co., Ltd.

Email:Arvin@niubol.com

WhatsApp:+8615367865107

Address:Room 102, District D, Houhu Industrial Park, Yuelu District, Changsha City, Hunan Province, China

Position:Home >> Blogs >> Product knowledge

Product knowledge

RS485 vs Modbus: Differences, Wiring & How They Work Together

Time:2021-12-30 21:44:30 Popularity:5209

RS485 vs Modbus: Differences, Wiring and Integration Guide

RS485 and Modbus are not the same thing. RS485 defines the electrical communication interface used to transmit data, while Modbus defines the communication rules and data format used by devices to exchange information.

A simple way to understand the relationship is:

RS485 = How the electrical signal is transmitted
Modbus RTU = What the devices say to each other

This is why industrial sensors are commonly described as RS485 Modbus RTU sensors. RS485 provides the physical serial bus, while Modbus RTU defines addresses, commands, registers and data frames.

RS485 vs Modbus at a Glance

ItemRS485Modbus RTU
TypeElectrical / physical communication standardCommunication protocol
Main PurposeTransfers serial electrical signalsDefines how devices exchange data
Typical WiringDifferential A/B pairUses the RS485 serial connection
Device AddressNot defined by RS485 itselfEach slave/server normally has a unique address
RegistersNot definedDefines coils, inputs and data registers
Error CheckNot an application protocol functionCRC-16 in Modbus RTU frames

What Is RS485?

RS485 is a serial communication electrical standard designed for reliable differential data transmission. Instead of transmitting a signal relative to ground on one wire, RS485 normally uses two signal conductors, commonly called A and B.

The receiver determines the data state from the voltage difference between the two conductors. This differential method provides better noise immunity than single-ended interfaces such as traditional RS232, making RS485 suitable for industrial sites and longer cable runs.

RS232 RS422 and RS485 wiring comparison

RS232 vs RS422 vs RS485

FeatureRS232RS422RS485
Signal TypeSingle-endedDifferentialDifferential
Typical NetworkPoint-to-pointOne driver, multiple receiversMulti-device bus
Noise ResistanceLowerHighHigh
Common Industrial UseLegacy serial equipmentSpecialized serial systemsSensors, PLCs, RTUs and field devices

What Is Modbus?

Modbus is an industrial communication protocol that defines how a controller and field devices exchange data.

A Modbus message can contain:

  • Device address

  • Function code

  • Register address

  • Number of registers

  • Data

  • Error-checking information

With Modbus RTU, these messages are transmitted through a serial interface such as RS485.

Modbus RTU and Modbus TCP data frame structure

Modbus RTU vs Modbus TCP

FeatureModbus RTUModbus TCP
TransportSerial communicationEthernet / TCP/IP
Common Physical InterfaceRS485Ethernet
Error CheckingCRCHandled by TCP/IP stack
Typical ApplicationSensors and field busesPLC, SCADA and Ethernet networks

How RS485 and Modbus Work Together

When an RS485 soil sensor is described as supporting Modbus RTU, the complete communication process is:

Sensor Measurement → Modbus Register → Modbus RTU Frame → RS485 A/B Electrical Signal → PLC / Data Logger

For example, a soil moisture sensor may store moisture at register 0x0000 and temperature at register 0x0001. A PLC sends a Modbus request over RS485, the sensor reads the requested registers, and the measurement is returned in a Modbus RTU response.

RS485 Wiring for Sensors

A typical powered RS485 sensor uses four conductors:

WireFunction
Power +DC positive supply
Power −DC negative / reference
RS485 ADifferential communication line
RS485 BDifferential communication line

Important: A/B labeling is not completely consistent between all manufacturers. If communication fails after installation, check the actual terminal definition in the device manual instead of assuming that every manufacturer's A/B naming is identical.

How to Connect Multiple RS485 Sensors

One of the biggest advantages of RS485 is that multiple Modbus sensors can share one communication bus.

Sensor 1 → Sensor 2 → Sensor 3 → Sensor 4 → RS485 Master / Gateway

Each Modbus device must use a unique address. All devices on the same bus should normally use compatible serial settings such as the same baud rate, data bits and parity.

DeviceExample Modbus Address
Soil Moisture Sensor 11
Soil Moisture Sensor 22
Soil pH Sensor3
Weather Sensor4

Recommended RS485 Bus Topology

RS485 should normally be wired as a bus or daisy chain rather than a large star network.

Recommended:

Master ─ Sensor 1 ─ Sensor 2 ─ Sensor 3 ─ Sensor 4

Avoid where possible:

Master → multiple long branches in a star topology

Long branches create signal reflections and can reduce communication reliability, particularly at higher baud rates and longer distances.

RS485 Termination Resistors

For longer RS485 networks, termination resistors may be required to reduce signal reflections. A common practice is to install approximately 120 Ω termination at the two physical ends of the RS485 bus.

Do not automatically install a termination resistor at every sensor. Too many termination resistors load the bus and can cause communication failure.

Network PositionTypical Termination
First physical end120 Ω where required
Middle devicesNormally no termination
Last physical end120 Ω where required

How Far Can RS485 Transmit?

RS485 is often described as supporting transmission distances up to approximately 1200 m, but this should not be treated as a guaranteed distance for every installation.

Actual reliable distance depends on:

  • Baud rate

  • Cable type and impedance

  • Number of devices

  • Stub length

  • Termination

  • Ground potential differences

  • Electromagnetic interference

  • Transceiver characteristics

  • Installation quality

As distance increases, lower communication speeds are generally easier to maintain reliably.

Which Cable Should Be Used for RS485?

Use a twisted pair for the RS485 A/B lines. Shielded twisted-pair cable is useful in electrically noisy environments.

For agricultural and sensor projects, the power supply conductors should also be sized according to total sensor current and cable distance. A communication network may work correctly while the sensor itself fails because excessive voltage drop prevents adequate power from reaching the remote device.

RS485 Grounding and Shielding

RS485 uses differential signaling, but that does not mean grounding can always be ignored. Large ground-potential differences between distant devices can exceed the transceiver common-mode range and cause unstable communication or hardware damage.

For long industrial networks, consider:

  • A signal-reference conductor where required by the equipment design

  • Shielded cable in high-interference environments

  • Appropriate shield grounding according to site EMC practice

  • Galvanically isolated RS485 converters where large potential differences are expected

  • Surge protection for long outdoor cables

Common Modbus RTU Settings

SettingCommon Example
Baud Rate9600 bps
Data Bits8
ParityNone / Even depending on device
Stop Bits1 or 2 depending on configuration
Slave / Server AddressUnique for every device

Do not assume every Modbus sensor uses 9600, 8N1. Always check the actual device manual and configure the PLC or gateway to match.

Common Modbus Function Codes

Function CodeFunction
01Read Coils
02Read Discrete Inputs
03Read Holding Registers
04Read Input Registers
06Write Single Register
16Write Multiple Registers

What Is a Modbus Register?

A Modbus register is a defined data location inside a device. Sensors use registers to store measurements and configuration values.

For example:

RegisterExample Data
0x0000Temperature
0x0001Humidity or Moisture
0x0002EC or another parameter

The actual register map is product-specific. Always obtain the correct Modbus register table for the exact sensor model.

Recommended RS485 Sensor Example

NiuBoL agricultural and environmental sensors commonly use RS485 Modbus RTU so they can connect directly to PLCs, data loggers and IoT gateways.

RS485 Modbus soil moisture temperature sensor

NBL-S-THR RS485 Soil Moisture & Temperature Sensor
Suitable for agriculture, irrigation, greenhouse and IoT monitoring. The RS485 Modbus version can connect to PLCs, RTUs and data loggers and can share a bus with other uniquely addressed Modbus sensors.
View Product →

RS485 Modbus wind speed sensor anemometer

NBL-W-SS RS485 Wind Speed Sensor
An example of an environmental sensor that can provide RS485 Modbus output for integration with weather stations, PLCs and data-acquisition systems.
View Product →

RS485 Sensor to PLC Integration

To connect an RS485 Modbus sensor to a PLC:

  1. Confirm the sensor power supply.

  2. Connect RS485 A/B correctly.

  3. Confirm sensor Modbus address.

  4. Confirm baud rate, parity and stop bits.

  5. Obtain the Modbus register map.

  6. Configure the PLC as Modbus RTU master/client.

  7. Read the required registers.

  8. Apply the scaling factor specified by the manufacturer.

Sensor → RS485 Modbus RTU → PLC → HMI / SCADA

RS485 Sensor to IoT Gateway Integration

For remote monitoring, an RS485 sensor can connect to a 4G, Ethernet or LoRaWAN gateway.

RS485 Sensor → IoT Gateway → 4G / Ethernet / LoRaWAN → MQTT / HTTP → Cloud or Private Server

The gateway polls the Modbus registers and converts the measurement into a network protocol such as MQTT or HTTP.

Common RS485 Communication Problems

ProblemLikely CauseCheck
No responseA/B reversed, wrong address or no powerPower, polarity, address and serial settings
Intermittent dataNoise, topology or termination problemCable routing, shield, bus topology and termination
Wrong valuesWrong register or scalingRegister map, byte order and scaling factor
Only one device worksDuplicate addressesAssign unique Modbus addresses
Remote sensor resetsVoltage dropMeasure supply voltage at the remote sensor

RS485 and Modbus FAQ

Q1. Is RS485 the same as Modbus?

A1. No. RS485 is an electrical serial communication standard. Modbus is a communication protocol. Modbus RTU commonly operates over RS485.

Q2. Can RS485 work without Modbus?

A2. Yes. RS485 can carry many different serial protocols. Modbus RTU is only one of the most common protocols used over RS485.

Q3. Can Modbus work without RS485?

A3. Yes. Modbus RTU can operate over serial interfaces such as RS232 or RS485, while Modbus TCP operates over Ethernet/TCP-IP.

Q4. How many sensors can connect to one RS485 bus?

A4. The practical number depends on the RS485 transceivers, network loading, cable length and system design. Modbus addressing also requires every sensor to have a unique address. For larger networks, repeaters or segmented buses may be required.

Q5. Does every RS485 sensor need a different address?

A5. Yes, when multiple Modbus devices share one bus, each active device normally needs a unique slave/server address.

Q6. Should RS485 A and B be twisted together?

A6. Yes. A/B should normally use a twisted pair because twisting improves rejection of electromagnetic interference.

Q7. Do I need a 120-ohm termination resistor?

A7. It depends on cable length, baud rate and network design. For longer buses, approximately 120 Ω termination is commonly installed at the two physical ends of the bus, not at every device.

Q8. Why does my RS485 sensor work at short distance but fail at long distance?

A8. Common causes include unsuitable cable, excessive baud rate, voltage drop, poor topology, missing termination, ground-potential differences and electromagnetic interference.

Q9. Can RS485 sensor data be sent through MQTT?

A9. Yes. An IoT gateway can read Modbus RTU registers through RS485 and convert the data into MQTT messages for transmission to a broker or private server.

Q10. What information do I need to integrate an RS485 sensor?

A10. You need the sensor power requirement, A/B wiring definition, Modbus address, baud rate, parity, stop bits, function code, register map, data format and scaling factor.

RS485 Modbus Sensors from NiuBoL

NiuBoL provides RS485 Modbus sensors for weather, soil, agriculture, water quality, water level and environmental monitoring. Sensors can connect directly to PLCs, RTUs and data loggers or to IoT gateways for MQTT, HTTP and private-server integration.

For integration support, provide the sensor model, number of devices, cable distance, power supply, PLC or gateway model and required server protocol.

View NiuBoL Data Collectors & IoT Communication Devices →

Related recommendations

Sensors & Weather Stations Catalog

Agriculture Sensors and Weather Stations Catalog-NiuBoL.pdf

Weather Stations Catalog-NiuBoL.pdf

Agriculture Sensors Catalog-NiuBoL.pdf

Water Quality Sensor Catalog-NiuBoL.pdf

Related products

Tell us your requirements, Let's discuss more about your project.we can do more.

Name*

Tel*

Email*

Company*

Country*

Message


online
Contacts
Email
Top
XRS485 vs Modbus: Differences, Wiring & How They Work Together-Product knowledge-Automatic Weather Stations_Industrial, Agricultural, Water & Environmental IoT Monitoring Solutions—NiuBoL

Screenshot, WhatsApp to identify the QR code

WhatsApp number:+8615367865107

(Click on WhatsApp to copy and add friends)

Open WhatsApp

The WhatsApp ID has been copied, please open WhatsApp to add consultation details!
WhatsApp