Thank you @michael.bertsch,
I will try newer versions and if the situation is still the same then I will contact local support.
Thank you @michael.bertsch,
I will try newer versions and if the situation is still the same then I will contact local support.
This step helped a lot… Thank you
origin uad file (ifPuHmiUi.uad)
new uad file (ifPuHmiUi6.uad)
Hello guys,
could you confirm that there is problem (even in new uad files) with second depth of structure? Can you reproduce it?
I use:
Thank you for feedback.
Hello,
My Test with a Structure with more than 2 depths did work. I did not expected that this is a general error. I do more think that is some kind of special Declaration combination in your Project.
If you like you can send us a Sample project bases on your Project situation.
We can then run it on our system to combine results.
The community is limited in providing diagnostic, due to the puplic nature. It is not intended as a full support channel. Please get in contact with local support of B&R and discuss you Project Situation with them. In this way you will get a good Support while keep your Project data Confidential.
You can continue to discuss here or at best keep us updated about the root cause of the issue after the investigation.
Greetings
Michael
I marked Michael’s answer as a solution, because I think we have reached the limit of what the community can help with. Project analysis must be done, and for this, local support must be involved.
Hello,
I may have found where the problem is in our project… C task, where .var and .typ files are used, is fine for OPC, but we have C tasks in the project that also have .h files (instead of .var and .typ) and there it seems that OPC has a problem “seeing” them. Are data types and variables defined in .h files officially supported in AS6.x or do we have to convert them to .var files? I can send the project to local support, but information about support/non-support of .h files in AS6 should be known… Thank you
Picture:
Blue: OK for compiler, OK for OPC
Red: OK for compiler, Not OK for OPC
Since you have found out cause of your issue, you do not need to send project to support. I have not found anything about it in AS Help. SO it is up to you, if you will report it or will just use var and typ instead of .h files.
Hello,
so I guess I know what was our specifics in the project, because of which some variables were not loaded into the OPC uad file. If you use .h files and use _LOCAL and _GLOBAL to define variables, then don’t forget to turn on this switch in AS “Enable declaration of PLC variables (_GLOBAL, _LOCAL)”. See. attached image. Now I can see almost all variables in our uad files. I completely forgot that there was such a thing ![]()
Me too
happy that you solved it and hoping that this will help others as well.
Hello @gabriel.costa ,
unfortunatelly I resolved my problem with OPC only for a while, when I clean my project (delete Binary, Diag, Temp) a have done things mentioned above… But when I worked with project and tried to make changes in OPC (uad) then the file breaks
and I have errors again… Now I wait for virtual PC where I am going to install AS 4.12.9 and try to start with uad from there… I will let you know if this help or not.
Hello, I didn’t succeed with the original (migrated) uad files. They keep crashing. So I deleted them (copied them somewhere else as a my template) and created new uad files and enabled all needed variables one by one and finally OPC works for me. Be careful with the OPC settings, more things have to be enabled there than in AS4.12 (see Help or attached pictures). I have the newest AS and mapp components.