311
edits
Line 29: | Line 29: | ||
turn off when limit current hit | turn off when limit current hit | ||
Rule1 ON Power1#state=1 DO backlog Delay 30; Power1 0 ENDON | |||
rule1 1 | |||
Rule2 ON ANALOG#Voltage1>100 DO Power1 0 ENDON | Rule2 ON ANALOG#Voltage1>100 DO Power1 0 ENDON | ||
rule2 1 | |||
set the adc range | set the adc range | ||
AdcParam 6, 0, 4095, 0, 1024 | AdcParam 6, 0, 4095, 0, 1024 | ||
in the console you can view the rules: | |||
CMD: rule1 | |||
RSL: RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":54,"Free":457,"Rules":"ON Power1#state=1 DO backlog Delay 100; Power1 0 ENDON"}} | |||
CMD: rule2 | |||
RSL: RESULT = {"Rule2":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":40,"Free":471,"Rules":"ON ANALOG#Voltage1>100 DO Power1 0 ENDON"}} |