CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Sun Dec 16, 2018 6:26 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Aug 07, 2018 11:22 am 
Offline

Joined: Tue Aug 07, 2018 9:58 am
Posts: 1
Dear all,

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.:
INPUTS
IN : BOOL
PT : TIME
OUTPUTS
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?

Best regards,

Daniel


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited