# Reading array of structs/UDTs from B&R PLC OPC-UA server

**URL:** <https://forum.inductiveautomation.com/t/reading-array-of-structs-udts-from-b-r-plc-opc-ua-server/35863>\
**Category:** Ignition\
**Created:** [June 22, 2020, 3:56am UTC](https://forum.inductiveautomation.com/t/reading-array-of-structs-udts-from-b-r-plc-opc-ua-server/35863 "2020-06-22T03:56:40Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 23, 2020, 8:21pm UTC](https://forum.inductiveautomation.com/t/reading-array-of-structs-udts-from-b-r-plc-opc-ua-server/35863/21 "2020-06-23T20:21:40Z")

</div>

The derived tag trick won’t work for arrays. You’ll have to use a scripting function I think.

---

<div class="post-metadata">

**Author:** ![DNice](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DNice](https://forum.inductiveautomation.com/u/DNice)\
**Post date:** [March 20, 2025, 8:11pm UTC](https://forum.inductiveautomation.com/t/reading-array-of-structs-udts-from-b-r-plc-opc-ua-server/35863/22 "2025-03-20T20:11:32Z")

</div>

Bringing this back up again in hopes that MAYBE something has changed in almost 5 years.

I also have a B&R OPC-UA server I am connecting to with array elements that I cannot seem to individually address as I'd hope. I can bring in the whole float array like so:

 ![array](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/9/c9ced771d168305baf1f87029dbfa07f5ab3dd8c.png)  
But when I create a standard float tag and try (with many different syntaxes) to address an individual array value I get "Bad" value.  
 ![individual float element](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/a/aa739e521fdafae9a5fd8a18641d0c008cda5efa.png)  
Is there any possibility to address an individual element (i.e. is my syntax just wrong?) or is the only method still to pull in the entire array and reference that array tag?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 20, 2025, 8:13pm UTC](https://forum.inductiveautomation.com/t/reading-array-of-structs-udts-from-b-r-plc-opc-ua-server/35863/23 "2025-03-20T20:13:21Z")

</div>

If the server doesn't allow you to further browser underneath the array and see each element, and the syntax you guessed for OPC Item Path doesn't work, then it's likely the server does not support accessing each array element individually.

---

<div class="post-metadata">

**Author:** ![DNice](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DNice](https://forum.inductiveautomation.com/u/DNice)\
**Post date:** [March 20, 2025, 8:15pm UTC](https://forum.inductiveautomation.com/t/reading-array-of-structs-udts-from-b-r-plc-opc-ua-server/35863/24 "2025-03-20T20:15:51Z")

</div>

🙁  
Doh... time to pour another cup of coffee then...

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 20, 2025, 8:29pm UTC](https://forum.inductiveautomation.com/t/reading-array-of-structs-udts-from-b-r-plc-opc-ua-server/35863/25 "2025-03-20T20:29:33Z")

</div>

> [@Kevin.Herron](#):
>
> does not support accessing each array element individually.

Or uses some syntax other than square brackets. Have you asked B&R?

[Previous page](https://forum.inductiveautomation.com/t/reading-array-of-structs-udts-from-b-r-plc-opc-ua-server/35863.md?page=1)
