I need a button which basically send the value 1 to a Memory Tag for a certain period of time, say 3 hours and after that resets it back to 0. (as to Acknowledge for a period of 3 hours)
A momentary button only works as long as the window is opened. What would be the best practice for such a requirement?
You could use a Gateway Timer script to check how long the value has been set to 1. How about this:
-Your button sets that memory tag to 1.
-You create gateway timer script that runs once an hour and checks that tag, and if it’s true then it increments the value of another memory tag. The script also checks the value of that second memory tag and when that second memory tag’s value is 2, it writes 0 to both tags.
Wonderful! Thank you! It worked!