AdvancedHMI Software

General Category => Support Questions => Topic started by: vikrant on July 03, 2014, 02:31:39 AM

Title: ModbusTcpCom does not recover from ComFail error
Post by: vikrant 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.
Title: Re: ModbusTcpCom does not recover from ComFail error
Post by: mrd1010 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?