<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Verifying communication between PLCs using Network Variable Lists</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cf390ac705/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cf390ac705/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/cf390ac705/</id><updated>2020-02-27T13:51:56.027000Z</updated><subtitle>Recent posts to Verifying communication between PLCs using Network Variable Lists</subtitle><entry><title>Verifying communication between PLCs using Network Variable Lists</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/cf390ac705/?limit=25#f12b" rel="alternate"/><published>2020-02-27T13:51:56.027000Z</published><updated>2020-02-27T13:51:56.027000Z</updated><author><name>Tobias J</name><uri>https://forge.codesys.com/u/tobias-j/</uri></author><id>https://forge.codesys.comc380de9fd5589157401d63d50ff8a212dc74e390</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I want to use Network Variable List(s) for coordinating work between a handful PLCs.&lt;/p&gt;
&lt;p&gt;I have successfully tested it between 2 PLCs, and am now working on setting up device discovery (so they know they're ready for coordinated work). &lt;/p&gt;
&lt;p&gt;One part that causes me trouble, is the continued assertion that communications are still running between the PLCs.&lt;br/&gt;
Before I start on setting up my own watchdog/heartbeat scheme (or some such), I've heard a tale about the NetVarUdp library already having this bit of info.&lt;/p&gt;
&lt;p&gt;Unfortunately, documentation on these libraries are practically non-exsistant. I've been looking at doing something like this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;NetVarUdp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NetVarManager_Udp_FB&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NetVarGetConnectStatus_UDP&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nBasisId&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bConnectNewData&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;hasNewData&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Can anyone speak as to whether this will take me closer to my target?&lt;br/&gt;
Does anyone know how to obtain 'nBasisId', or maybe what it is?&lt;br/&gt;
Is there a better way to make sure I have 'live' communication?&lt;/p&gt;
&lt;p&gt;I am using CoDeSys V3.5 SP7 Patch 2 pbf &lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;br/&gt;
-Tobias&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>