Jump to content

MULIPLE modbus TCP


Schola

Recommended Posts

I am streamming inputs from 2 adam modules, 6050 and 6017 using modbus tcp (modbus tcp llb). different ip's, both config to use port 502. I open connections, then loop continues and aquire data (this loop should run 24 /7), then when closing main loop, only then close connection.

trouble is that the modus llb wr times out and the whole ship comes to a stop. every time on the 6050, then displayiing zero's.

happens about 1 per 48 hours.

Link to comment

You can try checking for the timeout error specifically and increment a counter if it occurs. Once the timer reaches a certain value (meaning that you have consecutive errors), you can stop the loop and either close and reopen or close and stop. Just note that you need to reset the counter if there is no error.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.