Binding Array Struct on widget Table

Hello everyone,

I’m looking for a faster and more efficient way to bind a structured array to a Table widget in Automation Studio 4.12. My table has seven columns:

  • Index
  • Name
  • Real Value
  • Software Value
  • Inverse (toggle button)
  • Delay
  • BindingIndex

Currently, the only method I’ve found to bind my values to the table columns is by creating separate arrays for each attribute. However, this approach isn’t ideal.

To give more context, I’ve set up a custom management system for my digital inputs and outputs, which are displayed and can be modified from the HMI panel. Here’s a simplified overview:

  1. My data is organized in an array of structures (diPackaging) that holds all necessary information for each I/O, including fields like Idx, Name, Value, Inverse, etc.
  2. I would like to bind each field directly to the table columns, so that, for example, diPackaging[i].Name binds directly to the “Name” column, and diPackaging[i].Value binds to the “Software Value” column.

The issue I’m facing is that I can’t seem to bind the fields within diPackaging directly to table columns without creating supporting arrays for each field.

Is there any way in Automation Studio 4.12 to bind diPackaging.Name directly to the “Name” column, diPackaging.Value to the “Software Value” column, and so on, without creating additional arrays?

Thank you for any insights or suggestions!


Variable

1 Like

Hi Manuel,

I created a support ticket regarding this issue in 2018.
Unfortunately, there are no plans from B&R to create the possibility to bind structured arrays to table.

I solved it for me be copying values from PLC in own arrays per column. But if you have input columns, it’s not that easy.

I’m excited whether someone in the community has any better ideas. :melting_face:

1 Like

Hi, thanks for the reply!
I figured the solution would be a bit of a “spaghetti programmer” approach with additional arrays.
I’m facing a similar issue: I need to manage input columns like “Value,” “Inverse,” and “Delay.”

I tried creating dynamic arrays that point to the elements in the structure, but no luck… I’m getting compilation errors.
The idea might be sound, but I’m not achieving the desired results.

At this point, I’m considering changing my approach unless someone has a miracle solution :exploding_head:

2 Likes

Too bad that B&R does not seem to want to work on a solution. This would be so awesome and great if they make this possible. We use structes a lot.

3 Likes