How do we develop libraries in CODESYS V3.
1. Goto Tools->Options->Features -> Predefined Feature sets - switch to professional feature set (since 3.5SP8 not needed anymore)
Then the most important is for working with libraries:
instances of the CODESYS development system, the one which opens your library and the second instance open the project which
execute your library code to test.
If you safe the library by 'Safe project and install into library repository' button,
in the second instance you see that the library is updated.
You could set brakepoints and debug in the project (even set brakepoints in the library code is possible)Attention:
Keep in mind, that if you deliver libraries to your customer you should generate 'compiled-library'
and distribute them
in this format, except you want your user see the source and give them the debug possibility then distribute your lib as .library
If you work with your developed library you could step into the library by setting a brakepoint into the library fb's/functions (librarymanager - browse to the fb and set a brakepoint there - this you do in the CODESYS instance where the test project is opened)
For additional technical information on libraries read the following important help chapter in the online help:
"c:\Program Files (x86)\3S CODESYS\CODESYS\Online Help\en\LibDevSummary.chm"Back to FAQ overview