Logic explaination... please...

Discussion in 'C-Bus Toolkit and C-Gate Software' started by thelauman, Dec 11, 2004.

  1. thelauman

    thelauman

    Joined:
    Sep 29, 2004
    Messages:
    13
    Likes Received:
    0
    Hiya..

    Got a fairly simple request. I am trying to get my head around programming logic. I can sorta figure out how it works and can pretty much use it to switch multiple channels with one group address.

    What i am asking is if someone could explain is the most laymenest of terms (for lack of a better word) logic to me. Particularly AND and OR functions and when to use them and what they mean....

    Thanx mucho in advance...

    Cheers
     
    thelauman, Dec 11, 2004
    #1
  2. thelauman

    Ashley W

    Joined:
    Aug 4, 2004
    Messages:
    304
    Likes Received:
    3
    Location:
    Canberra
    The AND function requires all the states to be true before the output will be true. Why would you use it, well cannot think of an example but sure there are 1000's of them.

    The OR function only requires one of the input states to be true.

    Not to confuse things even more, outside C-Bus but with logic there are many others logic funcions too. There is the exclusive or function (XOR) which needs one or the other inputs to be true, but not both, or if using more than two inputs not all. And then there are the negatives of all the above, which require the states to be the oposite before the output become true.
     
    Ashley W, Dec 12, 2004
    #2
  3. thelauman

    george

    Joined:
    Jul 26, 2004
    Messages:
    158
    Likes Received:
    1
    Location:
    Adelaide
    Logic functions in C-Bus output units allow you to control output channels a bit more intelligently. Without logic you can have every channel linked to its own group or multiple channels linked to a single group, but there is no way you can have single channel linked to multiple groups.

    Using logic you can make single channel "listen" to states of two or more groups. For example, you may have a requirement to program 2 channels and 2 single key units to operate on lights in conference hall and its entrance. So you could have

    Channel 1 = "Conference Hall Entrance lights"
    Channel 2 = "Conference Hall lights"

    Key 1 = "Conference Hall Entrance lights"
    Key 2 = "Conference Hall lights"

    Both lights operate independently in this set-up. Now imagine you had a rule in that requirement "make entrance lights be on, when conference hall lights are on". To implement this you go to Logic tab of the relay unit, tick one checkbox for Channel 1, select the logic group against it to be "Conference Hall lights" and set the logic function to OR, which emulates switches in parallel.

    If you had 4 channels serving conference hall lights (i.e. Hall Centre lights, Hall Podium lights, etc), you would then need to use all 4 logic groups to implement that rule.

    AND logic functions means that a channel will be on only when all groups participating in logic operation are on. Basically it emulates series connection of switches.

    There is a small difference in how logic functions work in dimmer output units. If Max (which is OR or "greater of") is selected, then the channel level is set to the level highest in groups participating in logic operation.

    If Min (which is AND or in other words "lesser of") is selected, then the channel level is set to the level lowest among levels in groups participating in logic operation.

    Regards,
    George
     
    Last edited by a moderator: Dec 12, 2004
    george, Dec 12, 2004
    #3
  4. thelauman

    UncleDick

    Joined:
    Aug 5, 2004
    Messages:
    130
    Likes Received:
    0
    Location:
    Adelaide
    That's Illogical Captain

    Another way to think of AND Logic is to think of a series of switches in a row with a light bulb hanging off the end (asume the supply and neutral). Now for that light to work ALL the switches must be closed if any one of them is open the light will be OFF. Now imagins group addresses insted of switches and there you have it - when you AND logic 2 or more group addresses they all need to be ON for that particular relay channel to come on.

    With OR logic it is as if the switches are wired in parellel rather than in series so that if any one switch is ON the light will be ON - ALL the switches must be OFF to turn the load off.

    If you are just turning Dimmer Channels ON and OFF then dimmer logic is the same as for relays with MIN logic giving you the equivalent of AND - and MAX logic giving you the equivalent of OR.

    The difference comes where you have one (or more) of the group addresses that are logically associated set to a level other than 0 or 100%. If you have selected MIN logic then the load will be dimmed to what ever group address has the lowest level (including OFF if the lowest level is 0%).

    If you have selected MAX logic then the load will be dimmed to what ever group address has the highest level (including full ON if the highest level is 100%).

    For those of you old enough to remember the good old days of V1 software you will know that rather than use the terms AND, OR, MIN or MAX we used + for OR and - for AND (!) :confused: and never mentioned MIN and MAX even though you could program the function in dimmers, they were marked + and - just like in the relays - boy have we come a long way! :)
     
    UncleDick, Dec 13, 2004
    #4
  5. thelauman

    Colin Smith

    Joined:
    Aug 3, 2004
    Messages:
    102
    Likes Received:
    0
    Location:
    Auckland, New Zealand
    Colin Smith, Dec 14, 2004
    #5
  6. thelauman

    MozOz

    Joined:
    Apr 21, 2012
    Messages:
    4
    Likes Received:
    0
    Location:
    Sydney AU
    Logic Group

    what happens when you run out Logic group space
    there is only 4 rows on a Dimmer
     
    MozOz, Apr 21, 2012
    #6
  7. thelauman

    Newman

    Joined:
    Aug 3, 2004
    Messages:
    2,203
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    That's a bit like asking what do you do when you come to the end of your drink, isn't it?

    Seriously though, the DIN mounted dimmers and relays have 4 groups of logic. Once you've used these up there aren't any more.

    If you need more complicated logical functions in your C-Bus installation then you can consider adding a device that has the C-Bus logic engine built-in, such as a PAC or a Touchscreen with logic. These devices allow you to perform just about any logical function you can dream up.
     
    Newman, Apr 22, 2012
    #7
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.