I am evaluating the older version of CoDeSys(ver 2.something).I wrote a new library containing a function block for motor control.I included the standard library in this library because my function block uses other function blocks from the standard library.
The problem is whenever I create a new program in which I use my function block and then download it to SP RTE I get an error "unresolved external POUs".
I am not sure if the problem is with the version of the library I am using while saving it or anyother.
Please help to resolve this.
Sajid Khan.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did you save your library as "External Library"? That was the first idea wich came in my mind. If you create a library wich contains code written in CoDeSys you have to save it as internal library. For an external lib the code must be part or extension of the runtime system. If there are functions missing you get exactly the error message you mentioned.
Regards
Ralph
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ralph Holz hat geschrieben:
Hi
Did you save your library as "External Library"? That was the first idea wich came in my mind. If you create a library wich contains code written in CoDeSys you have to save it as internal library. For an external lib the code must be part or extension of the runtime system. If there are functions missing you get exactly the error message you mentioned.
Regards
Ralph
Hi Ralph,
Yes,I did save it as external library.And also tried saving it as external library 2.1 and 2.2.I have also included this library along with the standard library in my application.But the same error always.
A few days back some CoDeSys installation files in WinXP were corrupted due to a virus.I had to delete some files as cleaning and then repair the installation.Do you think this could be the cause?I will try to uninstall and then reinstall the software.
Thanks for your help.
Sajid Khan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am evaluating the older version of CoDeSys(ver 2.something).I wrote a new library containing a function block for motor control.I included the standard library in this library because my function block uses other function blocks from the standard library.
The problem is whenever I create a new program in which I use my function block and then download it to SP RTE I get an error "unresolved external POUs".
I am not sure if the problem is with the version of the library I am using while saving it or anyother.
Please help to resolve this.
Sajid Khan.
Hi
Did you save your library as "External Library"? That was the first idea wich came in my mind. If you create a library wich contains code written in CoDeSys you have to save it as internal library. For an external lib the code must be part or extension of the runtime system. If there are functions missing you get exactly the error message you mentioned.
Regards
Ralph
Hi Ralph,
Yes,I did save it as external library.And also tried saving it as external library 2.1 and 2.2.I have also included this library along with the standard library in my application.But the same error always.
A few days back some CoDeSys installation files in WinXP were corrupted due to a virus.I had to delete some files as cleaning and then repair the installation.Do you think this could be the cause?I will try to uninstall and then reinstall the software.
Thanks for your help.
Sajid Khan
Hi,
try to save your library as "internal Library" and it will work! Thats the way to save a in CoDeSys written (internal) Library.
Regards
Ralph