BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333 • Page 57
BASIC Stamp II
Plabel is an optional label that specifies where to branch in the event of
a parity error (parity mode must be enabled).
Timeout is an optional value that specifies how long to wait before giv-
ing up and branching to tlabel. The amount of time is measured in
milliseconds, and may be up to 65535 (approximately 65 seconds).
Inputdata follows the conventions below:
variable Input a byte and store in variable.
STR bytearray\L{\E} Input a string into bytearray of length L with
optional end-character of E (0’s will fill remain-
ing bytes).
SKIP L Input and ignore L bytes.
WAITSTR bytearray Wait for bytearray string (bytearray is termi-
nated by 0).
WAITSTR bytearray\L Wait for bytearray string of length L.
WAIT (value,value,...) Wait for up to a six-byte sequence.
DEC variable Input decimal value.
DEC1-DEC5 variable Input decimal value of fixed length.
SDEC variable Input signed decimal value.
SDEC1-SDEC5 variable Input signed decimal of fixed length.
HEX variable Input hex value (i.e., “00F3”).
HEX1-HEX4 variable Input hex value of fixed length.
SHEX variable Input signed hex value.
SHEX1-SHEX4 variable Input signed hex value of fixed length.
IHEX variable Input indicated hex value (i.e., “$00F3”).
IHEX1-IHEX4 variable Input indicated hex value of fixed length.
ISHEX variable Input signed indicated hex value.
ISHEX1-ISHEX4 variable Input signed indicated hex value of fixed length.
BIN variable Input binary value.
BIN1-BIN16 variable Input binary value of fixed length.