Member Login
member
passwd
remember me on
this computer.

- join now -
- forgot username or password? -

Jump to a Date

Sponsored Communities
Cool stuff
Select a topic of interest:
...and press:
Neat Stuff
Control.com Stuff

Visit our shop for nerds in control lifestyle products.

Fortune
Real Time, adj.:
Here and now, as opposed to fake time, which only occurs there
and then.
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss/
To get a personalized feed, become a member at no cost.
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
advertisement
from the Forum department...
How to Minimize Modbus RTU over RS485 Delay Time
Communications systems and equipment. topic
Posted by asaria on 25 October, 2009 - 12:01 pm
Any of you know how to minimize delay time in MODBUS RTU over RS-485 2-wire. Since, my PLC is currently connected with Caterpillar engine where it uses a Siemens Logo as the engine local governor. I read 4 words (40137,40140,40150,40188) and write a single word (40001) and bit (00001) in to it.

The strange thing is: my transmission command could be received in 3s, but I received the reply in my system in 1.5 minutes. Very long time. I use 9600 baudrate.


Posted by Harvard on 25 October, 2009 - 11:32 pm
Seems you probably have a KeyUp/KeyDown timing issue. The most common problem is the slave responds to the Host poll BEFORE the Host does a KeyDown. Look for a tuning parameter in your slave (typically) named "turnaround delay" and increase it by a lot then if it works better fine tune the setting by trial and error. The object is to delay the slave response to the point that the Host will be ready and listening for the slave response.


Posted by asaria on 26 October, 2009 - 10:24 am
What do you mean by KeyUp and KeyDown timing?


Posted by Harvard on 26 October, 2009 - 4:44 pm
RS485 (2 wire) is a half duplex communications path. Just like a 2 way radio one must KeyUp the transmitter, send the data, then KeyDown the radio. If data is sent before the other radio keys down then the info is chopped off at the front end. If you want to see the schematic of a RS232 to RS485 driver that actually uses the first Start Bit to key up and Fail Safe Biasing for the last Stop Bit see B&B Electronics Model 485SD9TB. It is the best design I know of to handle RS485 timing.


Posted by sachin on 26 October, 2009 - 4:05 am
It is possible to get reply from logo in seconds if you can change/access modbus communication settings in LOGO. It is also possible that it transmits signal only in case of C.O.S. You can check these parameters and logo is not powerful enough to execute its logic program and transmit data at same time on MODBUS RTU.



Posted by CH on 26 October, 2009 - 9:52 am
I'd check to see if the slave has a "response delay", or similar setting.

Also, since it's on an RS485 network, you could get an RS485->RS232 converter and capture the serial traffic with a PC. Depending on the length of the RS485 run, you should analyze both ends of the conversation... look at when/what data the master is sending and receiving, and look at when/what data the slave is receiving/sending.

CH


Posted by asaria on 28 October, 2009 - 11:48 am
I had checked it. From panel, I tried to read data from slave using Modbus simulator, i got only 2s delay.

But when I tried to use simulator as slave then see the response in master, i got 7s delay. Still to long. should I change to 4 wire-full duplex instead of 2-wire?


Posted by asaria on 3 November, 2009 - 7:36 am
All,

Thanks for your support. I had solved the problem today. The problem is, in field they (slave side) use multidrop configuration, but they forget to use a termination resistor in last slave node. After putting a 120 Ohm termination resistor in last node, everything works normal now.


Posted by Harvard on 3 November, 2009 - 5:12 pm
As the saying goes, "fix all the things you know are wrong and all the weird stuff just disappears".

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2009 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!