Commodore CBM Printer 4022 User Manual page 21

Hide thumbs Also See for CBM Printer 4022:
Table of Contents

Advertisement

OPEN
5,4
CMD
5."HELL0
THERE"
PRINT#5,"HELL0 THERE-
CLOSE
5
OPEN
5.
4
PRINT#5,"HELL0 THERE"
CMD5,"HELL0
THERE"
PRINT#5:CL0SE
5
OPEN
5.4
not
CMD
5,
"HELLO THERE"
PRINT#5."HELL0 THERE"
PRINT#5:CL0SE
5
OPEN
5,
4
not
PRINT#5,
"HELLO THERE"
CMD5."HELL0 THERE"
CLOSE
5
Armed
with
these thumbnail descriptions
of
what
the
printer-related
commands
do,
you
can
now
proceed
to
the next
part of
this
section,
which
tells
you
how
to
use these
commands
to
control
your
printer.
You
can
find
more
detailed
information
about
these
commands
in
your
computer User
Manual.
PRINTING
IN
THE
DIRECT
MODE
The
direct
mode
of
communication
allows
you
to
enter printing
commands
at
the keyboard.
The
following
example shows
the
entire direct
mode
listing
process
of
a short
BASIC
program.
A
file
containing
a single
BASIC
statement
is
typed
into
the
computer's
memory. The
file
is
opened,
the output
channel
is
opened,
and
the
file
is
listed.
After the
file
is
listed,
the output
channel
is
closed
and
the
file
is
closed.
The
printer
is
now
out
of
use and
the
computer
is
ready
to
accept
new commands.
Example:
10?"THIS
IS
A
TEST"
""
The
tcrean
display*:
1D?"THIS
IS
A TEST-
~~"
Th«
printtr
prints:
Comments:
You
place
the data
in
the
com-
puters
memory
OPEN
3.4
OPEN
3.4
READY
You
opeti the
tile
and
give
It
a
Itn
of
3.
The
4
makes
the
file
available
to
the
printer
CMD
3
CMD
3
REHDV.
The
printer
is
"listening."
LIST
LIST
10
PRINT-THIS
IS
B TEST"
REHDV.
The program
is
printed
on
the
printer
The
printer
is
still
"listening."
PBINT»3
PRINT«3
READY.
Use
the
PRINT*
command
to
"unlisten" the
printer.
CLOSE
3
CLOSE
3
READY.
You
close the
file
so
that
Hn
3
can be used
for
something
else
16-

Advertisement

Table of Contents
loading

Table of Contents