<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to EXP file not being imported.</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/e4e44c6311/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/e4e44c6311/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/e4e44c6311/</id><updated>2020-02-27T19:30:57.136000Z</updated><subtitle>Recent posts to EXP file not being imported.</subtitle><entry><title>EXP file not being imported.</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/e4e44c6311/?limit=25#e83d" rel="alternate"/><published>2020-02-27T19:30:57.136000Z</published><updated>2020-02-27T19:30:57.136000Z</updated><author><name>PJE</name><uri>https://forge.codesys.com/u/pje/</uri></author><id>https://forge.codesys.comad09e057f7ffcd36f1cc95f08050dcd4642b8a10</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;We've found the issue. If there's a comment before the FUNCTION xxxxx : yyyy or similar then the import fails. Removing the comment from my previously failing import on FUNCTION StateMC_Update : BOOL line allows the import to work correctly.&lt;/p&gt;
&lt;p&gt;Obviously, with our overzealous use of start of line comments it may be very easy to add the comment by mistake.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>EXP file not being imported.</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/e4e44c6311/?limit=25#8e29" rel="alternate"/><published>2020-02-27T19:30:53.649000Z</published><updated>2020-02-27T19:30:53.649000Z</updated><author><name>PJE</name><uri>https://forge.codesys.com/u/pje/</uri></author><id>https://forge.codesys.comba84e784abcfa653f74afc4af07eccb4f4061d87</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We've just started using a new commenting format which places line comments, for example (&lt;em&gt; Line Commment &lt;/em&gt;)  &lt;code&gt;, before each line rather than at the end to allow online visualization of the code with embedded variables in Codesys 3 to work better, but when used in Codesys V2.3 these new files are exported but not imported at all!!! It just states Import Complete.&lt;/code&gt;&lt;/p&gt;&lt;code&gt;
&lt;p&gt;If I export a POU, delete it and then import it back the POU remains missing. I've tested this on V2.3.9.42 and V2.3.9.56.&lt;/p&gt;
&lt;p&gt;It may be that our comments look like the added comments that Codesys adds int the EXP file, and it's confusing the import.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c"&gt;(* @NESTEDCOMMENTS := 'Yes' *)&lt;/span&gt;
&lt;span class="c"&gt;(* @PATH := '\/FN/PRG Blocks\/Misc' *)&lt;/span&gt;
&lt;span class="c"&gt;(* @OBJECTFLAGS := '0, 8' *)&lt;/span&gt;
&lt;span class="c"&gt;(* @SYMFILEFLAGS := '0' *)&lt;/span&gt;
&lt;span class="c"&gt;(* +--------------------------------------------------------------------------------------------+ *)&lt;/span&gt;
&lt;span class="c"&gt;(* | State Machine Variables and Constants                                                      | *)&lt;/span&gt;
&lt;span class="c"&gt;(* +--------------------------------------------------------------------------------------------+ *)&lt;/span&gt;
&lt;span class="c"&gt;(* Full State Machine Update *)&lt;/span&gt; &lt;span class="n"&gt;FUNCTION&lt;/span&gt; &lt;span class="n"&gt;StateMC_Update&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;BOOL&lt;/span&gt;
&lt;span class="c"&gt;(*                           *)&lt;/span&gt;
&lt;span class="c"&gt;(* === In/Out Variables ==== *)&lt;/span&gt; &lt;span class="n"&gt;VAR_IN_OUT&lt;/span&gt;
&lt;span class="c"&gt;(* Full State Machine Struct *)&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;tS&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="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;tStateMC&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="c"&gt;(*                           *)&lt;/span&gt; &lt;span class="n"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;/code&gt;&lt;p&gt;&lt;code&gt;Any help would be appreciated, as we use Mecurrial, together with these EXP files are part of our new development scheme.&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>