Can someone please help me combine these statements
ReefAngel.Relay.DelayedOn( Box1_Port3,0 ); //Skimmer
// if ( ReefAngel.HighATO.IsActive() == 0 ) ReefAngel.Relay.Off( Box1_Port3 );
if ( ReefAngel.Relay.Status( Port6 ) ) ReefAngel.Relay.Off( Box1_Port3 );
when this code is used... the skimmer never turns on.... (I've toggled between 1 and 0 on the isactive () command)
any help would be great. trying to setup a multi layered condition where if the return pump is off or ATO High is triggered (skim bucket) then skimmer is off else on. Also on all restarts it waits 2 mins to kick on (I have it set to 0 for testing)
Skimmer Code Help
Re: Skimmer Code Help
Probably because port 6 is on and it is turning off box1_port.
If you do two statements, the last one will always overwrite any previous condition. You need to make it into one statement.
If you do two statements, the last one will always overwrite any previous condition. You need to make it into one statement.
Roberto.
Re: Skimmer Code Help
Code: Select all
if ( ReefAngel.HighATO.IsActive() == 0 || !ReefAngel.Relay.Status(Port6) ) {
ReefAngel.Relay.Off( Box1_Port3 );
} else {
ReefAngel.Relay.DelayedOn( Box1_Port3,0 ); //Skimmer
}
Re: Skimmer Code Help
10pm on till 4pm off worked for me