Specifications

BASIC Stamp II
Page 342 • BASIC Stamp Programming Manual 1.8 • Parallax, Inc.
Xout
XOUT
mpin,zpin,[house\keyOrCommand{\cycles}{,house\keyOrCommand{\cycles}...}]
Send an X-10 powerline control command (through the appropriate
powerline interface).
Mpin
is the I/O pin (0-15) that outputs X-10 signals (modulation)
to the powerline-interface device. This pin is placed into output
mode.
Zpin
is the I/O pin (0-15) that inputs the zero-crossing signal
from the powerline-interface device. This pin will be placed into
input mode.
House
is the X-10 house code (values 0-15 representing letters A
through P).
KeyOrCommand
is a key on a manual X-10 controller (values
0-15 representing keys 1 through 16) or an X-10 control command
listed in the table below. In Xout instructions you can use either
the command value or the built-in Command constant.
Cycles
is an optional number of times to transmit a given key or
command. If no cycles entry is used, Xout defaults to two. The
cycles entry should be used only with the DIM and BRIGHT
command codes.
Explanation
Xout lets you control appliances via signals sent through household
AC wiring to X-10 modules. The appliances plugged into these mod-
ules can be switched on or off; lights may also be dimmed. Each mod-
ule is assigned a house code and unit code by setting dials or switches
on the module. To talk to a particular module, Xout sends the appro-
priate house code and unit code (key). The module with the correspond-
ing codes then listens for its house code again and a command (on, off,
dim, or bright).
Xout interfaces to the AC powerline through an approved interface
device such as a PL-513 or TW-523, available from Parallax or X-10
dealers. The hookup requires a length of four-conductor phone cable