Sunrise/Sunset Offset

Discussion in 'Pascal Logic Code Examples' started by jackaroos, Nov 30, 2017.

  1. jackaroos

    jackaroos

    Joined:
    Apr 8, 2014
    Messages:
    17
    Likes Received:
    0
    Location:
    New Zealand
    Hi
    I have a large system where schedule plus is the interface updating 40 PAC's with the scheduling as changed in Schedule Plus.

    All this is working well. eg changing times, day of week, schedule types (fixed/sunrise/sunset)...

    But, there does not seem to be a system IO to change the sunrise or sunset offset, ie the + - next to schedule time on the Time tab in the schedule.

    upload_2017-11-30_13-54-32.png

    Does it exist? It does not say so in the help, but pretty much everything else is there, so this should be too...??

    Thanks! :)
     
    jackaroos, Nov 30, 2017
    #1
  2. jackaroos

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,548
    Likes Received:
    178
    Location:
    Adelaide, Australia
    According to the help file when you select sunset/sunrise as the schedule type the "Schedule Time" becomes the offset.
     
    Ashley, Nov 30, 2017
    #2
  3. jackaroos

    jackaroos

    Joined:
    Apr 8, 2014
    Messages:
    17
    Likes Received:
    0
    Location:
    New Zealand
    Hi Ashley.
    That is correct, the schedule time becomes the offset. Sorry I was not clear enough in my description!

    To clarify, I need to set whether the offset is before or after sunset, the equivalent of the + or - in the Time tab. The offset direction.

    Thanks :)
     
    jackaroos, Nov 30, 2017
    #3
  4. jackaroos

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,548
    Likes Received:
    178
    Location:
    Adelaide, Australia
    The time is stored as an integer number of seconds. I assume it can be -ve :)
     
    Ashley, Nov 30, 2017
    #4
  5. jackaroos

    jackaroos

    Joined:
    Apr 8, 2014
    Messages:
    17
    Likes Received:
    0
    Location:
    New Zealand
    Thanks! Don't know why I didn't think of that! Will give it a go :)
     
    jackaroos, Nov 30, 2017
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.