I recommend saving your project as an archive before opening on the build PC, as this will save every device description and library required to build it so no downloading is needed.
Last edit: bhess 2020-07-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I solved the issue by creating 3 scripts:
1. script that lists all library dependencies
2. script in Python 3 that downloads the missing libraries
3. script that install the missing libraries
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Why don't you submit these under tools, scripts, that way they are easy to find for any interested user, I hope you understand and many thanks for sharing them with us.
Ps have you got a solution for generating a project archive in headless Codesys mode too? In the version I am using it does not work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have been trying to automatically resolve missing libraries on our build PC.
First I searched the forum and found some old topics that are relevant to automate CoDeSys prompts:
- https://forge.codesys.com/forge/talk/Engineering/thread/cb4c263657/
- https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/
The following is now implemented as Python script that runs in CoDeSys V3.5 SP16:
I expect now that I can automate the "Download" button in the prompted window. But it does not work and also the prompt message key is not logged.
I am now completely stuck. Can anyone please help.
Last edit: jelle 2020-07-02
more posts ...
I recommend saving your project as an archive before opening on the build PC, as this will save every device description and library required to build it so no downloading is needed.
Last edit: bhess 2020-07-02
Good advice as workaround but I am searching for an answer to my scripting problem.
Last edit: jelle 2020-07-03
I solved the issue by creating 3 scripts:
1. script that lists all library dependencies
2. script in Python 3 that downloads the missing libraries
3. script that install the missing libraries
Hi, would you be so kind to share the scripts with us?
That would be very nice if you did! ;-)
Some snippets that are interesting :)
Script that lists all the library dependencies:
Script that downloads the libraries:
Script that installs the downloaded libraries:
Why don't you submit these under tools, scripts, that way they are easy to find for any interested user, I hope you understand and many thanks for sharing them with us.
Ps have you got a solution for generating a project archive in headless Codesys mode too? In the version I am using it does not work.
Do you have a link? I am not aware that there is a central place to share scripts
In the upper-right there is a Hamburger Menu button.
See the attached .png for hints