Hi,
I'm looking to eliminate some communication errors we seeing on site. The PLC's are connected via Wi-Fi gateways and sometimes the SCADA HMI looses connection and doesn't always re-connect.
I'm not sure if the PLC or the SCADA are to blame or if the Wi-Fi gateways are adding latency which is upsetting things.
So, to try and solve the issue via the process of elimination, I'm would like to add a small function to close all tcp traffic and if need be restart the PLC, I was looking at setsystem 251 but this only works on FW78 +PLC's. Some of the PLC's I have are FW76, 77 & 78. I like to keep my code consistent in all the PLC's so was looking for some advice.
I could periodically call a reset function but I'm not sure if this will close the TCP sockets, does PRINT #4 "</>" close incoming connections?
Cheers
Marcus