using ato flag to turn off port

Do you have a question on how to do something.
Ask in here.
Post Reply
bkc6868
Posts: 91
Joined: Wed Sep 02, 2015 4:39 pm

using ato flag to turn off port

Post by bkc6868 »

Is there a way to turn off port 5(skimmer) if the ato times out? last night for some reason my skimmer started overflowing and filling my skimmate bottle. This caused my ato to time out and skimmer kept draining water into skimmate bottle almost over filling it it. i want to shutoff skimmer if ato trips the time set and sends a flag.
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: using ato flag to turn off port

Post by rimai »

Try this:

Code: Select all

if (ReefAngel.isATOTimeout()) ReefAngel.Relay.Off(Port5);
Roberto.
bkc6868
Posts: 91
Joined: Wed Sep 02, 2015 4:39 pm

Re: using ato flag to turn off port

Post by bkc6868 »

Thanks
Image
bkc6868
Posts: 91
Joined: Wed Sep 02, 2015 4:39 pm

Re: using ato flag to turn off port

Post by bkc6868 »

error compiling
Compiling code for RA_STAR board

Number of Relay Expansion Modules: 1
Relay Expansion Module
Dimming Signal
Reef Angel Star
firmware.ino: In function 'void loop()':
firmware.ino:105:19: error: 'class ReefAngelClass' has no member named 'isATOTimeout'
if (ReefAngel.isATOTimeout()) ReefAngel.Relay.Off(Port5);
^
exit status 1

Progress: 41.38%
Your code has some errors and couldn't be compiled.
Please fix the errors above and try again.
Image
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: using ato flag to turn off port

Post by binder »

One thing to note, since you are using the Star, you cannot use Port5 to reference the port on the main relay box. The Star has no default/master relay box and therefore all ports are actually on the first relay box. So all Port5 should be Box1_Port5.

As for your error, there is an error with the code. It should read like this:

Code: Select all

if(ReefAngel.isATOTimeOut()) ReefAngel.Relay.Off(Box1_Port5);
The letter O in timeout should be capitalized according to the libraries.
bkc6868
Posts: 91
Joined: Wed Sep 02, 2015 4:39 pm

Re: using ato flag to turn off port

Post by bkc6868 »

Thank you Curt
Image
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: using ato flag to turn off port

Post by binder »

bkc6868 wrote:Thank you Curt
welcome

Sent from my XT1585 using Tapatalk
Post Reply