Part of my program reads an ADC value into w3 and 10 mins later reads it again into w4........
readadc10 2,w3
for w2=1 to 10000
pause 60 ....... ( 10 min delay)
next w2
readadc10 2,w4
I can specify that
if w4<w3 then goto ..........
or if w4>w3 then goto ..........
which all works OK but I need to add a bit of tolerance and say something like
if w4<w3+5 then goto.....
or if w4+5>w3 then goto.....
obviously it can't be done like that so any ideas how I can do this would be appreciated but pease keep it simple !
Thanks in advance
readadc10 2,w3
for w2=1 to 10000
pause 60 ....... ( 10 min delay)
next w2
readadc10 2,w4
I can specify that
if w4<w3 then goto ..........
or if w4>w3 then goto ..........
which all works OK but I need to add a bit of tolerance and say something like
if w4<w3+5 then goto.....
or if w4+5>w3 then goto.....
obviously it can't be done like that so any ideas how I can do this would be appreciated but pease keep it simple !
Thanks in advance