Please login or register.

Login with username, password and session length
Advanced search  

News:

The Buster PiX10Hub is here! Created by the Community, for the Community.:)% #:)

Pages: 1 [2]

Author Topic: Tutorial - Soft Start Unit Scene Programming (A Work in Progress)  (Read 39499 times)

Boiler

  • Guest
Re: Tutorial - Soft Start Unit Scene Programming (A Work in Progress)
« Reply #15 on: October 08, 2009, 10:56:38 AM »

wow this is some very complex program info.  Do i understand that if i set a device up for a scene on say house code A with a group setting to dim to 45percent it will forget the group setting when I lose power.  like unplug it. or something, because if i figure out how to program it the first time I sure in the heck don't want it to forget what I did...    seems like I might have to get the cm15 to reprogram all my  scene settings every time it turns on like maybe that's why it sends out that p 16  command i herd of.

Hi Mellowmark,

Based on Charles' input (yes I trust him on this), X10 units will loose their group settings of power is removed for TBD period of time.  I have not yet verified this with Leviton units.

For reprogramming,  I have a "special" AHP program where I've stored all of my Group Programming Macros.  When I want to modify or restore unit group setting, I load this AHP program and simply execute the appropriate macro.  At my age, remembering unit settings is not an option.  If it's not written down or "coded", it's lost.  I have enough trouble remembering the name of my AHP program.

Boiler
Logged

Mellowmark

  • Hero Member
  • *****
  • Helpful Post Rating: 6
  • Posts: 195
  • M M Electric
Re: Tutorial - Soft Start Unit Scene Programming (A Work in Progress)
« Reply #16 on: October 08, 2009, 02:46:10 PM »

So do you have it reset group setting automatic.  Or just realize power was lost and go in and run programing macro info like you  would to reset all the clocks or something.  Does this happen often or is it worth the programing.  Also do you know if the xpcr reapeater from x10 pro repeats extended code or not.   sometimes my lights do what i think there supposed to and  other times they don't.  I am still learning allot about this stuff and moving slow with testing and that.  I have allot of other projects going  on..   I sure do respect you guys for helping us new guys out though.   I really hope x10 comes out with a regular toggle switch for cfl and other.  like insteon toggle Link sure would be nice to stay with a standard decor.
Logged
M M ElectricMan

Boiler

  • Guest
Re: Tutorial - Soft Start Unit Scene Programming (A Work in Progress)
« Reply #17 on: October 08, 2009, 06:15:54 PM »

So do you have it reset group setting automatic.  Or just realize power was lost and go in and run programing macro info like you  would to reset all the clocks or something.  Does this happen often or is it worth the programing.  Also do you know if the xpcr reapeater from x10 pro repeats extended code or not.   sometimes my lights do what i think there supposed to and  other times they don't.  I am still learning allot about this stuff and moving slow with testing and that.  I have allot of other projects going  on..   I sure do respect you guys for helping us new guys out though.   I really hope x10 comes out with a regular toggle switch for cfl and other.  like insteon toggle Link sure would be nice to stay with a standard decor.

Mellowmark,

One clarification - most of my units are Leviton HCM06's.  I'm betting that these are not affected by power outages since I've only had to reprogram 1 unit (out of 12) in the past year.  That said, we are blessed with extremely good, reliable power.  We've had 1 power outage this year that I can remember.

I set up the group programming macros in an entirely separate AHP program.  They serve both as documentation and as a means to recover the programming.  If I want to restore or change something, I have to load this program to AHP and then run the appropriate programming macro.

I haven't used the XPCR repeater myself.  Hopefully someone else can confirm whether it supports extended codes.

Boiler
Logged

Mellowmark

  • Hero Member
  • *****
  • Helpful Post Rating: 6
  • Posts: 195
  • M M Electric
Re: Tutorial - Soft Start Unit Scene Programming (A Work in Progress)
« Reply #18 on: October 19, 2009, 05:19:39 PM »

well when i get some time I will finish installing my new devices and see how the scene programming works. Sounds really cool  thanks Boiler for your input..  You sure must have fun with this stuff.
Logged
M M ElectricMan

Mellowmark

  • Hero Member
  • *****
  • Helpful Post Rating: 6
  • Posts: 195
  • M M Electric
Re: Tutorial - Soft Start Unit Scene Programming (A Work in Progress)
« Reply #19 on: December 05, 2009, 11:29:48 AM »

Quote
.   Format 2 – Since having only 4 groups (scenes) per housecode is a bit limiting, format 2 expands on this by adding the S0 – S3 relative address modifier. 


i•Total of 64 groups per housecode.
•The way that this has been implemented for the X10 units you wind up having 16 sets of 4 groups (G0,G1 = 00b to 11b= 4 groups).  Set number is controlled by bit S0 to S3 (S3 to S0 = 0000b to 1111b = 16 sets).
•A given unit can still only be a member of a single set (still a max of 4 groups per housecode).  In other words a unit cannot be a member of set 0 (S3 to S0 = 0000b) and set 1 (S3 to S0 = 0001b) at the same time.
•When a unit receives this command, it will include itself in the requested group/set at its current output level.

                                                                                                                                                        I am confused sure am having a hard time with info here. is there a chart or something that will show how to enter the info into the hex or decimal for the AHP program. I think i need to only enter hex commands.  I am confused as to how to distinguish the difference between the 16 sets in hex format. 
Logged
M M ElectricMan

twood

  • Jr. Member
  • **
  • Helpful Post Rating: 1
  • Posts: 22
Re: Tutorial - Soft Start Unit Scene Programming (A Work in Progress)
« Reply #20 on: December 05, 2009, 03:19:21 PM »

I, too, am a little confused.  Perhaps the better term is uneducated.  Boiler and ericmill8 have gone a long way toward explaining advanced macro programming and data bytes.  What I would love to see is a complete list of the command bytes, similar to what ericmill8 provided for the data bytes. 

When I go to create an advanced macro, AHP Smart Macros autopopulates the command byte with a string I have never seen before.  I'd like to understand what's going on.  Could one of you experts compile such a list?
Logged
Life is good...even better when it's automated.

twood

  • Jr. Member
  • **
  • Helpful Post Rating: 1
  • Posts: 22
Re: Tutorial - Soft Start Unit Scene Programming (A Work in Progress)
« Reply #21 on: December 09, 2009, 12:29:48 PM »

Quote
When I go to create an advanced macro, AHP Smart Macros autopopulates the command byte with a string I have never seen before.  I'd like to understand what's going on.  Could one of you experts compile such a list?

Can anyone compile a list of command bytes?
Logged
Life is good...even better when it's automated.

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 94
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX
Re: Tutorial - Soft Start Unit Scene Programming (A Work in Progress)
« Reply #22 on: December 09, 2009, 03:02:34 PM »

Quote
When I go to create an advanced macro, AHP Smart Macros autopopulates the command byte with a string I have never seen before.  I'd like to understand what's going on.  Could one of you experts compile such a list?

Can anyone compile a list of command bytes?

Here's a slightly edited page from X-10's documentation.
The command bytes 0x30-0x3C are under the column heading "Type/Func".

Ignore the reference to "Heyu", which is home automation software for Linux, Unix, and Mac OS X.  (http://www.heyu.org)

-----------------------------------------------------------------------------
X10 EXTENDED CODE FUNCTIONS FOR X10 MODULES

TYPE = 3             Dimmers and Appliances

Extended functions not formalized as Heyu commands can be transmitted or
included in macros using the Heyu 'xfunc' command.

data
bits: 128 64 32 16  8  4  2  1


Type/
Func    DATA ( x = don't care)
----    ----------------------
0x30    G1 G0 0  x  x  x  x  x     Include in group G1G0 at the current
                                   preset level on this housecode|unit.
                                   The group address is absolute (no GROUP
                                   REFERENCE).
                                   [Heyu 'xgrpadd HU G' command]

0x30    G1 G0 1  x  S3 S2 S1 S0    Include in group G1G0 at the current
                                   preset level on this housecode|unit.
                                   The group address is relative to the
                                   GROUP REFERENCE S3S2S1S0
                                   [Heyu 'xgrpadd HU G.s' command, where
                                    G = 0-3 and s = 1-16]

0x31    x  x  B16B8 B4 B2 B1 B0    Preset the level on this housecode|unit.
                                   For all units:
                                   'B' field = non-Zero means 'On'; Zero
                                   means 'Off'.
                                   For Dimmers:
                                   'B' field = 0x3F is 'On' at Full Bright
                                   immediately. (63 values)
                                   'B' field = 0x01 to 0x3E is 'On' at
                                   previously set level, brightening
                                   gradually to the new value of 'B'.
                                   If previously 'Off', the unit comes 'On'
                                   fully dimmed before brightening.
                                   'B' field = '0' is 'Off'
                                   [Heyu 'xpreset HU <level>' command]

0x32    G1 G0 B16B8 B4 B2 B1 B0    Include in group 'G' on the specified
                                   housecode|unit. 'B' defines the preset
                                   level and 'G' the group to which it applies.
                                   Other group membership is not affected.
                                   Simultaneous membership in up to 4
                                   groups is allowed.  The group function is
                                   not executed until the Execute Group
                                   message is received.
                                   [Heyu 'xgrpadd HU G <level>' command]

0x33    x  x  x  x  x  x  x  x     All_Units_On on specified housecode.
                                   [Heyu 'xallon H' command]

0x34    x  x  x  x  x  x  x  x     All_Units_Off on specified housecode.
                                   [Heyu 'xalloff H' command]

0x35    0  0  0  0  G3 G2 G1 G0    Remove this housecode|unit from one or more
                                   groups. ('G3G2G1G0' is a bitmap).
                                   [Heyu 'xgrprem HU G,G,...' command]

0x35    1  1  1  1  G3 G2 G1 G0    Remove all units on this housecode from
                                   one or more groups.
                                   [Heyu 'xgrpremall H G,G,...' command]

0x36    G1 G0 0  0  x  x  x  x     Execute Group function for this housecode
                                   and group.  The group address is absolute
                                   (no GROUP REFERENCE).
                                   [Heyu 'xgrpexec H G' command]

0x36    G1 G0 1  0  S3 S2 S1 S0    Execute group function for this housecode
                                   and group.  The group address is relative
                                   to GROUP REFERENCE 'S3S2S1S0'.
                                   [Heyu 'xgrpexec H G.s' command]
 
0x36    G1 G0 0  1  x  x  x  x     Turn units in this group 'Off'.  The
                                   group preset levels are unaffected. The
                                   group address is absolute.
                                   [Heyu 'xgrpoff H G' command]

0x36    G1 G0 1  1  S3 S2 S1 S0    Turn units in this group 'Off'.  The
                                   group preset levels are unaffected.  The
                                   group address is relative to 'S3S2S1S0'
                                   [Heyu 'xgrpoff G.s' command]

0x37    x  x  0  0  x  x  x  x     Request OUTPUT status for this hcode|unit.
                                   Request TO module
                                   [Heyu 'xstatus HU' command]

0x37    x  x  0  1  x  x  x  x     Request OUTPUT status for this hcode|unit.
                                   Request FROM module after Power Up
                                   [Heyu 'xpowerup HU' command]

0x37    G1 G0 1  0  0  0  0  0     Request GROUP status for this hcode|unit.
                                   The group address is absolute.
                                   Request TO module.
                                   [Heyu 'xgrpstatus HU G' command]

0x37    G1 G0 1  1  S3 S2 S1 S0    Request GROUP status for this hcode|unit.
                                   The group address is relative
                                   to the GROUP REFERENCE 'S3S2S1S0'
                                   Request TO module.
                                   [Heyu 'xgrpstatus HU G.s' command.]

0x38    A1 A0 B16B8 B4 B2 B1 B0    OUTPUT Status ACK for this hcode|unit.
                                   A1 = 1 if load connected
                                   A0 = 0 for LAMP, 1 for SWITCH
                                   Note: Bit A1 is (almost) always
                                   reported as set for the AM15A
                                   two-way Appliance Module, whether
                                   a load is connected or not.
                                   [Heyu 'xStatusAck' response]

0x39    G1 G0 B16B8 B4 B2 B1 B0    Group Status ACK for this hcode|unit.
                                   The group may be absolute or relative
                                   depending on the type of Request.
                                   [Heyu 'xGrpAck' response]

0x3A    x  x  x  x  x  x  x  x     Group Status NACK. Not in the group
                                   requested. The data field returns
                                   the value contained in the Reguest.
                                   [Heyu 'xGrpNack' response]

0x3B    x  x  x  x  x  x  C1 C0    Configure Modules (this housecode )
                                   C0 = Auto-ACK Extended Code X10 signal
                                   C1 = Auto-ACK Standard X10 signal
                                   Automatic ACK for signals that alter
                                   the current preset level of the unit.
                                   Bit's 2-7 reserved for future.
                                   [Heyu 'xconfig H <mode>' command]

0x3C    G1 G0 0 B/D x  x  x  x     Group Bright or Dim. The Group
                                   address is absolute.
                                   B/D = 1 for Bright, 0 for Dim.
                                   [Heyu 'xgrpdim H G' command and
                                    Heyu 'xgrpbright H G' command]

0x3C    G1 G0 1 B/D S3 S2 S1 S0    Group Bright or Dim. The Group
                                   address is relative to the GROUP
                                   REFERENCE 'S3 S2 S1 S0'
                                   [Heyu 'xgrpdim H G.s' command and
                                    Heyu 'xgrpbright H G.s' command]


NOTE on GROUP BRIGHT/DIM & GROUP OFF
This message causes the output state of a Dimmer to Brighten or Dim for as
long as the message is received, so long as the HC and GROUP ADDRESS (ABS.
or REL.) match the unit HC and it is within that Group. The Output Level
defined for the unit within that Group is unaffected.
Similarly, GROUP OFF will turn off any unit in the specified Group, but
won't affect the output level set for the unit for that Group.

Note: The Group Bright/Dim and Group Off commands are supported by the
redesigned LM465 Lamp Module but NOT by the redesigned WS467 Wall Switch
or the LM14A 2-way Lamp Module.  If fact for the latter, the the Group
Off command is misinterpreted as a Group Execute command.


Reference: X10 Technical Document "xtc_798.doc",
"Standard" and "Extended" X-10 Code Formats   September 22, 1993
Rev. 11/20/94, 07/12/96, 12/18/96, 04/02/97, 07/22/97, 05/07/98


Logged
Yesterday it worked.
Today it doesn't work.
X10 on Windows is like that.

HEYU - X10 Automation for Linux, Unix, and Mac OS X     http://www.heyu.org

whitslack

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 1
Re: Tutorial - Soft Start Unit Scene Programming (A Work in Progress)
« Reply #23 on: January 23, 2011, 10:49:45 PM »

Notice something I left out??  I do not remember how to remove Groups from the Leviton HCM units (this happens when you get to my age bracket).  The Leviton line of HCM units allow the units to be a member of up to 64 scenes at the same time (as opposed to 4 scenes for the X10 units).  As a result, the standard "Group remove" command won't work.  It can be done, I just don't remember how.
I figured this out just by trying stuff.  HCMs do indeed support membership in up to 64 groups simultaneously; this means bits S3..S0 are effectively G5..G2.

To add an HCM to a group (at its current output level):
command = 0x30, data = G1:G0:1:0:G5:G4:G3:G2

To remove an HCM from a group:
command = 0x30, data = G1:G0:0:1:G5:G4:G3:G2

Simple as that!  Command 0x35 apparently has no effect on these units, and neither does command 0x30 with data xx00xxxx or xx11xxxx.  Hope this helps someone.
Logged
Pages: 1 [2]
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.