RS232 to RS485 Converter: Making the Right Connections

  • Thread starter Thread starter ionlylooklazy
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the connections and configurations needed for interfacing RS-232 and RS-485 devices using a converter. Participants explore the technical aspects of wiring, impedance, and termination requirements, as well as the implications of different configurations.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Exploratory

Main Points Raised

  • One participant seeks clarification on the correct pin connections for an RS-232 to RS-485 adapter, noting specific pin assignments for both sides.
  • Another participant highlights the lack of a standard pinout for RS-485 and emphasizes the importance of proper wiring practices, including termination and stub lengths.
  • A participant expresses confusion regarding the concept of a doubly-terminated bus and the necessity of zero-length stubs, while also questioning the impedance of their wiring.
  • There is a correction regarding the characteristic impedance of twisted pair cables, with a participant asserting that typical values are around 100 to 120 ohms, not the 7 ohms mentioned earlier.
  • One participant acknowledges the need for 120-ohm terminating resistors at both ends of the RS-485 connection.
  • Clarification is provided about what constitutes a stub and the importance of maintaining a common ground between RS-485 transceivers.
  • A suggestion is made for a specific RS-232 to RS-485 converter that includes optical isolation and surge protection.
  • Questions arise about the necessity of termination resistors for short RS-485 connections, with some participants suggesting that they may not be needed for short distances.
  • One participant concludes that a 120-ohm resistor is generally recommended for longer transmission lines, while also discussing the potential drawbacks of built-in termination resistors in converters.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding RS-485 configurations, with some agreeing on the need for termination resistors in certain scenarios, while others question their necessity based on distance. The discussion remains unresolved on the specifics of when to use termination resistors and the implications of different wiring practices.

Contextual Notes

There are limitations in understanding the specific requirements for RS-485 connections, including the implications of stub lengths and the necessity of termination resistors based on distance. Some participants have differing interpretations of impedance values and wiring practices.

ionlylooklazy
Messages
30
Reaction score
0
I've got a rs485 device and an adapter for rs232<->rs485 and no rs485
experience, so before I solder this wire harness, I want to make sure
I'm making the right connections.


Assuming no flow control,

From the rs485 side, I need TX+,TX-,RX+,& RX-. On the 25pin D
connecter, these are pins 5,22,20,& 7 respectively.

For the rs232 side, I just need RD & TD.

Is there anything I'm missing?

Also, I tore open an old 25 pin rs485 connecter and found a few pins
that were soldered together. I can't find any pin-outs on the
connecter so I have no idea as to there function.

Thanks,
ionlylooklazy
 
Engineering news on Phys.org
What adapter are you using? AFAIK, there is no standard pinout for RS-485 connections (unlike RS-232). What is the RS-485 connector defined as? Also keep in mind that the RS-485 network cable must be wired as a doubly-terminated bus, with zero-length stubs to any multidrop connections, and a Zo termination at each end of the bus. What is the Zo of the wire you are using for the RS-485 connections?
 
yes, you are correct. I was referring to wikipedia.org for the pin-out, but I found the data sheet for the converter I'm using and it uses a different pin layout.

http://www.bb-elec.com/bb-elec/literature/485con.pdf

I don't understand what you mean by doubly terminated bus, and zero-length stubs, but the impedance of the wire I'm using is about 7 ohms. Aslo, right now I am just connecting to one system, so I don't believe I need to worry about multidrop connections.
 
Last edited by a moderator:
ionlylooklazy said:
yes, you are correct. I was referring to wikipedia.org for the pin-out, but I found the data sheet for the converter I'm using and it uses a different pin layout.

http://www.bb-elec.com/bb-elec/literature/485con.pdf

I don't understand what you mean by doubly terminated bus, and zero-length stubs, but the impedance of the wire I'm using is about 7 ohms. Aslo, right now I am just connecting to one system, so I don't believe I need to worry about multidrop connections.

The Zo characteristic impedance of your twisted pair transmission line is most certainly not 7 Ohms. That may be the total resistance of the wire end-to-end or something, but not the Zo. The Zo of typical twisted pair cable is going to be something like 100 Ohms or 75 Ohms or 50 Ohms. Here is some basic info about transmission lines:

http://en.wikipedia.org/wiki/Transmission_line

Even for a point-to-point transmission line with only two devices attached, you need to terminate the two ends of that bus with a Zo resistor to keep from having reflection and ringing issues. A doubly-terminated bus just refers to that -- the wire cable has a termination at each end. And RS-485 has a requirement that any multidrop devices that connect to the bus along its length (including the two end devices at the terminations) has to use a zero-length stub. That is, it has to connect directly to the bus with a very short connection tap. Some multidrop networks (like the TP/FT-10 network that I work with a lot in control networks) allow stubs up to 3 meters long, to help make wiring devices up to the network easier. RS-485 does not allow this.
 
Last edited by a moderator:
OK, thanks for the help. Please remember, I know nothing about rs485.

Zo is 120 ohms, so I'll need a 120 ohm terminating resistor at both sides.

As for the stubs, those would be the Data Out connections from the twisted wire pair? If so, why would I not just wire the Tx+ and Rx+ together? If not, can you please clarify?


Thanks,
iolly
 

Attachments

  • rs485.JPG
    rs485.JPG
    15.8 KB · Views: 782
No, the stub would be the short piece of wire or PCB trace that connects the actual twisted pair cable to the RS-485 transceiver IC. When the connection is just point-to-point between two transceivers as you have shown, it's usually easy to keep that connection short.

BTW, keep in mind that the two RS-485 transceivers at the cable ends should share a common ground. RS-485 is a DC-connected (no transformer) network, so the transceivers have to all have the same ground reference. RS-485 transceivers can tolerate a common mode voltage offset of a couple of volts, but not very many. The RS-485 standard mentions running a 3rd wire along with the twisted pair if necessary, in order to connect the 485 transceivers' grounds.
 
try to use the HXSP-2108C Industrial Level Optical Isolation RS-232 To RS-485/RS422 Converter produce by hexin-tech.com.cn, whcih with optical isolation,lightningproof and surge protection .The RS-422/485 side and the RS232 side is powered by an external power .
 
Is it true that if using a RS485 connection that is short, just a few feet, with any standard RS232 to RS485 converter, then I don't need to use a 100ohms terminal resistor? What is the difference of using a resistor or not using one? what does it do exactly? :confused:
 
Well after some research I guess I can answer my own question :biggrin: A 120ohms resistor is generally only recommended if the transmission lines are more than 1000 feet, this is also why a rs232 to rs485 converter with a built-in terminal resistor which cannot be disabled is a bad thing.
The reason for the terminal resistor: the resistor matches the resistance of the wires connected to the converter thereby minimizing the noise in the wire. However, the terminal resistor also induce additional current flow which puts load on the converter, which is why the resistor isn't recommended on wire lengths less than 1000 feet.
After a lot of research I finally found a RS232 to RS485 converter that suites my requirements.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
37
Views
7K
  • · Replies 6 ·
Replies
6
Views
8K
Replies
2
Views
2K
  • · Replies 13 ·
Replies
13
Views
8K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
8
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
2
Views
2K