Modbus TCP Connection Cycles between Connected and Disconnected

I’m having some issues with connecting to my Red Lion HMI. I configured it using Modbus TCP and when I setup the device, it it cycles between Disconnected and Connected. I found in the forums that this can happen if there’s no tags to keep the connection open, so I added 10 tags (just HR1-10) but all the tags display:

Quality: Bad(“Bad_NotConnected: The variable should receive its value from another variable.”)

I’m lost, and I verified that I can read the registers with pyModbusTCP, so I don’t believe it’s an issue with my configuration of the HMI. I also monitored the network traffic between Ignition and the HMI and it seems like there’s information being exchanged roughly every 3 seconds, so I can’t believe it’s timing out. I also turned the timeout to 10 seconds and it still didn’t help, so I don’t believe it’s that.

Thanks!
John

There’s probably a tag that is for an unsupported/undefined address. And it gets optimized into a larger read of multiple consecutive or near-consecutive addresses, failing them all. Consider disabling all of the tags on that devices, then re-enabling them one by one. Also look at the span gaps setting in the driver.

1 Like

Hey Phil, thanks! It’s funny, a lot of the posts that I found researching this also had your name on them, you must be the resident Modbus expert :laughing:

That makes sense, and I went and cleared all but one tag at [RedLion]HR1, but the issue remained the same unfortunately.

Can you verify with a 3rd party Modbus tool that HR1 is a valid address that the RedLion HMI is responding to?

One of the most common issues is that Ignition’s Modbus driver defaults to Unit ID 0, so if your device is using Unit ID 1 instead your address needs to be 1.HR1. It seems to be about 50/50 whether a device uses 0 or 1 by default…

1 Like

That totally worked! It’s so funny I had both you and Phil respond to my question, I think you both were on every post I read.
Thank you so much!

Also, for anyone reading this in the future, the Red Lion product was a G10.

Well, @Kevin.Herron is the long-standing leader of IA’s driver team (and public face of the Eclipse Milo project), so him piping up on these topics should not be any surprise.

I, on the other hand, am merely a third party who happens to have an alternate Ignition Modbus Driver that fills in some gaps in available functionality. (:

1 Like