The lib was not correctly added, just shown a error in Message windows "Could not open library 'testlib'. (Reason: The placeholder library "testlib" could not be resolved.)"
Any idea or solution?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hhz hat geschrieben:
The lib was not correctly added, just shown a error in Message windows "Could not open library 'testlib'. (Reason: The placeholder library "testlib" could not be resolved.)"
Which version of CODESYS do you use?
Does the problem also occure if you manually add the placeholder after the python script has added the library to the library repository?
BR
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Zitat:
Does the problem also occure if you manually add the placeholder after the python script has added the library to the library repository?
manually add the placeholder has not this problem before and after the python script has added the library. The error is not for all lib occurred. For example, it works well, when i add lib "Util". But adding lib "CAA Type Extern", problem occurred.
Additional infor.οΌ The same issue can be reproduced with Script function "add_library"
BR
hhz
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, the problem was now clean: some of lib can only use method "add_library" but not "add_placeholder".
But was is difference between library and placehoder. Have any idea/description?
BR.
Huizong
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
i want to add lib in placeholder by using following script:
Here Library_Manager is a IScriptLibManObject. and "testlib" is the name of library "testlib.library", which was pre installed by Script :
The lib was not correctly added, just shown a error in Message windows "Could not open library 'testlib'. (Reason: The placeholder library "testlib" could not be resolved.)"
Any idea or solution?
Thanks!
Hi hhz.
Which version of CODESYS do you use?
Does the problem also occure if you manually add the placeholder after the python script has added the library to the library repository?
BR
Martin
Hi Martin,
thanks for your reply!
CoDeSYs v3.5 SP11 was used.
manually add the placeholder has not this problem before and after the python script has added the library. The error is not for all lib occurred. For example, it works well, when i add lib "Util". But adding lib "CAA Type Extern", problem occurred.
Additional infor.οΌ The same issue can be reproduced with Script function "add_library"
BR
hhz
OK, the problem was now clean: some of lib can only use method "add_library" but not "add_placeholder".
But was is difference between library and placehoder. Have any idea/description?
BR.
Huizong