All Off Serial Command

Discussion in 'General Discussion' started by connectedsmart, Jun 4, 2013.

  1. connectedsmart

    connectedsmart

    Joined:
    Oct 10, 2012
    Messages:
    29
    Likes Received:
    1
    Location:
    Queensland
    Hi,

    I am working with an AMX system and was wanting to issue an All Off command via PCI to C-Bus and was wondering if via PCI I could send a string which will turn all 255 groups of an application off.

    P.S: I want to avoid creating a scene.
     
    connectedsmart, Jun 4, 2013
    #1
  2. connectedsmart

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,397
    Likes Received:
    26
    Location:
    Adelaide, South Australia
    There's no such thing as a single "all off" command.

    You need to either issue a series of group commands setting groups 0, 1, 2, 3, etc to OFF, or issue a single command to trigger a scene that lives somewhere else.
     
    ashleigh, Jun 4, 2013
    #2
  3. connectedsmart

    Don

    Joined:
    Aug 4, 2004
    Messages:
    429
    Likes Received:
    0
    Location:
    Townsville, Australia
    If all C-bus units share the same area address, then a command to turn that group off is the 'all off' command you are looking for.
    To use this you must have configured the area address.
    Note that an off command sent to the unconfigured group (255) will work if all units have unconfigured area address, but use of this group is not recommended.
     
    Don, Jun 4, 2013
    #3
  4. connectedsmart

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,397
    Likes Received:
    26
    Location:
    Adelaide, South Australia
    Oooh - forgot about area addresses.
     
    ashleigh, Jun 5, 2013
    #4
  5. connectedsmart

    rhamer

    Joined:
    Aug 3, 2004
    Messages:
    673
    Likes Received:
    3
    Location:
    Melbourne, Australia
    I always thought the use of area addressing was discouraged.

    I don't remember why, but I'm sure at one point it was considered a bad thing. Something to do with units getting out of sync perhaps?

    Cheers

    Rohan
     
    rhamer, Jun 6, 2013
    #5
  6. connectedsmart

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,397
    Likes Received:
    26
    Location:
    Adelaide, South Australia
    Yes, you can create havoc because the area and group addresses can get out of step with each other.

    Lets assume an example of 2 (physical) relay units.

    Lets put them both on Group 1.

    Now lets put physical unit #1 on Area address 50, and physical unit #2 on area address 51.

    Now, set area 50 ON and area 51 OFF.

    You'll get MMI conflicts on group 1 because 1 physical unit will report that group as off, the other as on.

    Now, if there is a key unit also controlling group 1, then eventually that will say "enough of this!!!" and transmit a command to the group to fix the mess by setting the group to where it thinks it should be.

    Result: you'll send a command to the area and then see it actioned. About 10 seconds later you'll see one of those units change state so that the groups are consistent.

    That's why areas are discouraged.

    If you use a SINGLE area, and use it in all units, the chances of this kind of whoopsy are reduced to pretty much nil. But you do need to use your areas carefully.
     
    ashleigh, Jun 6, 2013
    #6
  7. connectedsmart

    znelbok

    Joined:
    Aug 3, 2004
    Messages:
    1,151
    Likes Received:
    17
    Area addressing is by far the best way to turn off all groups - to consider listing every single group that needs to be turned off is ridiculous and time consuming.

    If you [Clipsal] think there is a problem with it then fix it and make it work properly as its the only real way to get a large nuber off groups off at once.

    I would suspect that most domestic dwellings that use areas only use one area address and this would cover evey output used in the system.

    Scenes are fine for a small number of groups but un-realistic for large numbers of groups - hence areas are great for this.

    I have been using areas since I started with C-Bus and find them so much easier to use then having to remember to go to multiple places when I add a group and need it under a group off control.

    Mick
     
    znelbok, Jun 6, 2013
    #7
  8. connectedsmart

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,397
    Likes Received:
    26
    Location:
    Adelaide, South Australia
    Its a fairly unfixable fundamental problem when you have 2 thingies that control the same endpoint, which leads to inconsistencies.

    If it were fixable that would have been done many years ago.

    Areas are not inherently "broken", they are to be used with caution.

    Areas are not recommended simply because there are many installers who don't really understand how they work and by misconfiguration, break things, and then wish to cast blame for their own foul-up.
     
    ashleigh, Jun 6, 2013
    #8
  9. connectedsmart

    bmerrick

    Joined:
    Jun 13, 2007
    Messages:
    437
    Likes Received:
    35
    Location:
    Sydney
    Single Channel C-Bus relay -----> three phase contactor

    off ---- CLICK

    works perfectly


    :p well almost :rolleyes:
     
    bmerrick, Jun 6, 2013
    #9
  10. connectedsmart

    bmerrick

    Joined:
    Jun 13, 2007
    Messages:
    437
    Likes Received:
    35
    Location:
    Sydney
    Hi CS,

    but in all seriousness, if you don't like the Area addressing and don't like scenes,

    that sort of just leaves you logic or logic groups.

    Logic:- write a logic module into a unit with logic (CTC, Wiser etc), using a group follow or trigger that then sets all the GAs off in one logic module. You could use a while - do / for - do loop with a SetCBusLevel to save writing out all the lines individually.

    Relay and Dimmer Logic Groups:- AND several output channels with a 'Master On' logic group and set min level logic on dimmers for a similar effect to area. If you split up into zones using the logic groups eg house south master, house north master, upstairs master etc, you can then have a scene that triggers all the zones off by just setting the 'masters' off.

    Of course, the downside to this concept is that you need to set the master back on before the groups work normally which can be very frustrating and potentially dangerous in a fire etc.

    options, options, anyway good luck.

    Brad
     
    Last edited by a moderator: Jun 6, 2013
    bmerrick, Jun 6, 2013
    #10
  11. connectedsmart

    bmerrick

    Joined:
    Jun 13, 2007
    Messages:
    437
    Likes Received:
    35
    Location:
    Sydney
    Just tested this logic on the workbench. Worked fine:

    [noparse]
    once GetLightingLevel("AllGroupsOff") = 255 then { Watch this group address and execute on it going ON }
    begin
    for GroupAdd := 10 to 55 do { Enter Group Addresses to get changed here }
    SetLightingLevel(GroupAdd, 0%, "8s"); { Add variable GroupAdd to Global Variables as an integer }
    end
    [/noparse]
     
    Last edited by a moderator: Jun 7, 2013
    bmerrick, Jun 7, 2013
    #11
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.