Ramp times

Discussion in 'C-Bus Automation Controllers' started by ssaunders, Sep 13, 2022.

  1. ssaunders

    ssaunders

    Joined:
    Dec 17, 2008
    Messages:
    145
    Likes Received:
    17
    Location:
    Melbourne
    I think I understand ramps. Happy to be corrected.

    On a NAC/SHAC, if an object/group is at zero, and I specify a SetCBusLevel to 255 over eight seconds, then the ramp takes eight seconds.

    But if a group is zero, and I set it to go to 127 over eight seconds, then the ramp takes four seconds, being the time it would take getting to 127 on its way to an ultimate level 255, which it will never reach.

    The same goes for an eight second ramp of 127 to 145, which is an eventual total ramping time of around 0.6 seconds.

    So is this correct logic? Ramp = ramp rate, which is not the same as time to transition from one state to another.

    School me for why should my thinking be busted.
     
    ssaunders, Sep 13, 2022
    #1
    1. Advertisements

  2. ssaunders

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,484
    Likes Received:
    170
    Location:
    Adelaide, Australia
    Correct. That's why it's called a ramp 'rate' not a ramp 'time' :)
     
    Ashley, Sep 13, 2022
    #2
    ssaunders likes this.
    1. Advertisements

  3. ssaunders

    ssaunders

    Joined:
    Dec 17, 2008
    Messages:
    145
    Likes Received:
    17
    Location:
    Melbourne
    :D:D:D

    And "I think I understand" instantly turns into "Yup. I got it." Thanks @Ashley. I can not believe it's been over a decade until I've actually really looked at the detail of a ramp (rate). :oops:
     
    ssaunders, Sep 13, 2022
    #3
  4. ssaunders

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,484
    Likes Received:
    170
    Location:
    Adelaide, Australia
    Some more useless information:
    There a 16 ramp rates because the ramp rate is enconded using 4 bits in the protocol.
    The intervals are counted in about 16mS increments (can't remember the exact figure), so with a 16 bit counter you have a maximum time interval of 65536 * 16mS = 1048576mS = about 17.5 minutes, which is why 17 minutes is the longest ramp rate. Made it easy to implement in the original (slow) microprocessors of the late 90's.
     
    Ashley, Sep 14, 2022
    #4
    Mr Mark likes this.
  5. ssaunders

    Ks04

    Joined:
    Dec 28, 2019
    Messages:
    96
    Likes Received:
    9
    I've actually always wondered this! I'd love a ramp rate less than 4sec
     
    Ks04, Sep 14, 2022
    #5
  6. ssaunders

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,382
    Likes Received:
    19
    Location:
    Adelaide, South Australia
    And if you look at DALI by comparison you will see that many things there use FADE TIMES, which are real times, not rates.

    For example with a fade time of 4 seconds, a fade from 0 to 254 (in DALI, level 255 is magic), would run for 4 seconds. But so would a fade from 10 to 12. Or 19 to 73. Or whatever.

    This is one of those things that makes the translation of cbus ramp rates to fade times VERY difficult, and any match is usually a matter of luck rather than anything else.
     
    ashleigh, Sep 14, 2022
    #6
    ssaunders and Mr Mark like this.
    1. Advertisements

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.