Previous in Forum: Microsoft Exchange   Next in Forum: Single Board CMOS for Ambient Light Conditions
Close
Close
Close
14 comments
Rate Comments: Nested
Member

Join Date: Sep 2007
Location: Nagpur Maharashtra India
Posts: 5

RS 232 to RS 485 converter

02/11/2011 2:40 AM

Hi,

I want to transfer a PLC programe from my laptop to schneder PLC having communication port of RS 485, I have a converter RS232 to RS 485 with me, but enven after connecting it is not communicating. Pl. help.

Niranjan

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru
Engineering Fields - Instrumentation Engineering - New Member

Join Date: Dec 2009
Location: San Antonio, TX USA
Posts: 844
Good Answers: 29
#1

Re: RS 232 to RS 485 converter

02/11/2011 11:07 AM

Check your UART bits and baud rates and try again.

__________________
"Do not worry about your difficulties in Mathematics. I can assure you mine are still greater". - Albert Einstein
Register to Reply
Guru

Join Date: Aug 2007
Location: Earth - I think.
Posts: 2143
Good Answers: 165
#2

Re: RS 232 to RS 485 converter

02/11/2011 12:18 PM

Don't forget to check the handshake pins or setting(on both sides of the link.

__________________
TANSTAAFL (If you don't know what that means, Google it - yourself)
Register to Reply
Guru
India - Member - Sensors Technology Popular Science - Cosmology - Dream, Think and Act United Kingdom - Member - New Member United States - Member - New Member Canada - Member - New Member

Join Date: Aug 2006
Location: AM-51, Deen Dayal Nagar, Gwalior, Madhya Pradesh, MP 474001, India
Posts: 3418
Good Answers: 32
#3

Re: RS 232 to RS 485 converter

02/11/2011 10:37 PM

Look at baud rate setting,baud rate, number of bits in data, parity bit, stop bit, hand shaking option hardware/software/none, and finally link of signals RxD, TxD RTS CTS, etc. You can even take help of the PLC supplier who can send proper cable to you. They can also give you right catalog to refer.

__________________
Prof. (Dr.) Shyam, Managing Director for Sensors Technology Private Limited. Gwalior, MP474001, India.
Register to Reply
Guru
Popular Science - Weaponology - New Member Safety - ESD - New Member Hobbies - Fishing - New Member

Join Date: Sep 2006
Location: Near Frankfurt am Main, Germany. 50.390866N, 8.884827E
Posts: 17996
Good Answers: 200
#4

Re: RS 232 to RS 485 converter

02/12/2011 4:07 AM

Having done this a few times over the years, I know it can be a bit difficult, even for someone who cut their teeth on such things.

You need at least an RS232 breakout box with LEDs to show you what is going on at least on the RS232 side....

Look here for a really cheapo version:-

http://www.altex.com/RS232-Breakout-Box-BRB-232-P140389.aspx

Usually they cost a lot more. Search on "RS232 Breakout", you will find dozens of them.

You need to know exactly the baud rate, start bits, stop bits etc... to even have a chance of getting it to work...from BOTH sides......

Here is the details of the RS485 side:-

http://en.wikibooks.org/wiki/Serial_Programming/RS-485

And here is the deatails of the RS232 side:-

http://en.wikibooks.org/wiki/Serial_Programming/RS-232_Connections

Best of luck.....

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply
Active Contributor
Canada - Member - New Member APIX Pilot Plant Design Project - Member - New Member

Join Date: Sep 2008
Location: Nova Scotia, Canada "Canada's Ocean Playground"
Posts: 20
#5

Re: RS 232 to RS 485 converter

02/12/2011 6:57 AM

I went through this once or twice at a customers facility, it always ended up being the cheap three wire RS232 cables they sell these days...

__________________
TheCanadianBear
Register to Reply
Guru
Popular Science - Weaponology - New Member Safety - ESD - New Member Hobbies - Fishing - New Member

Join Date: Sep 2006
Location: Near Frankfurt am Main, Germany. 50.390866N, 8.884827E
Posts: 17996
Good Answers: 200
#6
In reply to #5

Re: RS 232 to RS 485 converter

02/12/2011 9:08 AM

...which will only work using X-on and X-Off protocol!!

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply
Power-User

Join Date: Nov 2009
Posts: 335
Good Answers: 63
#7

Re: RS 232 to RS 485 converter

02/12/2011 4:50 PM

There is no convention or standard for the half duplex (2 wire) RS-485 lines, A or B, or (+) or (-).

Some divisions of large conglomerates label the lines one way, another division labels them the exact opposite.

So, if you're running half duplex (2 wire), then try it with the 2 wires attached one way, if that doesn't work, try it the other way. Reversing the wires will not damage the drivers/receivers on either side, but it won't work 'backwards'.

Register to Reply Score 1 for Good Answer
Power-User

Join Date: May 2008
Posts: 306
Good Answers: 12
#10
In reply to #7

Re: RS 232 to RS 485 converter

02/13/2011 5:14 PM

You are correct...having been in the video/data/audio transmission game for a while now, we often get customer 'complaints' that our modems don't work only to discover that the 2-wire connections need to be swapped. As there is (as you rightly point out) no clear convention and the confusion of input/output with respect to the computer and/or modem, we state in our manuals that if there is no communication to try and swap the +/- wiring on one or both ends. This usually sorts out the problem.

Register to Reply
Guru

Join Date: Dec 2010
Posts: 1686
Good Answers: 116
#8

Re: RS 232 to RS 485 converter

02/13/2011 10:47 AM
  1. RS232 did not use cables with send to receive cross-over...
  2. RS232 was designed to connect a Data Terminal Equipment [DTE] - typically a computer - to a Data Communication Equipment [DCE] - typically a modem.
  3. It was a bad standard - it did not specify if connectors were to be male or female on a type DCE or DTE. To compound matters, the signal codes labels were from the DTE's "point of view" at both ends e.g. TD is data out at DTE end, but at DCE end the same pin number (still labelled TD) is really an input!
  4. If you connect a DTE with a DCE using a "standard" RS232 cable, with 9 pin connectors (The original standard had 25 pin connectors, because it includes a secondary channel for management communication - the 9 pin became a standard because IBM used it on later "IBM PCs") the cable connects pin 1 of connector A to pin 1 of connector B, pin 2 to pin 2, and so on until pin 9 connects to pin 9.
  5. But if both ends of your link are wired as DTE (both PLC and computer can consider themselves as computers) , you have input connected to input and output connected to output. There is no communication!
  6. There are two basic types of RS232 cable, normal (DTE to DCE) and crossover or DCE/DCE). Plus variants which "fix" the "handshake" signals so that the sending side always gets "OK to send" input....
  7. It appears you have got a physical connection! Often one finds that the connector on the lead you have is the wrong gender to fit the equipment at one or both ends! Or even 25 pin, when you expected 9 pin.
  8. The first thing to do is to check if the "RS232" cable is wired pin 2 at one end to pin 2 at the other connector.
  9. The next thing to do is find what sort of termination the PLC thinks it is. DTE or PLC. Refer to the PLC data. Since suppliers have a vested interest in selling you their lead, this is often not clear or just not mentioned.
  10. Sorry to tell you that, to cope with just one PLC, computer and modem; I had a whole bag of male-female converters (9 and 25 pin), straight and cross-over cables and an LED signal indicator to check which pins were giving an output.

Following diagram from my design notes may help to get you started. Note computer end was DTE, while ICM200 [an RS232 to RS422 signal standard converter] was DCE :-

a) CABLE HAS 9 PIN "D" TYPE CONNECTOR (slidelock)
FEMALE AT ICM200 END & FEMALE AT COMPUTER END.

b) CABLE PIN INTERCONNECTION REQD IS:-

ICM200 Computer direction function
pin pin
RD 2 >------------------------------<2 from ICM200 RD data
TD 3 >------------------------------<3 to ICM200 TD data
RTS 7 >------------------------------<7 to ICM200 RTS handshake
CTS 8 >------------------------------<8 from ICM200 CTS handshake
com 5 >------------------------------<5 - signal common
DSR 6 >------------------------------<6 from ICM200 DSR handshake
DTR 4 >------------------------------<4 to ICM200 DTR handshake
DCD 1 >------------------------------<1 from ICM200 DCD handshake
NC 9 >------------------------------<9 to computer RI (ring)

N.B. NC= no connection.

- you will probably note how much detail was essential to get the right connection!!

Register to Reply
Guru

Join Date: Dec 2010
Posts: 1686
Good Answers: 116
#9

Re: RS 232 to RS 485 converter

02/13/2011 11:11 AM

Dear Niranjan,

Further to my post about RS232 "Standard", there is another point which may be relevant.

  1. RS232 connectors do not have any power output pins, only signal pins. Nor do RS485 - but often PLC "Programmer" connectors have power pins on their RS422 or RS485 connectors.
  2. Often, RS232 interfaces "steal" the [very limited] power from the signal outputs to power conversion circuits. The better ones have an independent power supply
  3. This "power steal" (2.) may work OK on a short cable with an RS485 end which does NOT have a termination resistor [usually 120 ohms] built-in. But it may be incapable of enough drive output at the RS485 side.
  4. You must check, with a meter, at the two ends of your "RS232" cable, to find which pins give an output voltage - this will tell you if they are DTE or DCE.

Best of luck....

67model

Register to Reply
Power-User

Join Date: May 2008
Posts: 306
Good Answers: 12
#11

Re: RS 232 to RS 485 converter

02/13/2011 5:18 PM

If the OP bought an RS232 - RS485 converter then i don't think the issue is on the RS232 side. I believe the problem is on the RS485 connections. See Carl E's post earlier...try swapping the +/- data lines on one end first, then the other if it still does not work.

Register to Reply
Participant

Join Date: Feb 2011
Posts: 2
#12

Re: RS 232 to RS 485 converter

02/14/2011 3:00 PM

What program are you using? Details on the laptop?

Register to Reply
Participant

Join Date: Mar 2011
Posts: 1
#13

Re: RS 232 to RS 485 converter

03/09/2011 2:14 PM

A simple standard RS232 to RS485 converter only has three wires D-, D+ and Ground on the RS485 side and TX/RX on the RS232 which are required, so it shouldn't be too difficult. The most common mistake is that thebaud rate is not matching, or some of your other data settings. However also check if any of the handshake wires on the RS232 are required for your particular application.

Register to Reply
Participant

Join Date: Aug 2011
Posts: 2
#14
In reply to #13

Re: RS 232 to RS 485 converter

08/31/2011 6:45 PM

A simpler way may be using a USB to RS-485 converter. We have drivers for Windows 7 32 and 64 bit also. Most laptop computers do not come with RS-485 or RS-232 ports. Our I-7561 provides solutions for both.

http://www.icpdas-usa.com/products.php?PID=506

Register to Reply
Register to Reply 14 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

67model (2); Andy Germany (2); automationtechie (1); Carl_E (1); daffy (2); Kilowatt0 (1); Magnus2011 (1); Plymouthtech (1); RDGRNR (1); Shyam (1); TheCanadianBear (1)

Previous in Forum: Microsoft Exchange   Next in Forum: Single Board CMOS for Ambient Light Conditions

Advertisement