Format Control - Commodore CBM Printer 4022 User Manual

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

Advertisement

FORMAT CONTROL
Through
the
printer's
format
control option,
you
can
control the interpretation of
data sent
to
the
printer.
The
format
control option allows
you
to
print
numbers
in
columns,
set
the
number
of
lines
per page,
and
perform
other
useful
formatting
tasks.
To
implement
the
format
control
option,
you
use
the
third
parameter
of
the
OPEN
command.
OPEN
Ifn,
dn,
sa
As
before,
Ifn
is
the
logical
file
number,
dn
is
the device
number
(also
known
as the primary
address),
and
sa
is
the
secondary
address.
It
is
in
the
secondary
address
position that
you
enter
the
format
control
parameter.
You
can
enter
any
of
the
seven secondary address
in
your
OPEN
command.
These
are:
Print
data exactly as received
1
Print
data according
to
a previously-defined
format
2
Store the formatting data
3
Set the
number
of lines
per
page
to
be
printed
4
Enable
the
printer
format diagnostic
messages
5
Define a
programmable
character
6
Set
spacing
between
lines (for
Model
2022
only)
After
the appropriate
OPEN
statement has
been
transmitted, a
PRINT*
statement
is
required
to
transmit the
secondary address
information
to
the specified device
(in
this
case,
your
printer).
Remember,
that
it
is
possible
to
have
as
many
as ten
files
open
simultaneously. This allows
you
to
perform
several formatting
functions
at
one
time
on
the data
in
the
computer's
memory.
There
are
examples
of
the formatting
capabilities
described
in
this
section
in
the
Appendix.
Printing
Data
Exactly
As
Received:
sa=0
This
secondary address
is
the
default value.
Whether
or not
you
include
it
in
your
OPEN
statement, the
printer prints
data exactly as
received.
Up
to
80
characters are printed
on each
line
and
if
the next character
is
not
a
Carriage
Return, a
Carriage Return
is
performed
automatically
and
the overflow characters are printed
on
the next
line.
-21

Advertisement

Table of Contents
loading

Table of Contents