WP40 confusion

New members questions
Post Reply
Fanienel
Posts: 6
Joined: Fri Jul 04, 2014 12:54 am
Location: Johannesburg, South Africa

WP40 confusion

Post by Fanienel »

Hi,
I am new to this so please excuse the basic question:

I have one WP40 connected to the RA using a dimmer port. I would like a gentle flow during the night, a more vigorous flow in the day with a hour of nutrient transport. Here is the code:

Code: Select all


void loop()
{
    ReefAngel.StandardHeater( Port3,250,270 );
    ReefAngel.StandardHeater( Port4,250,270 );
    ReefAngel.Relay.DelayedOn( Port5,10 );
    ReefAngel.WavemakerRandom( Port6,60,100 );
    ReefAngel.DCPump.UseMemory = false;
    ReefAngel.DCPump.SetMode( ReefCrest,30,30 );
    ReefAngel.DCPump.DaylightChannel = Sync;
   // ReefAngel.DCPump.ActinicChannel = None;
    ////// Place your custom code below here
    

    ////// Place your custom code above here
    
    if (hour()>=21 || hour()<8)
        {
     //       ReefAngel.RF.UseMemory=false;
            ReefAngel.DCPump.SetMode(Lagoon,30,90);
      //      ReefAngel.DCPump.DaylightChannel = Sync;
            ReefAngel.Relay.Off( Port6 );
        }
    else if (hour()>=9 && hour()<10)
        {
           // ReefAngel.RF.UseMemory=false;
            ReefAngel.DCPump.SetMode( NutrientTransport,60,10 );
           ReefAngel.DCPump.DaylightChannel = Sync;
        }
        else
            {
           // ReefAngel.RF.UseMemory=false;
            ReefAngel.DCPump.SetMode(ReefCrest,40,30);
      //      ReefAngel.DCPump.DaylightChannel = Sync;
            
            ReefAngel.WavemakerRandom( Port6,60,100 );
        };


Now:
[*]Could I have a speed as low as 30 in the Lagoon mode? - The pump does not run.
[*]On the RA display and the portal I get an RF Expansion module readout with Vortech and Radion data as wel as a DC Pump readout. Did I somehow switched this on in the code?
[*]What does

Code: Select all

 //      ReefAngel.DCPump.DaylightChannel = Sync;
and

Code: Select all

// ReefAngel.RF.UseMemory=false;
do?

Thank you
Fanie
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: WP40 confusion

Post by lnevo »

If you mention ReefAngel.RF in your code. Even if it's commented out, the compiler will think you have that module and enable it. No harm though, just will use up more memory. 30% is probably too low. The WP pumps usually cut out if too low a voltage and it's right around there. Each one varies slightly.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: WP40 confusion

Post by lnevo »

Fanienel wrote: [*]What does

Code: Select all

 //      ReefAngel.DCPump.DaylightChannel = Sync;
This line tells the DCPump library that your Daylight Channel pump is in Sync mode. If you had more than one pump, you would usually want one pump in Sync and one in Anti-Sync. With only one pump it doesn't matter, but you can't put None or nothing would happen. You should uncomment this, could be part of your problem.
Fanienel wrote: and

Code: Select all

// ReefAngel.RF.UseMemory=false;
do?
If you were using the RF module, it would tell the code to use the values you set and not what is stored in memory. There is a similar method for the DCPump library. ReefAngel.DCPump.UseMemory. It does the same thing and in your case you do want to set it to false since you are overriding the defaults with your time schedule.
Fanienel
Posts: 6
Joined: Fri Jul 04, 2014 12:54 am
Location: Johannesburg, South Africa

Re: WP40 confusion

Post by Fanienel »

Thank you Lee
Post Reply