I'm a total noob when it comes to programming and I have a problem with my codesys program.
it says it's missing a library but the download fails and I can't install it manually because I can't find this library anywhere on the internet.
The library is CmpVisuHandler.
I hope someone is able to help me.
I think the best approach is:
You Update CODESYS to current version ( 184.108.40.206) + install the PI Package ( use the shopping cart icon in CODESYS)
Then everything is in the same version and you will not see these problems.
I think your device is an SP15 Version but your visu profile somehow SP16?
The easy way is alwasy to have all in the same version.
When ever you open an existing project with an newer CODESYS Version and you get 501 compile errors:
-> then the compile should work without any issues.
I you case I think the PI plc is an SP15 Version and maybe CODESYS SP16?
This should work.
Is it possible that it's being blocked from downloading the library? Either through antivirus etc or through a firewall or network filtering. I see that often at locations that use a white list rather than a black list for internet access. You shouldn't be able to navigate to the address listed there either if that's the issue.
What you could do is right click on the CmpVisuHandler library in the library manager and click "properties'. Then select a different default library searching for "CmpVisuHandler"
Regardless, here's a copy compressed using 7zip. You can see what libraries you have by navigating to C:\ProgramData\Codesys\Managed Libraries*library name*
You can see that the zip file I attached includes a variety of versions. I haven't installed libraries in this manner before but try adding its contents to the appropriate folder.
It might be worth checking out which visualization profile you have, listed in the project settings. Just in case its -None-.
Pardon my ignorance but I've added the folder in /programdata/codesys/managed libraries (It was already there but I overwrited it) but it's still not working.
On a side note this issue appeared all of the sudden, I've been working on this project for a few hours and all was well, I could compile and simulate it with no problem but when I tried to upload it to my raspberry it gave me this error (all 500 of them)
I've also tried to delete and re-add the library but it didn't work
I also have the basic visu style
The library manager has the option do to download missing libraries.
See https://help.codesys.com/webapp/_cds_obj_library_manager;product=codesys;version=220.127.116.11 and search for "Download missing libraries".
Log in to post a comment.