<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to OPC server status bad</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/eef4f00c93/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/eef4f00c93/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/eef4f00c93/</id><updated>2020-02-27T14:37:44.549000Z</updated><subtitle>Recent posts to OPC server status bad</subtitle><entry><title>OPC server status bad</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/eef4f00c93/?limit=25#37e8" rel="alternate"/><published>2020-02-27T14:37:44.549000Z</published><updated>2020-02-27T14:37:44.549000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com3ae8af38013612827c72a6beccf59c5e8074cf86</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;this will problem be solved with the 3.5.9.40 release of the OPC V3 Server&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>OPC server status bad</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/eef4f00c93/?limit=25#ef30" rel="alternate"/><published>2020-02-27T14:37:44.031000Z</published><updated>2020-02-27T14:37:44.031000Z</updated><author><name>Lohkamp</name><uri>https://forge.codesys.com/u/lohkamp/</uri></author><id>https://forge.codesys.come9bad0520a4099f948db4ae83668bdb75ac2c1ef</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We have exactly the same problem using simple polling and the .NET reference library from the OPC foundation. Could you solve it?&lt;/p&gt;
&lt;p&gt;This is unstable or even not working - we have to keep another OPC client open that "registeres" for each item.&lt;/p&gt;
&lt;p&gt;Our code is working for many years with a lot of other OPC servers without any issue:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;string&lt;/span&gt; &lt;span class="nv"&gt;serverURL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;opcda://localhost/CoDeSys.OPC.DA&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;opcServer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;new&lt;/span&gt; &lt;span class="nv"&gt;Opc&lt;/span&gt;.&lt;span class="nv"&gt;Da&lt;/span&gt;.&lt;span class="nv"&gt;Server&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;new&lt;/span&gt; &lt;span class="nv"&gt;OpcCom&lt;/span&gt;.&lt;span class="nv"&gt;Factory&lt;/span&gt;&lt;span class="ss"&gt;()&lt;/span&gt;, &lt;span class="nv"&gt;new&lt;/span&gt; &lt;span class="nv"&gt;Opc&lt;/span&gt;.&lt;span class="nv"&gt;URL&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;serverURL&lt;/span&gt;&lt;span class="ss"&gt;))&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;opcServer&lt;/span&gt;.&lt;span class="k"&gt;Connect&lt;/span&gt;&lt;span class="ss"&gt;()&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
…
&lt;span class="nv"&gt;Opc&lt;/span&gt;.&lt;span class="nv"&gt;Da&lt;/span&gt;.&lt;span class="nv"&gt;ItemValueResult&lt;/span&gt;[] &lt;span class="nv"&gt;resultItemArray&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;new&lt;/span&gt; &lt;span class="nv"&gt;Opc&lt;/span&gt;.&lt;span class="nv"&gt;Da&lt;/span&gt;.&lt;span class="nv"&gt;ItemValueResult&lt;/span&gt;[&lt;span class="mi"&gt;1&lt;/span&gt;]&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;Opc&lt;/span&gt;.&lt;span class="nv"&gt;Da&lt;/span&gt;.&lt;span class="nv"&gt;Item&lt;/span&gt; &lt;span class="nv"&gt;item&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;new&lt;/span&gt; &lt;span class="nv"&gt;Opc&lt;/span&gt;.&lt;span class="nv"&gt;Da&lt;/span&gt;.&lt;span class="nv"&gt;Item&lt;/span&gt;&lt;span class="ss"&gt;()&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;item&lt;/span&gt;.&lt;span class="nv"&gt;ItemPath&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;item&lt;/span&gt;.&lt;span class="nv"&gt;ItemName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;itemName&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;item&lt;/span&gt;.&lt;span class="nv"&gt;Active&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;true&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;item&lt;/span&gt;.&lt;span class="nv"&gt;EnableBuffering&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;true&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;item&lt;/span&gt;.&lt;span class="nv"&gt;SamplingRate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;resultItemArray&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;opcServer&lt;/span&gt;.&lt;span class="nv"&gt;Read&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;new&lt;/span&gt; &lt;span class="nv"&gt;Item&lt;/span&gt;[&lt;span class="mi"&gt;1&lt;/span&gt;] { &lt;span class="nv"&gt;item&lt;/span&gt; }&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>OPC server status bad</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/eef4f00c93/?limit=25#b62c" rel="alternate"/><published>2020-02-27T14:37:43.543000Z</published><updated>2020-02-27T14:37:43.543000Z</updated><author><name>Thome</name><uri>https://forge.codesys.com/u/thome/</uri></author><id>https://forge.codesys.com02028eb29449cf2f8be2b90ac64cecadfaaee79d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Using CoDeSys version 2.3 I have an issue when using the OPC server. The network consists of 7 plc's but only one of them is used for OPC variables. Consequently I have set up a single-PLC configuration. The communication works fine as long as I am logged in to the "OPC PLC" however closing the CoDeSys application will most of the time make the variables turn to bad in the OPC client. Starting up again and select login to the "OPC PLC" converts the variables to good again.&lt;/p&gt;
&lt;p&gt;I have also seen that the OPC Configuration changes automatically to another PLC when using CoDeSys to login to that PLC. How can that be possible? I always want the OPC server to work against the same PLC.&lt;/p&gt;
&lt;p&gt;I have seen this behaviour on two different systems.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;br/&gt;
Thomas&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>