wave maker port question
Posted: Wed Mar 11, 2015 6:43 am
Does it matter what ports are used for wave maker functions or when they can be turned on or off?
I have four power heads that I'm trying to control at different times of day. During the day I want the larger ports on with a random on/off time. They work fine on ports 5 and 6. However, the smaller power heads on port 7 and 8 seem to come on all the time and never turn off. I'm pretty sure it is my code but figured I would check to see if maybe I'm also being over written or using something incorrectly. Once the smaller ports turn on, on 7 and 8 ports they never turn off.
Thanks.
-scottf
Code sample:
ReefAngel.StandardLights( Port2,9,0,21,0 );
ReefAngel.StandardLights( Port4,9,0,21,0 ); // LED fans
ReefAngel.WavemakerRandom(Port5,25,60);
ReefAngel.WavemakerRandom(Port6,25,60);
ReefAngel.WavemakerRandom(Port7,25,60);
ReefAngel.WavemakerRandom(Port8,25,60);
////// Place your custom code below here
// Turn Port5 on/off random cycles that lasts from 25 to 60 secs
ReefAngel.Relay.Set(Port6,!ReefAngel.Relay.Status(Port5));
ReefAngel.Relay.Set(Port8,!ReefAngel.Relay.Status(Port7));
// Turn Port6 on/off on opposite cycle as Port 5
// This will turn off both relays at a set time
if (hour()>=20 || hour()<10)
{
ReefAngel.Relay.Off(Port5); // large power head
ReefAngel.Relay.Off(Port6); // large power head
ReefAngel.Relay.Off(Port4); // LED fans
ReefAngel.Relay.On(Port7); // Small power head for night
ReefAngel.Relay.On(Port8); // Small power head for night
}
I have four power heads that I'm trying to control at different times of day. During the day I want the larger ports on with a random on/off time. They work fine on ports 5 and 6. However, the smaller power heads on port 7 and 8 seem to come on all the time and never turn off. I'm pretty sure it is my code but figured I would check to see if maybe I'm also being over written or using something incorrectly. Once the smaller ports turn on, on 7 and 8 ports they never turn off.
Thanks.
-scottf
Code sample:
ReefAngel.StandardLights( Port2,9,0,21,0 );
ReefAngel.StandardLights( Port4,9,0,21,0 ); // LED fans
ReefAngel.WavemakerRandom(Port5,25,60);
ReefAngel.WavemakerRandom(Port6,25,60);
ReefAngel.WavemakerRandom(Port7,25,60);
ReefAngel.WavemakerRandom(Port8,25,60);
////// Place your custom code below here
// Turn Port5 on/off random cycles that lasts from 25 to 60 secs
ReefAngel.Relay.Set(Port6,!ReefAngel.Relay.Status(Port5));
ReefAngel.Relay.Set(Port8,!ReefAngel.Relay.Status(Port7));
// Turn Port6 on/off on opposite cycle as Port 5
// This will turn off both relays at a set time
if (hour()>=20 || hour()<10)
{
ReefAngel.Relay.Off(Port5); // large power head
ReefAngel.Relay.Off(Port6); // large power head
ReefAngel.Relay.Off(Port4); // LED fans
ReefAngel.Relay.On(Port7); // Small power head for night
ReefAngel.Relay.On(Port8); // Small power head for night
}