Share this

Theory and Application of RS-485 Bus

2026-04-06 05:50:34 · · #1
This article introduces the theory of RS-485 bus, the problems existing in RS-485 bus systems during data communication, and the practical engineering applications of RS-485. 1. Overview With the development of digital technology and the increasingly widespread application of computers, a system now often consists of multiple computers, requiring solutions for multi-station, long-distance communication. RS-485 transceivers are widely used when communication distances range from tens of meters to thousands of meters. RS-485 transceivers employ balanced transmission and differential reception, thus possessing the ability to suppress common-mode interference. Combined with the high sensitivity of the receiver, capable of detecting voltages as low as 200mV, the transmitted signal can be recovered even at distances over kilometers. Using the RS-485 bus, a single twisted pair of wires can achieve multi-station networking, forming a distributed system. Its advantages of simple equipment, low cost, and long-distance communication capabilities have led to its widespread application . 2. Theory of RS-485 Bus In the field of automation, with the development of distributed control systems, there is an urgent need for a bus suitable for long-distance digital communication. Based on the RS-422 standard, EIA developed the RS-485 bus standard, which supports multiple nodes, long distances, and high receiver sensitivity. The RS-485 standard uses a balanced transmit, differential receive transceiver to drive the bus, with specific specifications: • Receiver input resistance RIN ≥ 12kΩ • Driver can output a common-mode voltage of ±7V • Input capacitance ≤ 50pF • With 32 nodes and a 120Ω terminating resistor, the driver can still output at least 1.5V (the terminating resistor value depends on the parameters of the twisted pair cable used) • Receiver input sensitivity is 200mV (i.e., (V+) - (V-) ≥ 0.2V, representing signal "0"; (V+) - (V-) ≤ -0.2V, representing signal "1"). Due to its long-distance, multi-node (32 nodes) and low-cost transmission line characteristics, RS-485 has become the preferred standard for data transmission in industrial applications. Therefore, RS-485 is widely used in automation. However, in practical engineering, the application of RS-485 bus still faces many problems, affecting project quality and causing inconvenience during construction. 3. Impedance Discontinuity If a signal encounters a sudden impedance change during transmission, it will be reflected at that point. This signal reflection principle is similar to the reflection of light when it enters another medium. The method to eliminate this reflection is to maintain the continuity of the transmission line impedance as much as possible. In practical engineering, the principle of connecting a terminating resistor of the same magnitude as the characteristic impedance of the cable at the end of the cable is to reduce signal reflection. Theoretically, as long as a terminating resistor matching the characteristic impedance of the cable is connected at the end of the transmission cable, signal reflection can be effectively reduced. However, in practical applications, because the characteristic impedance of the transmission cable is related to the communication baud rate and other application environments, the characteristic impedance cannot be exactly equal to the terminating resistor. Therefore, some signal reflection will still exist. The impact of signal reflection on data transmission ultimately stems from the fact that the reflected signal triggers the comparator at the receiver input, causing the receiver to receive an incorrect signal, leading to CRC check errors or errors in the entire data frame. This situation is unchangeable; we can only try to avoid it. 4. RS-485 Grounding Issues Simply connecting the A and B ends of each interface with a twisted pair of wires, without grounding the RS-485 communication link, may work in some cases, but it introduces hidden dangers into the system. The RS-485 interface uses differential signal transmission and does not require a reference point to detect the signal system; it only needs to detect the potential difference between the two lines. However, it should be noted that the transceiver can only function properly if the common-mode voltage does not exceed a certain range (-7V to +12V). When the common-mode voltage exceeds this range, it will affect the reliability of communication and even damage the interface. As shown in Figure 1, when transmitter A sends data to receiver B, the output common-mode voltage of transmitter A is VOS. Since the two systems have their own independent grounding systems with a ground potential difference VGPD, the common-mode voltage at the receiver input will reach VCM = VOS + VGPD. The RS-485 standard specifies VOS ≤ 3V, but VGPD can be significantly higher (tens of volts or even hundreds of volts), potentially accompanied by strong interference signals that cause the receiver's common-mode input VCM to exceed the normal range. This generates interference current on the signal lines, which can affect normal communication or even damage the equipment. 5. RS-485 Bus Structure and Transmission Distance: RS-485 supports half-duplex or full-duplex modes. The network topology generally uses a terminal-matched bus structure and does not support ring or star networks. It is best to use a single bus to connect all nodes in series. The length of the lead-out line from the bus to each node should be as short as possible to minimize the impact of reflected signals on the bus signal. When using the RS485 interface, for a specific transmission line, the maximum allowable cable length for data signal transmission from the generator to the load is a function of the data signal rate. This length is mainly limited by signal distortion and noise. When the data signal rate drops below 90Kbit/s, assuming a maximum allowable signal loss of 6dBV, the cable length is limited to 1200M. In practice, it is entirely possible to obtain a cable length greater than that. The maximum cable length will differ depending on the wire diameter used. 6. Solution Design The following example illustrates the application of RS-485: A university cafeteria has three floors and 12 POS machines, 4 on each floor. These machines use RS-485 interfaces, and the computer controlling the POS machines connects to an RS-232 interface. The traditional solution is: This old-fashioned cabling structure has the following drawbacks: 1> The RS-485 bus is limited by the characteristics of differential signal transmission; the bus length is generally around 1200 meters. Using this old-fashioned cabling structure, the coverage area is very limited (generally a few hundred square meters). Sometimes, repeaters must be used to extend the transmission distance. This also increases the possibility of problems during cabling. 2> Large-scale attendance and access control systems typically have numerous access controllers. Using this old-fashioned cabling structure, all access controllers share the same RS-485 bus. If any controller's RS-485 port is short-circuited, it will affect the normal operation of the entire access control system. Finding faults among numerous access control controllers not only increases workload but also maintenance costs. 3> Due to the complexity of RS-485 bus wiring, a significant portion of the engineering costs and time in attendance and access control systems is wasted on wiring. The complexity of RS-485 bus wiring is highly dependent on the bus length and the number of connected devices, especially prominent in large systems. Using this outdated wiring structure undoubtedly increases the difficulty of wiring. 4> Due to geographical factors, there is always a problem of ground potential imbalance between devices at a certain distance. Sometimes, even when the distance is very short, the problem persists. This environmental factor is difficult to comprehensively address in the outdated wiring structure, sometimes even causing the entire system to fail to start. Although ground potential issues can temporarily resolve some problems, the same problem will reappear shortly afterward. To address these shortcomings, Zhaoyue Company has developed a new product that employs unique equipotential differential isolation technology and efficient bus segmentation and centralization technology to effectively solve common ground potential differences, impedance matching, and lightning strike problems in engineering wiring. Users can easily improve the RS-485/RS-422 bus structure, segment the network, and improve communication reliability. When lightning strikes or equipment failures occur, the problematic network segment will be isolated to ensure the normal operation of other network segments. The revised solution is as follows: Applying this solution can effectively solve the defects of the first solution, and it has the following advantages: 1> Using a star topology to connect the RS-485 bus, the cabling coverage area is greatly increased (generally several square kilometers) while effectively utilizing the interfaces. 2> There are eight lower-level machine ports, and each port has short-circuit protection and can operate in shutdown mode. For large-scale time and attendance access control systems, distributing the access control controller to eight ports not only reduces the load on a single RS-485 bus, but also effectively improves the reliability of the entire system. When any controller's RS-485 port is short-circuited, it will only affect the RS-485 bus system it belongs to, and will not affect the normal operation of other RS-485 systems connected to other interfaces. 3> It simplifies and speeds up the RS-485 system cabling process, thereby effectively reducing project costs and time. 4. 3000V isolation exists between each port. For wiring problems caused by environmental issues, simply connecting the problematic areas with separate ports for centralized processing will effectively solve wiring problems caused by ground potential. 7. Precautions 7.1 Many people mistakenly believe that the RS-422 serial interface is a full-duplex version of the RS-485 serial interface. In fact, they differ significantly in electrical characteristics. Differences in common-mode voltage range and receiver input resistance make these two standards suitable for different application areas. RS-485 serial interface drivers can be used in RS-422 serial interface applications because RS-485 serial interfaces meet all RS-422 serial interface performance parameters, but the reverse is not true. For RS-485 serial interface drivers, the common-mode voltage output range is between -7V and +12V; for RS-422 serial interface drivers, this performance specification is only ±7V. The minimum input resistance of the RS-422 serial interface receiver is 4KΩ; while the minimum input resistance of the RS-485 serial interface receiver is 12KΩ. 7.2 Wiring issues often arise in practical engineering applications of RS-485 buses. It's crucial to use the same twisted-pair cable or the same type of cable when connecting transmission lines. Some people use a single section of twisted-pair cable, but if the cable length is insufficient or a section of telephone line or other wire is connected in the middle, the impedance becomes discontinuous, generating significant reflected signals and preventing normal communication. 8. Conclusion: RS-485 buses possess characteristics such as high noise suppression, wide common-mode range, long transmission distance, and collision protection. However, reasonable application and network layout, continuous signal channels, and comprehensive protection measures still need to be considered. Overall planning should be in place from the initial design stage. With the development of fiber optic communication and Ethernet technology, the data transmission distance of RS-485 buses will reach even greater distances.
Read next

CATDOLL 115CM Alice TPE

Height: 115cm Weight: 19.5kg Shoulder Width: 29cm Bust/Waist/Hip: 57/53/64cm Oral Depth: 3-5cm Vaginal Depth: 3-15cm An...

Articles 2026-02-22