P
Hi
I developed a small program that uses Modbus TCP to communicate to PLC's and it works quite well. The only test that I could not get to work was when a TCP socket stops mid cycle. The program seg faults.
The goal is to have the program acknowledge the problem and then try to keep reopening the socket until succesful and then go back to the main task of communicating.
I have put the program at "ftp://pcscada.com.au/pub/pcscada/modbus.tcp.tar.gz":ftp://pcscada.com.au/pub/pcscada/modbus.tcp.tar.gz
If anyone can help debug or enhance this code, it would be much appreciated.
Regards
Phil
I developed a small program that uses Modbus TCP to communicate to PLC's and it works quite well. The only test that I could not get to work was when a TCP socket stops mid cycle. The program seg faults.
The goal is to have the program acknowledge the problem and then try to keep reopening the socket until succesful and then go back to the main task of communicating.
I have put the program at "ftp://pcscada.com.au/pub/pcscada/modbus.tcp.tar.gz":ftp://pcscada.com.au/pub/pcscada/modbus.tcp.tar.gz
If anyone can help debug or enhance this code, it would be much appreciated.
Regards
Phil