Hi everyone,
I'm working on a project where I use UDT instances to represent machines (e.g., Machine-1001
, Machine-1002
, etc.).
Each UDT has a parameter like machine_no
that I use to drive indirect tag paths or bindings inside the UDT.
I also have a Query Tag
(executing every second) that returns a dataset from a SQL database — this includes the machine number and some runtime values.
What I want to do is:
- Match each row’s
machine_no
to an existing UDT tag name (e.g., match1001
toMachine-1001
) - Then update the
machine_no
UDT parameter of the matched instance from the query result
Example:
- Dataset returns:
machine_no = 1001
- Match to tag:
[default]Factory/Machine-1001
- Goal: Set
[default]Factory/Machine-1001
’s parametermachine_no = 1001
My questions:
- Is it possible to update a UDT parameter at runtime after the instance is created?
- If yes, is
system.tag.configure()
the correct way?
Thanks in advance — any tips are welcome!