<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Codesys Messages</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/3eb7931195/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/3eb7931195/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/3eb7931195/</id><updated>2020-02-27T20:49:08.433000Z</updated><subtitle>Recent posts to Codesys Messages</subtitle><entry><title>Codesys Messages</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/3eb7931195/?limit=25#b133" rel="alternate"/><published>2020-02-27T20:49:08.433000Z</published><updated>2020-02-27T20:49:08.433000Z</updated><author><name>Sebi-11</name><uri>https://forge.codesys.com/u/sebi-11/</uri></author><id>https://forge.codesys.com3cd26f4bdb50b841fbb3ba8c77d7646d7be0675f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I am currently working on some automated Tests with ABB Products ant the Automation Builder from ABB.&lt;/p&gt;
&lt;p&gt;In my test I use V2 Codesys, which is also integrated in the Automation Builder of ABB. And i want to know if it is possible to read out the massages of Codesys V2 ether with python or cmd commands?&lt;/p&gt;
&lt;p&gt;Out of the codesys help i tried this code:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;communication&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;codesys23&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;"PLC0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="ss"&gt;"Application"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;communication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;create_conf&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;communication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;start&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;communication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'out open C:\message.txt'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;communication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'library add SysLibCom.lib'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;communication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'library add SysLibComSetCtrl.lib'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;communication&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'library add SysLibEvent.lib'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;But there is in Exception in line 4&lt;br/&gt;
Exception: The execution of a CoDeSys V2.3 command failed&lt;/p&gt;
&lt;p&gt;And i don´t now where the Problem is.&lt;/p&gt;
&lt;p&gt;I hope someone can help me with my problem.&lt;/p&gt;
&lt;p&gt;Best Regards and have a nice week&lt;/p&gt;
&lt;p&gt;Sebastian&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>