Page 1 of 1
Wavemaker extended time
Posted: Wed May 02, 2012 11:30 am
by Threedo
is there a way to turn the wavemaker on for say 1 hour then off for 10 minutes then on for 1 hour and off for 10 minutes or something along these lines?
i only see it goes up to a minute or so.
Re: Wavemaker extended time
Posted: Wed May 02, 2012 3:52 pm
by rimai
Yes, but the cycles are symetric on the standard wavemaker function.
So, if you use this:
You would get a wavemaker on for 1h and off for 1h.
If you want on for 1h and off for 10 minutes, we'll have to create a custom function.
But, if the total cycle is 1hr, you could use this:
Code: Select all
ReefAngel.Relay.On(Port5);
if (minute()<10) ReefAngel.Relay.Off(Port5);
The code above would turn the port off whenever the minutes of the hour are less than 10.
Let me know if you need a custom function.