
To ensure reliable data transmission, it's essential to follow the correct wiring configuration. The most common wiring configuration for RS485 is a half-duplex configuration, where data is transmitted in one direction and received in the same direction.
Data is transmitted in one direction, from the transmitter to the receiver. The transmitter sends data through the A wire, while the receiver receives data through the B wire.
The A and B wires are connected in a way that allows data to be transmitted in one direction. The A wire is connected to the transmitter, and the B wire is connected to the receiver.
The RS485 standard specifies that the A wire should be connected to the transmitter's output, and the B wire should be connected to the receiver's input. This configuration ensures that data is transmitted reliably and accurately.
What Is
RS485 is a standard interface for physical communication that's a form of serial communication. It's essentially an upgrade to the RS232 interface.
For more insights, see: Rs485 Communication Cable
RS485 uses balanced transmission and differential reception, which gives it the ability to suppress common mode interference. This is a big advantage over other serial communication standards.
The RS485 transmission signal can be recovered from kilometers away, thanks to its high sensitivity and ability to detect voltages as low as 200mv. This is a testament to its robustness and reliability.
RS485 is particularly useful for communication between multi-node systems. This is because it can connect up to 32 nodes on the same bus using a two-wire system.
Here's an interesting read: Rs232 Serial Communication
RS485 Wiring Basics
Ordinary twisted-pair cables can be used for general situations, and coaxial cables with shielded layers can be used in environments with high requirements.
RS485 can transmit up to 1200 meters, but the actual distance depends on the surrounding environment.
For long-distance transmission, repeaters can be added to amplify the signal, allowing up to 9.6 kilometers of transmission.
A full duplex system requires 4 wires - one pair to Transmit and one pair to Receive.
In an ideal RS485 system, a single linear cable with 120 ohm resistors connected across the 2 wires at each end of the cable is recommended.
Related reading: Cable Serial Rs232
Wiring
Ordinary twisted-pair cables can be used in general situations, and coaxial cables with shielded layers can be used in environments with high requirements.
In theory, RS485 can transmit up to 1200 meters, but in practical applications, the transmission distance is shorter than 1200 meters, and the specific distance depends on the surrounding environment.
RS485 can handle speeds of over 10 Mbits per second and line lengths of over 1 km, but if you're operating near these values, you must arrange your wiring close to the ideal.
A single linear cable is ideal for RS485 wiring, with 120 ohm resistors connected across the 2 wires at each end of the cable.
Each transmitter can drive exactly one twisted pair, although it's possible for a transmitter to drive more than one twisted pair under certain circumstances.
Instruments with an RS485 interface usually only transmit the Transmit Data (TX) and Receive Data (RX) signals, and the other signals of the serial port are not used.
A full duplex system requires 4 wires - one pair to Transmit and one pair to Receive - and allows data to pass simultaneously both to and from the instruments.
Logic "1" is represented by the voltage difference between the two lines as +(2-6)V, while logic "0" is represented by the voltage difference between the two lines as -(2-6)V.
The maximum transmission distance for RS485 is 4000 feet, but in actual operation, the limit distance is only about 1200 meters.
The RS485 interface allows up to 128 transceivers to be connected on the bus, with multi-station capability.
A fresh viewpoint: Wire 6 Speakers
Impedance of Twisted Pair Wire
The characteristic impedance of twisted-pair wire is usually specified by its manufacturer, but the RS-485 specification recommends a characteristic impedance of 120Ω.
This recommended impedance is necessary to calculate worst-case loading and common-mode voltage ranges. The industry-standard publication TSB89 has a section specifically devoted to those calculations.
A characteristic impedance of 120Ω is recommended to ensure the system under design will work. If for some reason 120Ω cable cannot be used, the worst-case loading and worst-case common-mode voltage ranges should be recalculated.
In an ideal RS485 system, a single linear cable with 120 ohm resistors connected across the 2 wires at each end of the cable is used. This ensures the system operates as close to ideal as possible.
The characteristic impedance of 120Ω is especially important when operating at high speeds or long line lengths.
RS485 Communication
RS485 communication is a balanced, differential signaling method that uses a twisted pair of wires to transmit data. The RS485 signal is decomposed into two lines, A and B, with a positive level between 2~6V representing a positive 1 logic state, and a negative level representing a negative 0 logic state.
The receiver at the receiving end determines the logic level by subtracting the voltage levels of the A and B signals, outputting a positive logic level when the difference is greater than +200mV, and a negative logic level when the difference is less than -200mV. This method ensures reliable data transmission over long distances.
A termination resistor is often used at the transmitter end of the cable, although it's not strictly necessary for a one-transmitter, one-receiver setup.
Communication Principle
RS485 communication uses a balanced twisted pair, connecting AA and BB at the receiving and transmitting ends. This setup helps to reduce electromagnetic interference and improve signal quality.
The RS485 signal is decomposed into two lines, A and B, with positive and negative symmetry before transmission. These lines are then restored to their original signals at the receiving end.
The positive level between the A and B signal lines is +2~6V, representing a positive 1 logic state. The negative level is -2~6V, representing a negative 0 logic state.
A third signal ground, C, is also present in RS485. The "enable" terminal can control the disconnection and connection of the driver and the transmission line.
Readers also liked: 2 Wire Rs 485 Connection
One-to-One Communication
A one-to-one RS485 communication setup is the simplest configuration, consisting of just one transmitter and one receiver. This setup is shown in Figure 6.
In this arrangement, a termination resistor is a good habit to design-in, allowing the transmitter to be moved to different locations and permitting additional transmitters to be added if needed.
This setup is ideal for small-scale applications where data transmission is straightforward.
RS485 Signal Lines
RS485 has two signal lines, A and B, which transmit the same signal but allow the sender to divide it into two parts, making it easier to restore the original signal at the receiving end.
The RS485 lines have strong anti-interference ability, allowing them to transmit signals over several kilometers, whereas RS232 can only transmit signals over more than ten meters.
RS485 signal names can be confusing, as manufacturers may not consistently apply them, so you may need to connect A on the computer to B on the instrument, or vice versa.
What Is Twisted Pair?
A twisted pair is simply a pair of wires of equal length and twisted together. This design helps reduce two major sources of problems for designers of high-speed long-distance networks.
Using twisted pair wire with an RS-485-compliant transmitter reduces radiated EMI. This is a significant advantage for network designers.
Twisted pair wire is effective in reducing received EMI. This is another benefit of using twisted pair wire in high-speed long-distance networks.
Different Signal Lines
RS485 signal lines are different from RS232 in terms of wiring.
RS232 typically uses three wires: a sending wire, a receiving wire, and a ground wire.
RS485, on the other hand, uses two-wire transmission: A and B two transmission lines.
These two lines transmit the same signal, but the sender divides the signal into two.
The receiver will restore it to the original signal after receiving it.
This design allows the 485 receiving end to eliminate interference during signal transmission.
RS232, by contrast, cannot eliminate interference in the same way.
As a result, RS485 has strong anti-interference ability and can transmit several kilometers.
RS232, meanwhile, can only transmit more than ten meters.
When working with RS485, you'll often see signal names like A and B, or + and -.
These names are not consistently applied by manufacturers, so be cautious when connecting your equipment.
You may need to connect A on the computer to B on the instrument, for example.
A different take: Rs232 Db9 Pinout Wire Colors
Two Transceivers
In an RS-485 network, two transceivers are often used. This setup is shown in Figure 8, which depicts a two-transceivers RS-485 network.
A two-transceivers network can be used for various applications, but its primary function is to facilitate communication between devices over long distances.
Here's an interesting read: Interface Rs 485
RS485 Electrical Signal
RS485 electrical signal is a crucial aspect of RS485 wiring. It uses balanced differential signaling technology, which provides higher noise immunity compared to RS232's single-ended lines or unbalanced signals.
This means RS485 is less susceptible to common-mode noise cancellation, making it a more reliable choice for noisy environments.
The balanced differential signaling technology in RS485 allows it to cancel out common-mode noise, resulting in a more stable and consistent signal.
Electrical Signal Technology
RS485 uses balanced differential signaling technology, which provides common-mode noise cancellation.
This technology significantly improves the noise immunity of RS485, making it a reliable choice for applications with high noise levels.
Using single-ended lines or unbalanced signals in RS232 reduces the standard's noise immunity to disturbances such as ground loops.
RS485's balanced differential signaling technology is a key factor in its ability to withstand noise and interference.
Failsafe Bias Resistors
Failsafe bias resistors are a crucial component in RS485 electrical signal systems. They help to ensure that the receiver's output remains in a defined state even when a fault condition occurs.
A fault condition can occur when inputs are between -200mV and +200mV, resulting in an "undefined" receiver output. This can be caused by a variety of issues, including all transmitters in a system being in shutdown, the receiver not being connected to the cable, the cable having an open, or the cable having a short.
The four common fault conditions that result in an undefined receiver output are:
- All transmitters in a system are in shutdown.
- The receiver is not connected to the cable.
- The cable has an open.
- The cable has a short.
Fail-safe biasing is used to address these issues by adding a pull-up resistor on the noninverting line and a pull-down resistor on the inverting line. This ensures that the receiver will output a valid high when a fault condition occurs.
Maxim's MAX13080 and MAX3535 families of transceivers have a true fail-safe feature integrated into the devices, eliminating the need for fail-safe bias resistors.
RS485 Network Configuration
RS485 Network Configuration is crucial to ensure reliable data transmission. Given the above information, we are ready to design some RS-485 networks.
The first example of a proper network is a one-transmitter multiple-receivers network, where distances from the twisted pair to the receivers should be kept as short as possible.
This configuration is beneficial for applications where multiple devices need to receive data from a single source. In a one-transmitter multiple-receivers network, it's essential to keep the distances short to prevent signal degradation.
By keeping the distances short, you can ensure that the signal is strong and reliable, reducing the risk of errors or data loss.
Here's an interesting read: Multiple Bulbs
RS485 Network Termination
Proper termination is crucial for an RS-485 network to function correctly.
A terminating resistor is a resistor placed at the extreme end or ends of a cable, and its value should ideally match the characteristic impedance of the cable.
The value of the terminating resistor is calculated using the equation (Rt - Zo)/(Zo + Rt), where Zo is the impedance of the cable and Rt is the value of the terminating resistor.
Large mismatches between the termination resistance and the characteristic impedance can cause reflections that can lead to errors in the data.
Termination resistors should always be placed at the far ends of the cable, and it's a good practice to place them at both ends of the cable.
In a system with a single transmitter located at the far end of the cable, there's no need to place a termination resistor at the end of the cable with the transmitter.
Unterminated networks can cause reflections and waveform distortion because of the impedance mismatch at the open circuit end of the cable.
Proper termination can prevent these issues and ensure a clean and undistorted signal.
A termination resistor placed in the wrong location can cause multiple impedance mismatches, leading to further reflections and waveform distortion.
In a properly terminated network, the signal will travel down the cable without significant reflections or distortion.
RS485 Network Topology
In a one-transmitter multiple-receivers network, it's essential to keep the distances from the twisted pair to the receivers as short as possible.
This setup is shown in Figure 7, which illustrates a one-transmitter, multiple-receivers RS-485 network.
To achieve reliable communication, the twisted pair should be kept as short as possible to minimize signal degradation.
A shorter twisted pair also reduces the risk of noise and interference, which can impact data transmission.
This topology is ideal for applications where multiple devices need to receive data from a single transmitter.
RS485 Network Interference
High-frequency components are present whenever fast edges are used in transmitting information, which can radiate EMI. This is especially problematic in RS-485 systems that use long wires.
Fast edges are necessary at higher data rates, but they can couple with long wires to radiate EMI. A balanced system with twisted-pair wire reduces this effect.
Twisted-pair wire makes the system an inefficient radiator by canceling out radiated signals. This assumes the wires are exactly the same length and in the same location, but it's impossible to achieve this.
See what others are reading: Wired Cctv Camera System
Positioning wires as close to each other as possible helps counteract any remaining EMI. Twisting the wires also helps reduce EMI by making it harder for unwanted signals to couple with the wires.
RS-485 systems can also receive unwanted signals, which can distort the desired signals and cause data errors. This is known as received EMI.
Twisted-pair wire also helps reduce the effects of received EMI by making the noise received on one wire the same as that received on the second wire. This type of noise is referred to as common-mode noise.
RS-485 receivers are designed to reject common-mode noise, making twisted-pair wire an effective solution for reducing EMI in RS-485 systems.
RS485 Network Limitations
The maximum number of transceivers and receivers on a single twisted pair is 32 unit loads, assuming a properly terminated cable with a characteristic impedance of 120Ω or more.
This means that devices with a high unit load, such as the MAX3485, are limited to 32 units, while devices with a lower unit load, like the MAX487, can be used in larger quantities.
Each receiver and inactive transmitter adds an incremental load to the system, which can affect the overall performance of the network.
In an ideal world, all receivers and inactive transmitters would have infinite impedance and not overload the system, but in reality, this is not the case.
An unterminated RS-485 network can cause reflections and distortion of the waveform, as the signal encounters the open circuit at the end of the cable.
This can result in very distorted waveforms, making it difficult to achieve reliable communication on the network.
RS485 Best Practices
Keeping your power wires in conduit can make a huge difference in reducing interference with your RS-485 communication wires.
It's best to keep parallel runs of power and RS-485 wires as far apart as is practical to minimize problems. This is especially true if the power wires are nearby.
Try to keep intersections of communication wires with power wires as close to 90 degrees as possible to prevent issues.
Shielded CAT5, CAT5e, or CAT6 cable is a good choice for RS-485 connections. These cables have 4 twisted pairs of wires, and each RS-485 connection will use one of the twisted pairs.
Dielectric grease is a good idea to apply to connection points to prevent corrosion, especially in marine or humid environments. This will ensure that the connections last as long as possible.
Frequently Asked Questions
Is RS-485 obsolete?
No, RS-485 is not obsolete, as it is still used in various applications. Despite being a legacy interface, it remains a viable option for many industries.
Featured Images: pexels.com


