Results 1 to 15 of 15

Thread: LSM Ramping

  1. #1
    New User
    Join Date
    Mar 2018
    Location
    EST
    Posts
    7

    LSM Ramping

    My goal is to run the lunar program on my LSM. But i would like it to ramp for an hour at the beginning and at the end. I have created profiles for moonrise and for moonset. But I dont know what times to change in the "Moon 000/000". What should I change the times to in the following program? thank you

    Set OFF
    If moon 000/000 then moonrise
    if moon 000/000 then on
    if moon 000/000 then moonset

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Assuming this is a 1 hour ramp

    Set OFF
    If moon 000/-360 then moonrise
    if moon 360/000 then moonset
    if moon 060/-060 then ON



    Sent from my SM-G965U using Tapatalk

  3. #3
    New User
    Join Date
    Mar 2018
    Location
    EST
    Posts
    7
    thank you for the help. Can you tell me why you use "360"? What is that value?

  4. #4
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by Fish finder View Post
    thank you for the help. Can you tell me why you use "360"? What is that value?
    It's a value Russ and I have found to work for the vast majority of sun/moon ramping that prevents overlap when using multiple ramps so the code "stacks" correctly. It's just a default number that doesn't really affect the code.

    Sent from my SM-G965U using Tapatalk

  5. #5
    New User
    Join Date
    Mar 2018
    Location
    EST
    Posts
    7
    Awesome thank you so much, I am new to apex. Only had it about 1 week. The program is was thinking is...

    Set off
    If moon 000/059 then moonrise
    if moon 060/-060 then moonshine
    if moon -059/000 then moonset

    the moonrise, moonset, and moonshine are ramping profiles that i created.
    is that incorrect? its my first attempt at a rather complex programming.

  6. #6
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    No. When using sun and moon, midday needs to be last so the moon statements overlap correctly. Unlike time statements the order needs to be farthest from midday first to midday last instead of the order they actually occur so they stack and overwrite each other properly.

    Sent from my SM-G965U using Tapatalk

  7. #7
    Frequent Visitor LobsterOfJustice's Avatar
    Join Date
    Jun 2013
    Location
    Cary, NC
    Posts
    859
    For my understanding, since I am trying to do something similar, what is the programming of the associated profiles?


    Sent from my iPhone using Tapatalk
    180g reef with all the bells and whistles

  8. #8
    New User
    Join Date
    Mar 2018
    Location
    EST
    Posts
    7
    Quote Originally Posted by zombie View Post
    No. When using sun and moon, midday needs to be last so the moon statements overlap correctly. Unlike time statements the order needs to be farthest from midday first to midday last instead of the order they actually occur so they stack and overwrite each other properly.

    Sent from my SM-G965U using Tapatalk
    ok im trying to understadn what you are saying. I get the part about midday, and ordering the statements. But i dont understand how those values equate to midday. 360=6 hours?
    ill rewrite my program to match yours

  9. #9
    New User
    Join Date
    Mar 2018
    Location
    EST
    Posts
    7
    Set OFF
    If Moon 000/-360 Then moonrise
    If Moon 360/000 Then moonset
    If Moon 060/-060 Then 50

    profiles are 1 hour ramping up to 50%, then back down from 50% to 0

  10. #10
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    That would work. Do note however that the actual intensity will not always be 50. The moon statement will multiply the nominal intensity (in the above case 50) by the current moon intensity which is 100% for a full moon and 0% for a new moon.

    Sent from my SM-G965U using Tapatalk

  11. #11
    New User
    Join Date
    Mar 2018
    Location
    EST
    Posts
    7
    yes im looking for a max of 50%, can you explain a little more about using 360 and -360 as start and stop times? I cant find any info in apex manuals

  12. #12
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    This was made for sun but applies to moon as well. As mentioned before the actual value where I put 360 can be many things and still work in a lot of cases. The 360 was standardized because it works for the vast majority including multiple levels of ramp up and ramp down.

    Sent from my SM-G965U using Tapatalk

  13. #13
    New User
    Join Date
    Mar 2018
    Location
    EST
    Posts
    7
    Ok im starting to understand. The actual 360 is an arbitrary number for my particular application. Thank you for fixing this for me

  14. #14
    Aquaphile
    Join Date
    Apr 2018
    Location
    California, USA
    Posts
    70
    I’m also a little confused on the “ramp up”. Does this mean that with the above example the light will start at 50% of whatever that days moon phase is. After one hour it will be at 100% of this phase. As an example if the schedule for the day is for a full moon it will ramp up from 50% to 100% over the course of one hour?

  15. #15
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by MrT View Post
    I’m also a little confused on the “ramp up”. Does this mean that with the above example the light will start at 50% of whatever that days moon phase is. After one hour it will be at 100% of this phase. As an example if the schedule for the day is for a full moon it will ramp up from 50% to 100% over the course of one hour?
    His will start at 0 and ramp up to 50% of whatever that says intensity is I believe.

    Sent from my SM-G965U using Tapatalk

Similar Threads

  1. Program LSM ramping for longer than 255 minutes
    By lokpoon in forum Apex Programming for Lighting
    Replies: 2
    Last Post: 06-22-2022, 16:31
  2. Clicknoise when ramping up/down
    By Blue-Tang-Clan in forum SKY Reef Aquarium Light
    Replies: 2
    Last Post: 11-30-2021, 10:35
  3. ramping up leds
    By Chuck in forum Misc Apex Usage & Programming
    Replies: 4
    Last Post: 06-17-2018, 09:40
  4. LSM Ramping with season table
    By TGolbus in forum Apex Programming for Lighting
    Replies: 2
    Last Post: 07-15-2016, 02:24
  5. ramping
    By cal_stir in forum Apex Programming for Lighting
    Replies: 1
    Last Post: 10-06-2013, 13:19

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •