I have a bunch of variable names in a database by id, then I read the database and create the tags in a folder. no udt, its just singular values, they only change once a week so not high frequency of change.
I have a tag change script watching the folder and when a variable changes, I insert the value into a table. The tags are created by name with no reference to the id in the table.
I wanted to insert the id and value to reference back to the variable table and I am trying to figuire out the best practice way to achieve this.
I was thinking of maybe creating a UDT with both the value and ID but that still involves me reading another tag when the tag change script executes.
I also though of maybe appending the id (_1, _2, etc..) at the end of the name and then I could read it from the tag name when the tag change script executes.
Any other suggestions or better ways than what I am thinking? thanks!