I have had a CAI Web Control board for a couple of years now. Mostly I use it to open and close my garage doors. I have used a couple of temp sensors to monitor temps around my house. Now I want to take it a little further. I want to monitor my pool water temp and start my solar pump, keep track of the inlet / outlet temp so I don't inadvertantly cool down the pool. In the manual there is an example using a chicken coop temp monitoring to turn on a heater. The example uses C for the temp. Does it matter in the PLC code whether it is F or C? As long as the temp sensor setting is the same as the PLC code? Using this code I could not get the relay to change state.
START
TSTLE T1 235
CALLSUB Pump_ON
TSTGT T1 294
CALLSUB Pump_OFF
END
Pump_ON:
SET OP4 1
RET
Pump_OFF:
SET OP4 0
RET
What am I doing wrong.\? In this example I just wanted to see if I could get the output of OP4 to change, which it never did. The Temp settings were set for C and the temp was 22C
Thanks in advance for any enlightenment.
START
TSTLE T1 235
CALLSUB Pump_ON
TSTGT T1 294
CALLSUB Pump_OFF
END
Pump_ON:
SET OP4 1
RET
Pump_OFF:
SET OP4 0
RET
What am I doing wrong.\? In this example I just wanted to see if I could get the output of OP4 to change, which it never did. The Temp settings were set for C and the temp was 22C
Thanks in advance for any enlightenment.