SMAC
LAC-26 Technical Reference Manual
4/29/2013 59
Command:
VI[[""][:n][:N]]
-- Variable Input --
Argument:
0 <= n <= 255
This command allows for the display of an optional text string,
an
optional
carriage
return /
linefeed (CRLF) and the entry of integer numeric operator input to a register variable.
The
text
string
must be
enclosed
by
quotes
"""
and
may
be
up
to
127
characters
long.
Additional
parameters must
be
separated
by
a
colon
":". Entered
numbers
will
be
interpreted
(as
decimal
or
hexadecimal)
as
determined
by
the current
mode
set by
the
DM or
HM commands.
If
the value
entered
by
the operator
is
in
error
(indeterminate),
then
the
Bad
Input
bit
(bit
15
of
the
variable
SYSSTAT)
is
set, otherwise
it
is
cleared.
If
no
operator
input
is
entered
(only
a
carriage
return is
received),
then
no
register
will
be altered.
If
no argument
is
given
and
operator
input
is
received,
then register 0 will be the default recipient of the input value.
The
following
are
all
the
valid
examples.
Note
that
the
"N"
option
causes
a
CRLF.
Parameters must be given in specific order.
>VI
; Wait for operator input (if any) to register 0.
>VI"ENTER NUMBER: "
; Display "ENTER NUMBER: " and wait for
; operator input (if any) to register 0.
>VI5
; Wait for operator input (if any) to
; register 5.
>VIN
; Display a CRLF and wait for operator input
; (if any) to register 0.
>VI"ENTER NUMBER: ":5
; Display "ENTER NUMBER: " and wait for
; operator input (if any) to register 5.
>VI"ENTER NUMBER: ":N
; Display "ENTER NUMBER: " followed by a
; CRLF and wait for operator input (if any)
; to register 0.
>VI5:N
; Display a CRLF and wait for operator input
; (if any) to register 5.
>VI"ENTER NUMBER: ":5:N
; Display "ENTER NUMBER: " followed by a CRLF
; and wait for operator input (if any) to
; register 5.
Command:
XFn
-- Set XOFF Code --
Argument:
0 <= n <= 255
Default:
1
9
This command does not function and is retained for backward compatibility purposes.