Need Help with Programing

steved350

Member
I need my fan to come on when either of my LT1 or LT2 are on. Can I tie my fan to more than one timer? I would also like to use my fan to aid in cooling before my chiller came on. Can any body help me out?

I thought it would look like:
If LT1 = on the Fan on
If LT1 = Off the Fan Off
If LT2 = ON then Fan on
If LT2 = OFF then FAN OFF
If Temp >80.1 then fan on
If Temp <80.0 then fan off

This did not work for some reason. I am new to programing this thing. Is there a list of commands you can use?
 
If you want to control a timer based on > 1 timers then you can program either on OR off but not both. The reason you cannot control both on/off is because then the last statement wins and it will override the 1st.

For example:

If Time > 00:00 Then FAN Off
If LT1 = on the Fan on
If LT2 = ON then Fan on
If Temp >80.1 then fan on
 
I keep getting some kind or error when I add the section of code you gave me to use. Where did I go wrong? Here is my code and timers:
LT1$-A1
LT2$-A2
PM1#-A3
PM2#-A4
HET%-A5
COL%-A6
OZN&-A7
CO2&-B8
ALM&-A9
FAN%-A8


If Time > 08:30 Then LT1 ON
If Time > 21:30 Then LT1 OFF
If Time > 10:30 Then LT2 ON
If Time > 20:30 Then LT2 OFF
If Temp > 81.0 Then COL ON
If Temp < 80.5 Then COL OFF
If Temp > 82.0 Then LT2 OFF
If Temp < 81.0 Then LT2 ON
If Temp > 81.5 Then LT1 OFF
If Temp < 81.0 Then LT2 ON
If Temp < 78.9 Then HET ON
If Temp > 79.0 Then HET OFF
OSC 010/010 ON/OFF Then PM1 ON
OSC 010/010 ON/OFF Then PM2 OFF
If FeedA 000 Then PM1 OFF
If FeedA 000 Then PM2 OFF
If ORP < 365 Then OZN ON
If ORP > 385 Then OZN OFF
If pH > 08.45 Then CO2 ON
If pH < 08.35 Then CO2 OFF
If Time > 00:00 Then ALM OFF
If pH > 08.50 Then ALM ON
If pH < 08.00 Then ALM ON
If ORP > 450 Then ALM ON
If ORP < 300 Then ALM ON
If Temp < 77.0 Then ALM ON
If Temp > 82.0 Then ALM ON
 
I copied/pasted from your post and didn't bother fixing syntax; this should work:

If Time > 00:00 Then FAN Off
If Timer LT1 = ON the FAN on
If Timer LT2 = ON then FAN on
If Temp > 80.1 then FAN on
 
There is an issue with line 1

This is the error I got:

Line number :1 -> If time > 00:00 Then Fan OFF

Expected ON, OFF, Or PFx

Does this mean anything to you?
 
Back
Top