home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast.iso
/
x_10
/
xe109.zip
/
XE109.DOC
< prev
Wrap
Text File
|
1988-05-25
|
12KB
|
328 lines
╔══════════════════════════════════════╗
║ X-10 Events Version 1.09 ║
║ Copyright 1988 F.C. Wilczynski ║
╚══════════════════════════════════════╝
Much of this file is duplicated in a HELP file within the program. To
access the HELP, simply type HELP at the Xe> prompt, or enter
XE HELP
at the DOS command prompt.
X-10 Events allows you to access many of the features of the X-10
Computer Interface. This program allows you to access the X-10
Computer Interface from the command line, or from within the program.
In addition, commands can be piped thru the program from a list of
commands contained in an ASCII text file.
COM PORT
The default COM port of this program is COM1, but can be overridden to
address COM 1 thru COM 4 by adding a /x as the final parameter on the
command line at the DOS prompt; where x is a number 1, 2, 3 or 4. You
can permanently change the COM port by entering:
XE PORT x
Where x is the COM port value, 1 thru 4, you wish to use. The program
must be in the current directory of the current drive, and there must
be sufficient disk space remaining to allow the program to make a copy
of itself.
This program allow the following:
Clear any selected Timer Events
Change the Interface House Code
Read the Interface Time and House Code
Review Timer Events
Set the Interface Time
Send Direct Command thru the Interface
Set Interface Timer Event
The syntax of the program is not case sensitive, and commands can be
entered in upper or lower case.
The program can operate from a command line, or within the program.
To operate from the command line, enter the program name and the
command you wish to execute:
XE RV
would produce a list of the current X-10 Interface Timer Events, and
return back to the DOS prompt.
If you wish to execute several commands, you may execute them from
within the program, eliminating the need to enter the program name
with each command. The operation will also be faster since the
program need not be loaded for each command. Entering:
XE
will cause a "Xe>" prompt to be displayed. Enter your commands just
as you would on the DOS command line, without the program name:
RV
would produce the save list indicated above. To exit from the program
press the ESC key. If the programs default COM port is not set to the
port to which the X-10 Interface is attached, the port override (/x)
would have to be entered for each command entered from the DOS command
line. Running from within the program, the override is only entered
when the program is initially started.
Clear Timer Event
Syntax: cl L
Where 'L' is a valid event value in the range of 1 thru 128. A
range of events can be specified by separating two values, the first
less then the second, by a dash. A list of events can be specified
by separating the values by commas.
Examples:
cl 10 Clears timer event 10.
cl 10-20 Clears timer events 10 thru 20.
cl 10,11,12 Clears timer events 10 thru 12.
Change House Code
Syntax: hc H
Where 'H' is a valid house code in the range of 'A' thru 'P'. All
timer events are maintained.
Read Time
Syntax: rt
Displays the current Day, Time, and House Code settings of the X-10
Computer Interface.
Review Events
Syntax: rv [p]
Displays a list of the current timer events currently in the X-10
Computer Interface:
------------------ Event Number
| -------------- Mode of Operation
| | --------- House Code
| | | ------ Units
| | | | Time ---------------------------------------------
| | | | Days ------------------------------------ |
| | | | Command ----------------------- | |
| | | | | | |
5 Secure A1,2,3,4,5,6,7,8,9,10 .................. DIM 8. Weekends 7:30 pm
6 Normal A15 .................................... SW/ON .. Everyday 6:00 pm
7 Normal A14 ....................................ON ..... Everyday 7:00 pm
8 Normal A16 .................................... OFF .... Everyday 7:30 pm
Using the optional 'P' command will cause the listing to be sent to the
printer.
Set Time
Syntax st T
Sets the time of the X-10 Computer Interface to the specified day
and time, or to the current day and time established by the
computer.
Examples:
st mon,7:25 pm Sets the day to Monday and the time to 7:25 pm
st mon,19:25 Sets the day and time as in example one, using
a 24 time format
st C Sets the day and time the current day and time
of the computer.
Direct Command
Syntax HU C
Where 'H' is a valid house code in the range of 'A' thru 'P', 'U' is
a valid unit value, in the range of 1 thru 16, and 'C' is a valid
module command. Unit values may be specified as a range by
separating two values by a dash, or as a list, with values separated
by commas. Valid commands are:
ON ....... Turns Specified Units ON
OFF ....... Turns Specified Units OFF
DIMxx ..... DIM Lights to a value of 1 thru 16 (16=bright)
LIGHTOFF .. Turns Specified Units off, but light are
Dimmed off.
SWITCH .... Turns All Wall Switch Lights OFF.
SW/ON ..... Turns All Switch Lights OFF & Specified Units ON
ALLON ..... Turns All LIGHTS set to HOUSE CODE ON
ALLOFF .... TURNS ALL HOUSE CODE UNITS OFF
Examples:
A1 ON Turns Unit 1 of House Code 'A' ON.
A1-2 OFF Turns Units 1 and 2 of House Code 'A' OFF.
A1,2,5 DIM8 Dims light Units 1,2 and 5 of House Code 'A' to
DIM LEVEL 8.
Set Timer Event
Syntax HU D T C [S] [L]
Where 'H' is a valid house code in the range of 'A' thru 'P', 'U' is
a valid unit value, in the range of 1 thru 16. 'D' represents the
days of the week, and 'T' the time of the day when the command will be
effected. 'C' is a valid module command as indicated in the Direct
Command above. The optional 'S' will cause the timer event to be
entered in Security Mode. The optional 'L' allows you to designate
the timer event position within the interface.
HOUSE AND UNIT
The house code and unit values are entered just as they are for the
Direct Command described above.
DAY(S) OF WEEK
The indication of the days of the week, when the timer event will be
executed, can be described as follows:
TODAY ........... An event will execute TODAY only.
TODAY+ ........... An event will execute TODAY and TOMORROW only.
TOMORROW ......... An event will execute TOMORROW only.
WEEKENDS ......... The event will execute on Saturday and Sunday.
WEEKDAYS ......... The event will execute only on weekdays.
EVERYDAY ......... The event will execute everyday of the week
TD ............... Same as TODAY
TD+ .............. Same as TODAY+
TM ............... Same as TOMORROW
WE ............... Same as WEEKENDS
WD ............... Same as WEEKDAYS
ED ............... Same as EVERYDAY
Other sequences of days can be designated in one of the following
manners:
Enter a list of numbers to indicate the days the event is to
occur, with 1 representing SUNDAY, and 7 representing SATURDAY.
For example if you want an event to occur on TUESDAY, THURSDAY,
and SATURDAY, enter a the 3 digits list 357.
Enter a quoted string, 7 characters in length, filling in a
character for each day the event to be effective. The string
"--t-t-s" would have the same effect as the 357 in the above
example. You can use the - or a space, but the string must be
quoted.
TIME
The time can be entered in 12 or 24 hour format. if the 12 hour
format is used the optional AM, PM is used. The time can also be
set relative to either the computer clock, or the X-10 Computer
Interface clock. Examples of valid times:
10:40 = 10:40 am
22:40 = 10:40 pm
10:25 am = 10:25 am
9:30 pm = 9:30 pm
C = Uses current time of computer clock.
X = Uses current time of X-10 Computer Interface clock.
C+1:15 = Current computer clock time, plus one hour and 15
minutes.
X-:10 = Current X-10 clock time, minus 10 minutes.
COMMANDS
The commands for a timer event are identical to those described in
the Direct command.
SECURITY
The use of the optional 'S' marks the timer event as SECURITY Mode,
causing the events actual time of occurrence to vary within an hour of
the specified time.
TIMER EVENT LIST ENTRY
The X-10 Computer Interface has room for 128 timer events. When a
timer event is transmitted to the X-10 interface, the actual
position in the event list must be specified. If the listing is
not specified, the program will download the current list of timer
events in order to locate an unused position for the new timer
event. If you wish to change an exiting timer event it is faster
to specify the list entry value, because the program does not have
to download the existing events, and you will not have to remove
the previous entry, because it will be overwritten.
Timer event examples:
A1,3 ED 23:30 OFF
Turns units 1 and 3, on house code 'A', OFF at 11:30 pm everyday
of the week.
A6 TODAY C+:20 ON
Turns unit A6 on 20 minutes from the current time. Attached to a
signal device, this can be used as a timer.
A9-12 TODAY+ 6:30 PM DIM10 L6
Turns on units 9 thru 12 on house code 'A', and dims them to dim
level 10 at 6:30 pm. The timer event in place in the 6th position
in the time list, overwriting any previous event existing in that
position. This timer event will occur today and tomorrow, and
then the event will be cleared from the list by the X-10 Computer
Interface.
Piping Files
This program allows an ASCII text file of commands to be piped
thru as if the commands were typed at the keyboard. This allows you to
maintain a timer event list in a file which can be directly loaded into
X-10 Interface. Any changes can be made to the file with a text
editor, and then reloaded. To pipe a file enter:
XE < filename
The file "TEST" is included to provide an example. You may wish to
take a good look at this file. A couple of things you may wish to
note: 1) The last line in the file is "ESC" which cause the program
to terminate operation after sending all commands to the Interface.
If the ESC is not entered, the program will hang up after executing the
last command in the file, and will require you to reset your computer.
2) The first command sets the X-10 Computer Interface to Noon, and all
the timer events are set relative to the X-10 clock. The final
commands set the X-10 Interface clock to the same time as the computer
clock. This technique could be of value in setting dawn and dusk
times by changing only the initial time setting of the X-10 clock in
the first command.