' heater control function
' SETIO heater or CLRIO Heater based on the
' value of ADC(1)/10
IF ADC(1)/10 < 15 SETIO HEATER
ENDIF
IF ADC(1)/10 > 17 CLRIO HEATER
ENDIF
thanks for all the help that you have given me i would like your knowlege. i just have one more question for you. the above statement works great in theory but the problem is the heater works ok when it reaches 17 the heater cuts off and the value at ADC(1) rises by 10. this means the liquid cools too much because it takes too long for the number to return to 15. how can i compensate for the increase by ten is there any way to subtract 10 from the upper value. so
heats to 17 heater turns off 0.5 of a second later
value rises to 27 at ADC(1) need to subtract 10
so the numer cools from 17 to 15 then repeat again
thanks karen