Good day. We are encountering an issue when writing tag values using script. We are using system.tag.writeBlocking to write values to specific tags. What happens is the value that we are trying to write to particular tag doesn't get written to a specified tag path. But when we re-run the same script, it will then work without any issues.
As we add more equipment tags, the issue gets more frequent. We are wondering on how we can be able to resolve this issue.
Tag writes are happening on different places within the project. Example, there are instances where we are writing tags from Gateway Message Timer script so we are not seeing the returned quality codes. Is there a way to check this without setting up a gateway logger?
Probably not. You have to deliberately assign the return value to a local variable at the point of the call, and examine it right there. If you are using fire-and-forget messaging, only a logger will let you see what's happening. (I wouldn't log if all returned qualities are good.)