heater code & IF stmt

I see this example for heaters:

[ Heater_x_x ] ( x_x )
Fallback OFF
If Temp < 77.0 Then ON
If Temp > 78.0 Then OFF

My question:
Why doesn't the outlet go to the OFF state at 77.1? Why does the outlet say ON until 78.0?

If a "Set OFF" where added after the "Fallback...", would it then go the OFF state at 77.1?

Just trying to make sure I understand the triggers of the command.
 
[ Heater_x_x ] ( x_x )
Fallback OFF
If Temp < 77.0 Then ON
If Temp > 78.0 Then OFF
This programming allows the heater to operate over a range - in this case, about 1 degree. Once it comes on (at 76.9), it will STAY ON until the temp reaches 78.1. When the temp hits 78.1, it will shut off and STAY OFF until the temp drops below 77.0.

If you just want the heater to operate around a fixed temp threshold, then use
[ Heater_x_x ] ( x_x )
Fallback OFF
Set OFF
If Temp < 77.0 Then ON
With the latter programming, the heater may toggle on and off quite frequently, so adding a couple of defer statements may be in order.
[ Heater_x_x ] ( x_x )
Fallback OFF
Set OFF
If Temp < 77.0 Then ON
Defer 5:00 Then ON
Defer 5:00 Then OFF
 
Just trying to make sure I understand the triggers of the command.
Russ has explained, but I wanted to elaborate at a more basic level. Only TRUE commands get executed, FALSE commands get ignored. The last TRUE command will govern the final state of the outlet.

Todd
 
Back
Top