Page 1 of 1
Wavemaker only on with daylights?
Posted: Sat Dec 21, 2013 9:12 pm
by AndyC
I just set up my RA a week or so ago and used the wizard. I have zero coding experience so just kept it simple. Before the RA, I had a wavemaker plugged into the powerstrip for the daylights so things would calm down at night. Is there a way to have the RA wavemaker (ports 5 and 6) only operate when the daylights (port 3) are on? Ideally, could I do that through the wizard or edit the code I saved after running the wizard? Thanks a lot!!
Re: Wavemaker only on with daylights?
Posted: Sun Dec 29, 2013 9:00 am
by AndyC
Anyone?
Re: Wavemaker only on with daylights?
Posted: Sun Dec 29, 2013 9:07 am
by rimai
What type of wavemaker? Are they always turned on or you are turning them on/off in a cycle?
Can you post your code?
Re: Wavemaker only on with daylights?
Posted: Sun Dec 29, 2013 9:13 am
by AndyC
I jus ran the wizard to have #5 turn on/off every 10 seconds and #6 turn on/off every 10 seconds. I'd like both to shut down when the daylights go off and come back on when they come on. They just run 24/7 now. I can try to cut/paste my wizard code if that helps.
Re: Wavemaker only on with daylights?
Posted: Sun Dec 29, 2013 9:19 am
by rimai
Try this:
Code: Select all
if (!ReefAngel.Relay.Status(Port3)
{
ReefAngel.Relay.Off(Port5);
ReefAngel.Relay.Off(Port6);
}
Re: Wavemaker only on with daylights?
Posted: Sun Dec 29, 2013 9:44 am
by AndyC
That worked, thank you!!!