I've recently ran into an issue where a tag script (value changed) is triggering when I didn't expect. I have a simple script that stores the value of the tag, along with a couple other pieces of relevant info, into a database for a report. It seems that the script is running when the quality of the tag changes from 192 to 202 but the value has remained the same. I had assumed the quality changes would only activate under the quality change script and wouldn't effect the value change script. Or is there something else I'm missing?
I am trying to figure out why I'm getting the 202 value at all. I looked it up and it says it represents good data that is being sampled slower than requested due to a resource limitation. However I don't have access to the PLC another team handles that.
The issue is that the value is 0 and I'm getting a tag event for quality when it changes to 202 then another when it changes back to 192. I don't want either of these events because the value still hasn't changed from 0. I know I can check the previousValue.value vs currentValue.value, but I'm more wondering if this is working as intended as the value isn't changing or if I'm missing something else.