In this program, the lights sometimes do not turn on and Timer # 29 is busy counting up, hence I decided to add a second satement. But does not help. (Var #25 is the light level)
Should I change from becomes to > statement?
0229 - IF Variable #25 becomes < 140 // Deck/Porch Lights ON 0230 - AND Time of Day is > Sunset offset -44 minutes // 0231 - THEN Timer #29 = 1 // start timer 0232 - IF Variable #25 becomes > 140 // 0233 - AND Time of Day is > Sunset offset -44 minutes // 0234 - THEN Timer #29 = 0 // stop timer if ligh level goes high 0235 - IF Timer #29 becomes > 100 // 2 mins later 0236 - OR Timer #29 becomes > 110 // 0237 - THEN X-10 House P / Unit 5, Turn ON // Xams Lights 0238 - THEN X-10 House P / Unit 1, Turn ON // Deck/porch 0239 - THEN Timer #29 = 0 // stop timer 0240 - THEN Variable #16 = 1 // flag set for ON 0241 - IF Time of Day is > Sunrise offset -32 minutes // 0242 - AND Time of Day is < 10:00 // 0243 - AND Variable #25 becomes > 130 // 0244 - AND Variable #16 is = 1 // lamp was turned ON 0245 - THEN X-10 House P / Unit 1, Turn OFF // 0246 - THEN Variable #16 = 0 // reset 0247 - // 0248 - IF Variable #25 becomes < 155 // Garden Lights ON 0249 - AND Time of Day is > Sunset offset -44 minutes // 0250 - THEN Timer #32 = 1 // start timer 0251 - IF Variable #25 becomes > 155 // light level goes high 0252 - AND Time of Day is > Sunset offset -44 minutes // 0253 - THEN Timer #32 = 0 // stop timer 0254 - IF Timer #32 becomes > 100 // ligh level stays low for 2 min 0255 - OR Timer #32 becomes > 110 // 0256 - THEN X-10 House N / Unit 2, Turn ON // 0257 - THEN Timer #32 = 0 // stop timer
Guy LavoieGuy Lavoie
Beyond All Hope
Registered: 12/21/02
Posts: 6401
Loc: Montreal, QC, Canada
Are you absolutely certain that Timer #29 is not used anywhere else in your program (your listing is only for a certain line range)? Use the C-Max search button to look for any other instances.
_________________________
"If you don't know what you're doing, do it neatly..."