› M1 Support Forum › Setting Counter Causes System Reset › Reply To: Setting Counter Causes System Reset
April 8, 2021 at 6:42 pm
#5105
Jeff
Correction due to typo above:
WHENEVER NoMotion_B (Counter 10) CHANGES TO 0
THEN SET TestCntr (Counter 12) TO 0
Variations of the above that I have tried, all result in Elk resetting:
WHENEVER NoMotion_B (Counter 10) CHANGES TO 0
THEN SET TestCntr (Counter 12) TO 1
WHENEVER NoMotion_B (Counter 10) CHANGES TO 0
THEN SET TestCntr (Counter 12) TO 1
WHENEVER NoMotion_B (Counter 10) CHANGES TO 0
THEN ADD 1 TO TestCntr (Counter 12)
WHENEVER NoMotion_B (Counter 10) CHANGES TO A VALUE LESS THAN 1
THEN SET TestCntr (Counter 12) TO 0