Creating and reusing libraries in Codesys 2.3

Hello community. Need your help.

A customer is successfully using Codesys 2.3 and creating its own internal library. But when he imports it into a different laptop, all paths for the dependencies are lost.

Does anyone have a step-by-step procedure to create an internal library in Codesys 2.3?

You can set up relative path to library folders in:
Project => Options => Directories
If you put β€œ.\” before path it will be relative to the folder with program.

From my practice - I create folder β€œ_LIB” in my project folder, and put all of the libraries necessary to compile program there. When you change PC you have everything in one place. That way you have full control over library versions used in the project. Additionally if file dates did not change, you can directly log in to controller without rebuild/download.

1 Like

Thank you, Greg. This is a great, easy way to solve this headache.