Switched to internal memory settings

Do you have a question on how to do something.
Ask in here.
Post Reply
Spotted
Posts: 101
Joined: Thu May 10, 2012 5:46 am
Location: Sunny (and hot) South Florida

Switched to internal memory settings

Post 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!!
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Switched to internal memory settings

Post 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?
Roberto.
Spotted
Posts: 101
Joined: Thu May 10, 2012 5:46 am
Location: Sunny (and hot) South Florida

Re: Switched to internal memory settings

Post 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
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Switched to internal memory settings

Post by rimai »

What are the other time schedule and the other delay values??
Roberto.
Spotted
Posts: 101
Joined: Thu May 10, 2012 5:46 am
Location: Sunny (and hot) South Florida

Re: Switched to internal memory settings

Post 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
Image
Spotted
Posts: 101
Joined: Thu May 10, 2012 5:46 am
Location: Sunny (and hot) South Florida

Re: Switched to internal memory settings

Post by Spotted »

Is there a map of memory locations?
Image
Spotted
Posts: 101
Joined: Thu May 10, 2012 5:46 am
Location: Sunny (and hot) South Florida

Re: Switched to internal memory settings

Post 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
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Switched to internal memory settings

Post by lnevo »

Spotted wrote:Is there a map of memory locations?
Globals/Globals.h

Looks for the word VarsStart
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Switched to internal memory settings

Post 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)
Roberto.
Post Reply