using ato flag to turn off port

Do you have a question on how to do something.
Ask in here.

Posts: 95
Joined: Wed Sep 02, 2015 4:39 pm
PostPosted: Sat Apr 21, 2018 5:46 am
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

Posts: 12306
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sun Apr 22, 2018 5:20 pm
Try this:
Code: Select all
if (ReefAngel.isATOTimeout()) ReefAngel.Relay.Off(Port5);
Roberto.

Posts: 95
Joined: Wed Sep 02, 2015 4:39 pm
PostPosted: Sun Apr 22, 2018 5:41 pm
Thanks
Image

Posts: 95
Joined: Wed Sep 02, 2015 4:39 pm
PostPosted: Tue Apr 24, 2018 5:50 pm
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
User avatar
Posts: 2748
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Tue Apr 24, 2018 6:38 pm
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.

Posts: 95
Joined: Wed Sep 02, 2015 4:39 pm
PostPosted: Tue Apr 24, 2018 7:05 pm
Thank you Curt
Image
User avatar
Posts: 2748
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Wed Apr 25, 2018 3:35 am
bkc6868 wrote:Thank you Curt
welcome

Sent from my XT1585 using Tapatalk

Return to How do I code ...

Who is online

Users browsing this forum: No registered users and 1 guest

cron