<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to PLCopen XML import via Python script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0f91d8928f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0f91d8928f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/0f91d8928f/</id><updated>2020-09-10T14:45:18.931000Z</updated><subtitle>Recent posts to PLCopen XML import via Python script</subtitle><entry><title>PLCopen XML import via Python script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0f91d8928f/?limit=25#1412" rel="alternate"/><published>2020-09-10T14:45:18.931000Z</published><updated>2020-09-10T14:45:18.931000Z</updated><author><name>xkpx</name><uri>https://forge.codesys.com/u/xkpx/</uri></author><id>https://forge.codesys.comb9f767e39206a0bb9fdb9e4e51dcaad225e98caa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi I recently starting using CodeSys V3.5 SP16 Patch 1.&lt;br/&gt;
I wrote a .library and exported it to the PLCopen XML format.&lt;/p&gt;
&lt;p&gt;When I manually import it back into CodeSys the folder structure in my .library gets correctly imported. But when I try to import it via a python script, I just get a flat list. The folder structure isn't imported. Also the script always makes a .project file instead of a .library file, regardless of the name I give it in my script.&lt;/p&gt;
&lt;p&gt;My main goal is to write a Structured Text 61131 library in a way which makes it easy to port to any other PLC IDE. I think PLCopen XML is the closest to a standard? Other ideas are always welcome!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>