Relay Expansion box issues

New members questions

Posts: 51
Joined: Sun Aug 20, 2017 6:19 am
PostPosted: Tue Aug 22, 2017 9:45 am
Hi I am new here and apologetically clueless and lost.

I have gotten things up and running with the wizard, but when I try and do anything once my relay expansion box is connected, I keep getting the following error:

RelayExpansionTester:59: error: 'class ReefAngelClass' has no member named 'OverheatShutoffPortsE'

I have a relay expansion module and an expansion hub.
Have tried various cable configurations and followed the manual but to no avail. Any help will be much appreciated.
User avatar
Posts: 2732
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Tue Aug 22, 2017 9:52 am
Did you use the wizard and tell it you had a Relay Expansion box?
The wizard will automatically include all the proper files necessary. If you did use the wizard to generate the code, could you post your full code so we can see what it says and see where the problem lies.

Posts: 51
Joined: Sun Aug 20, 2017 6:19 am
PostPosted: Tue Aug 22, 2017 10:06 am
Yes I used the wizard again now and having same isue.

I have the expansion hub plugged into my original relay box, and a relay expansion module bussed into the expansion hub, and the data cable running from relay expansion module to the expansion relay box.

clude <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.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 <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <DCPump.h>
#include <PAR.h>
#include <ReefAngel.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.SetTemperatureUnit( Celsius ); // set to Celsius Temperature

ReefAngel.AddStandardMenu(); // Add Standard Menu

ReefAngel.Use2014Screen(); // Let's use 2014 Screen
ReefAngel.AddWaterLevelExpansion(); // Water Level Expansion Module
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit;
ReefAngel.FeedingModePortsE[0] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port5Bit | Port6Bit | Port8Bit;
ReefAngel.WaterChangePortsE[0] = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port2Bit | Port4Bit;
ReefAngel.LightsOnPortsE[0] = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit | Port2Bit | Port4Bit | Port7Bit;
ReefAngel.OverheatShutoffPortsE[0] = Port1Bit | Port4Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 280 );


// Ports that are always on
ReefAngel.Relay.On( Port5 );

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


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

void loop()
{
ReefAngel.StandardLights( Port1,9,0,21,0 );
ReefAngel.StandardLights( Port2,11,0,20,0 );
ReefAngel.StandardLights( Port3,0,0,21,30 );
ReefAngel.StandardLights( Port4,0,0,21,30 );
ReefAngel.WaterLevelATO( Port6,300,88,100 );
ReefAngel.StandardHeater( Port7,244,270 );
ReefAngel.Relay.DelayedOn( Port8,3 );
////// Place your custom code below here


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

// This should always be the last line
ReefAngel.ShowInterface();

Posts: 12202
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Tue Aug 22, 2017 10:27 am
You must set at least one port on the expansion box to something instead of all unused.
Roberto.

Posts: 51
Joined: Sun Aug 20, 2017 6:19 am
PostPosted: Tue Aug 22, 2017 12:41 pm
Thank you, felling a bit dumber than I am.

Return to For New Members

Who is online

Users browsing this forum: No registered users and 4 guests

cron