Thanks for your help. I got the script working but only once and never again. I tried everything and it just won’t copy the value into the new tag again.
This is what I have, a tag which is changing from 0 to 1 twice per day (1 for a minute and then goes back to zero).
In that tag I selected Tag Events > Value Changed and added this script:
temp = system.tag.read("[.]RT1/PcsBuilt")
It doesn’t work if I use relative paths to tags and I also tried absolute and it still doesn’t work. The tag OS_Built just stays at zero and I can see the trigger tag change from 0 to 1.
Edit: The trigger tag is an expression, the source tag is an SQL Query (Integer) and the destination is a memory tag (Integer), if it matters.