Tim Ganz
Member
I have an Ethernet connection between an SLC 5/05 and a CompactLogix PLC and I have logic that toggles a bit back and fourth between the processor as my watchdog but depending when I unplug the cable my watchdog bit may be high or low.
Right now I am looking at the watchdog dog bit and if it's low for 10 seconds I stop the equipment and set an alarm horn but sometimes when I unplug the Ethernet cable it leaves the bit high because that was the last write and there are no comma to change it.
What's the best way and cleanest way to code it to look ok for a change of state from high to low on the watchdog bit and if no change of state is seen for 10 seconds the set the comms fault alarm?
The COS logic and the watchdog is in or will be in the SLC.
Right now I am looking at the watchdog dog bit and if it's low for 10 seconds I stop the equipment and set an alarm horn but sometimes when I unplug the Ethernet cable it leaves the bit high because that was the last write and there are no comma to change it.
What's the best way and cleanest way to code it to look ok for a change of state from high to low on the watchdog bit and if no change of state is seen for 10 seconds the set the comms fault alarm?
The COS logic and the watchdog is in or will be in the SLC.