home *** CD-ROM | disk | FTP | other *** search
/ Frostbyte's 1980s DOS Shareware Collection / floppyshareware.zip / floppyshareware / GLEN / XCTL102.ZIP / README.TXT < prev    next >
Text File  |  1990-02-16  |  15KB  |  313 lines

  1.      Filename README.TXT, copyright W. L. Sexauer, January 29, 1989.
  2.  
  3.      
  4.  
  5.      The XControl program was written to provide a better method of
  6. operating the Powerhouse X10 (TM) controller than the software provided
  7. with the controller.  The principal advantage of this program is that it
  8. allows events to be varied with the local sunrise and sunset without the
  9. effort of editing files or individually deleting and re-entering events.
  10. The XControl program also allows the following additional functions:
  11. setting the clock in the controller, setting the base housecode of the
  12. controller, deleting a single event from those stored in the controller,
  13. loading a complete schedule of events into the controller, loading a
  14. single event for execution now, today or tomorrow, or displaying or
  15. printing the events stored in the controller.
  16.  
  17.      The program is marketed under the shareware concept.  You are free
  18. to try out the program, and to distribute it to others as long as you do
  19. not charge for it and provided that you include this file unaltered.  If
  20. you find that the program is useful, please send a payment of $15.00 to
  21. the author:  William L. Sexauer, 15548 SE 175th Court, Renton, WA,
  22. 98058.  Registered owners will be notified of new versions as they are
  23. developed.
  24.  
  25.                          SYSTEM REQUIREMENTS
  26.  
  27.      System requirements are minimal, an IBM PC or compatible with 256K
  28. memory, single floppy drive, CGA or better monitor, and an X-10
  29. PowerHouse (TM) model CP290 computer interface unit attached to a COM
  30. port.  The computer interface unit is hereafter referred to as the
  31. controller.
  32.  
  33.                      INSTALLATION - FLOPPY DISK SYSTEMS
  34.  
  35.      The first step should be to make a backup copy of the distribution
  36. disk.  Then, for installation to a floppy disk, put the backup disk into
  37. the A drive, type A: and then run the program XCINSTAL.  If you are
  38. installing to the backup disk, select only C (select Comm port) and D
  39. (update Data files) from the main menu.  If you are installing from one
  40. floppy drive to another, follow the instructions below for hard disk
  41. installation except substitute the appropriate drive letters (usually B:
  42. instead of C:).
  43.  
  44.      After entering the appropriate comm port, the program will ask
  45. whether your printer supports a line drawing set.  Press Y or N as
  46. appropriate.  Both XControl and XCEdit will use line drawing characters
  47. for formatting printed output if your printer has the capability.  If
  48. not, the programs will use standard ASCII characters such as -, |, and
  49. +.
  50.  
  51.      The data file installation will require your location, either by
  52. entry of your  latitude and longitude or by selection of your state and
  53. city from a list.  It also needs to know whether your area observes
  54. daylight saving time and, if so, when it starts and ends.  For areas
  55. observing the Federal Daylight Saving Time, it will start on the first
  56. Sunday in April and end on the last Sunday in October (choice no. 1 from
  57. the menu.)  The installation program will then calculate the sunrise and
  58. sunset time for each day of the year for your location.  It will be
  59. accurate to about 5 minutes, excluding errors such as result from a
  60. nearby mountain range delaying sunrise or speeding sunset.  I have found
  61. this to be sufficiently accurate for turning lights on and off to give
  62. my house a lived-in appearance.
  63.  
  64.      If your area does observe daylight saving time, you will need to
  65. run the XCInstall program each year sometime between January 1 and the
  66. first day of daylight saving time.  Otherwise, you will have a few days
  67. at the beginning and end of daylight saving time where XControl is an
  68. hour different than your clocks.
  69.  
  70.                      INSTALLATION - HARD DISK SYSTEMS
  71.  
  72.      To install the program onto a hard drive, insert the distribution
  73. disk (or better, a backup copy of the distribution disk) into the A:
  74. drive, type A: and then run the program XCINSTAL.  The program will
  75. prompt you for the necessary information.  From the main menu, select A
  76. for all.
  77.  
  78.      For an initial installation, it will need to know what drive and
  79. directory you wish to use for both source and destination.  It will ask
  80. for confirmation of drives and will then copy the program files to the
  81. destination disk and directory.
  82.  
  83.      After entering the appropriate comm port, the program will ask
  84. whether your printer supports a line drawing set.  Press Y or N as
  85. appropriate.  Both XControl and XCEdit will use line drawing characters
  86. for formatting printed output if your printer has the capability.  If
  87. not, the programs will use standard ASCII characters such as -, |, and
  88. +.
  89.  
  90.      The data file installation will require your location, either by
  91. entry of your  latitude and longitude or by selection of your state and
  92. city from a list.  It also needs to know whether your area observes
  93. daylight saving time and, if so, when it starts and ends.  For areas
  94. observing the Federal Daylight Saving Time, it will start on the first
  95. Sunday in April and end on the last Sunday in October (choice no. 1 from
  96. the menu.)  The installation program will then calculate the sunrise and
  97. sunset time for each day of the year for your location.  It will be
  98. accurate to about 5 minutes, excluding errors such as result from a
  99. nearby mountain range delaying sunrise or speeding sunset.  I have found
  100. this to be sufficiently accurate for turning lights on and off to give
  101. my house a lived-in appearance.
  102.  
  103.      If your area does observe daylight saving time, you will need to
  104. run the XCInstall program each year sometime between January 1 and the
  105. first day of daylight saving time.  Otherwise, you will have a few days
  106. at the beginning and end of daylight saving time where XControl is an
  107. hour different than your clocks.
  108.  
  109.                      CREATING A SCHEDULE FILE
  110.  
  111.      The default schedule file name is SCHEDULE.DAT.  You may copy a
  112. sample by that name from the distribution disk, or you may begin from
  113. scratch.  Run the program XCEdit to create and/or modify the schedule
  114. file.  Select Add to program an event.  I keep my schedule file sorted
  115. by adding new lines at specific line numbers, but you may just press
  116. RETURN instead of specifying a line number, this will add a new line at
  117. the end of the file.
  118.  
  119.      You will get a formatted entry screen.  The cursor keys, tab and
  120. backtab keys may be used to move from field to field.  It does not
  121. matter whether you use upper or lower case letters, the program will
  122. make all input lower case except that the initial character of each
  123. field will be set to upper case.  Press RETURN only when you have filled
  124. all of the fields you intend to use, this will cause the program to
  125. examine all of your input and accept it or issue an error message(s) and
  126. ask you to correct the input data.  Most fields are self explanatory,
  127. but a couple are described here.
  128.  
  129.      Function may be On, Off or Dim.  The DIM field is used only if the
  130. function is Dim; it is a number between 0 and 15 specifying the
  131. brightness of the lamp.  0 is off, 15 is full brightness.
  132.  
  133.           Time must be entered in the format hh:mm.  You may use a
  134.      space or a zero in the first column for single digit hours,
  135.      but you must use a zero for single digit minutes.  For
  136.      example, 05:07 and  5:07 are both valid, but  5:7 is not.
  137.  
  138.           Mode may be Regular or Security (simply R or S is a
  139.      sufficient entry.)  Security mode sets the event to occur at a
  140.      random time sometime during the specified hour.  The minutes
  141.      are ignored for the security mode, but must be entered anyway.
  142.  
  143.           Days are specified by filling one column for each day of
  144.      the week desired.  You may enter "M W F" for Monday, Wednesday
  145.      and Friday, or you may use x's for each day.  "X X X" does the
  146.      same job as "M W F".
  147.  
  148.           The Months field may be used to limit the event to
  149.      specific months.  Simply enter the first and last months by
  150.      using the first three letters of each, with a - (dash) in
  151.      between.  For example, Oct-Mar will cause the event to be
  152.      scheduled only between October and March, inclusive.
  153.  
  154.      The Time Limit field may be used to indicate a limiting time
  155.      to prevent a variable time from varying too far.  A < sign
  156.      denotes that the following time is the latest time that may be
  157.      programmed, but that it will be programmed. For example, <
  158.      4:40 indicates that the event will occur no later than 4:40.
  159.      A > sign denotes that the following time is the limit after
  160.      which the event should not be programmed at all.  For example,
  161.      an entry of > 7:00 (AM) would mean that if the sunrise is
  162.      sufficiently late that a light would be turned on after 7:00,
  163.      it will not be turned on at all.  At present, there is no
  164.      corresponding initial limit, but this feature is planned for a
  165.      future update.
  166.  
  167.      
  168.  
  169.                     RUNNING THE XCONTROL PROGRAM
  170.  
  171.      Simply type XCONTROL to run the program.  You will get a menu of
  172. possible functions.  Alternatively, you may specify any single function
  173. letter from the command line.  In this case, the menu is bypassed and
  174. the function will be performed (assuming that it is a function requiring
  175. no further input) and the program will terminate.  This feature was
  176. primarily done to enable the L (load) function to be performed from a
  177. batch file.  If no function is specified on the command line, the menu
  178. will be presented.  At the completion of any function, the menu will
  179. return.
  180.      The XControl program reads three data files and uses the
  181. information from them to download a set of event programs to a
  182. Powerhouse X10 (TM) controller.  The data files are XCONTROL.INI,
  183. SUNRISE.DAT and SCHEDULE.DAT.
  184.  
  185.      The XCONTROL.INI file just contains the COM port number and a flag
  186. indicating whether your printer supports the line drawing set.  This
  187. file is created by the XCInstal program during initial installation.
  188.  
  189.      The SUNRISE.DAT file contains the approximate sunrise and sunset
  190. times.  This file is also created by the XCINSTAL program.
  191.  
  192.      The SCHEDULE.DAT file contains the list of events that you wish to
  193. have programmed in the X10 controller. The events are stored in the
  194. controller by line number of the file, not by unit number.  However, the
  195. XControl program will clear all events not listed in the file.  The
  196. SCHEDULE.DAT file may be updated by using the XCEDIT program.  Other
  197. filenames may be used if desired.  (I use a separate file called
  198. VACATION.DAT for the Christmas holiday season.)
  199.  
  200.      The XControl program updates the events which are scheduled based
  201. on sunrise or sunset whenever the L (load controller) function is used.
  202. It is not a memory resident program that will automatically update the
  203. times.  I find that running it about once a week is adequate.  You don't
  204. need to revise the schedule file, just type XCONTROL L daily, weekly or
  205. whenever you wish.
  206.  
  207.      The format of the schedule file is provided for those who wish to
  208. use another editor, you don't need to worry about it if you plan on
  209. using the XCEdit program to maintain your schedule file(s).  The format
  210. is as follows.
  211.  
  212.      
  213.  
  214. Column  1 contains the housecode of the device to be programmed. This
  215.              must be a letter in the range of A to P.
  216.  
  217. Column  2 should be blank.
  218.  
  219. Columns 3-4 contain the unit code of the device to be programmed.
  220.  
  221. Columns 5-30 are a description of the unit to be programmed.
  222.  
  223. Columns 31-33 are the function code.  ON, OFF and D (dim) are the
  224.              allowed codes.  If D is entered, it must be followed by a
  225.              number from 0 to 15 representing the desired brightness
  226.              level.  0 is full dim, or off; while 15 is fully bright.
  227.  
  228. Column  34 should be blank.
  229.  
  230. Columns 35-39 are the time to be programmed.  Two formats are possible.
  231.              The first format is HH:MM, where HH is the hour (1-12) and
  232.              must have a leading space if both columns are not used. The
  233.              minutes may be 00 to 59.
  234.              The second format is SR+MM, where SR may be used to
  235.              indicate sunrise or SS may be used for sunset.  The +
  236.              indicates that the minutes following are to be added to the
  237.              sunrise or sunset time, while a - would subtract the
  238.              minutes from the sunrise or sunset.  The minutes in this
  239.              case may vary from 00 to 99.  For example, SR+15 would
  240.              indicate 15 minutes after sunrise.
  241.  
  242. Column  40 should be blank.
  243.  
  244. Columns 41-42 must be either AM or PM.
  245.  
  246. Column  43 is blank.
  247.  
  248. Columns 44-49 may be used to indicate a limiting time to prevent a
  249.              variable time from varying too far.  A < sign denotes that
  250.              the time in columns 45-49 is the latest time that may be
  251.              programmed, but that it will be programmed. For example, <
  252.              4:40 indicates that the event will occur no later than
  253.              4:40.  A > sign denotes that the time in columns 45-49 is
  254.              the limit after which the event should not be programmed at
  255.              all.  For example, an entry of > 7:00 (AM) would mean that
  256.              if the sunrise is sufficiently late that a light would be
  257.              turned on after 7:00, it will not be turned on at all.
  258.  
  259. Column  50 is blank.
  260.  
  261. Columns 51-59 are the mode.  Allowable entries are REGULAR, SECURITY, or
  262.              blank.  A blank mode will clear the event in the X10
  263.              controller.
  264.  
  265. Column  60 is blank.
  266.  
  267. Columns 61-67 are the days.  Column 61 is M for Monday if the event is
  268.              to be scheduled, otherwise it is blank.  Similarly, columns
  269.              62-67  contain T W T F S S or blanks.  Since it is the
  270.              position of the character which is important, not its
  271.              value, the use of T for both Tuesday and Thursday is not a
  272.              problem.  Similarly with the letter S.  When using the
  273.              XCEDIT program to add or revise an event, you may simply
  274.              enter an X in the columns desired.  The XCEDIT program will
  275.              put the proper letters in the output file.
  276.  
  277. Column  68 is blank.
  278.  
  279. Columns 69-77 may be used to limit the event to particular months.
  280.              Examples are: DEC-DEC would only be programmed during
  281.              December.  APR-JUN would be programmed during April through
  282.              June.  OCT-FEB would be programmed during October through
  283.              December AND January through February.
  284.  
  285.      
  286.  
  287.      It is critical that every line in the file be EXACTLY 77 characters
  288. long.  The program WILL NOT operate correctly with any other line
  289. length.  The file is an ASCII file and may be modified with any word
  290. processor that will allow keeping the fixed length lines.  However, use
  291. of the XCEdit program will be the most convenient method of updating the
  292. schedule files.
  293.      
  294.  
  295.      I hope that this program is useful to you.  If you have any
  296. questions or suggested improvements, please let me know.
  297.  
  298.      
  299.  
  300.                                                 William L. Sexauer
  301.  
  302.                                                 15548 SE 175th Ct.
  303.  
  304.                                                 Renton,Washington, 98058
  305.  
  306.                                                 (206) 226-2845
  307.  
  308.      
  309.  
  310.      
  311.  
  312.      
  313.