Cannot Bind Value in Array after Pasting Module

Hello!

I am trying to update a reconfigured Module by deleting it and replacing it with something I know is working.

Here is more or less the binding path,

When deleting and reinserting, something has been lost in the mappview binding.

There does not appear to be any notable differences, however when I try to rebind the values, the “select variable” window cannot locate go into the array.

I have tried to rebuild, but I cannot select values within the Array just as in the other program. What could I be missing here?

Hi Adam,

There is a special step to enable array variables in the OpcUa Mapping (Default View) file.

Instead of just right-clicking and selecting “Enable Tag”, use this button at the top of the window to enable all array elements:

Alternatively, you can right-click on the variable and select Automatic Enable → Recursive.

If you are using an Automation Studio version earlier than 4.12, you instead have to Right Click → Enable Tag and then turn on “Show array elements” from the Properties window:

Great this was the solution! however I would just like to have something clarified.

I enabled HMI as recursive. I made the assumption that everything within HMI would be enabled with the same setting, but does not appear to be the case. I needed to manually go to the array and set it as recursive. Is this a feature of the program or a bug as it seems to just add an extra step in my process for every array I want to work with.

Hi,

structure elements of type “array of basic data type” are excluded even when using “recursive”.
This is a wanted behavior to avoid (too) long response time from the editor and also to avoid to (accidently) enable (too) many tags (=array elements), that are not really needed to be accessed by OPC UA (for example, arrays of simple datatypes are often used as “buffer / temporary memory only”).
For those reasons, such structure elements always have to be explicitly enabled by the user.

Best regards!

2 Likes