RS-232 VS. RS-422 VS. RS-485: What is the difference?
RS-232 VS. RS-422 VS. RS-485: What is the difference?
If you plan to extend your network, the best option is to partly use fiber optics which will not only increase the geographical distance of your network but also enhance the speed and connectivity. You can use serial to fiber media converters which support both Ethernet cables as well as fiber optic cables, so that you do not have to disturb your existing legacy network. Using serial to fiber media converters is highly recommended in such scenarios as they also help eliminate the electromagnetic interference in the network. RS-232, RS-422, and RS-485 serial to fiber converters enable communication among serial devices, and depending upon the network mode offer good data rates over long distances.
What is the RS-232?
Definitely the most popular interface, also being one of the first. However, things may soon change for obvious reasons. Any PC that is purchased will have one (and sometimes more) RS232 port. Sometimes, they are simply referred to as SERIAL PORTS, however this may cause confusion since there are other Serial interfaces available. RS232 is widely used because it is so readily available. However, it does have some disadvantages. Here are a few:
Limited Distance - Cable lengths are limited to 50 ft or less. Many will claim to go further, but this is not recommended, and is not part of the RS232 specification.
Susceptible to Noise - RS232 is single-ended, which means that the transmit and receive lines are referenced to a common ground
Not Multi-drop - You can only connect one RS232 protocol device per port. There are some devices designed to echo a command to a second unit of the same family of products, but this is very rare. This means that if you have 3 meters to connect to a PC, you will need 3 ports, or at least, an RS232 multiplexor.
What is the RS-422?
Since the RS-422 four-wire interface uses separate transmit and receive channels, there is no need to control the data direction. Any necessary signal exchange between devices can be done in software mode (XON/XOFF handshake) or hardware mode (a pair of separate pairs). Stranded wire). The RS-422 has a maximum transmission distance of 4000 feet (about 1219 meters) and a maximum transmission rate of 10 Mb/s. The length of the balanced twisted pair is inversely proportional to the transmission rate, and it is possible to reach the maximum transmission distance below the 100 kb/s rates. The highest rate of transmission is only possible at very short distances. The maximum transmission rate on a typical 100-meter twisted pair is only 1 Mb/s.
RS-422 requires a terminating resistor that requires a resistance equal to approximately the characteristic impedance of the transmission cable. In the short-distance transmission, there is no need to terminate the resistor. That is, generally no need to terminate the resistor below 300 meters. The terminating resistor is connected to the farthest end of the transmission cable.
RS422 is similar to RS232 protocol, and can be programmed in the same way, however, offers a few advantages and disadvantages. One problem is that you need to purchase an RS422 port or at least an RS422 to RS232 converter, since PC's don't come standard with this interface. Also, you may find that there are fewer devices supporting RS422. Some advantages are:
Long Distance Runs - Up to 500 feet is generally supported, and with repeaters, even further distances can be achieved.
Multi-Drop - Usually, up to 32 devices can be connected per port, and even more using repeaters. Devices are distinguished by unique addresses that are assigned to each device. For example, if you have 5 devices attached to a port, they would be addressed as units 1 to 5. If you want to communicate to unit #1, you send a command to unit #1. All units HEAR the command, but only the addressed unit will respond. This also applies to RS485. The addresses can be set via switches or software, depending on the design of the device.
Noise Resistant - Since it uses a separate FLOATING transmit and receive pair (four wires), it offers better noise immunity than RS232.
What is the RS-485?
RS485 is very similar to RS422. So much so that it often causes confusion. Both are multi-drop, and both can communicate via very long distances, so then why choose one over the other? First of all, RS485 is generally a 2-wire system, although some manufacturers may specify 4-wire RS485, which is far less common and very similar to RS422 protocol. It is important that you identify which one is being employed when considering an instrument. Here are some main differences between 2-wire RS485 and RS422:
RS485 can have multiple Commanding Devices and multiple Listening Devices. RS422 can have only one Commander and multiple Listeners. For example, you can connect one PC (the Commanding device) to 10 temperature controllers (listeners). The PC can instruct any of the controllers to change setpoint, or to send a temperature reading, but none of the controllers can command any of the other controllers. With RS485, you can have multiple PC's and multiple controllers on one bus, so that one PC can send a command to change a setpoint,and another PC can send a command to send back data, etc. Remember that all devices on the bus must have a unique unit address, so that only the addressed unit will respond. (similar to RS422)
RS485 pinout wiring is easier since you are only dealing with 2 wires instead of
Programming RS485 is more difficult, since you are sending and receiving on the same two wires, you need to enable and disable the transmitter at the correct time so that you may perform proper communications. Imagine sending a command USD$2SEND out of the transmitter. If the transmitter is not turned off in time, then data being sent by another device will be missed. If the transmitter is turned off too quickly, there is a chance that part of the command USD$S2END will be truncated before it ever has a chance finishing the transmission of the character bits. When programming an RS485 plug-in card, you would read the STATUS REGISTER to determine if it is time to switch or not. Some cards, such as the OMG-ULTRA-485 has an AUTO mode where it is intelligent enough to do this automatically, making it transparent to the programmer. Since RS422, and RS232 for that matter, have separate transmit and receive lines, they are easier to implement. Of course, there are other matters to consider such as handshaking, but will not be covered in this brief description.
Note:it may be easier to use an rs232 to rs485 converter that sits outside the pc. Make sure that the converter has intelligent control of the transmitters so that it will automatically take care of the switching for you and will be transparent to the user. Then, program the device as you would an rs422 or rs232 device. One such device is our model cat-285.
RS-232 VS. RS-422 VS. RS-485: What is the difference?
RS232 is full-duplex, RS485 is half-duplex, and RS422 is full-duplex.
RS485 and RS232 are only the physical protocol of communication (ie interface standard), RS485 is the differential transmission mode, RS232 is the single-ended transmission mode, but the communication program does not have much difference.
The PC is already equipped with RS232, which can be used directly. If RS485 communication is used, it is only necessary to connect an RS232 to RS485 conversion head on the RS232 port, and there is no need to modify the program.
The below figure shows the comparison between RS-232, RS-422, RS423, and RS-485
SPECIFICATIONS | RS-232 | RS-423 | RS-422 | RS-485 | |
Mode of Operation | SINGLE | SINGLE | DIFFER- ENTIAL | DIFFER- ENTIAL | |
-ENDED | -ENDED | ||||
Total Number of Drivers and Receivers on One Line | 1 DRIVER | 1 DRIVER | 1 DRIVER | 1 DRIVER | |
1 RECVR | 10 RECVR | 10 RECVR | 32 RECVR | ||
Maximum Cable Length | 50 FT. | 4000 FT. | 4000 FT. | 4000 FT. | |
Maximum Data Rate | 460kb/s | 100kb/s | 10Mb/s | 30Mb/s | |
Maximum Driver Output Voltage | +/-25V | +/-6V | -0.25V to +6V | -7V to +12V | |
Driver Output Signal Level (Loaded Min.) | Loaded | +/-5V to +/-15V | +/-3.6V | +/-2.0V | +/-1.5V |
Driver Output Signal Level (Unloaded Max) | Unloaded | +/-25V | +/-6V | +/-6V | +/-6V |
Driver Load Impedance (Ohms) | 3k to 7k | >=450 | 100 | 54 | |
Max. Driver Current in High Z State | Power On | N/A | N/A | N/A | +/-100uA |
Max. Driver Current in High Z State | Power Off | +/-6mA @ +/-2v | +/-100uA | +/-100uA | +/-100uA |
Slew Rate (Max.) | 30V/uS | Adjustable | N/A | N/A | |
Receiver Input Voltage Range | +/-15V | +/-12V | -10V to +10V | -7V to +12V | |
Receiver Input Sensitivity | +/-3V | +/-200mV | +/-200mV | +/-200mV | |
Receiver Input Resistance (Ohms) | 3k to 7k | 4k min. | 4k min. | >=12k |
Conclusion
RS232, RS422, RS423, and RS485 are all essentially physical layer protocols. They are all serial communication protocols and are ubiquitous device interfaces. Serial interfaces are widely used in electronics and embedded systems, often for remote acquisition of device data or remote control. They change the way the signal is transmitted, whether it is a PC, microcontroller, or serial communication using serial communication protocols or TTL level transmission. They all need to be converted to RS232, RS422, RS423, or RS485 signals by a communication converter chip.
If you want to know the difference between their interfaces check out this article: Main Differences Between RS-232, RS-422 and RS-485 Interfaces