I’m trying to see if any tag in a tag provider (its small) changes and run a script when that happens. But when I enter just the provider name, it says it doesn’t exist as a tag, which I guess is correct. Anyone have any suggestions on how I can do this?
Is the list of tags static? If so, just list all the tag paths on the event and you’re done. The actual tags that change will be identified in the event object.
They are… for now. I was hoping to capture any new tags that may be added later.
If dynamic, you’re stuck. You’d have to both listen for changes to the structure of the tag tree and place listeners on every tag. All via scripting.
Alright, no problem. The backup here is to just have this script run every few hours or whenever needed, which is fine for this situation.
Are they all numeric?
You could create a memory tag that adds them all up and then watch for a value change?
Or a script to get the tags into a list, run a system.opc.readValues, add them all up and write a single memory tag and then watch that one for a changed value.