Is there a way to populate a table/dataset with tag information dynamically?

Short answer is yes, probably via scripting or by using pturmels' Integration Toolkit to use an expression tag instead of a script.

Basic outline would be to use a Gateway Tag Change event, or maybe a Timer event, to monitor the state value of all the UDT's, and on change (or a set rate when using timer), loop through all the UDT's and collect the tag values of all UDT's where the state does not equal 4.

Depending on the number of instances you could fetch all UDT's and their tag values or you could do an Initial fetch of the State tag values and use that to build the larger list for fetching the additional values.

You would then build your dataset from these values and place it into a Gateway Memory tag for storage/display.

2 Likes