Heartbeat from OPC Server Interface?

zoomable

Member
Join Date
Oct 2021
Location
Ontario
Posts
36
All,

How would I implement a heartbeat mechanism from a client app that is using OPC to communicate to PLC (Siemens S7-1200, integrated OPC server)?

Would it be as simple as having the client write a byte every T seconds, and some PLC logic that monitors it?

z
 
That should work. I did something similar and it works fine. I believe I had it so that the app was incrementing an integer value in the PLC every 500ms. The PLC checks the value every 1s and if the value hasn't changed since the last check/read, then there's been a communications disconnect.
 
Last edited:
You're on the right track.

Remember that some OPC Servers (I've used Kepware, IGS and Applicom) have data that you can read of them to determine whether you're connected to or not. IGS (and I imagine Kepware) would have tags made available with telegram counters that you could read off of the OPC.
 

Similar Topics

Hi everyone, I have a task at work that I'm hoping someone will be able to help me find a solution for. Here is the background info: I have a...
Replies
10
Views
427
Hi everyone I've created an FC that includes the blocks TCON, TDISCON, TSEND and TRCV. This block has to be as generic as possible across...
Replies
15
Views
1,554
In studio 5000 is there an easy way to do a Heartbeat between two Control Logix PLCs? Say you have Produced and Consumed from both is there even a...
Replies
8
Views
1,229
Hi all, I have an application where there is a Control Logix PLC connecting to a B&R remote I/O station over Modbus TCP via a prosoft MNETC...
Replies
5
Views
1,921
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...
Replies
7
Views
1,611
Back
Top Bottom