Wave pump mode new RA*

Basic / Standard Reef Angel hardware

Posts: 112
Joined: Wed Sep 12, 2012 8:41 am
PostPosted: Fri Apr 20, 2018 11:02 am
Does anyone have any idea why the uapp faults out when I try to swap pump modes?

I programmed it on lagoon and can not change it. I just used the wizard to programming.

When I try to change it it just times out, and does not change.

Any idea?

thanks
riggeek

Image
User avatar
Posts: 2748
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Fri Apr 20, 2018 6:14 pm
did you hard code the mode? or did you program the controller to use the internal memory?

Sent from my XT1585 using Tapatalk

Posts: 112
Joined: Wed Sep 12, 2012 8:41 am
PostPosted: Sat Apr 21, 2018 3:40 am
though I selected internal memory. I can change light time, and levels, kalk dosing, and other things. I just can not change the pumps.
riggeek

Image

Posts: 112
Joined: Wed Sep 12, 2012 8:41 am
PostPosted: Tue Apr 24, 2018 1:54 pm
Do we still think it is programing
riggeek

Image
User avatar
Posts: 2748
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Tue Apr 24, 2018 3:58 pm
riggeek wrote:Do we still think it is programing
post your code.

Sent from my XT1585 using Tapatalk

Posts: 112
Joined: Wed Sep 12, 2012 8:41 am
PostPosted: Sat Apr 28, 2018 6:01 am
#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.h>

////// Place global variable code below here


////// Place global variable code above here


void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
ReefAngel.Star();
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
ReefAngel.FeedingModePortsE[0] = 0;
ReefAngel.FeedingModePortsE[1] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
ReefAngel.WaterChangePortsE[0] = Port1Bit | Port2Bit;
ReefAngel.WaterChangePortsE[1] = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
ReefAngel.OverheatShutoffPortsE[0] = Port3Bit | Port4Bit | Port5Bit;
ReefAngel.OverheatShutoffPortsE[1] = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
ReefAngel.LightsOnPortsE[0] = Port3Bit | Port5Bit;
ReefAngel.LightsOnPortsE[1] = 0;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 790 );
// Feeeding and Water Change mode speed
ReefAngel.DCPump.FeedingSpeed=0;
ReefAngel.DCPump.WaterChangeSpeed=0;

// Ports that are always on
ReefAngel.Relay.On( Box1_Port6 );
ReefAngel.Relay.On( Box1_Port7 );
ReefAngel.Relay.On( Box1_Port8 );

////// Place additional initialization code below here


////// Place additional initialization code above here
}

void loop()
{
ReefAngel.SingleATOLow( Box1_Port1 );
ReefAngel.DosingPumpRepeat1( Box1_Port2 );
ReefAngel.Relay.Set( Box1_Port3, !ReefAngel.Relay.Status( Box1_Port5 ) );
ReefAngel.StandardHeater1( Box1_Port4 );
ReefAngel.StandardLights( Box1_Port5 );
ReefAngel.PWM.DaylightPWMSlope();
ReefAngel.PWM.ActinicPWMSlope();
ReefAngel.DCPump.UseMemory = false;
ReefAngel.DCPump.SetMode( Lagoon,50,10 );
ReefAngel.DCPump.DaylightChannel = None;
ReefAngel.DCPump.ActinicChannel = None;
ReefAngel.DCPump.Daylight2Channel = Sync;
ReefAngel.DCPump.Actinic2Channel = AntiSync;

boolean buzzer=false;
if ( ReefAngel.isATOTimeOut() ) buzzer=true;
if ( ReefAngel.isOverheat() ) buzzer=true;
if ( ReefAngel.isBusLock() ) buzzer=true;
if ( buzzer ) ReefAngel.BuzzerOn(2); else ReefAngel.BuzzerOff();

////// Place your custom code below here


////// Place your custom code above here

ReefAngel.Network.Cloud();
// This should always be the last line
ReefAngel.ShowTouchInterface();
}



// RA_STRING1=U2FsdGVkX19aL/7SAbcu/cSNYLbA2zgwzRGnL+NV8E0=
// RA_STRING2=null
// RA_STRING3=null
// RA_LABEL LABEL_ACTINIC=Actinic
// RA_LABEL LABEL_ACTINIC2=Actinic 2
// RA_LABEL LABEL_DAYLIGHT=Daylight
// RA_LABEL LABEL_DAYLIGHT2=Daylight 2
// RA_LABEL LABEL_PORT11=ATO
// RA_LABEL LABEL_PORT12=Kalk
// RA_LABEL LABEL_PORT13=Rlight
// RA_LABEL LABEL_PORT14=Heater
// RA_LABEL LABEL_PORT15=LED
// RA_LABEL LABEL_PORT16=Rpump
// RA_LABEL LABEL_PORT17=Skim
// RA_LABEL LABEL_PORT18=Wave
// RA_LABEL LABEL_PORT21=Port 21
// RA_LABEL LABEL_PORT22=Port 22
// RA_LABEL LABEL_PORT23=Port 23
// RA_LABEL LABEL_PORT24=Port 24
// RA_LABEL LABEL_PORT25=Port 25
// RA_LABEL LABEL_PORT26=Port 26
// RA_LABEL LABEL_PORT27=Port 27
// RA_LABEL LABEL_PORT28=Port 28
riggeek

Image
User avatar
Posts: 2748
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Sat Apr 28, 2018 2:13 pm
This line says it all:
Code: Select all
ReefAngel.DCPump.UseMemory = false;

Your DC Pump control is hard coded and will not use the internal memory at all. It will always use this:
Code: Select all
ReefAngel.DCPump.SetMode( Lagoon,50,10 );


So, if you want to use the internal memory and control it remotely, you will need to remove the SetMode(Lagoon) line and change the memory line to this:
Code: Select all
ReefAngel.DCPump.UseMemory = true;

Then the controller will always use what values are in Internal Memory. Which means you should set them to a sensible value first, then change the UseMemory line and remove the SetMode line.

Posts: 112
Joined: Wed Sep 12, 2012 8:41 am
PostPosted: Sun Apr 29, 2018 7:44 am
thanks

still a working in progress at this point.
riggeek

Image
User avatar
Posts: 2748
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Sun Apr 29, 2018 11:30 am
riggeek wrote:thanks

still a working in progress at this point.
it seems like they always are...
I know mine is.

Sent from my XT1585 using Tapatalk

Posts: 112
Joined: Wed Sep 12, 2012 8:41 am
PostPosted: Tue May 01, 2018 11:37 am
Still not working right

here is the code again

#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.h>

////// Place global variable code below here


////// Place global variable code above here


void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
ReefAngel.Star();
ReefAngel.AddWaterLevelExpansion(); // Water Level Expansion Module
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
ReefAngel.FeedingModePortsE[0] = Port2Bit | Port7Bit | Port8Bit;
ReefAngel.FeedingModePortsE[1] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
ReefAngel.WaterChangePortsE[0] = Port1Bit | Port2Bit | Port8Bit;
ReefAngel.WaterChangePortsE[1] = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
ReefAngel.OverheatShutoffPortsE[0] = Port3Bit | Port4Bit | Port5Bit;
ReefAngel.OverheatShutoffPortsE[1] = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
ReefAngel.LightsOnPortsE[0] = Port3Bit | Port5Bit;
ReefAngel.LightsOnPortsE[1] = 0;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 790 );
// Feeeding and Water Change mode speed
ReefAngel.DCPump.FeedingSpeed=0;
ReefAngel.DCPump.WaterChangeSpeed=0;

// Ports that are always on
ReefAngel.Relay.On( Box1_Port6 );
ReefAngel.Relay.On( Box1_Port7 );
ReefAngel.Relay.On( Box1_Port8 );

////// Place additional initialization code below here


////// Place additional initialization code above here
}

void loop()
{
ReefAngel.SingleATOLow( Box1_Port1 );
ReefAngel.DosingPumpRepeat1( Box1_Port2 );
ReefAngel.Relay.Set( Box1_Port3, !ReefAngel.Relay.Status( Box1_Port5 ) );
ReefAngel.StandardHeater1( Box1_Port4 );
ReefAngel.StandardLights( Box1_Port5 );
ReefAngel.PWM.DaylightPWMParabola();
ReefAngel.PWM.ActinicPWMParabola();
ReefAngel.DCPump.UseMemory = true;
ReefAngel.DCPump.SetMode( Lagoon,50,10 );
ReefAngel.DCPump.DaylightChannel = None;
ReefAngel.DCPump.ActinicChannel = None;
ReefAngel.DCPump.Daylight2Channel = Sync;
ReefAngel.DCPump.Actinic2Channel = AntiSync;

boolean buzzer=false;
if ( ReefAngel.isATOTimeOut() ) buzzer=true;
if ( ReefAngel.isOverheat() ) buzzer=true;
if ( ReefAngel.isBusLock() ) buzzer=true;
if ( buzzer ) ReefAngel.BuzzerOn(2); else ReefAngel.BuzzerOff();

////// Place your custom code below here


////// Place your custom code above here

ReefAngel.Network.Cloud();
// This should always be the last line
ReefAngel.ShowTouchInterface();
}



// RA_STRING1=U2FsdGVkX1+A7n1/gG5uO89kqJa/wC0XzX2jNCiREAY=
// RA_STRING2=null
// RA_STRING3=null
// RA_LABEL LABEL_ACTINIC=Actinic
// RA_LABEL LABEL_ACTINIC2=wave 2
// RA_LABEL LABEL_DAYLIGHT=Daylight
// RA_LABEL LABEL_DAYLIGHT2=wave 1
// RA_LABEL LABEL_PORT11=ATO
// RA_LABEL LABEL_PORT12=Kalk
// RA_LABEL LABEL_PORT13=Rlight
// RA_LABEL LABEL_PORT14=Heater
// RA_LABEL LABEL_PORT15=LED
// RA_LABEL LABEL_PORT16=Rpump
// RA_LABEL LABEL_PORT17=Skimmer
// RA_LABEL LABEL_PORT18=Wave
// RA_LABEL LABEL_PORT21=Port 21
// RA_LABEL LABEL_PORT22=Port 22
// RA_LABEL LABEL_PORT23=Port 23
// RA_LABEL LABEL_PORT24=Port 24
// RA_LABEL LABEL_PORT25=Port 25
// RA_LABEL LABEL_PORT26=Port 26
// RA_LABEL LABEL_PORT27=Port 27
// RA_LABEL LABEL_PORT28=Port 28
riggeek

Image
Next

Return to Standard

Who is online

Users browsing this forum: No registered users and 4 guests