<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Exporting FB instance parameters in PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c6cf08a73d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c6cf08a73d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/c6cf08a73d/</id><updated>2020-02-27T13:47:59.799000Z</updated><subtitle>Recent posts to Exporting FB instance parameters in PLCopenXML</subtitle><entry><title>Exporting FB instance parameters in PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c6cf08a73d/?limit=25#1f41" rel="alternate"/><published>2020-02-27T13:47:59.799000Z</published><updated>2020-02-27T13:47:59.799000Z</updated><author><name>truschival</name><uri>https://forge.codesys.com/u/truschival/</uri></author><id>https://forge.codesys.comb72ea336087ed1c0a230b7481294958f4bc2b511</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Roman,&lt;br/&gt;
thanks for the hint and the issue id. Resetting the pins works and I get the dialog back to set the parameter values - unfortunately the original value information is gone since the values have not been exported &lt;/p&gt;
&lt;p&gt;Best regards&lt;br/&gt;
Thomas&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Exporting FB instance parameters in PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c6cf08a73d/?limit=25#019c" rel="alternate"/><published>2020-02-27T13:47:59.747000Z</published><updated>2020-02-27T13:47:59.747000Z</updated><author><name>r.evbatyrov</name><uri>https://forge.codesys.com/u/r-evbatyrov/</uri></author><id>https://forge.codesys.com9a42c96c94d153f1f24a01c3e53adb72b293f53f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Thomas,&lt;/p&gt;
&lt;p&gt;that's a bug.&lt;br/&gt;
The issue id is &lt;br/&gt;
CDS-50631 PLCopenXML CFC: Parameters list is not processed&lt;/p&gt;
&lt;p&gt;Possible workaround: make sure the FB is exported along with your CFC POU.&lt;br/&gt;
After import perform Pins-&amp;gt; Reset Pins... command on the box.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Roman&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Exporting FB instance parameters in PLCopenXML</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c6cf08a73d/?limit=25#02c2" rel="alternate"/><published>2020-02-27T13:47:59.676000Z</published><updated>2020-02-27T13:47:59.676000Z</updated><author><name>truschival</name><uri>https://forge.codesys.com/u/truschival/</uri></author><id>https://forge.codesys.comda0332917ccd706a838652f4f1b1ed9cda49ce37</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I am dealing with PLCopenXML exports of my program and it seems important parts are missing in the export - CodeSys 3.5 SP7.&lt;/p&gt;
&lt;p&gt;I declared an FB with a constant paramenter as &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;FB&lt;/span&gt; &lt;span class="n"&gt;declaration&lt;/span&gt;
&lt;span class="n"&gt;VAR_INPUT&lt;/span&gt; &lt;span class="n"&gt;CONSTANT&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="n"&gt;MyParam&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;WSTRING&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="ss"&gt;"none"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;
&lt;span class="n"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;In the program (CFC style) I instantiate the FB and set the value of MyParam in the instance using the "Edit Parameters" dialog. &lt;br/&gt;
The Project compiles and runs using the value given for each instance.&lt;/p&gt;
&lt;p&gt;However if I export the project the project to plcopen xml the parameter in the instances is not present. It still exists in plcopen xml in the type definition of the FB but not in the variables of the type.&lt;/p&gt;
&lt;p&gt;Looking at the PLCopenXML spec const parameters ar not explicitly mentioned but it seems possible to implement. Is this a bug in CodeSys? &lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;br/&gt;
Thomas&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>