Comms Heartbeat Method Question

MikeVT

Lifetime Supporting Member
Join Date
May 2008
Location
Holland, MI
Posts
83
Good Morning!


I need to monitor ethernet comms, between 2 Compact Logix PLC's. I have done this before with a simple pair of timers, toggling a bit (on the sending side) and a timer monitoring a bit on the receiving side.



However, This is the 'spec' I'm dealing with, from an equipment vendor, regarding a DINT being monitored as a comms watchdog.



"[FONT=&quot]This value must continuously increment by 1 at every CPU cycle. When reach the Data Type max value, restart from 0. If the increment stops means that there is a PLC or a communication error."
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]I have not used, or seen an example of the logic needed to monitor comms this way. I am asking for some examples of ladder logic, to accomplish this, please.[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]Thank you!
[/FONT]
 
If you are using produced/consumed this is very easy with connection status. However, to do it like they spec, create a buffer tag, call it something like LastValue. Each scan compare the current value and the last value, if they are equal for a period of time you have lost comms. You will need to move the current value into the last value after the timer.

Hopefully my explanation makes sense. I don't have software right now to play with.
 

Similar Topics

I am working on setting up a Prosoft Datalogger model PLX51-DLplus-232. This unit will be collecting data from a SLC 5/05 on the DB9 port set to...
Replies
3
Views
104
Hello, can someone share/explain How to check comms between PC and PLC via TeamViewer? TIA
Replies
14
Views
390
Has anyone setup communications with Red Lion 3.0 MODBUS to Baker Hughes Centrilift GCS VFD? Thanks
Replies
0
Views
91
Hi , Looking for some help. We have a 343-1 PN Lean Card & 315-2DP connected to an external system collecting data. After a recent shutdown...
Replies
0
Views
67
I have been trying to add a button to an HMI Panelview version 5.1 for a couple days. Each time I download I get no data in my buttons, only...
Replies
0
Views
210
Back
Top Bottom