News:

  • May 02, 2026, 03:12:15 AM

Login with username, password and session length

Author Topic: Modbus TCP Locking Up?  (Read 13325 times)

MarkTTU

  • Hero Member
  • *****
  • Posts: 293
    • SamJackson.com
Modbus TCP Locking Up?
« on: July 18, 2011, 04:37:51 PM »
I've been using a great little program for iOS devices called Scada Mobile and now Modbus Gem (stripped down Modbus only version) that basically lets you turn an iPad/iPhone/iPod Touch into a simple HMI. Its been a great program and I really really like it, but I've had a recurring issue with it locking up from time to time.

I got in touch with the developer, really nice helpful guy, and it appears that the ECOM100 has a tendency to flake out on too many Modbus connections. Where I generally hit the problem is when I'm working on something in SM and updating the program frequently; each time the program is updated it drops the connection to the ECOM100 and then starts the connection back up after re-parsing the source file. This leads me to wonder how many concurrent Modbus connections the ECOM100 can handle and also to wonder what is supposed to happen when that limit is exceeded. Should the connection just be refused or should the oldest non-active connection be dropped?

Anyway, any insight is greatly appreciated 8)

MikeS

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 261
    • Host Engineering, Inc.
Re: Modbus TCP Locking Up?
« Reply #1 on: July 25, 2011, 02:09:39 PM »
current firmware allows for 12 concurrent connections, older firmware allowed 4. The oldest inactive is closed when a connection request is received. I believe that if all connections are used when a new connection request is received that we NAK the request.

Is there anyway to make sure that the SM software connections are going away when you make a software change? It could be that the old connections are still around and once you hit the limit of 12 the wheels start coming off.
Good design costs a lot. Bad design costs even more.

MarkTTU

  • Hero Member
  • *****
  • Posts: 293
    • SamJackson.com
Re: Modbus TCP Locking Up?
« Reply #2 on: July 31, 2011, 04:30:11 PM »
Could be. I can try exiting SM and seeing if that helps...