Peripheral
Devices
ASCII Data Transfer
To
copy
an
ASCII
data
string
from
the
computer to
the
printer,
use
the
following escape
sequence:
Ec
&p
W
<data
string)
The
entire
data
string
is
copied.
The
string
is
terminated
either
by
anASCII
line
feed
character
or
by
the
256th
character.
DETERMINING IF YOUR ESCAPE SEQUENCE
COMMAND
HAS
BEEN SUCCESSFULLY PERFORMED
After
issuing
a copy line, copy page, copy all, advance line,
or
advance
page
Ec
&p
sequence,
the
remote
program
can
determine
whether
or
not
the
operation
was
successfully performed by
executing
an
INPUT
(BASIC language)
or
similar
instruction
that
requests
oneASCII charac-
ter
from
the
terminal.
The
terminal
responds by
sending
an
cCS",
cCF",
or
cCU".
An
cCs"
indicatessuccessful completion,
an
CCF"
indicates
that
the
operation
failed,
and
a
CCU"
indicates
that
the
terminal
operator
inter-
rupted
the
data
transfer
by
pressingl:l.
A
CCU"
can
be
returned
only for a copy
page
or
copy
all
operation.
If
the
printer
is
offline
when
an
attempt
is made to
transfer
data
to it,
the
terminal
will
still
return
an
cCs".
These completion codes
cannot
be suppressed by configuration
parameters
or
any
other
means.
They
are
always
transmitted
and
your
programsshould include
input
commands for accepting
them.
The
keyboard
is
disabled
CClocked")
until
the
status
is sent.
In
either
Character
or
Block LineĀ·mode,
the
terminal
sends a
<CR>
(or a
<CR>
<LF>
if
Auto
Linefeed mode
is
enabled) following
the
completion code.
In
Block
Page
mode,
it
sends
a block
terminator
character.
If
a
datacomm
error
occurs
during
transmission
of
the
data
record,
the
device control comple-
tion code
is
unpredictable.
Datacomm
errors
are
reported by
way
of
the
terminal
status
bytes
described
in
Section 8.
6-14