Heartbeats in ladder programs

I noticed on most of the online PLC's in our plant there is a heartbeat, which is basically a MSG instruction that is sent at a timed interval and then returned by another PLC.

My question is what is the purpose of this on SLC/MLX family of controllers?

Do modern CLX controllers need this logic as well?
 
It is a method of verifying that the communications link between the two devices is functioning. Both devices can check to make sure the heartbeat is changing state and take appropriate steps when it isn't.
 
For the SLC/MicroLogix you use the MSG instruction to exchange data. So this is why the MSG instruction is also used for a Heartbeat to monitor for communications loss.

For the ControlLogix/CompactLogix you can use the MSG instruction or Produce/Consume to exchange data. So you have a choice as to which method you can use for a Heartbeat.

If using Produce/Consume then you can add a tag of data type Connection Status to the beginning of a User Defined Type (UDT) that will be exchanged with the other controller. This data type provides two BOOL tags, "RunMode" and "ConnectionFaulted". You can then use this status data in both controllers to monitor if the connection is healthy.

Regards,
George
 
Thanks for the information so far. So basically I'm thinking something like this for SLC/MLX:

PLC 1 sends a MSG to PLC 2 every 3 seconds that sets a bit A.
PLC 2 has a timer for 10 seconds. Bit A sets the timer enable logic to false.
If the timer reaches its accumulated value than there is a lost packet. Counter A increments.
If counter A reaches its increment value, a com error bit is set.
Once a MSG instruction is received again the timer energizes again and the counter is reset along with the com error bit.

As far as the produce/consume model what AB document is it in? I have not been able to find really good documentation on it, but for full disclosure I have not read the full CLX instruction set manual yet, only parts as I needed them.
 
Here is a thread from not too long ago with various examples...

"Heart Beat"

In the second linked Technote "43029" the attached example "HEARTBEAT_1.RSS" contains a similar Counter method to your own proposal.

If you cannot access any TechConnect articles in the above then let us know.

For the Produce/Consume model here is the Programming Manual...

Logix 5000 Produced and Consumed Tags

Regards,
George
 

Similar Topics

Hello, looking for someone to help me open the .acd file and make pdf of the ladder program. This is for learning purposes. File is 4MB and I...
2
Replies
156
Views
Hi All, I'm currently studying PLC at college and not doing so great. We use TIA Portal V15. I'm trying to set up the ladder logic for this...
22
Replies
1,248
Views
Hello, I've got an old 917-0050 Medar welding-card for a SLC-500 rack, and I am trying to copy data in and out of the card, specifically...
3
Replies
251
Views
Hi everyone, I'm a control engineer working on a small RO (Reverse Osmosis) water treatment station control panel. I have solid experience with...
0
Replies
224
Views
Hi, I currently have programs made for the Delta DVP28SS211T PLC. I wanted to confirm whether the newer DVP28SS211T2 works the same in terms of...
1
Replies
242
Views
Top