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 Mon Feb 17, 2020 10:24 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Feb 21, 2019 10:37 am 

Joined: Wed Aug 03, 2016 3:00 pm
Posts: 11

I want to create the files for a boot application with a script for later software deployment on one or multiple plc.
I use the function: "app.create_boot_application(path,True,True)"
So long this works great. I get the, application.crc files and visu files etc.

But when i have ethercat in the project this boot application does not run the ethercat.
I assume that with the script engine not all files for the boot application are created. Because when i use the UI-button to create the bootapplication i get an additional File:
and Folders:

Is there a way to get this with scripts?

(I am using Lenze PLC Designer 3.15 working on Codesys 3.5.9)

Thanks and best regards.

PostPosted: Mon Oct 14, 2019 8:28 am 

Joined: Wed Aug 03, 2016 3:00 pm
Posts: 11
I think the reason for this behavior is because Lenze modified the command to create a boot app in their IDE GUI, but not in the script engine.

In system.commands i found two commands to create a boot application.
One seems to be the command called with IScriptApplication2.create_boot_application Method documented in the API. With this i only get the .app and crc. files and not the ecat_master_0_boot.xml.

But the second command is named "Erzeuge Bootapplikation für Lenze Geräte" seems to be the euqivalent to the GUI button.
I called it like this and it works and creates all the files in the output path:

Only downsite: I dont know if this supports the other two bool parameters (bool update_compile_info,bool write_visu_files). I tried to call it with (path,True,True) but didn't work.

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 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