I have an application that runs Codesys Control Win on several virtual machines. The same application that runs correctly on all other machines cannot compile on 2 machines. ("Error during download"). Looking in the message window indicates "Unresolved reference: TARGETVISUFINDBYID/ TARGETVISUNOTIFY/ TARGETVISUCYCLIC". I've tried Exporting/Importing the project, I've tried reinstalling Codesys and I'm still not able to compile the program. What would be the reason for the same program that runs on one machine, not runs on another with Codesys recently installed. Is there any wrong configuration in a .cfg file that could cause these TargetVisu error? Thanks!
You have recently updated your Codesys development system, and when opened the project, you selected "Set all to newest" in the upcoming dialog.
And / or you have updated your Codesys Control (runtime).
If you did not, consider doing it - just make sure you have a good backup of the original version.
After updating the development system and runtime, there is one more step to do in your existing project:
Go to the device tree, right click on the controller (or HMI device) and select the "Update" option. A dialog pops up, with the available codesys versions. Select the one actually installed on your controller / hmi device. Make sure "show all versions" option is selected. There is a similar issue with the libraries: check the versions in the library manager.
If you don't find the right version, there is a package available in the Codesys installer, containing former libraries and compiler versions.
Ooor * ... it's possible that there is no target visualization at all on your controller.... So you must either install it, or remove targetvisualization from your project. sometimes it's tricky - sometimes removing visualization manager, and then re-adding it might help... or creating a blank project, set up visualization and copy-paste the rest of the code inti it.
P.
👍
1
Last edit: Strucc.c 2024-01-09
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I'm having the same issue, tried the solutions above but nothing. The only one I didn´t try was look into the file "CodesysControl.cfg". Where should I find this file?
My codesys is 3.5.19.50
I tried to install the library cmpTargetVisu but still doesnt work.
I didn´t update the codesys and this is very fresh installation one.
The application was created from scratch. It works if I remove the Visualization Manager, but if I include it crashes again.
Last edit: rodberna 2024-01-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
c:\ProgramData\CODESYS\CODESYSControlWinV3x64\<unique number="">\CODESYSControl.cfg
check if this file exists and check if these components entries are in</unique>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, is there any solution to the problem?
You can find the missing file in the C:\Program Files (x86)\CODESYS 3.5.19.60\GatewayPLC\tempCFG directory, but attaching
it to the c:\ProgramData\CODESYS\CODESYSControlWinV3\<unique number="">\ directory does not solve the problem with visualization.</unique>
In the log file you can find the entry:
04/04/24 13:32:44: --------------------------------------- -----------------------------------
04/04/24 13:32:44: CODESYS Control Win V3 Service started
04/04/24 13:32:44: Config file:
04/04/24 13:32:44: C:\Program Files (x86)\CODESYS 3.5.19.60\GatewayPLC\CODESYSControl.cfg
04/04/24 13:32:44: ERROR: AddDllDirectory failed (2). Qt based components cannot be loaded
In my case, the problem concerns versions 3.5.17/3.5.18/3.5.19
Reinstalling doesn't help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Finally I switched to "simulation mode" and of course everything works here.
I assume that "Soft-PLC" does not support visualization, hence the problem.
To tell you the truth, I use operator panels for visualization, and if it weren't for the need to test a few things, I wouldn't pay attention to it.
Perhaps I missed this change during one of the updates, or there was some possibility of bypassing the license and using "Soft-PLC" as a full-fledged solution and it was removed.
Last edit: jonasz 2024-04-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Did you find any solution for this issue?
non valid/corrupt CODESYSControl.cfg is usually the reason for this
Yes. For some reason it lost CodesysControl.cfg
I'm doing a backup of it now to be able to restore, but this shouldn´t happen.
Yes, found it out...
Among others, this part was missing...
The file was almost blank empty:
Would like to ask how to solve this problem?
That is a different issue you have here:
I assume:
You have recently updated your Codesys development system, and when opened the project, you selected "Set all to newest" in the upcoming dialog.
And / or you have updated your Codesys Control (runtime).
If you did not, consider doing it - just make sure you have a good backup of the original version.
After updating the development system and runtime, there is one more step to do in your existing project:
Go to the device tree, right click on the controller (or HMI device) and select the "Update" option. A dialog pops up, with the available codesys versions. Select the one actually installed on your controller / hmi device. Make sure "show all versions" option is selected. There is a similar issue with the libraries: check the versions in the library manager.
If you don't find the right version, there is a package available in the Codesys installer, containing former libraries and compiler versions.
P.
Last edit: Strucc.c 2024-01-09
Hi, I'm having the same issue, tried the solutions above but nothing. The only one I didn´t try was look into the file "CodesysControl.cfg". Where should I find this file?
My codesys is 3.5.19.50
I tried to install the library cmpTargetVisu but still doesnt work.
I didn´t update the codesys and this is very fresh installation one.
The application was created from scratch. It works if I remove the Visualization Manager, but if I include it crashes again.
Last edit: rodberna 2024-01-23
c:\ProgramData\CODESYS\CODESYSControlWinV3x64\<unique number="">\CODESYSControl.cfg
check if this file exists and check if these components entries are in</unique>
Hi, is there any solution to the problem?
You can find the missing file in the C:\Program Files (x86)\CODESYS 3.5.19.60\GatewayPLC\tempCFG directory, but attaching
it to the c:\ProgramData\CODESYS\CODESYSControlWinV3\<unique number="">\ directory does not solve the problem with visualization.</unique>
In the log file you can find the entry:
04/04/24 13:32:44: --------------------------------------- -----------------------------------
04/04/24 13:32:44: CODESYS Control Win V3 Service started
04/04/24 13:32:44: Config file:
04/04/24 13:32:44: C:\Program Files (x86)\CODESYS 3.5.19.60\GatewayPLC\CODESYSControl.cfg
04/04/24 13:32:44: ERROR: AddDllDirectory failed (2). Qt based components cannot be loaded
In my case, the problem concerns versions 3.5.17/3.5.18/3.5.19
Reinstalling doesn't help.
Finally I switched to "simulation mode" and of course everything works here.
I assume that "Soft-PLC" does not support visualization, hence the problem.
To tell you the truth, I use operator panels for visualization, and if it weren't for the need to test a few things, I wouldn't pay attention to it.
Perhaps I missed this change during one of the updates, or there was some possibility of bypassing the license and using "Soft-PLC" as a full-fledged solution and it was removed.
Last edit: jonasz 2024-04-04