If the slave-master communication breaks (e.g. slave died, or slave comm cable removed), ModbusTcpCom does not recover from ComFail error.
I could not find a way to retry communication. Upon comm error, I made a retry loop that again instantiate ModbusTcpCom with the slave, but this goes in error stating that another socket is already open, so I tried to Dispose() this object and re-instantiated, but still communication does not come alive.
I have to kill the exe and then start it to make the comm healthy again.
If anyone has a solution, please let me know.
Thanks.