#22081 - 08/29/10 09:04 AM
Program problem
|
Msradell
journeyman
Registered: 08/19/07
Posts: 60
Loc: Louisville, Kentucky
|
I recently wrote this simple program to do some testing and have a problem that I can't find! For some reason I start getting a L1 at Midnight and get one per second until about a minute after sunrise? I'm sure it's something simple but I can't find it for the life of me!
Any suggestions are appreciated!
I can't figure out how to attach a program (If there is a way) So here it is: 0001 - IF Module #1 -BOBCAT-L is < 234 // 0002 - AND Bobcat dark T8 is = 0 // 0003 - THEN Bobcat dark T8 = 1 // 0004 - THEN Light outside V7 = 0 // 0005 - // 0006 - IF Bobcat dark T8 is NOT = 0 // 0007 - AND Module #1 -BOBCAT-L becomes > 233 // 0008 - THEN Bobcat dark T8 = 0 // 0009 - THEN Light outside V7 = 0 // 0010 - THEN Dark outside V8 = 0 // 0011 - // 0012 - IF Bobcat dark T8 becomes > 600 // 0013 - THEN Dark outside V8 = 1 // 0014 - // 0015 - IF Module #1 -BOBCAT-L is > 234 // 1st time 0016 - AND Bobcat light T7 is = 0 // 0017 - AND Delay Lights Off V0 is NOT = 1 // 0018 - THEN Bobcat light T7 = 1 // 0019 - THEN Dark outside V8 = 0 // 0020 - // 0021 - IF Bobcat light T7 is NOT = 0 // 1st time 0022 - AND Module #1 -BOBCAT-L becomes < 235 // 0023 - AND Delay Lights Off V0 is NOT = 1 // 0024 - THEN Bobcat light T7 = 0 // 0025 - THEN Dark outside V8 = 0 // 0026 - THEN Light outside V7 = 0 // 0027 - // 0028 - IF Module #1 -BOBCAT-L is > 238 // Rest of day 0029 - AND Bobcat light T7 is = 0 // 0030 - THEN Bobcat light T7 = 1 // 0031 - THEN Dark outside V8 = 0 // 0032 - // 0033 - IF Bobcat light T7 is NOT = 0 // Rest of day 0034 - AND Module #1 -BOBCAT-L becomes < 239 // 0035 - THEN Bobcat light T7 = 0 // 0036 - THEN Dark outside V8 = 0 // 0037 - THEN Light outside V7 = 0 // 0038 - // 0039 - IF Bobcat light T7 becomes > 600 // 0040 - THEN Sequence counter V4 = 1 // 0041 - THEN Light outside V7 = 1 // 0042 - // 0043 - IF Light outside V7 becomes = 1 // 0044 - THEN Den sofa table Light L1, Turn OFF // 0045 - // 0046 - IF Dark outside V8 becomes = 1 // Time is earlier than 2300 0047 - AND Time of Day is < 23:00 // 0048 - AND Time of Day is > 11:00 // 0049 - AND Den sofa table Light L1, Is OFF // 0050 - THEN Den sofa table Light L1, Turn ON // 0051 - // 0052 - IF Light outside V7 becomes = 1 // 0053 - THEN Front Window L8, Turn OFF // 0054 - THEN Living Room Tree L7, Turn OFF // 0055 - THEN Den Tree L5, Turn OFF // 0056 - THEN Bunny L6, Turn OFF // 0057 - THEN Lights On Delay T0 = 0 // 0058 - // 0059 - IF Time of Day becomes = Sunset offset -30 minutes // Backup to turn on lights 0060 - AND Den sofa table Light L1, Is OFF // 0061 - THEN Den sofa table Light L1, Turn ON // 0062 - // 0063 - IF Module #1 -BOBCAT-L becomes < 185 // Other lights on 0064 - AND Lights On Delay T0 is = 0 // 0065 - AND Time of Day is > 15:00 // 0066 - AND Time of Day is < 23:00 // 0067 - THEN Lights On Delay T0 = 1 // 0068 - // 0069 - IF Time of Day becomes = Sunset offset -40 minutes // Backup other lights on 0070 - AND Lights On Delay T0 is = 0 // 0071 - AND Time of Day is > 15:00 // 0072 - AND Time of Day is < 23:00 // 0073 - THEN Lights On Delay T0 = 1 // 0074 - // 0075 - IF Lights On Delay T0 becomes = 100 // 0076 - THEN Front Window L8, Turn ON // Living Room WIndow 0077 - // 0078 - IF Lights On Delay T0 becomes = 300 // 0079 - THEN Living Room Tree L7, Turn ON // Living Room Tree 0080 - THEN Transmit X10, L - Dim (21), 11 time(s) // Dim to 50% 0081 - // 0082 - IF Lights On Delay T0 becomes = 315 // 0083 - THEN Den Tree L5, Turn ON // Den Tree 0084 - THEN Transmit X10, L - Dim (21), 8 time(s) // Dim to 50% 0085 - // 0086 - IF Lights On Delay T0 becomes = 330 // 0087 - THEN Bunny L6, Turn ON // 0088 - THEN Transmit X10, L - Dim (21), 10 time(s) // Dim to 50% 0089 - // 0090 - IF Time of Day becomes = Sunset offset 20 minutes // Sunset 0091 - OR Module #1 -BOBCAT-L becomes < 185 // 0092 - AND Prevent Bedside V2 is NOT = 1 // Prevent Hold not set 0093 - AND Laura's Bedside L3, Is OFF // Bedside is off 0094 - THEN Laura's Bedside L3, Turn ON // Turn Bedside On 0095 - // 0096 - IF Delay Lights Off V0 is NOT = 1 // 0097 - AND Day of Week is < Friday (5) // Sunday - Thursday Off 0098 - AND Time of Day becomes = 23:15 // Off @ 23:15 0099 - THEN Lights Off Delay T3 = 1 // 0100 - THEN Front Window L8, Turn OFF // 0101 - THEN Living Room Tree L7, Turn OFF // 0102 - THEN Den Tree L5, Turn OFF // 0103 - THEN Bunny L6, Turn OFF // 0104 - // 0105 - IF Delay Lights Off V0 is NOT = 1 // 0106 - AND Day of Week is > Thursday (4) // Friday & Saturday 0107 - AND Time of Day becomes = 23:30 // Off @ 23:30 0108 - THEN Lights Off Delay T3 = 1 // 0109 - THEN Front Window L8, Turn OFF // 0110 - THEN Living Room Tree L7, Turn OFF // 0111 - THEN Den Tree L5, Turn OFF // 0112 - THEN Bunny L6, Turn OFF // 0113 - // 0114 - IF Downstairs lights J1, OFF Command Pair // 0115 - THEN Delay Lights Off V0 = 0 // 0116 - THEN Lights Off Delay T3 = 1 // 0117 - THEN Front Window L8, Turn OFF // 0118 - THEN Living Room Tree L7, Turn OFF // 0119 - THEN Den Tree L5, Turn OFF // 0120 - THEN Bunny L6, Turn OFF // 0121 - // 0122 - IF Lights Off Delay T3 becomes > 600 // 0123 - THEN Den sofa table Light L1, Turn OFF // 0124 - THEN Lights Off Delay T3 = 0 // 0125 - // 0126 - IF Time of Day becomes = 23:50 // 0127 - AND Prevent Bedside V2 is NOT = 1 // 0128 - THEN Laura's Bedside L3, Turn OFF // 0129 - // 0130 - IF Bedroom lights J3, OFF Command Pair // 0131 - THEN Laura's Bedside L3, Turn OFF // 0132 - THEN Prevent Bedside V2 = 0 // 0133 - // 0134 - IF Downstairs lights J1, OFF Command Pair // 0135 - THEN Lights Off Delay T3 = 1 // 0136 - THEN Front Window L8, Turn OFF // 0137 - THEN Living Room Tree L7, Turn OFF // 0138 - THEN Den Tree L5, Turn OFF // 0139 - THEN Bunny L6, Turn OFF // 0140 - // 0141 - IF Time of Day becomes = Sunrise offset 0 minutes // Den sofa table on 0142 - AND Module #1 -BOBCAT-L is < 230 // 0143 - THEN Den sofa table Light L1, Turn ON // 0144 - // 0145 - IF Time of Day is > Sunset offset -120 minutes // Breakfast lamp on 0146 - AND Module #1 -BOBCAT-L becomes < 160 // 0147 - AND Breakfast area L15, Is OFF // 0148 - THEN Breakfast area L15, Turn ON // 0149 - // 0150 - IF Time of Day becomes = Sunset offset -120 minutes // Breakfast lamp on 0151 - AND Module #1 -BOBCAT-L is < 160 // 0152 - AND Breakfast area L15, Is OFF // 0153 - THEN Breakfast area L15, Turn ON // 0154 - // 0155 - IF Time of Day is < Sunrise offset 120 minutes // Breakfast lamp off 0156 - AND Module #1 -BOBCAT-L becomes > 150 // 0157 - AND Breakfast area L15, Is ON // 0158 - THEN Breakfast area L15, Turn OFF // 0159 - THEN Breakfast area L15, Turn OFF // 0160 - // 0161 - IF Time of Day becomes = Sunrise offset 120 minutes // Breakfast lamp off 0162 - THEN Breakfast area L15, Turn OFF // 0163 - THEN Breakfast area L15, Turn OFF // 0164 - // 0165 - IF Time of Day is > Sunset offset -120 minutes // Outside lights on 0166 - AND Module #1 -BOBCAT-L becomes < 130 // 0167 - THEN Outside Post Lamp L2, Turn ON // 0168 - THEN Front Porch Lights L9, Turn ON // 0169 - // 0170 - IF Time of Day becomes = 22:40 // Porch light off 0171 - THEN Front Porch Lights L9, Turn OFF // 0172 - THEN Front Porch Lights L9, Turn OFF // 0173 - THEN Sequence counter V4 = 0 // 0174 - // 0175 - IF Time of Day is > 03:00 // Post lamp off 0176 - AND Time of Day is < 11:00 // 0177 - AND Module #1 -BOBCAT-L becomes > 130 // 0178 - THEN Outside Post Lamp L2, Turn OFF // 0179 - THEN Front Porch Lights L9, Turn OFF // 0180 - THEN Outside Post Lamp L2, Turn OFF // 0181 - THEN Front Porch Lights L9, Turn OFF // 0182 - // 0183 - IF Time of Day becomes = Sunrise offset 60 minutes // Backup outside off 0184 - THEN Outside Post Lamp L2, Turn OFF // 0185 - THEN Front Porch Lights L9, Turn OFF // 0186 - THEN Outside Post Lamp L2, Turn OFF // 0187 - THEN Front Porch Lights L9, Turn OFF // 0188 - // 0189 - // 0190 - // Alarm system functions 0191 - IF Alarm system armed K1, Turns ON // Armed 0192 - // 0193 - // 0194 - IF Alarm system burglar alarm K2, Turns ON // Burgalar alarm 0195 - THEN Den sofa table Light L1, Turn ON // 0196 - THEN Laura's Bedside L3, Turn ON // 0197 - THEN Front Window L8, Turn ON // 0198 - THEN Front Porch Lights L9, Turn ON // 0199 - THEN Master bathroom L10, Turn ON // 0200 - THEN Breakfast area L15, Turn ON // 0201 - THEN Back porch light L16, Turn ON // 0202 - THEN Alarm flash T5 = 1 // 0203 - THEN Alarm time T6 = 1 // 0204 - // 0205 - IF Alarm system fire alarm K3, Turns ON // Fire alarm 0206 - THEN Den sofa table Light L1, Turn ON // 0207 - THEN Laura's Bedside L3, Turn ON // 0208 - THEN Front Window L8, Turn ON // 0209 - THEN Front Porch Lights L9, Turn ON // 0210 - THEN Master bathroom L10, Turn ON // 0211 - THEN Breakfast area L15, Turn ON // 0212 - THEN Back porch light L16, Turn ON // 0213 - THEN Alarm flash T5 = 1 // 0214 - THEN Alarm time T6 = 1 // 0215 - // 0216 - IF Alarm flash T5 becomes = 3 // Alarm flash 0217 - THEN Outside Post Lamp L2, Turn ON // 0218 - THEN Front Porch Lights L9, Turn OFF // 0219 - // 0220 - IF Alarm flash T5 becomes > 6 // 0221 - THEN Outside Post Lamp L2, Turn OFF // 0222 - THEN Front Porch Lights L9, Turn ON // 0223 - THEN Alarm flash T5 = 1 // 0224 - // 0225 - IF Alarm time T6 becomes > 900 // 0226 - THEN Alarm flash T5 = 0 // 0227 - THEN Alarm time T6 = 0 // 0228 - THEN Back porch light L16, Turn OFF // 0229 - THEN Master bathroom L10, Turn OFF // 0230 - // 0231 - IF Alarm time T6 becomes > 900 // 0232 - AND Module #1 -BOBCAT-L is > 234 // 0233 - THEN Outside Post Lamp L2, Turn OFF // 0234 - THEN Front Porch Lights L9, Turn OFF // 0235 - THEN Den sofa table Light L1, Turn OFF // 0236 - THEN Breakfast area L15, Turn OFF // 0237 - THEN Laura's Bedside L3, Turn OFF // 0238 - // 0239 - IF Alarm system entry K4, Turns ON // Entry 0240 - AND Time of Day is > Sunset offset 0 minutes // 0241 - OR Time of Day is < Sunrise offset 0 minutes // 0242 - THEN Den sofa table Light L1, Turn ON // 0243 - // 0244 - IF Garage door open K5, Is ON // Garage door open 0245 - AND X-10 House J / Unit 16, ON Command Pair // 0246 - THEN Garage door button K16, Turn ON // 0247 - // 0248 - IF Garage door button K16, Turns ON // 0249 - THEN Button reset T15 = 1 // 0250 - // 0251 - IF Button reset T15 becomes > 60 // 0252 - AND Garage door button K16, Is ON // 0253 - THEN Garage door button K16, Turn OFF // 0254 - THEN X-10 House J / Unit 16, Turn OFF // 0255 - THEN Button reset T15 = 0 // 0256 - // 0257 - IF Downstairs hold J2, ON Command Pair // Alarn reset 0258 - OR Downstairs hold J2, OFF Command Pair // 0259 - OR All lights J8, OFF Command Pair // 0260 - OR All lights J8, ON Command Pair // 0261 - THEN Alarm flash T5 = 0 // 0262 - THEN Back porch light L16, Turn OFF // 0263 - // 0264 - // 0265 - IF Downstairs lights J1, ON Command Pair // Palm pad section 0266 - THEN Den sofa table Light L1, Turn ON // 0267 - THEN 2nd light T10 = 1 // 0268 - // 0269 - IF Downstairs lights J1, ON Command Pair // 0270 - AND 2nd light T10 is > 0 // 0271 - THEN Front Window L8, Turn ON // 0272 - THEN Lights On Delay T0 = 298 // 0273 - // 0274 - IF Downstairs lights J1, OFF Command Pair // 0275 - THEN Lights Off Delay T3 = 480 // 0276 - THEN Front Window L8, Turn OFF // 0277 - THEN Living Room Tree L7, Turn OFF // 0278 - THEN Den Tree L5, Turn OFF // 0279 - THEN Bunny L6, Turn OFF // 0280 - // 0281 - IF Downstairs hold J2, ON Command Pair // 0282 - THEN Delay Lights Off V0 = 1 // 0283 - // 0284 - IF Downstairs hold J2, OFF Command Pair // 0285 - THEN Delay Lights Off V0 = 0 // 0286 - // 0287 - IF Bedroom lights J3, ON Command Pair // 0288 - THEN Laura's Bedside L3, Turn ON // 0289 - THEN 2nd light T10 = 1 // 0290 - THEN Prevent Bedside V2 = 0 // 0291 - // 0292 - IF Bedroom lights J3, ON Command Pair // 0293 - AND 2nd light T10 is > 0 // 0294 - THEN Mark's bedside L11, Turn ON // 0295 - THEN Prevent Bedside V2 = 0 // 0296 - // 0297 - IF Bedroom lights J3, OFF Command Pair // 0298 - THEN Laura's Bedside L3, Turn OFF // 0299 - THEN Mark's bedside L11, Turn OFF // 0300 - THEN Prevent Bedside V2 = 0 // 0301 - // 0302 - IF Upstairs hold J4, ON Command Pair // 0303 - THEN Prevent Bedside V2 = 1 // 0304 - // 0305 - IF Upstairs hold J4, OFF Command Pair // 0306 - THEN Prevent Bedside V2 = 0 // 0307 - // 0308 - IF Outside front J5, ON Command Pair // 0309 - THEN Outside Post Lamp L2, Turn ON // 0310 - THEN Front Porch Lights L9, Turn ON // 0311 - // 0312 - IF Outside front J5, OFF Command Pair // 0313 - THEN Outside Post Lamp L2, Turn OFF // 0314 - THEN Front Porch Lights L9, Turn OFF // 0315 - // 0316 - IF Outside back J6, ON Command Pair // 0317 - THEN Back porch light L16, Turn ON // 0318 - // 0319 - IF Outside back J6, OFF Command Pair // 0320 - THEN Back porch light L16, Turn OFF // 0321 - // 0322 - // 0323 - // 0324 - IF All lights J8, ON Command Pair // 0325 - THEN Den sofa table Light L1, Turn ON // 0326 - THEN Laura's Bedside L3, Turn ON // 0327 - THEN Front Window L8, Turn ON // 0328 - THEN Master bathroom L10, Turn ON // 0329 - THEN Breakfast area L15, Turn ON // 0330 - THEN Outside Post Lamp L2, Turn ON // 0331 - THEN Front Porch Lights L9, Turn ON // 0332 - THEN Back porch light L16, Turn ON // 0333 - // 0334 - IF All lights J8, OFF Command Pair // 0335 - THEN Den sofa table Light L1, Turn OFF // 0336 - THEN Laura's Bedside L3, Turn OFF // 0337 - THEN Front Window L8, Turn OFF // 0338 - THEN Master bathroom L10, Turn OFF // 0339 - THEN Breakfast area L15, Turn OFF // 0340 - // 0341 - IF All lights J8, OFF Command Pair // 0342 - AND Time of Day is < Sunset offset -35 minutes // 0343 - AND Time of Day is > Sunrise offset -30 minutes // 0344 - THEN Outside Post Lamp L2, Turn OFF // 0345 - THEN Front Porch Lights L9, Turn OFF // 0346 - THEN Back porch light L16, Turn OFF // 0347 - // 0348 - // 0349 - IF Time of Day becomes = 12:00 // Clear all Timers and Variables 0350 - THEN Delay Lights Off V0 = 0 // 0351 - THEN On Prevent V1 = 0 // 0352 - THEN Prevent Bedside V2 = 0 // 0353 - THEN Morning On V3 = 0 // 0354 - THEN Lights On Delay T0 = 0 // 0355 - THEN Macro Repeat Check Timer T1 = 0 // 0356 - THEN Bedside Delay T2 = 0 // 0357 - THEN Lights Off Delay T3 = 0 // 0358 - THEN Morning On Delay T4 = 0 // 0359 - // 0360 - IF 2nd light T10 becomes > 20 // 0361 - THEN 2nd light T10 = 0 // 0362 - // 0363 - IF Time of Day becomes = 23:55 // 0364 - THEN Time Counter V12 = 0 // 0365 - // 0366 - End Program //
_________________________
I've learned that there is a fine line between genius and insanity
|
|
Top
|
|
|
|
#22085 - 08/29/10 03:44 PM
Re: Program problem
[Re: Guy Lavoie]
|
Msradell
journeyman
Registered: 08/19/07
Posts: 60
Loc: Louisville, Kentucky
|
Thanks! I knew what was something simple and I was overlooking it. I actually didn't look that close at the alarm system section because I knew the alarm system wasn't being activated or deactivated during that time. So much for my way of thinking!
_________________________
I've learned that there is a fine line between genius and insanity
|
|
Top
|
|
|
|
Moderator: Dan Smith, Monte G, ADI Tech Support, Guy Lavoie
|
0 registered
and 26 anonymous users online.
|
|
2747 Members
19 Forums
3835 Topics
22711 Posts
Max Online: 67 @ 08/16/11 03:08 PM
|
|
|
|
|
|
1
|
2
|
3
|
4
|
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
|
26
|
27
|
28
|
29
|
|
|
|
|
|