Author Topic: ModbusTcpCom does not recover from ComFail error  (Read 1271 times)

vikrant

  • Newbie
  • *
  • Posts: 3
    • View Profile
ModbusTcpCom does not recover from ComFail error
« on: July 03, 2014, 02:31:39 AM »
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.

mrd1010

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: ModbusTcpCom does not recover from ComFail error
« Reply #1 on: September 22, 2014, 05:36:34 PM »
Having the same problem with my little setup, is there anyway to restart the comms after a fail? and also generate an alarm?