PDA

View Full Version : Break Out Box Switch programing


MxReEfEr92
05/10/2014, 02:30 AM
I am trying to write the code for having an ATO low email alert and I keep getting an error message.

This is what I am trying to put in for EmailAlarm

Set OFF
If Temp > 82.0 Then ON
If Temp < 75.0 Then ON
If ATOLOW Is CLOSED Then ON
If ATOLOW Is OPEN Then OFF

But I get a message saying:

//Error: line 4 - Expected CLOSED or OPEN // If ATOLOW Is CLOSED Then ON
//Error: line 5 - Expected CLOSED or OPEN // If ATOLOW Is OPEN Then OFF

What am I doing wrong?

chris_kitedude
05/10/2014, 02:38 AM
remove the "Is" from the coding and it will work.

MxReEfEr92
05/10/2014, 02:57 AM
remove the "Is" from the coding and it will work.

Perfect! Thank you so much!

chris_kitedude
05/10/2014, 02:14 PM
good to hear it worked out. happy reefing. :-)

reefrobster
05/19/2014, 11:27 AM
Sweet. I was looking to do the same thing with my ATO. Going to try it when I get home tonight.