Schola Posted November 11, 2008 Report Share Posted November 11, 2008 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. Quote Link to comment
Yair Posted November 11, 2008 Report Share Posted November 11, 2008 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.