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.
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.
So from the library "Standard" for the function block "TON" that would be e.g.:
IN : BOOL
PT : TIME
Q : BOOL
ET : TIME
as Python string(s), list(s), dictionary(s) or similar.
Is there a way to get this information in a Python script via the scriptengine module?
Log in to post a comment.