<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CommState Values</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4874461304/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4874461304/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/4874461304/</id><updated>2020-02-27T14:38:14.616000Z</updated><subtitle>Recent posts to CommState Values</subtitle><entry><title>CommState Values</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4874461304/?limit=25#dc53" rel="alternate"/><published>2020-02-27T14:38:14.616000Z</published><updated>2020-02-27T14:38:14.616000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com39c1c1e2d51f4f6d33a8b539d20ba76be4681bd8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;See the .pdf in your installation folder, e.g. c:\program files (x86)\codesys\codesys opc server 3\&lt;br/&gt;
This will tell you the following (PS, it describes the name with single underscore, but if I remember correctly it is a double underscore...):&lt;/p&gt;
&lt;p&gt;For each configured PLC the OPC Server V3 generates the status variables _CommState and _CommStateOK. _CommState can be interpreted from an OPC Client and the following states can&lt;br/&gt;
be requested:&lt;br/&gt;
STATE_TERMINATE = -1&lt;br/&gt;
STATE_PLC_NOT_CONNECTED = 0&lt;br/&gt;
STATE_PLC_CONNECTED = 1&lt;br/&gt;
STATE_NO_SYMBOLS = 2&lt;br/&gt;
STATE_SYMBOLS_LOADED = 3&lt;br/&gt;
STATE_RUNNING = 4&lt;br/&gt;
STATE_DISCONNECT = 5&lt;br/&gt;
STATE_NO_CONFIGURATION = 6&lt;br/&gt;
_CommStateOK is a Boolean variable indicating in state TRUE a communication with the OPC server.&lt;br/&gt;
The name of the plc can be taken from the prefix of the Boolean variable. If the variable is FALSE,&lt;br/&gt;
currently no communication is possible. This happens for example during download.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CommState Values</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4874461304/?limit=25#16ac" rel="alternate"/><published>2020-02-27T14:38:13.041000Z</published><updated>2020-02-27T14:38:13.041000Z</updated><author><name>arnoldjm</name><uri>https://forge.codesys.com/u/arnoldjm/</uri></author><id>https://forge.codesys.come5d53b21c1bbae066b5002e0d623124a92d4c847</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Does anyone have a list of possible values and their meanings for the OPC tag CommState?  I had found a list before in an old manual, but I can no longer find it.  &lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>