OPC (uad) variables: Global / Tasks

Hello,

after migration our project to AS6 with migration script… We removed errors and most of the warnings. We have problems with OPC UA variables published by OPC UA server.. We can enable/disable variables for “Global Variables“, but for tasks, there are variables with red crosses, but they exist in the project, but OPC UA does not see them :frowning: Why? See attached picture. Thank you for hints

Hi,

maybe the task or the variable was renamed ,or the task isn’t deployed?
Please see here for informations about “invalid entries” in the OPC UA default view editor:

Best regards!

It is not case… We “only” migrate the project to AS6… No renaming or deleting has been done. The task is executed and all variables are there, but not visible for OPC… All tasks: moTrav, moArms, maRbCtrl have only crosses :frowning: This uad file is a link to “default” HW configuration, so I tied to delete ifPuHmiUi.uad and add it again as a reference, but still the same situation :frowning: Any idea? Thanks

Hi,

sorry, I haven’t any good idea right now.
I tried to reproduce the issue with a minimal blank AS6 project (with a _LOCAL declared C process variable + a 2nd configuration with referenced .uad file), but I wasn’t able to, it worked like expected.

So hopefully some other users of the Community can give more advice how to proceed.

  • Can you please share the exact version information of AS, AR and OPC UA C/S you’re using?
  • the configuration, where the references are linked to, is still compilable?
  • if you’re not using the latest versions, can you please upgrade to them (especially OPC UA C/S V.6.6.1) and check if the behavior changes?

BG

Hello,

i would recommend to check what happens if you create a new uad.-File. Are the Variables available in this new File?

Please also consider that the Tasks must be part of the SoftwareConfiguration and attatched to a Task-Class in this Configuration.

I am not sure what conversions happen from AS4->AS6 but i could think of an situation, that the uad-File was not converted to some new Format, because it is only referenced.

OPCua C/S - Migrating AR4 to AR 6

Greetings
Michael

After the AS4 → AS6 migration, the OPC UA default view (.uad file) still references old task or variable names that no longer match your project. This commonly happens because:

  • Tasks or variables were renamed during or after migration

  • The .uad file wasn’t properly updated to the new file version before migration (it should have been opened and re-saved in AS 4.12 first)

  • The <Default> in your error refers to the application module name, which may have changed in AS6

So more or less same information like Michael has already provided to you.

Thank you for hints @michael.bertsch and @kovarj .

Here are results after your hints:

  • it helps to create a new uad file (all variables are available there and I can enable them)
  • my tasks are part of Sotware and attached to Task-Class
  • I again open all our 3 uad files in AS4.12 and made “small change” > save > change back > save
  • I used these uad files (<?AutomationStudio FileVersion="4.9"?> , ) before opening project in AS6.5, but I got “version 9“ error (see attached picture)

Myabe I forgot something…? If there is not better hint in following days then I will do “manual work“ and I will enable tags in new uad files

Hello,

Good that a new uad.-File has all the Variables in it. So it is only a conversion topic.

i am not familiar with the conversion process for OPCua, but i know that for MappService it is recommended to convert from AS4.12 to Working Version 6.0 to start the conversion wizzards. If you go directly to Working Version 6.5. the Automation Studio will skip the conversion wizzards.

To which Working Version did you went when first opening the Project with AS6?

Greetings
Michael

Thanks Michael!
that was a surprise when my colleague found that note in the help:
https://help.br-automation.com/#/en/6/services/mapp_services/allgemeines/anderungen/konfigurations-…

so when upgrading mapp services the configuration files are only updated if you first goto to 6.0, then you can upgrade to a newer version

I used for migration

  • Migration to AS 6 - Step-by-step checklist

  • B&R Community AS6 Migration Scripts

When I finished steps for AS4.12 I went to AS6.5 and downloaded suitable mapp (see picture). Then I continued migration in AS6.5.

But if I remember well Step-by-step checklist and Migration scripts were about steps to do manually in AS4.12 and then in AS6.x Script “only” told us… Hey, open OPC uad files and make “small change”, remove that library because it is not supported, … But it is more than one month, so maybe I am wrong… Trust me that “only a conversion topic” is a lot of work in big project :wink:

you know you have to do next step “soon“…ACP10/ARNC0 → mapp Motion…I’m sure that will take other weeks on the big prj.

Ciao
Valerio

1 Like

This error means that uad upgrade file in AS4.12 was not done. You should have version 10, after opening in AS4.12 (maybe use latest patch??) and resaving.

2 Likes

Ok, thank you @kovarj .. I double-checked opc file version and with our AS4.12.5 is FileVersion=“9”. So, we will move to AS4.12.8. I saw that on BR web is available also AS4.12.9… What do you recommend?

If I’m not mistaken, there were some issues. So please use the latest one, hoping that it is fixed there already :slight_smile:

A colleague mentioned that the workaround should be opening the file in Notepad and manually changing the version from 9 to 10.

Please advise,

How I should update AS4.12.5 to AS4.12.9 when the update requires AS4.12.6 as a base, but it is not possible to download it from BR pages??? I will try the trick with version 10. Thanks

Hello,

AS 4.12.6 was made as a full install. You first have to uninstall AS4.12.5 then install AS4.12.6 as a fresh Version. Then you can continou with the Servicepacks to AS4.12.9.

This gap was introduced due to a cyber security topic. We changed some installation Folders to a new destination.

Greetings
Michael

Hello,

thank you for info.

In that case, it would be useful to mention in all your migration tools/checklists what is starting line for the migration… Everywhere was AS4.12, but when we have AS4.12.5 and lower versions OR AS4.12.6 and higher versions.. What we should have installed before we start with migration to AS6.x!! Thank you

I will for sure ask for this update. But I’m still waiting if newer version of AS4.12 will fix the problem you have.

1 Like

Hello guys,

I wanted to start from scratch with uad file as @michael.bertsch adviced, but I was a little wrong. Global variables are ok in AS4.12.5 and AS6.5.1, I see everything, but when I create a new uad file in AS6.5.1 I can see all tasks but only some their substructures.. I can see and enable tags in substructure FrCylElec, but I cannot see substructure for example in task moTrav, moArms… It is strange. See attached pictures.

@kovarj I wait for a virtual machine for AS4.12.6 installation, because I still need AS4.12.5 for work

Hello,

If there are still issues after inserting a new uad.-File i would recommend to contact local support in your Country and send them a Application Projekt where the issue can be reproduced. In this way you can keep your code confidential but B&R can work on your situation.

Short reminder that this are the newest Version. It might be possible that your issue may be fixed in this versions.

Service Pack AS 6.5.2

OPCua C/S 6.6.1

Greetings
Michael

1 Like