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 Fri Apr 26, 2019 1:31 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Fri May 18, 2012 9:23 am 
Offline

Joined: Thu May 17, 2012 6:08 am
Posts: 2
Hi,

I have explored the CoDeSys API and help file. Also we have used Python introspection on the various interfaces/objects of projects, project, library manager to no avail.

I am trying to find API to upgrade/invoke the following:

1. Visualization Profile Version
2. Compiler version
3. Visualization Style Version
4. Build the Project

Any help would be much appreciated.


Top
   
PostPosted: Fri May 18, 2012 9:32 am 
Offline
Frequent User
Frequent User
User avatar

Joined: Fri Mar 18, 2011 4:12 pm
Posts: 266
Hi, lyn,

lyn wrote:
I am trying to find API to upgrade/invoke the following:

1. Visualization Profile Version
2. Compiler version
3. Visualization Style Version


Currently, there's no ScriptEngine API available to set those versions.

You may use your support contact to raise this as an "Requirement" issue in our support database.

lyn wrote:
4. Build the Project


Building of the project is currently only implicitly triggered when a login to the device is done. Explicit access to the build commands is currently planned for V3.5 SP2 (Issue CDS-22407). You may use your support contact to add your company as an interested customer in this issue.

HTH,
Markus Schaber

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


Top
   
PostPosted: Fri May 18, 2012 9:58 am 
Offline

Joined: Thu May 17, 2012 6:08 am
Posts: 2
Hi Markus,

Thanks for quick reply.

when V3.5 SP2 is going to release ?


Thanks ,
Lyn


Top
   
PostPosted: Fri May 18, 2012 10:04 am 
Offline
Frequent User
Frequent User
User avatar

Joined: Fri Mar 18, 2011 4:12 pm
Posts: 266
Hi, Lyn,

lyn wrote:
when V3.5 SP2 is going to release ?


We're just finishing the Release of V3.5 SP1 those days. V3.5 SP2 is currently planned for December 6th.

HTH,
Markus

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


Top
   
PostPosted: Fri Feb 22, 2013 9:40 am 
Offline

Joined: Thu May 17, 2012 9:41 am
Posts: 3
Hello Markus,

Do we have any update as to whether the Build Project API has been incorporated?

Thanks.


Top
   
PostPosted: Fri Feb 22, 2013 9:52 am 
Offline
Frequent User
Frequent User
User avatar

Joined: Fri Mar 18, 2011 4:12 pm
Posts: 266
Hi,

The improvement was incorporated into V3.5 SP2:

Project objects were extended with the following members:
  • check_all_pool_objects() which works when the current project is a library project, and it resembles the "Check All Pool Objects" command from the "Build" menu.
  • generate_runtime_system_files(string destination_directory, bool generate_m4 = true, bool generate_c = false) to generate the C headers for native libraries.
  • clean_all() to perform a clean_all.
  • save_as_compiled_library(destination)

Object objects are now extended with the following members:
  • is_application - property getter which is true when the object is an application.

Objects which are Applications now extended with the following members:
  • is_active_application - property to chech whether this application is the active one.
  • build() - build the application.
  • clean() - clean the application.
  • generate_code() - Generates the code for the application.
  • rebuild() - rebuilds the application.
  • create_boot_application(string output_filename) - Creates the offline boot project at the specified outputpath.

Users can use the system.get_messages(Guid) and system3.get_message_objects(Guid, Severity) calls to check whether any errors or other compile messages were added.

To help the users to find the appropriate messages, system.get_message_categories() and system.get_message_category_description() were added, so they can print all message categories and their guids.

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


Top
   
PostPosted: Tue Apr 09, 2013 1:07 pm 
Offline

Joined: Thu May 17, 2012 9:41 am
Posts: 3
Thanks Markus. This is really useful info.


Top
   
PostPosted: Tue Apr 30, 2013 2:02 pm 
Offline
Frequent User
Frequent User
User avatar

Joined: Fri Mar 18, 2011 4:12 pm
Posts: 266
Hi,

If you're still reading: Could you describe the exact use case?

Would the possibility to allow an upgrade of those elements to the newest version (in analogy to the "Project Environment" dialog) be enough? (This is already filed as an improvement in our jira database: CDS-34105

Or do you really need to explicitly set those versions to arbitrary values via scripting?

Thanks,
Markus

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


Top
   
PostPosted: Fri May 03, 2013 11:44 am 
Offline

Joined: Thu May 17, 2012 9:41 am
Posts: 3
Yes. The requirement is to upgrade to the newest compatible version via scripting. i.e. set the versions to the newest version/some specific version so that manual upgradation of the versions of tons of project is avoided and can be done easily via. scripting.

Best.


Top
   
PostPosted: Fri May 03, 2013 12:29 pm 
Offline
Frequent User
Frequent User
User avatar

Joined: Fri Mar 18, 2011 4:12 pm
Posts: 266
Hi,

The aforementioned CDS-34105 improvement will allow to upgrade to the newest version during project load, but not to a specific version.

Is the possibility to set a specific version really important? And what is the use case?

Thanks, Markus

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


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