News:

  • May 05, 2026, 11:06:59 PM

Login with username, password and session length

Author Topic: Modbus RTU network read  (Read 5042 times)

Rosco

  • Newbie
  • *
  • Posts: 1
Modbus RTU network read
« on: December 03, 2015, 07:11:20 PM »
Hi Guys

Just wondering if I can get some help.

I have a do-more cpu running with a Modbus gateway over RTU, reading field inputs & outputs via ASI.  I am able to read and write single bits and words at any speed from 9600 baud rate to 38400.

However, when I bump the speed up to 57600k or 115k I get an error bit set on when reading any holding registers or input registers and my Modbus connection starts dropping in and out. Once I drop the speed back down to 38400 or lower everything is fine again.

I have adjusted the inter-packet delay with no luck, I also get no Modbus exception response codes when this happens.

Any help would be greatly appreciated

Rosco




plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Modbus RTU network read
« Reply #1 on: December 03, 2015, 07:59:01 PM »
What are you using for cabling?
Did you use termination resistors?
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: Modbus RTU network read
« Reply #2 on: December 04, 2015, 12:50:15 PM »
Agree.  You're probably on the wrong side of the cable length vs. baud rate tradeoff once you go past 38400.  Maybe upgrade to better cable or convert one segment to fiber if there is one that's the lion's share of the cable distance.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.