Newbie Programming dual switching

Discussion in 'C-Bus Toolkit and C-Gate Software' started by Dak, Nov 22, 2005.

  1. Dak

    Dak

    Joined:
    Aug 12, 2005
    Messages:
    76
    Likes Received:
    0
    Is there someway I can achieve the following?

    What I would like to do is -

    at the bedroom entrance have one saturn switch (one button on the 2 gang switch) to turn on two (separate) GPO's via the L5512RVF relay, which will have two bedside lamps attached. This button should turn both the bedside lamps on and off from that location.

    Then have two (2 gang saturn switch's) one on either side of the bed which would switch the corresponding bedside lamp off or on. That is... she presses her saturn switch and her bedside lamp turns off or on. And same goes for him..

    Is this possible and how might I achieve this?

    I have tried using logic. so that when the left bedside lamp is switched the right bedside lamp is swithced automatically using "OR" . Of course when you then use either of the bedside saturn beside the bed they then switch both the bedside lamps.

    I have tried using scenes so that I am able to switch both the bedside lamps on from the bedroom entrance switch and then able to switch either of the bedside lamps off from the bedside switches but I cant then turn the scene off from the bedroom entrance.

    If any of my ramblings make sense, please help.
     
    Dak, Nov 22, 2005
    #1
  2. Dak

    JohnC

    Joined:
    Apr 6, 2005
    Messages:
    554
    Likes Received:
    1
    Location:
    Sydney
    If you use scenes, you have to set TWO on that door switch... One to turn ON the 2 lamps, one to set them both to 0% (off)

    The single bedside switches are easy - just assign one Group Address for each and corresponding GA in the 2 switches.

    But as far as I can see, for the "Master Switch" you'll need to use scenes (not logic)

    Cheers, John
     
    JohnC, Nov 22, 2005
    #2
  3. Dak

    Dak

    Joined:
    Aug 12, 2005
    Messages:
    76
    Likes Received:
    0
    thanks for the reply JohnC.

    Is it possible to use just one button of the saturn 2 gang to both turn the "scene" on and then turn the "scene" off. I would like use the same button if possible.

    Thanks again in advance
     
    Dak, Nov 23, 2005
    #3
  4. Dak

    znelbok

    Joined:
    Aug 3, 2004
    Messages:
    1,151
    Likes Received:
    17
    Yes it can be done

    I will see if I can remember this correctly

    in a 2 gang switch there are actually four areas to enter group addresses.

    For the switch (button) in question, it will be automatically assigned to one field, and the second to the other.

    In the third filed put the other group address you want to control and check the box so that button activates it as well.

    The other buttons on the bedside just control an individual group.

    That should do it. I cant give you any screen shots as I am at work, bit if you need more help just post

    Mick
     
    znelbok, Nov 23, 2005
    #4
  5. Dak

    Dak

    Joined:
    Aug 12, 2005
    Messages:
    76
    Likes Received:
    0
    thanks znelbok.

    I will give it a go when i get home.
    Will let you know if I cant work it out.

    Thanks again for the help
     
    Dak, Nov 23, 2005
    #5
  6. Dak

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia

    Here's a screenshot of what Znelbok was describing:

    <img src='http://www.duncanmargetts.com/blog/wp-content/HisHers.jpg' alt='' />

    The word "multiple" appearing next to Key 1 happens when you click the little checkboxes.. Click on the group name to in the Block List and a drop-down box will appear for you to select your groups.. then just click the two checkboxes shown to make Key 1 control Block 1 and 2.
     
    Duncan, Nov 23, 2005
    #6
  7. Dak

    Dak

    Joined:
    Aug 12, 2005
    Messages:
    76
    Likes Received:
    0
    thats way too easy....when you know how.

    thanks very much guys, much appreciated.
     
    Dak, Nov 23, 2005
    #7
  8. Dak

    JohnC

    Joined:
    Apr 6, 2005
    Messages:
    554
    Likes Received:
    1
    Location:
    Sydney
    I've printed that off for my notes too - thanks !
     
    JohnC, Nov 23, 2005
    #8
  9. Dak

    Dak

    Joined:
    Aug 12, 2005
    Messages:
    76
    Likes Received:
    0
    OK Duncan,

    So now I have one button of the 2 gang saturn toggling on/off the 2 relay chanels/bedside lamps. When On, I have the blue led indicator, when both off I have no led indicator..

    However when I switch both On via the doorway button, and then use one of the bedside buttons to switch relay/bedside lamp off, even though the other bedside lamp is still on, both led indicators are off. (doorway button and bedside button).

    Is it possible to have the led indicator on the doorway switch to stay on if either of the two bedside relay/lamps are on - that is: one off , one on should still have the led indicator on at the doorway.

    Thanks
     
    Dak, Nov 23, 2005
    #9
  10. Dak

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia
    Hi Dak,

    Short answer: No..

    Long Answer: Yes, if you have a Touchscreen or PAC (Pascal Automation Controller) on the Network.

    Not sure how much more playing you've done, you may have found that your Doorway switch is toggling the Bedroom Lamps.. if one is on and you try to turn them off then one will come on and one will go off..


    To get around this (again if you dont have a CTouch or a PAC) you could fiddle with the key microfunctions a bit on the Doorway Key so that a short press turns them ON and a Long Release turns them OFF, ie:

    [​IMG]

    A quick tap on the key will turn both ON.. to turn both OFF press and hold the key for 1/2 second.

    Unless you're an experienced C-Bus User Key Microfuctions might seem a bit mysterious.. basically when a key is pressed on a C-Bus Input unit 4 "events" may happen depending on how long the key is held for.. as soon as the key is pressed the "Short Press" event fires and the command assigned to the Short Press Event is executed against the blocks assigned to that key (nothing in our case "idle"), when the key is immediately released the "Short Release" event fires and the command assigned to that event is executed against the blocks assigned to that key (ON) in our case..

    When the key is held for more than 400 msec (unless you've changed the Long Press time on the global tab) the Long Press Event fires.. when the Long Press is released the "Long Release" event fires.. both of these events execute commands against the respective blocks for that key.. OFF Key and Idle (nothing) in our case.

    Anyhow.. this scenario is all less than perfect without a CTouch or PAC.. so let us know what you've got and we might be able to improve things a little.
     
    Duncan, Nov 23, 2005
    #10
  11. Dak

    Dak

    Joined:
    Aug 12, 2005
    Messages:
    76
    Likes Received:
    0
    Thanks Duncan,

    I have been playing with the microfunctions so am aware of what they can do.

    However, I have purchased two Color Touch Screens to go on the network also.
    I have not looked at the PICED software and have not attached the Color Touch Screens to my "gig" setup.

    I am programming each unit on my desktop "gig" so that hopefully when I physically install the units on the network and go "live" most of my work will be done.

    Anyways - I would be keen to hear suggestions on how I might fix the led indicator problem using the Color Touch Screens.

    Regards Dak.
     
    Dak, Nov 23, 2005
    #11
  12. Dak

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia
    OK..

    The switch near the bed.. set it up as normal to control the "Her Lamp" and "His Lamp" loads.

    The switch near the Doorway, set it up like this:

    [​IMG]

    Note above that the Radio button for LED1 is set to show the state of a group OTHER than the one its actually controlling, this group "Bed Lamps" is sort of a "dummy" group on the Network, we're not actually going to hook that up to an output unit.. That group will get turned off and on by some "logic" running in the CTouch Colour.

    That Logic would like this in your CTouch Colour Project:

    [​IMG]

    This makes all the indicators and keys work perfectly.
     
    Duncan, Nov 24, 2005
    #12
  13. Dak

    Dak

    Joined:
    Aug 12, 2005
    Messages:
    76
    Likes Received:
    0
    Thanks a million Duncan,

    Cant wait to get home and give it a try.

    I guess I have to have something downloaded to the Color Touch Screen first dont I? I wont be able to try it out until then. I cant just connect the touch screen to the network and turn it on can I?

    Some late nights ahead of me, but all for a good cause.

    Thanks again, I really do appreciate how quick people are to help out here on the forums.

    Cheers.
     
    Dak, Nov 24, 2005
    #13
  14. Dak

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia
    Well.. you'll need a project downloaded to get the logic thing happening.. but that wont stop you just plugging it and turning it on.

    Here's the logic as text so you can cut and paste it:

    PHP:
    if ( (GetLightingState("Her Lamp") = ON )
        or
    (
    GetLightingState("His Lamp") = ON) )
     
    then
    begin
      
    if GetLightingState("Bed Lamps" ) <> ON then SetLightingState("Bed Lamps"ON);
    end
     
    else
    begin
      
    if GetLightingState("Bed Lamps" ) <> OFF then SetLightingState("Bed Lamps"OFF);
    end;
     
    Duncan, Nov 24, 2005
    #14
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.