author
Bobby Brown
Post 2023-07-31
What is RS485? Understand RS485 in 5 Minutes

Contents


What is RS485?

RS485, also known as TIA-485(-A) or EIA-485, is a standard for the electrical characteristics of drivers and receivers in serial communication systems. As outlined by Wikipedia,

RS485 specifies the electrical characteristics for 2-wire, half-duplex, and multi-point communication, utilizing differential twisted pairs to transmit signals. The voltage difference between the two ends of the cable must be at least 0.2V, and valid within a range of -7V to 12V. The shorter the distance, the higher the data transmission rate. It is well-suited for long-distance, high-efficiency communication in electrically noisy environments.

The RS485 standard only defines the electrical characteristics such as voltage and signal transmission, ensuring physical connections can transmit signals between devices. However, it does not specify how to encode or decode data, or the data transmission format, leaving these aspects to higher-level communication protocols.

[1]
As RS485 doesn't define communication protocols like speed or format, it must be paired with protocols (e.g., Modbus, ASCII) for data transmission and interpretation. RS485 sends differential signals, where high and low voltages represent binary 0 and 1, allowing for efficient, long-distance communication in noisy environments.
Schematic diagram of binary 0 and 1 signal transmission

In most cases, RS485-based devices can employ communication protocols such as Modbus and ASCII to establish communication with a central control system. To illustrate, let's consider LORRIC's paddle wheel flowmeter, which utilizes Modbus as the underlying protocol for defining various signal transmissions. The flowmeter leverages RS485 for signal transmission and is connected in a serial configuration with the customer's central control system. Through appropriate programming and configuration settings within the central control system, relevant flow measurement data can be read from the flowmeter.


1. RS485: Wiring Solution for Multi-Device Daisy Chain

RS485 provides a means of interconnecting multiple devices in a series using a twisted pair of wires to facilitate data exchange. It offers two primary wiring methods: two-wire half-duplex and four-wire full-duplex. While four-wire full-duplex exists, it is less prevalent in current applications, with the two-wire half-duplex configuration being the predominant wiring method in use today.

RS485 Multi-Device Daisy Chain Wiring Scheme
The picture shows the RS485 wiring scheme, including device interconnection, twisted pair cable structure, and signal transmission.
  • Devices (Device 1, Device 2, Device N) are connected in series, forming a daisy chain topology. Each device's A+ and B- ports are connected to the corresponding ports of the next device using twisted pair cables. The wiring method uses A+ and B- lines, representing a two-wire half-duplex configuration, which is the most commonly used wiring method in RS485. 
  • The left side of the image shows the structure of the twisted pair cable, including copper wire, shielding, and insulation. This cable structure helps maintain stable data transmission in electrically noisy environments. It should be noted that the connection wires between each device should be kept as short as possible to minimize signal attenuation and interference, improving communication reliability. 
  • The entire daisy chain network is ultimately connected to a PLC (Programmable Logic Controller), facilitating data exchange between multiple devices and the central control system. Using the RS485 standard, signals are transmitted through A+ and B- lines, with high and low voltages representing binary 1 and 0 (on and off), ensuring reliable data communication.

2. Two-wire half-duplex

The two-wire half-duplex system enables bidirectional data transmission between two devices, but not simultaneously. For instance, consider devices A and B. During a specific timeframe, data transmission is allowed from A to B, and once completed, data transmission from B to A can take place. Below is a commonly used circuit diagram for RS-485:

Commonly used circuit diagram for RS-485

The provided circuit illustrates the fundamental connections for a two-wire wiring setup. In this method, all nodes within the network share the same pair of communication lines. One line, known as the A line (or Data+), is responsible for transmitting differential signals, while the other line, called the B line (or Data-), handles the complementary differential signals. This utilization of a differential signal transmission mode effectively mitigates interference and enhances overall communication reliability.

[2]

1) Topological Structure

Schematic diagram of various topologies

Network topology refers to the arrangement of various nodes (such as computers, servers, switches) in a computer network. Different topology designs suit different network needs and applications, affecting performance, reliability, and scalability. Each topology has its specific advantages and disadvantages. Choosing the right topology is crucial for building an efficient and stable network. Below are introductions to common topologies:

Type Diagram Instruction
Backbone with stubs A network design where a central backbone connects various smaller networks, or stubs. The backbone provides the main communication path, handling high-capacity or critical traffic, while stubs manage local traffic. This design simplifies network management and improves efficiency by centralizing critical pathways and decentralizing local traffic handling.
Backbone with stars/clusters A central backbone connecting multiple star or cluster networks. Each star network has a central node linking to peripheral nodes. This design balances load and improves fault tolerance by segmenting the network into manageable clusters while maintaining robust interconnectivity through the backbone.
Star Topology A central hub connecting directly to multiple peripheral nodes. Each node communicates through the hub, simplifying network management. If one peripheral fails, the rest remain unaffected, enhancing reliability. However, if the hub fails, the entire network is compromised, making the hub a single point of failure.
Ring Topology

Ring topology arranges network nodes in a circular configuration where each node connects to two others, forming a closed loop. Data travels in one or both directions around the ring. This topology offers efficient data transfer but can be disrupted if any single connection breaks, though redundancy protocols can mitigate this risk by providing alternative pathways for data.

Daisy Chain Topology Daisy chain topology connects each node in series, where each node has exactly two connections, one to the preceding and one to the next node. This simple design is cost-effective and easy to implement for small networks. However, a break in any connection can disrupt the entire network, making it less reliable for larger setups.

Among various topological structures, the Daisy Chain topology is considered the optimal choice for RS-485 due to its minimal impact on signal integrity. The characteristic feature of the Daisy Chain topology is the sequential connection of each device along a single line, not forming a loop structure. This configuration facilitates efficient data transmission between devices while reducing the risk of signal distortion. However, it is important to note that as the length of the cable increases, signal distortion can occur during transmission along the communication line, thereby reducing the maximum data rate that can be achieved.

[3]

2) Recommendations for RS-485 Wiring

  • It is generally recommended to use a 24AWG twisted pair cable with grounded shielding. The RS485 network must be designed as one line with multiple drops, not as a star or ring topology.
  • When the connection is long, please use terminating resistors at both ends of the network, i.e., at the master and the farthest device. It is generally recommended to use a 120Ω terminating resistor. For the actual value, please refer to the wire specifications.
  • If the signal is unstable, please apply a biasing circuit at one point on the line.
  • If the 8-core cable shipped with the device is used for RS485 communication, please trim the length and try to use a short wire to reduce noise interference. Connect the shielding net to the main communication wire shielding and then ground it.
  • In areas with a lot of signal interference, the software may need to perform multiple inquiries to get a valid response.
[4]

3. Case study

Application Example of LORRIC Paddle Wheel Flow Meters in the Central Chemical Dosing and Dispensing System at Hingsen Semiconductor

The application scenario of LORRIC paddle wheel flow meters within the central chemical dosing and dispensing system at Hingsen Semiconductor

In the central chemical dosing and dispensing system of China's Hingsen Semiconductor, the configuration comprises central chemical storage tanks coupled with dispensing systems at each process point, controlled through valve boxes to regulate the supply of chemical reagents. Each valve box is equipped with a LORRIC paddle wheel flow meter to measure the flow rate of reagents. The flow meters relay flow information in real-time to the central control system via RS-485, halting the supply once the specified amount of reagent is dispensed. Within such a system, RS-485 serves a pivotal role as a bridge, establishing communication of flow information between the central control system and each valve box.

Reference

  1. ^ EIA-485 - Wikipedia
  2. ^ Duplex (telecommunications)-Wikipedia
  3. ^ RS485 vs Ethernet: Which One is Most Used in Industry? - Robotiq
  4. ^ Mechanical and electrical installation - LORRIC
Products you may also like
Related articles

Contact Us