Create a data tag in the Red Lion that points to the M Coil such as MyCoil.
Go to the Red Lion Programs tab and create a program named fInit
Inside the program:
// Toggle coil every tick (1 second)
MyCoil = !MyCoil;
Go to the Red Lion Display Pages, and go to the top level folder (above all pages). If you right click on it you'll see the On Tick Global Action. Call your program once a second from here: enter 'fTick()'
In your PLC program you'll need a timer that checks when this toggling bit goes away - meaning your comms have died. I would leave it fairly long timer in case there is a hiccup - say 10 seconds.
That worked perfectly for me. You have pulled me out of a great big hole!!!
Also, apologies for the double posting, I'm new to forums like this.
Thanks again, much appreciated.