Page 1 of 1

Switched to internal memory settings

Posted: Fri Mar 28, 2014 7:15 am
by Spotted
Ok so as the title says. I am having trouble now with some items.
I have a couple different outlets that I shut off and on at different times throughout the day. I used to use just standard light and set up times for them, but now I can't they are just standard light and the value I'm assuming is stored in memory. How can I change the time set for individual outlets.
Another thing is my delayed outlets. I want different times for my return pump and skimmer pump to come on. But, of course they are listed both as delayed on ports and seem to have only 1 time set for delay and they both come on at the same time.
What can I do?
I gotta say though I just picked up that bluetooth adapter and it makes life so much easier!! Lonvin it!!

Re: Switched to internal memory settings

Posted: Fri Mar 28, 2014 8:01 am
by rimai
The default internal memory values only allow for 1 time schedule and one offset. It also only allows for one time delay.
But, that doesn't mean you can't use your own memory locations.
Can you post the hardcoded lines you are trying to switch to internal memory?

Re: Switched to internal memory settings

Posted: Fri Mar 28, 2014 9:25 am
by Spotted
These are the 2 main lines I want to customize. If you could just show me how to make custom locations I would really appreciate that.
I assume then that you just call up that location in the code.

ReefAngel.StandardLights(Port6,6,0,22,0); //Turn off powerheads from 10PM to 6AM
ReefAngel.Relay.DelayedOn(Port7, 5); //Skimmer

Re: Switched to internal memory settings

Posted: Fri Mar 28, 2014 9:29 am
by rimai
What are the other time schedule and the other delay values??

Re: Switched to internal memory settings

Posted: Fri Mar 28, 2014 1:35 pm
by Spotted
Ok. daylights from 1-5, actinic 60 minute offset, refugium runs opposite schedule.
return pump (main box port 8) 2 minute delay
skimmer (main box port 7) 5 minute delay

Re: Switched to internal memory settings

Posted: Sat Mar 29, 2014 7:49 pm
by Spotted
Is there a map of memory locations?

Re: Switched to internal memory settings

Posted: Sat Mar 29, 2014 8:36 pm
by Spotted
Here is what I'm trying to duplicate with internal memory settings:

Code: Select all

    ReefAngel.SingleATO( true,Port1,120,1 ); //ATO 2 minutes once every hour
    ReefAngel.StandardLights( Port2,19,0,7,0 ); //Refugium Light on at 7PM off at 7AM
    ReefAngel.StandardLights( Port3,9,0,17,0 ); //Actiinc light on at 9AM off at 5PM
    ReefAngel.StandardLights( Port4,10,0,22,0 ); //Day Light on at 10AM off at 10PM
    ReefAngel.StandardLights( Port5,6,0,22,0 ); //Wave Maker on at 6AM off at 10PM
    ReefAngel.Relay.DelayedOn( Port7,5 ); //Skimmer delayed on 5 minutes
    ReefAngel.Relay.DelayedOn( Port8,2 ); //Return Pump delayed on 2 minutes
    ReefAngel.Relay.DelayedOn( Box1_Port2,2 ); //Reactor delayed on 2 mintes
    ReefAngel.StandardLights( Box1_Port7,13,0,20,0 ); //White LED on at 1PM off at 8PM
    ReefAngel.StandardLights( Box1_Port8,12,0,21,0 ); //Actinic LED on at 12PM off at 9PM

Re: Switched to internal memory settings

Posted: Sat Mar 29, 2014 9:15 pm
by lnevo
Spotted wrote:Is there a map of memory locations?
Globals/Globals.h

Looks for the word VarsStart

Re: Switched to internal memory settings

Posted: Mon Mar 31, 2014 8:11 am
by rimai
You can specify each memory location starting at 100.
So, for example something like this:

Code: Select all

#define Port2LightsHourOn 100
Then, you can read the value of memory location 100 by using this code:

Code: Select all

InternalMemory.Read(100)