Previous in Forum: Boil Drum - Level Transmitter Range   Next in Forum: Voltage Level ,JB
Close
Close
Close
7 comments
Rate Comments: Nested
Associate
Pakistan - Member - New Member Engineering Fields - Energy Engineering - New Member

Join Date: Mar 2008
Location: Karachi,Pakistan
Posts: 32

RS485 Communication Error

11/21/2008 12:20 AM

Hi,

I am having a problem in starting RS485 communication of a flow computer with the meter. As soon as i start the computer, the voltage level of 5V is available for 485 signalling, but when i try to configure the communication port for connecting to the flowmeter, the signal is lost.

The problem persists till i restart the computer; changing the configuration of the port also doesn't help and 5V are available only after restarting the system.

Can any one help me out in understanding this scenario?

__________________
It is better to be defeated on principles, than to win on lies!
Register to Reply
Pathfinder Tags: flow computer communication
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

Join Date: Sep 2006
Posts: 4513
Good Answers: 88
#1

Re: RS485 communication error

11/21/2008 2:03 AM

Hello afifahasan,

Are you configuring the port as a master or a slave? Which way is the flowmeter configured?

How long is the drop? Are the connections properly terminated?

Is the flowmeter connected when you power up, or is it connected afterward?

How is the flowmeter powered? Is it possible you have a ground-loop problem?

Register to Reply
Associate
Pakistan - Member - New Member Engineering Fields - Energy Engineering - New Member

Join Date: Mar 2008
Location: Karachi,Pakistan
Posts: 32
#2
In reply to #1

Re: RS485 communication error

11/21/2008 2:28 AM

hi europium,

the port at the flow computer is being configured as master and the flowmeter is used as a slave.

the connections are checked and are terminated properly and there's no issue of long distance as the wire is 1.5 m long at max.

the flowmeter is connected after first configuring the FComputer to communicate on rs-485.

the power to the flowmeter is through the flow computer and there is the least possibility of nay kind of temination or grounding errors.

Any solution ??

__________________
It is better to be defeated on principles, than to win on lies!
Register to Reply
Guru

Join Date: Sep 2006
Posts: 4513
Good Answers: 88
#3
In reply to #2

Re: RS485 communication error

11/21/2008 3:57 AM

Is there any chance that configuring the computer end of the wire is tri-stating the driver?

Try this: Disconnect the flowmeter from the cable, connect a 100-ohm resistor across the cable-connector pins and watch the pins with a scope while you configure the computer-side port. Please let me know what happens.

Register to Reply
Power-User
United States - Member - Member

Join Date: Dec 2006
Location: La Grande, Oregon U.S.A.
Posts: 468
Good Answers: 23
#4

Re: RS485 Communication Error

11/23/2008 12:59 AM

RS485 works by sending +/- 3ma along the T+ and T- lines. There may be 5V out there referred to gnd, but you don't care about it. When you configure the port, it could be putting some resistance across the lines and changing the 5V, which you aren't interested in anyway. Usually when connecting a 485 link, the problems are:

1. T+ and T-, or R+ and R- reversed

2. Baud, stop bits, parity

Review these carefully and you will probably be working fine.

LG_DAVE

__________________
Don't hit at all if it is honorably possible to avoid hitting; but never hit soft! - Theodore Roosevelt
Register to Reply Score 1 for Good Answer
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 5826
Good Answers: 322
#5

Re: RS485 Communication Error

11/24/2008 2:33 AM

Hi Afifahasan,

You said "5V is available for 485 signalling", and then that, "the power to the flowmeter is through the flow computer"; also that "the signal is lost".

Is this synchronous or asynchronous comms.?

Does the actual power supply for the flow meter disappear, or, is it just the signalling pair going tri-state as Europium suggests.

I'm just shooting in the dark here, but "master/slave" sort of indicates half duplex, in which case maybe the computer has polled the meter and is waiting for a reply.

On the other hand LG_Dave is talking (and almost certainly knows more about this sort of application than me) about a transmit pair and a receive pair, which kind of indicates full duplex.

Do you have the pin-out of the connectors?

What do you mean by "the signal is lost"?

__________________
If you spend all your time looking for people and things to complain about: trust me, you will find plenty to complain about.
Register to Reply
Guru
Popular Science - Weaponology - New Member Netherlands - Member - New Member Fans of Old Computers - Commodore 64 - New Member

Join Date: Sep 2007
Location: Japan
Posts: 2703
Good Answers: 38
#6

Re: RS485 Communication Error

11/24/2008 9:26 PM

Have you added the 120 Ohm resistors? And check the wiring please.

__________________
From the Movie "The Big Lebowski" Don't pee on the carpet man!
Register to Reply
Associate
Pakistan - Member - New Member Engineering Fields - Energy Engineering - New Member

Join Date: Mar 2008
Location: Karachi,Pakistan
Posts: 32
#7

Re: RS485 Communication Error

11/28/2008 6:11 AM

Thanx alot for everyone's comments!

the succcessful communication has been established finally, and the main problem was related to the swapping of the pins, i.e. T+,T-and R+,R-.

__________________
It is better to be defeated on principles, than to win on lies!
Register to Reply
Register to Reply 7 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:

afifahasan (2); Epke (1); LG_Dave (1); Randall (1); user-deleted-13 (2)

Previous in Forum: Boil Drum - Level Transmitter Range   Next in Forum: Voltage Level ,JB

Advertisement