08-31-2005 10:15 AM
08-31-2005 12:35 PM
While making Lookout invert your PLC's register is fairly easy (create pushbutton, connect inverted plc register to reset_value and "regular" plc register to reset, that is if your PLC allows you to write to it's registers from both PLC and Lookout, which is unlikely and definitely bad practice), from my experience performing the function you require is not so simple, I gave up after 2 hours of experimenting and built some sort of workaround.
I'm eagerly waiting to have a look at some smart solution for nodeguarding (if I am correct this is how this procedure is called). Some devices have this as a built-in feature, very convenient if you need to know where's your system at.
Bye,
Darko
08-31-2005 01:28 PM
08-31-2005 04:52 PM
09-05-2005 08:31 PM
09-20-2005 11:22 AM
Yes, I agree with Flexman, and I too call this a 'heartbeat'. I motor in Lookout that it is still able to communicate with the PLC, and I monitor in the PLC that it is still able to communicate with Lookout. Why do it both ways? When Lookout can not communicate with the PLC, I send an email message to myself (I have other things to do than to watch the system all day long). When the PLC is not communicating with Lookout, I can have logic in the PLC to take over critical functions it needs to maintain on it's own.
An easy way to do monitor Lookout in the PLC, is to have a PULSE object in Lookout. Have it pulse at the frequency you wish to be notified of lost communications. Ok, so now you've got a bit in the PLC changing states every minute from Lookout (or faster if you need) Then monitor the normaly-open state of this bit into an on-delay timer, set the preset of this timer for 150% of the lengh of time that the bit stays on. Also monitor the normaly-closed state of this bit into an on-delay timer, and again set the preset of this timer to 150% of the lengh of time that the bit stays off. Now if either of these timer's 'time-out' (use an OR statement into an output bit) you can trigger what you need to do when you loose your communications to Lookout.
good luck,
Rich