I have read a ton of threads and discussion on the use of the seasonal tables and the If Sun/ If Moon functions for the Apex. What I can't find is anyone explaining in detail the actual specifics of the commands as well as what the limits are.
For instance what is the largest value allowed for sunrise and sunset offset times? is it 999 due to the three digits or something smaller? I see a ton of examples using 360 or 600 but can these go higher?
What if I don't want to modify the default season table and just want to make my code work with it with longer offsets?
I found the limit on the ramp time value by accident. I was trying to do a very long and slow ramp and tried to enter something over 255. When I updated the outlet is changed the value to (value - 255).
Also why does the sunset statement come before the daytime statement?
What is the relationship between the three statements?
For instance:
Wht_LED (varspd outlet. Use for both white channels)
Fallback OFF
Set OFF
If Sun 240/-120 Then Wht_Up This starts the profile 4 hours after sunrise and ramps down 2 hours before sunset. but why do we need to specify a rampdown setting if the next profile is going to run before the ramp down?
If Sun 600/180 Then Wht_Down This starts the profile 10 hours after sunrise and ramps down 3 hours after sunset. Is the sunset ramp down time derived from the ramp time in the Profile?. is 10 hours after sunrise the same as sunset equal to 000 as seen in the Daytime statement below?
If Sun 360/000 Then Wht_Day This starts the profile 6 hours after sunrise and ramps down at sunset. Is the 360 number a combination of the Wht_Up sunrise offset + the ramp time of Wht_Up?
If my morning ramp up time and night ramp down time are the same does that mean that I could complete this same effect using two statements? Like below?
If Sun 240/180 Then Wht_Up
If Sun 360/000 Then Wht_Day
Are all of these details posted or written somewhere that I haven't found? There has to be more to it than just copying the examples on the forum or using the calculator on reeftronics (which didn't work for me because I wanted longer ramp times and not knowing I couldn't do more than 255). Help! Krazie
Bookmarks