Commodore CBM Printer 4022 User Manual page 33

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

Advertisement

Enabling
the
Printer
Diagnostic
Messages: sa=4
When
a
secondary address
of
4
is
transmitted,
tlie
printer's
diagnostic
messages
appear
whenever
an
error occurs.
When
a formatting error occurs, a
message
is
printed,
the format
is
dumped, and
a pointer
is
located
at
the offending
field.
If
a
secondary address
of
4 has
NOT
been
transmitted,
then
once
an
error occurs,
data characters are
dumped
directly to
the
print line
even
if
the
last
command
was
to
format
data.
To
enable
the
printer
diagnostic
messages, execute
the following
program
steps:
Example:
10
OPEN
4,4.4
20 PRINT* 4
30 CL0SE4
Whether
or not diagnostic
messages
are enabled, overflow
of
numeric
fields
is
always
indicated
by
fields
filled
with asterisks
{******).
This
is
a nonfatal
error;
as
in
other cases, the
secondary address
option
is
reset
to zero,
and
all
data retrieved
by
the
printer
are printed exactly as they are received.
Diagnostic
IVIessages
*PE:L*
Lines per
page
out
of
range.
An
attempt
was
made
to
set
the
lines
per
page
to
a
value outside
the
range
<1
3<
linesperpage
<
1
28
via
a
print to
SA
3.
The
command
is
ignored
and
the
pre-
vious length
remains
in
force.
*PE:C*
Bad command. You gave
the
printer
an
invalid
SA
outside the range.
<
SA
<
1
1.
The com-
mand
is
ignored.
*PE:M*
Data-format mismatch.
You
gave
the
printer
non-numeric
data
to print
in
a
numeric
field.
The
first
character
printed
after
the
error
message
is
the offending
character.
*PE:E*
Exponent
error.
The
numeric
data given
to
the
printer to
print
in
a
numeric
field
had an
invalid
exponent.
The
expected form
of
a
number
in
exponential form
is;
n.nnnn+ee
or
n.nnnn-ee.
The exponent must
contain a plus
or
minus
sign with a
two
digit
exponent.
*PE:F*
Bad
format.
The
data, that
was
sent
to
SA
2
to store,
either
contains
illegal
formatting char-
acters,
or
was
of
an unrecognizable
syntax.
*PE:T*
Terminator
error.
The
SA
changed
before
a terminator
was
detected.
A
terminator
is
de-
fined as a carriage return
(chr$(1
3)),
a
line
feed
(chr$(1
0)),
a
carriage stand
(chr$(1
41
)),
or a
carriage return line-feed
sequence.
Communication
with the current
SA
must be
terminated
with a terminator
before attempting
to
"talk"
to
another SA.
28-

Advertisement

Table of Contents
loading

Table of Contents