<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to MessageKey for missing library dialog</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/</id><updated>2024-01-26T07:20:41.182000Z</updated><subtitle>Recent posts to MessageKey for missing library dialog</subtitle><entry><title>MessageKey for missing library dialog</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/?limit=25#8aa9/63da" rel="alternate"/><published>2024-01-26T07:20:41.182000Z</published><updated>2024-01-26T07:20:41.182000Z</updated><author><name>kevin123</name><uri>https://forge.codesys.com/u/kevin123/</uri></author><id>https://forge.codesys.coma6fedc155d620ef4a0f32943031ea4dd1700c2c4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;I got the messagekey of the "upgrade format warning dialog" with key:"&amp;lt;&amp;lt; No Key&amp;gt;&amp;gt;". (please refer to the attachment)&lt;/p&gt;
&lt;p&gt;Is that means i can't use&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;system.prompt_answers["&amp;lt;&amp;lt; No Key&amp;gt;&amp;gt;"] = PromptResult.OK;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;to auto-answer 'OK' in this dialog?&lt;br/&gt;
Is there any other way to auto-answer this dialog? &lt;br/&gt;
Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MessageKey for missing library dialog</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/?limit=25#e345" rel="alternate"/><published>2020-02-27T14:53:51.030000Z</published><updated>2020-02-27T14:53:51.030000Z</updated><author><name>Infusion</name><uri>https://forge.codesys.com/u/infusion/</uri></author><id>https://forge.codesys.com3b9c12ff0272aec02771903885cf59d9b302f46f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I just found the failure myself &lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: XML_String_Error_2.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=991"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MessageKey for missing library dialog</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/?limit=25#d832" rel="alternate"/><published>2020-02-27T14:53:49.257000Z</published><updated>2020-02-27T14:53:49.257000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com8ce9d4fff6d2f959153c809c0f866ca4543f8f50</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Infusion.&lt;/p&gt;
&lt;p&gt;Was your PLCopenXML file created by CODESYS or with .Net? If yes, then the file contains the BOM (Byte Order Mark) which other XML parser don't expect. You have to skip the first 3 bytes of the file before the real XML content starts.&lt;/p&gt;
&lt;p&gt;Here is my implementation for python:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;xmlfile&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;io&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'c:\\Temp\\devices.xml'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'r'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;xmlfile&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;seek&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;tree&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ET&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;xmlfile&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;xmlfile&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;close&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MessageKey for missing library dialog</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/?limit=25#9d76" rel="alternate"/><published>2020-02-27T14:53:48.664000Z</published><updated>2020-02-27T14:53:48.664000Z</updated><author><name>Infusion</name><uri>https://forge.codesys.com/u/infusion/</uri></author><id>https://forge.codesys.com10847f132e7a860bc5e5f537985da4418f6560cd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am using the V3.5 SP5 Patch 2+.&lt;/p&gt;
&lt;p&gt;There was an other Error Message before, which only said that theere is a wrong/not xml conform sign in the xml export string.&lt;br/&gt;
Perhaps i can try to get the "old" error message again.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: XML_Element_Tree_Error.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=990"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MessageKey for missing library dialog</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/?limit=25#5103" rel="alternate"/><published>2020-02-27T14:53:48.005000Z</published><updated>2020-02-27T14:53:48.005000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comdc4b34d04b14cd624ce9be7be07dc739e290be35</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Just some remarks:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;As far as I know, Methods cannot exist without the defining POUs in PLCOpenXML. Thus, when exporting, the method always comes with the POU.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In V3.6 SP6, we did add new methods to directly access of textual declaration and implementation parts of POUs, GVL, Method, etc...&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;What exact error are you getting when you try to create an element tree from the xml file? And which CODESYS version are you using?&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>MessageKey for missing library dialog</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/?limit=25#4975" rel="alternate"/><published>2020-02-27T14:53:46.103000Z</published><updated>2020-02-27T14:53:46.103000Z</updated><author><name>Infusion</name><uri>https://forge.codesys.com/u/infusion/</uri></author><id>https://forge.codesys.com000bbb9631f1deca09bbf384e35d437412b82b78</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The export of the PLCOpenXML as String and File is working.&lt;/p&gt;
&lt;p&gt;But i have a problem with both of the exports.&lt;/p&gt;
&lt;p&gt;Situation:&lt;br/&gt;
- numbers (FB) &lt;span&gt;[1 2 3 4]&lt;/span&gt;&lt;br/&gt;
    - add (methode) &lt;span&gt;[5 6]&lt;/span&gt;&lt;br/&gt;
    - substract (methode) &lt;span&gt;[7 8]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Problem: Searching Numbers&lt;/p&gt;
&lt;p&gt;With the string: "strXMLFile = treeobject.export_xml(exportReporter,'',False)"&lt;br/&gt;
advantage : no external temporary file&lt;br/&gt;
disantvantages: &lt;br/&gt;
 - when i export the XML of an object of the methodes, then the code content of the overlaying FB is also present in the XML&lt;br/&gt;
 - when i want to convert the ixportet string into python (import xml.etree.ElementTree as ET --&amp;gt; tree = ET.fromstring(strXMLFile)) that is not possible&lt;/p&gt;
&lt;p&gt;With the file: "treeobject.export_native(filename, False)"&lt;br/&gt;
advantage : perhaps that it is working more or less &lt;br/&gt;
disadvantages: &lt;br/&gt;
 - temporary files&lt;br/&gt;
 - every row of the ST Code is written in an extra XML row, so the searching process (regular expression) is verry difficult&lt;/p&gt;
&lt;p&gt;Waht i found in the exportet PLCopenXML files is: "treeobject.export_xml(exportReporter,filename,False)"&lt;br/&gt;
&amp;lt;pou name="Zahlen" poutype="functionBlock"&amp;gt;&lt;br/&gt;
&amp;lt;method name="ZahlHinzufuegen"&amp;gt;&amp;lt;/method&amp;gt;&amp;lt;/pou&amp;gt;&lt;/p&gt;
&lt;p&gt;so it would be possible to differ between the needed information. &lt;/p&gt;
&lt;p&gt;Is it possible to rebuild a XML tree in python from any export_YXZ methode output ?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MessageKey for missing library dialog</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/?limit=25#bec1" rel="alternate"/><published>2020-02-27T14:53:45.536000Z</published><updated>2020-02-27T14:53:45.536000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com00367daa4e270c6b29ceb4a9ab852d333bda5e1b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Infusion.&lt;/p&gt;
&lt;p&gt;Are the calls inside the imported POUs? If yes, you can search in the XML file and modify the relevate code parts there. &lt;/p&gt;
&lt;p&gt;If not, then you can&lt;br/&gt;
- export the POU and search there&lt;br/&gt;
- walk through the object tree and use the new API for POU objects with textual declaration and/or implementation (V3.5 SP6 or newer)&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MessageKey for missing library dialog</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/?limit=25#b7f3" rel="alternate"/><published>2020-02-27T14:53:44.973000Z</published><updated>2020-02-27T14:53:44.973000Z</updated><author><name>Infusion</name><uri>https://forge.codesys.com/u/infusion/</uri></author><id>https://forge.codesys.come2099b32d1332f19e0213baf174ea5dba051416e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In my Projekt there are a lot of "unique" error function calls.&lt;/p&gt;
&lt;p&gt;Somethin like this :&lt;/p&gt;
&lt;p&gt;ErrorManager(ID,"Waht is wrong message",E_BEHAVIOR)&lt;/p&gt;
&lt;p&gt;ErrorManager(001,"No Signal from Sensor_1",E_STOP)&lt;br/&gt;
ErrorManager(002,"No Signal from Sensor_2",E_HARD_STOP)&lt;/p&gt;
&lt;p&gt;And there are really a lot of this calls ~400.&lt;/p&gt;
&lt;p&gt;The IDs have to be &lt;span style="color: underline;"&gt;unique&lt;/span&gt;, so when i want to include a new ErrorManager call (let's say for sensor_3), &lt;br/&gt;
then i first have to find the highest number which is used as ID.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MessageKey for missing library dialog</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/?limit=25#d51a" rel="alternate"/><published>2020-02-27T14:53:43.213000Z</published><updated>2020-02-27T14:53:43.213000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com1a659a360de2fff126574842cdb5a8aea7b173d7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Infusion.&lt;/p&gt;
&lt;p&gt;I think I misunderstood you. You want to use the "Find" command to find some text and not the "Search" command to open the online help.&lt;/p&gt;
&lt;p&gt;The Find &amp;amp; Replace commands don't have a non-interactive mode.&lt;/p&gt;
&lt;p&gt;What do you want to find? Maybe there is an other way.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MessageKey for missing library dialog</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/?limit=25#7acd" rel="alternate"/><published>2020-02-27T14:53:42.599000Z</published><updated>2020-02-27T14:53:42.599000Z</updated><author><name>Infusion</name><uri>https://forge.codesys.com/u/infusion/</uri></author><id>https://forge.codesys.combce50043dfa25165cd89d2060760a4dad3351275</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;Is there a possibility to edit the "Search" GUI with the python script ?&lt;/p&gt;
&lt;p&gt;Because i have to find text passages with regular expressions, but perhaps there is another way to finish my task.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>