Dimm Switches

Discussion in 'General Discussion' started by Newbie, Nov 16, 2012.

  1. Newbie

    Newbie

    Joined:
    Jun 16, 2010
    Messages:
    45
    Likes Received:
    0
    Location:
    South Africa
    Hey

    Im just wondering if it is possible to program a dlt switch from piced to dim according to what i would like it to dim...

    I want it so switch on my light at 40% once i switch it on. Then i want to be able to dim it normal from there if i needed to..

    I already tried doing this

    Once (GetLightingState("MainBedroom")=On) then

    Begin
    SetLightingLevel("Mainbedroom",40%,"4s");
    End;


    But the problem is that it will first go to the ON state then dim back down to 40% and then i can dim as i please but that is not what i like i want it to go straight to 40%...

    But if i use a trigger, i wont be able to dim that to dim the actual circuit...

    Unless i change my logic to 1%, 2% and so on...?

    Is there a faster way?

    Kind Regards
     
    Newbie, Nov 16, 2012
    #1
  2. Newbie

    jboer

    Joined:
    Apr 27, 2012
    Messages:
    458
    Likes Received:
    35
    Location:
    Sydney
    Hey,

    I don't think you need to use Logic at all. In the key functions tab,on your button set Short Release to ramp recall 1, Long Press to downcycle and Long Release to end ramp. Then in the blocks tab set Recall 1 of the key that you are using to 40.

    Give it a go and see if it does what you want..
     
    jboer, Nov 16, 2012
    #2
  3. Newbie

    Newbie

    Joined:
    Jun 16, 2010
    Messages:
    45
    Likes Received:
    0
    Location:
    South Africa
    Thanks for the help...

    but with this the light is not switching off?
     
    Newbie, Nov 16, 2012
    #3
  4. Newbie

    jboer

    Joined:
    Apr 27, 2012
    Messages:
    458
    Likes Received:
    35
    Location:
    Sydney
    mmm try setting your short release to mem toggle 2 and then change both your recalls to 40. This will probably work the first time but may not the next as the idea is that mem toggle takes the last level of the lighting group being controlled and stores it.

    Give it a go I guess. Otherwise you can do it in logic, you will just need to use tracking commands: http://www.cbusforums.com/forums/showthread.php?p=36318#post36318
     
    jboer, Nov 16, 2012
    #4
  5. Newbie

    Roosta

    Joined:
    Nov 22, 2011
    Messages:
    560
    Likes Received:
    1
    Location:
    Australia
    Could you explain it a little better..

    Do you want short press to turn on light to 40% and then long presses to allow u to dim up or down from there from 1-100%? Possibly to allow a led or cfl to kick start?

    Or do you want to have your dimming range from 40-100%? Possible because the load doesnt like being dimmed below 40%?

    Or something else?

    This will help us tailor possible solutions..

    Cheers..
     
    Roosta, Nov 17, 2012
    #5
  6. Newbie

    Newman

    Joined:
    Aug 3, 2004
    Messages:
    2,203
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    There's a few different ways this can be done, but one immediately obvious thing to change is your logic code to this:
    Code:
    Once (GetLightingState("MainBedroom")=On) then
    
    Begin
    SetLightingLevel("Mainbedroom",40%,"0s");
    End;
    
    Change the ramp rate from 4s to 0s.

    There is about 1 second of soft-start in the dimmers and the logic engine runs once every 200ms, so the response time of the logic engine should be good enough to "beat" the soft-start in the dimmer. By having a 4s rate you are saying "go to 100% and then ramp back down to 40% over the next 2.4 seconds". This is longer than the soft-start in the dimmer so you will see the light level go above 40% and then come back down. By reducing the ramp rate to instant you should be able to beat it.
     
    Newman, Nov 20, 2012
    #6
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.