you have 2 problems very common when using programs from old or anywhere.
you will need to have the target file, specific for each type PLC. codesys is a compiler but it will need to know the hardware.
the other thing is it cant find libraries used in the program.
do not change directory but have a look under window library manager.
the not found ones are redcolored.
you can put specific libs in the project directory.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
a fast one is to find *.lib on the harddisk
you can also look for each file apart like util.lib (a standard one coming with codesys)
open directory and copy the needed files to your project directory under libs.
on project settings you can give a directory name for extra libs
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the quick reply. Does it matter that the libraries on my computer are newer than the ones referenced in the project file?
I'm accessing this machine remotely and can't afford to make any mistakes.
I also noticed that the PLCConfiguration is not present in the proejct when I open it with a newer version of CoDeSys. Another chance for me to make an error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
when you connect to the PLC it will say you will need to download the correct version, as codesys sees something is changed between the running program and the one you have in the computer.
you must be sure you have the correct target on your computer as the compiler does not know what you are running.
The PLC will accept your program however if wrong target it will seeze anything.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have an old file I need to open. When I open it in a newer version of CoDeSys I get the error message:
If it matters, the controller for this job is Moeller/Eaton
XC-CPU201-EC256K-8DI-6DO
If I skip the root error message, then I get complaintes abou the libraries. This is a nightmare!
I'm not sure what exactly it is looking for...
Any help greatly appreciated
Thanks,
Norm
you have 2 problems very common when using programs from old or anywhere.
you will need to have the target file, specific for each type PLC. codesys is a compiler but it will need to know the hardware.
the other thing is it cant find libraries used in the program.
do not change directory but have a look under window library manager.
the not found ones are redcolored.
you can put specific libs in the project directory.
So my question comes down to how do I find these particular libraries:
a fast one is to find *.lib on the harddisk
you can also look for each file apart like util.lib (a standard one coming with codesys)
open directory and copy the needed files to your project directory under libs.
on project settings you can give a directory name for extra libs
Thanks for the quick reply. Does it matter that the libraries on my computer are newer than the ones referenced in the project file?
I'm accessing this machine remotely and can't afford to make any mistakes.
I also noticed that the PLCConfiguration is not present in the proejct when I open it with a newer version of CoDeSys. Another chance for me to make an error.
when you connect to the PLC it will say you will need to download the correct version, as codesys sees something is changed between the running program and the one you have in the computer.
you must be sure you have the correct target on your computer as the compiler does not know what you are running.
The PLC will accept your program however if wrong target it will seeze anything.