Home › Industrial PC Wiki › Serial ports: RS-232, RS-422, RS-485

Serial ports: RS-232, RS-422, RS-485

Serial ports: RS-232, RS-422, RS-485
Also calledSerial interface, COM port, EIA-232, TIA-232, EIA/TIA-485
TypeData interface on industrial computers and other equipment
RS-232 signallingSingle-ended, referred to a common signal ground
RS-422 and RS-485 signallingBalanced pair
TopologyPoint-to-point (RS-232); multipoint bus (RS-485)

A serial port is a data interface that transmits binary data one bit at a time. The three electrical standards for serial ports covered here are RS-232, RS-422 and RS-485. RS-232 uses single-ended signalling referred to a common signal ground, which limits its noise immunity and transmission distance.[1] Both RS-422 and RS-485 use balanced circuits, and RS-485 is defined for multipoint interconnection of digital equipment.[2][3]

RS-232 is still used to connect industrial equipment such as programmable logic controllers (PLCs).[1] On industrial computers, Modbus is one protocol that runs over these ports. Its serial line specification says a new Modbus device should implement an EIA/TIA-485 interface and may also implement an RS-232 interface.[4]

Standards and history

The Electronic Industries Association (EIA) introduced RS-232 in the 1960s, and the first version was published in May 1960. Its current revision is officially named TIA-232-F and was published in October 1997. Other names for the standard include EIA RS-232, EIA-232, EIA/TIA-232 and TIA/EIA-232.[5]

RS-422 covers balanced voltage digital interface circuits. U.S. Federal Standard 1020A, later redesignated FIPS PUB 138, specifies the electrical characteristics of balanced voltage digital interface circuits at data signaling rates up to 10 megabits/s and requires them to conform to EIA Standard RS-422-A.[2] The federal standard leaves the functional and mechanical (connector) characteristics of the interface to other standards.[2]

TIA-485-A defines the electrical characteristics of generators and receivers for the interchange of binary signals in multipoint interconnection of digital equipment.[3] The Modbus specification notes that EIA/TIA-485 is also known as the RS485 standard.[4]

ITU-T publishes its own recommendations for unbalanced and balanced interchange circuits. Recommendation V.28 applies to unbalanced interchange circuits operating with data signalling rates below the limit of 20 kbit/s.[6] Recommendation V.11 applies to balanced interchange circuits operating with data signalling rates up to 10 Mbit/s.[7]

RS-232

RS-232 defines an interface between data terminal equipment (DTE), such as a computer, and data circuit-terminating equipment (DCE), such as a modem. TIA-232-F applies to data signaling rates that range from 0 bits per second to 20,000 bps.[5] Most RS-232 connections have used one of two connectors: the 25-pin DB25 and the 9-pin DB9.[5]

Valid RS-232 signals are in the range of +3 to +15 volts or −3 to −15 volts.[1] ITU-T Recommendation V.28 sets these electrical rules for unbalanced interchange circuits:[6]

  • Signal levels: a data signal is binary 1 when it is more negative than minus 3 volts and binary 0 when it is more positive than plus 3 volts. The region between plus 3 volts and minus 3 volts is the transition region.
  • Generator: the open-circuit generator voltage must not exceed 15 volts in magnitude, and a short circuit between any two interchange circuits must not cause a current above one-half ampere.
  • Load: the load has a d.c. resistance of no less than 3000 ohms and no more than 7000 ohms, and its effective shunt capacitance must not exceed 2500 picofarads.
  • Higher rates: existing equipment can operate up to 64 kbit/s under the conditions described in Annex A of the recommendation.

The Modbus specification limits its optional RS-232 mode to short point-to-point connections, typically less than 20 m. It also sets a maximum wire capacitance to ground of 2500 pF, which is 25 m for a cable of 100 pF/m.[4] In its RS-232 pinout, a straight pin-to-pin cable connects a DTE such as a PC to a DCE such as a PLC. No line termination is wired on an RS-232 interconnection.[4]

In personal computers, USB has displaced RS-232 from most of its peripheral interface roles.[1]

Balanced signalling

RS-422 and RS-485 both use balanced circuits. In ITU-T Recommendation V.11, a balanced interchange circuit consists of a balanced generator connected by a balanced interconnecting pair to a balanced receiver.[7] V.11 states that balanced circuits may be needed even at lower data rates where the cable is too long for unbalanced operation, where outside noise makes unbalanced operation impossible, or where interference with other signals must be kept low.[7]

Recommendation V.11 sets these limits for balanced circuits:[7]

  • Receiver levels: the receiver reads binary 1 when the voltage between its two inputs is −0.3 V or lower and binary 0 when it is +0.3 V or higher.
  • Open-circuit output: measured with a 3900-ohm resistor across the outputs, the differential voltage of the generator must not be more than 6.0 volts.
  • Loaded output: across a test load of two 50-ohm resistors in series, the differential voltage must be at least 2.0 volts or 50% of the open-circuit value, whichever is greater.
  • Termination: where reflections occur, V.11 suggests a terminating network at the receiver in the range of 120 to 126 ohms.

RS-422

The Modbus specification notes that the RS-422 standard does not support several drivers on one balanced pair. Its optional four-wire RS-485 mode is sometimes named RS422, and the specification says that name is not correct.[4]

RS-485

RS-485 connects several devices to one balanced bus.[3] In a Modbus system, all devices connect in parallel to a trunk cable, either directly in a daisy chain or through short branch cables that the specification calls derivations.[4] Two wiring schemes are defined:

  • Two-wire: one balanced pair carries data in both directions, and only one driver may transmit at any time. A third conductor, the common, must connect all devices on the bus.
  • Four-wire: one pair carries data from the master to the slaves and a second pair carries data from the slaves to the master. A fifth conductor serves as the common.

For RS-485 wiring, the Modbus specification sets these rules:[4]

  • Number of devices: 32 devices are always allowed on a bus without a repeater. A larger number is possible depending on the available addresses, the unit load of the devices and any line polarization.
  • Trunk length: for a maximum of 9600 baud and AWG26 or wider wire, the maximum trunk length is 1000 m. Category 5 cable may be used up to a maximum length of 600 m.
  • Branch length: derivation cables must be short, never more than 20 m.
  • Termination: a line termination goes near each end of the trunk, connected across the balanced pair. It may be a 150 ohm, 0.5 W resistor, or a 1 nF capacitor in series with a 120 ohm, 0.25 W resistor, which the specification prefers when the pair is polarized.
  • Line polarization: with no data activity, the pair is not driven and is susceptible to external noise or interference. If any device needs polarization, one pull-up resistor to 5 V and one pull-down resistor to the common, each between 450 and 650 ohms, are fitted at one location on the bus.
  • Grounding: the common is connected to protective ground, preferably at one point for the whole bus.
  • Connectors: screw terminals, RJ45 or 9-pin D-shell connectors may be used.

Every Modbus serial device must support 9600 bps and 19.2 Kbps, with 19.2 Kbps as the default.[4]

Comparison

The table lists the differences described in the sections above.

RS-232, RS-422 and RS-485 compared
AttributeRS-232RS-422RS-485
SignallingSingle-ended, referred to a common signal groundBalanced pairBalanced pair
TopologyPoint-to-pointSeveral drivers on one pair not supportedMultipoint bus; one driver transmits at a time
Electrical standardTIA-232-FEIA RS-422-ATIA-485-A
ITU-T recommendation for the circuit typeV.28 (unbalanced)V.11 (balanced)V.11 (balanced)

Frequently asked questions

What is the difference between RS-232, RS-422 and RS-485?

RS-232 is a point-to-point interface that uses single-ended signals referred to a common ground. Both RS-422 and RS-485 use balanced pairs. Of the two, only RS-485 lets several drivers share one bus, because the RS-422 standard does not support several drivers on one balanced pair.

How long can an RS-485 cable be?

Under the Modbus serial line specification, an RS-485 trunk can run up to 1000 m at a maximum of 9600 baud with AWG26 or wider wire. Branch cables to individual devices must not exceed 20 m.

How many devices can be connected to an RS-485 bus?

The Modbus specification always allows 32 devices on an RS-485 bus without a repeater. More are possible depending on the unit load of the devices, and a repeater can join two heavily loaded segments.

Does an RS-485 bus need termination resistors?

Yes. The Modbus specification requires a line termination near each of the two ends of the bus, such as a 150 ohm resistor across the balanced pair. Terminations are never placed on a branch cable.

How long can an RS-232 cable be?

The Modbus specification limits RS-232 to short point-to-point links, typically less than 20 m. It also sets a maximum wire capacitance to ground of 2500 pF, which equals 25 m of cable rated at 100 pF/m.

Is four-wire RS-485 the same as RS-422?

No. Four-wire Modbus wiring is sometimes called RS422, and the Modbus specification says that name is not correct because the RS-422 standard does not support several drivers on one balanced pair.

See also

References

  1. Wikipedia contributors, RS-232. Wikimedia Foundation, 2026.
  2. FED-STD-1020A (FIPS PUB 138), Telecommunications: Electrical Characteristics of Balanced Voltage Digital Interface Circuits. General Services Administration, 1980.
  3. TIA-485-A, Electrical Characteristics of Generators and Receivers for Use in Balanced Digital Multipoint Systems. Telecommunications Industry Association, 1998.
  4. Modbus Organization, MODBUS over Serial Line Specification and Implementation Guide V1.02. Modbus Organization, 2006.
  5. Robert Sheldon, RS-232C. TechTarget, 2023.
  6. ITU-T Recommendation V.28, Electrical characteristics for unbalanced double-current interchange circuits. International Telecommunication Union, 1993.
  7. ITU-T Recommendation V.11, Electrical characteristics for balanced double-current interchange circuits operating at data signalling rates up to 10 Mbit/s. International Telecommunication Union, 1996.