Apex lighting schedule help

Snprhed

Active Member
View Badges
Joined
Jul 6, 2008
Messages
210
Reaction score
1
Rating - 0%
0   0   0
So im pretty new to apex programming. For whatever reason the "language" has been difficult for me to get. Once i have something, i am usually ok with manipulating it.

So i am looking at doing a non-clock based lighting schedule (kinda). A 4 hour on 8 hour off schedule. I currently have 2 separate tanks that operate on opposing lighting schedules (more for heat distribution then ph). So im having difficulty figuring out the starting statement to keep them on opposing photo periods
 

CJO

Valuable Member
View Badges
Joined
Jun 15, 2010
Messages
2,400
Reaction score
186
Location
Charlotte, NC
Rating - 0%
0   0   0
You can use either purely time-based programming (easier to understand) or you can use the OSC statement (perhaps more elegant).

Time-based

System 1
Fallback OFF
Set OFF
If Time 00:00 to 04:00 Then ON
If Time 04:00 to 12:00 Then OFF
If Time 12:00 to 16:00 Then ON
If Time 16:00 to 24:00 Then OFF

System 2
Fallback OFF
Set OFF
If Time 00:00 to 08:00 Then OFF
If Time 08:00 to 12:00 Then ON
If Time 12:00 to 20:00 Then OFF
If Time 20:00 to 24:00 Then OFF


Or, using the OSC command, you would do this

System 1
Fallback OFF
Set OFF
OSC 480/240/000 Then ON

System 2
Fallback OFF
Set OFF
OSC 240/480/000 Then OFF

CJ
 

Managing real reef risks: Do you pay attention to the dangers in your tank?

  • I pay a lot of attention to reef risks.

    Votes: 90 43.9%
  • I pay a bit of attention to reef risks.

    Votes: 70 34.1%
  • I pay minimal attention to reef risks.

    Votes: 31 15.1%
  • I pay no attention to reef risks.

    Votes: 12 5.9%
  • Other.

    Votes: 2 1.0%

New Posts

Back
Top