<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Get the in-, out- and inoutputs from compiled library POUs in my Python script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ef743dd17b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ef743dd17b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/ef743dd17b/</id><updated>2020-02-27T14:48:07.370000Z</updated><subtitle>Recent posts to Get the in-, out- and inoutputs from compiled library POUs in my Python script</subtitle><entry><title>Get the in-, out- and inoutputs from compiled library POUs in my Python script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ef743dd17b/?limit=25#288d" rel="alternate"/><published>2020-02-27T14:48:07.370000Z</published><updated>2020-02-27T14:48:07.370000Z</updated><author><name>Becks</name><uri>https://forge.codesys.com/u/becks/</uri></author><id>https://forge.codesys.com15849c41dd626f9357c7862e9ea65ef683e68b8b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear all,&lt;/p&gt;
&lt;p&gt;I would like to get information about in-, out- and inoutputs of POUs (Function block and Function) and the contents of DUTs (name and basic data type of the type definition, and type elements of objects Structure, Enumeration, Union, Alias) which are objects of COMPILED libraries in the library manager of the primary project. &lt;br/&gt;
I need to know at least the names and data types of the IOs and DUT elements and if possible also the initial values if specified explicitly.&lt;/p&gt;
&lt;p&gt;So from the library "Standard" for the function block "TON" that would be e.g.:&lt;br/&gt;
&lt;span style="color: underline;"&gt;INPUTS&lt;/span&gt;&lt;br/&gt;
IN : BOOL&lt;br/&gt;
PT : TIME&lt;br/&gt;
&lt;span style="color: underline;"&gt;OUTPUTS&lt;/span&gt;&lt;br/&gt;
Q : BOOL&lt;br/&gt;
ET : TIME&lt;br/&gt;
as Python string(s), list(s), dictionary(s) or similar.&lt;/p&gt;
&lt;p&gt;Is there a way to get this information in a Python script via the scriptengine module?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>