Subscribing is a smart move!
You can subscribe to this forum after you log in or create your free account.
Geo SCADA Knowledge Base
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Originally published on Geo SCADA Knowledge Base by sbeadle1 | June 10, 2021 03:11 AM
PROGRAM CountTest VAR Count AT %M(.Count.Value) : INT; Action AT %M(.Action.CurrentState) : INT; END_VAR IF Count < 40 THEN Count := Count + 1; ELSIF Count = 40 THEN Action := 1; (* Do whatever you need to do *) Count := 999; (* This sets the count to a "useless" value. To restart the count set it back to 0 in the database *) END_IF; END_PROGRAM
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.