johnparker
Member
Hi all
This should be an easy one !
I need to increment a value in a data block by 1 each time a flag is high.
If i set up an ADD_I with the data address at IN1 and 1 at IN2 it should add 1 to the value when EN is enabled by the flag. Trouble is, it adds 1 to it on every scan of the program while EN is high.
How can i make it just count once each time the flag goes high.
I could use a counter but i need to count up into the 100,000s and the counter only counts to 999
Thanks in advance for any help
This should be an easy one !
I need to increment a value in a data block by 1 each time a flag is high.
If i set up an ADD_I with the data address at IN1 and 1 at IN2 it should add 1 to the value when EN is enabled by the flag. Trouble is, it adds 1 to it on every scan of the program while EN is high.
How can i make it just count once each time the flag goes high.
I could use a counter but i need to count up into the 100,000s and the counter only counts to 999
Thanks in advance for any help