Does anyone know a good method or setting to be able to detect a PLC connected by Ethernet (FINS UDP) going offline, and more important a method to have it reconnect when online again?
I am currently using a 5sec interval script to detect offline status by returning the value of the IsPLCOpen handle to a system point which on its turn raises a digital alarm. This works good on startup when a PLC is offline, but when a PLC goes offline during runtime (e.g. pulling the plug) it takes quite a while (even given the 5 sec interval).
I also would like the PLC to auto reconnect within CX-Supervisor, just as with CX-Programmer. I asume the background comms using CX-Server is identical for both client applications so this should be possible??
I have tried some scripting using the IsPLCOpen status and controlling the PLCOpen command, but I could not get it to work. I have noticed that when a PLC goes offline, the PLC Open box at the runtime PLC properties is still checked but no status appears. Only when I uncheck and confirm to close the PLC and right after check the box again and confirm to open the PLC, the connection is re-established.
Any help appreciated!!