CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

codesys API for compiler and visualisation versions upgrade
https://forum.codesys.com/viewtopic.php?f=18&t=4908
Page 1 of 1

Author:  lyn [ Fri May 18, 2012 9:23 am ]
Post subject:  codesys API for compiler and visualisation versions upgrade

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.

Author:  M.Schaber [ Fri May 18, 2012 9:32 am ]
Post subject:  Re: codesys API for compiler and visualisation versions upgr

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

Author:  lyn [ Fri May 18, 2012 9:58 am ]
Post subject:  Re: codesys API for compiler and visualisation versions upgr

Hi Markus,

Thanks for quick reply.

when V3.5 SP2 is going to release ?


Thanks ,
Lyn

Author:  M.Schaber [ Fri May 18, 2012 10:04 am ]
Post subject:  Re: codesys API for compiler and visualisation versions upgr

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

Author:  sms [ Fri Feb 22, 2013 9:40 am ]
Post subject:  Re: codesys API for Build Project

Hello Markus,

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

Thanks.

Author:  M.Schaber [ Fri Feb 22, 2013 9:52 am ]
Post subject:  Re: codesys API for compiler and visualisation versions upgr

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.

Author:  sms [ Tue Apr 09, 2013 1:07 pm ]
Post subject:  Re: codesys API for compiler and visualisation versions upgr

Thanks Markus. This is really useful info.

Author:  M.Schaber [ Tue Apr 30, 2013 2:02 pm ]
Post subject:  Re: codesys API for compiler and visualisation versions upgr

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

Author:  sms [ Fri May 03, 2013 11:44 am ]
Post subject:  Re: codesys API for compiler and visualisation versions upgr

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.

Author:  M.Schaber [ Fri May 03, 2013 12:29 pm ]
Post subject:  Re: codesys API for compiler and visualisation versions upgr

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

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/