All formulas in Scada channels are always executed in a loop. Imagine that you are programming a PLC in LAD language. That’s about how formulas are processed in Scada channels. The sequence of calculations of formulas from the smallest channel number to the highest. Therefore, if periodic calculation of formulas is required, or you need to use built-in tools Every minute, every hour, or create your own timers, triggers, and so on, according to which you already perform actions.
You need an additional variable to store a flag that the condition change has already processed. After adding 1, set the flag ON. When the condition becomes false, set the flag to OFF. The formula is not very simple, because it executes in a loop as written above.
Alternatively, you could increase a channel inside the formula of the condition if it’s applicable.