Commodore DPS-1101 User Manual

:.
IMM'
I
•••
II
II
01
DAISY
WI
IEEL
PRINTER
A
Friendly
Introduction
to
Your
DPS-1101
Daisy
Wheel
Printer
USER'S
GUICE
USER'S GUIDE
STATEMENT
"This
equi
pment
generates and
uses
radio
frequency
energy. If
it
is
not
properly
installed and used in stri
ct
accordance
with
the manufac-
turer's instructions, this equi
pment
may
interfere with
rad io and tele-
vision reception. This machine
has
been tested and
found
to
comply
w
ith
the
limi
ts
for a Class B comp
utin
g device peripheral in accord-
ance w
ith
the spec ifications in
Subpart J of
Part 15
of FCC
Rules,
which
are
des
igned
to
provide
reasonable
protect
ion
aga
inst such
interference
in a residential install ation.
If
you
suspect interference,
you
can test th
is equ
ipment
by
turn
ing
it
off
and on. If
you
determine
th
at there
is
interference wi
th
radio
or
television
reception,
try
one
or
more
of
the foll
owing
measures
to
correct
it:
reorient
the receiving antenna
• move t he equ i
pment
away
from
the
receiver
• change the relative posi
tions
of
the equ
ipment
and the rece iver
• plug
the
equ i
pment into
a d
iff
ere
nt
out
let
so
that
the
equipment
and
the
receiver are
on
different
branch
circuits.
If
necessary, consult
your
Commodore
dealer
or
an
experienced rad io/
tel
ev
ision technician
for
additional suggestions. You may also w
ish
to
cons
ult
the
following
booklet,
wh
ich was prepared
by
the Federal
Comm
uni
cations
Commission:
"How
to
Identify
and
Resolve Rad
io -TV I nterference Problems".
This booklet
is
ava
ilable
from
the U S.
Government
Printing
Office,
Washington, D.C.
20402,
Stock
No.
004-000-00345-4.
COMMODORE
DPS-1101
DAISV
WHEEL
PRINTER
USER'S
GUIDE
A
Friendly
Introduction
to
Your
DPS-11D1
Daisy
Wheel
Printer
The information
in
this manua! has been reviewed
and
is
believed
to
be entirely
reliable.
No
responsibility, however,
is
assumed for inaccuracies. The material in
th
is
manual
is
for information purposes only, and
is
subject
to
change
without
notice.
This manual contains copyrighted and properietary information. No
part
of
this
publication may
be reproduced, stored
in
a retrieval system, or transmitted
in any form or by any means, electronic, mechanical, photo-copying, recording or otherwise,
without
the
prior written permission
of
Commodore Electronics
Limited.
Copyright ©
1984
by Commodore Electronics Limited
All
rights reserved.
CONTENTS
OVERViEW
••••••••..•.........••••.••......•.•................
1
CHAPTER 1:
HOWTO
UNPACK, SET UP,
AND
USE THE PRINTER. • . . .
.•
3
step-by-step instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
..
3
operation panel
.............................................
6
DIP
switches.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
..
7
troubleshooting chart
....
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
..
9
safety
tips
.................................
:
...............
10
CHAPTER 2: BASIC
COMMANDS
FOR PRINTING
.................••..
11
the
OPEN command
.........................................
11
the
PRINT#
command
.......................................
11
the
CLOSE command
........................................
12
the
CMD
command
.........................................
12
printing in direct mode
......................................
12
printing a program
..........................................
13
printing under program control
...............................
13
secondary addressing
.......................................
15
CHAPTER
3: CONTROL CODES
•••..•..••.•.......•....•.....•....
19
ASCII
codes
................................................
19
escape codes
...............................................
20
definitions
.................................................
24
example program
...........................................
25
CHAPTER
4: DOWN LOAD
.•.•.....•....•.••.•..••.............••
27
APPENDICES
••..••••.........•..••..••••..•....•.....••....••.
50
A:
DPS-1101 specifications
...................................
50
B: ASCII
code table
..........................................
51
C:
visible control codes
......................................
54
D: daisy wheel selection guide
................................
58
E:
character level
...........................................
59
F:
spoke position
...........................................
68
G: serial interface information
................................
69
':/"
":
..
,;.
~
..
'
.'
: ..
::.;
....
OVERVIEW
Chapter 1
of
this guide tells you
how
to
unpack, set up, and begin printing
with
your
DPS-1101
printer. Once you have properly unpacked and set up the
printer, the easiest
way
to
begin printing is
to
use a
word
processing pro-
gram.
Simply
follow
the directions
for
printing given
in
your
word
processing
manual. In
most
cases, you can print
from a word
processor by pressing
two
or
three keys. For example,
if
you are using Easy Script on the Commodore
64,
you
only
have to push the
F1
function key and
two
letter
keys-O
(for
Output) and P (for Print).
Chapters 2
and
3 are primarily intended
for
users familiar with computer
programming.
These chapters cover the use
of
BASIC language commands
and control codes.
Chapter 4 explains the printer's Down Load capability.This advanced capabil-
ity
enables a
programmer
to create his
or
her
own
print table, through use
of
non-standard
print
wheels.
Appendices A through G provide detailed reference information.
~,~-:::--~
=--
<::>
,t·~·'';'''·~·/.:'::Z·'I··:Z····"/.·::.:r··:'···_"l··1
_
---=-=
~
·"I'~''':::/.:::~::;r
/
Paper Guide
I
~/
Print Head
Daisy wheel Loading Lever
figure
1
D
PS-1101
The
2
Acoustic Cover
operation Panel
Right Platen Knob
CHAPTER 1
HOW
TO UNPACK, SET UP,
AND
USE THE PRINTER
STEP-BY-STEP INSTRUCTIONS
1.
Inspect
the
shipping
carton
for
damage.
If
you
find
any external damage
to
the shipping carton and suspect that
the
printer
may
have been affected, contact
your
dealer.
2.
Remove
the
plastic
wrapping
from
the
printer.
3.
Remove
the
styrofoam
blocks
located
inside
the
printer.
The block on
the
left contains
the
following
items:
power
cord, interface
cable, daisy wheel,
ribbon
cartridge, and rubber carriage stopper. If
anything
is missing, contact
your
dealer.
4.
Remove
the
sheet
of
paper
wrapped
around
the
platen
(see Figure
fl.
5.
Remove
the
tape
from
the
carriage
bar
(see Figure
fl.
3
6.
Install
the
ribbon
cartridge
(see Figure 2).
Move
the
ribbon
load lever clockwise until
it
stops and locks
into
place.
• The ribbon feed adjustor should be set
to
SMALL except
when
printing
with
the
proportional
spacing feature on (described on page
6).
• Turn the cartridge knob in the direction
of
the
arrows
until
you
have
wound
about
6 inches
of
ribbon around the cartridge knob.
With
the
ribbon
facing the platen, place the cartridge on the
two
spindles and press
down
until
it
snaps into place in the spring clips on
either
side.
• Thread the ribbon
around
the
ribbon
tension
guide
and
through
the
two
ribbon position guides near the platen.
Move
the ribbon load lever counter-clockwise until
it
snaps
into
place.
Cartridge Knob
Ribbon Tension Guide
Ribbon Position Guides (Left & Right)
Ribbon Loading Lever
Spring Clip
Figure 2 Installing
the
Ribbon Cartridge
7.
Install
the
daisy
wheel.
Take the daisy wheel
out
of
its plastic case. If
it
isn't
already back, pull
back the
daisy
wheel
loading
lever (see Figure
1)
and
drop
the
daisy
4
wheel into the space that opened up when you pulled back the lever.
Make sure the raised letters on the daisy wheel are facing the platen,
then push the loading lever forward
to
lock in the wheel.
's.
Attach
the
acoustic cover.
Remove the plastic wrapping. Hold the cover perpendicular and slide it onto
the
two
little pegs on either side
of
the cover hinge slot on the
front/bottom
of
the opening
of
the printer (see Figure
1).
9.
Connect
the
power
cord.
Check the ON/OFF switch on the back
of
the printer (see Figure
3)
and
make sure the printer is
OFF
before you connect anything. Plug the
power
cord
into
the back
of
the printer under the ON/OFF switch and plug
the other end into a grounded (3-prong) outlet. Don't turn the
power
on
yet.
Interface Cable Connectors
Figure 3 Back Panel
10. Connect
the
interface cable.
Power Cord Connector Power Switch
Make sure
your
computer (and disk drive
or
any other peripherals)
is
turned off. Both ends
of
the interface cable are identical so it doesn't
matter which end you plug into the printer. It also doesn't matter which
serial port
that
you plug the cable into (see Figure
3).
If you have a disk
drive hooked up
to
your
computer, connect the printer interface cable to
the drive. Otherwise, plug the cable into the computer.
11.
Insert
paper.
You can use continuous feed
or
single sheets. Either way, insert the
paper just
as
you
would
for
a typewriter. First line up the paper guide
(see Figure
1)
with
the
first
white
mark on the left end
of
the ruler. Then pull back the paper bail lever and insert the paper in the slot behind the ruler. Use the platen knob
to
roll the paper into position. If the paper
comes up crooked, pull back the paper release lever and straighten the
paper. Then close the paper release lever and push the paper bail into place.
5
12. Turn on the
power
and run the selftest.
You can
turn
on
the
power
to
peripherals in any order you want, but
always
turn
on
power
to
the computer last. If you
want
the printer
to
go
through
its selftest, insert a sheet
of
paper sideways (because the printer
prints an extra long line
of
characters
as
part
of
the selftest) then press
the
Form
Feed
button
while
turning on the power. The selftest checks the
Buffer RAM, operation
of
the print mechanism, and print quality.
On
the
first
line, the printer prints: Selftest. On the second line it should print:
RAM ok.
If
it
doesn't,
or
if it
prints RAM BAD, you've
got
a problem and
should contact
your
dealer. After those first
two
lines, the printer begins
printing
characters on one long line and then just continues
to
repeat
that
line. To stop the selftest, and ready the printer
for
use,
turn
the
power
switch
OFF
and then back
ON
again (anytime you turn the power
on and off,
wait
a couple
of
seconds after you
turn
it
off
before you turn
it
on again so
that
the printer has time
to
reset).
OPERATION
PANEL
As
you
can
see
in Figure
1,
the operation panel
is
located on the top, right
hand side
of
the printer. The panel contains the
following:
Spacing selection
buttons-Allow
you
to
choose the number
of
characters
per inch that the printer
will
print. The choices are
10, 12,
and
15.
You
can also choose proportional spacing (ps), which spaces characters according to
their
size. That means the printer gives
more
space
for
wider
letters such
as
"m"
and less space
for
letters such
as
"i".
Power
indicator-Lights
up when the printer is ON.
Alert
indicator-Lights
up when the ribbon
or
paper has run
out
and when
you stop the printer
with
the Pause/Clear button. It blinks when
an
error
occurs
(if
an
error does occur, refer
to
the troubleshooting guide later in
this
chapter).
Pause/Clear
button-Stops
and restarts the printer
while
it
is printing. Also
turns
off
the alert indicator after you've corrected the problem that caused
it
to
light
up.
Form
Feed
button-Advances
the paper through the printer until
it
reaches
"top
of
form,"
which is automatically set by the printer each
time
it's
turned on. The
"form
length"
is set at
11
inches. So,
if
you're at the
"top
of
form"
and press the Form
Feed
button, the printer advances the paper
11
inches. However,
if
the printer has printed, say
for
instance, 5 vertical
inches
worth
of
text, and you press the Form
Feed
button, the
printer
will advance the paper 6 inches. You must first press the Pause/Clear button
for
the
Form
Feed
button
to
work. Then, after you use the Form Feed button,
press the Pause/Clear button
to
clear the printer
for
printing.
6
DIP SWITCHES
The
DIP
(Dual In-line Package) switches are located on the inside
of
the
printer, in the
front
right
hand corner
(see
Figure
1).
They are used
to
set
various operating characteristics
of
the printer. There are
two
sets
of
switch-
es,
labeled
SW1
and SW2.
SW1
is on the right and has 9 numbered switches.
SW2 is on the left and has 3 numbered switches. You
can
use a pen
to
set the
DIP
switches to either
ON
or
OFF,
depending on
what
features you want.
Pushing a switch
toward
the outside
of
the printer sets it
ON.
Pushing it
toward
the inside
of
the printer sets it
OFF.
The following table shows the
feature associated
with
each switch. Following the table, each feature is
described.
Table 1.
DIP Switch Settings
SW1 Function
OFF
ON
Factory setting
1
auto line feed
off
on
ON
2 impression level
low
high
OFF
3 ASCII code
CBM
ASCII
OFF
4
;nto.oot;onol I
OFF
5 character
see
Table 2
OFF
6
set
OFF
7
type
of
paper
cont
single
OFF
8
paper length
11"
12"
OFF
9 lines per vertical inch
6
8
OFF
SW2
Function
OFF
ON
Factory
setting
1
device
OFF
2
number
see
Table 3
OFF
3 setting
OFF
Auto line feed
When this is ON, the printer automatically skips
to
the next line when
it
receives a carriage return code. So
if
you have a
word
processing package
that
only
sends a carriage return code when you press the
RETURN
key,
you
should have the auto line feed ON. If it isn't on, the printer
won't
skip
down
a line, it
will
simply
go back
to
the beginning
of
the current line and type
over it.
On
the other hand,
if
your
word
processing package sends a line
feed code along
with
the carriage return code, the auto line feed should be
turned
OFF.
If
it
isn't, it
will
skip
down
two
lines: one
for
the
word
process-
ing line feed code, and one
for
the auto line feed
DIP
switch. Refer
to
your
software instruction manual
for
the required setting.
Impression level
When this is ON, the
print
mechanism strikes the characters on the daisy
wheel
with
more force, causing a darker image on the paper.
7
ASCII code
Chooses between ASCII and CBM character sets (see Appendix
B).
Your software package instructions should tell you which character set you should use.
International character sets
Chooses
from
among the character sets
of
several countries (see
Appendix D
for
a list
of
special daisy wheels needed
for
the various character
sets). The
following
table lists the
DIP
switch settings needed for each
country's character set.
Table
2.
Switch
Settings
for
International Character Sets
Country
Switch
5
Switch
6
Switch
7
USA
off off
off
France
off
off
on
Germany
off
on
off
England
off
on
on
Denmark
on
off
off
Sweden
on
off
on
Italy on on
off
Spain on on
on
Type
of
paper
Chooses between continuous-feed and single sheet paper. When set
for
single sheet (ON), the printer automatically stops printing at the end
of
a
page. Remove
that
page, insert another, and press the Pause/Clear button to
continue printing again.
Paper
length
Set this switch
to
correspond to the length
(11"
or
12")
of
the sheets
of
paper you are using (whether a single sheet
or
a sheet
of
continuous-feed
paper). Vertical
line
spacing
Chooses between 6 lines per vertical inch
(OFF)
and 8 lines per vertical
inch (ON). Device
number
Allows
you
to
change the device number
of
the printer. When you type in
a
command
on the computer, you have
to
include a device
number
so that
the
computer
knows where
to
send the command (to the disk drive,
to
the
printer, etc.). The normal device number
for
a printer is
4.
Usually, there is no
reason
to
change the device number. But say,
for
instance, you have
two
printers connected
to
your
computer. You
would
then need
to
change the
device
number
of
one
of
them so that the computer
would
know which was
which. The
following
table lists the possible device numbers and indicates
how
to
set the switches
for
each.
8
Table
3.
Switch
Settings
for
Device Numbers
Device
number
Switch
1
Switch
2
Switch
3
4
off
off
off
5
off
off
on
6
off
on
off
7
off
on
on
8
on
off
off
9
on
off
on
10
on on
off
11
on on
on
NOTES:
* Always
turn
the printer
OFF
before setting any
DIP
switches.
* The printer
will
operate
with
the
DIP
switches at their factory setting.
It is a good idea
to
change them
only
when specifically instructed
to do so (word processing package instructions, computer user's guide instructions).
TROUBLESHOOTING CHART
This chart shows you
how
to
deal
with
the
minor
problems that sometimes
occur when setting up a printer.
If
you encounter a problem that you can't
work
out, contact
your
dealer
or
Commodore customer service representa-
tive.
Problem Probable cause printer
won't
print
no power
(power indicator off)
Solution check power cord connection
check ON/OFF switch
printer
won't
print
improper connection check interface cable connection
(power indicator on)
improper
loading
of
reload ribbon cartridge
ribbon cartridge
printer OK,
but
paper is jammed
paper
won't
advance
printed characters bad ribbon are
too
light
or wrong ribbon
broken cartridge setting ribbon
won't
improper
loading
of
advance ribbon cartridge printer double
improper
DIP
spaces switch setting
9
remove and re-insert paper set auto line feed
DIP
switch
ON
replace ribbon cartridge
change setting
of
ribbon feed
lever reload ribbon cartridge
set auto line feed
DIP
switch
OFF
SAFETY
TIPS
1.
Wait at least
two
seconds
to
turn
on the
power
after it has been turned
off
so
that
the printer can initialize properly.
2.
Don't connect
or
disconnect the inter-face cable
if
either the printer
or
the
computer
is on.
3.
Keep
your
fingers, jewelry, and clothing clear
of
moving parts.
4.
Don't place the printer in direct sunlight.
5.
Turn the printer
off
immediately
if
an
object falls into the printer. Then
remove the object.
6.
Don't
move the print head manually.
7.
Avoid extremes in temperature and
humidity
in the operating environ-
ment
of
the printer (temperatures between
41
and 95 degrees Fahrenheit
and
humidity
between
30
and 85 percent are acceptable).
8.
Don't touch the carriage
rail-
it
can
get hot.
\0
CHAPTER 2
BASIC
COMMANDS
FOR
PRINTING
In
this
chapter,
you
will
see
how
to
print
program listings and program
results. To
do
that, you should
be
able
to
do the
following:
• Operate
your
COMMODORE computer.
Write
elementary programs in BASIC language.
OPEN
and
CLOSE
files.
• Read and Write files
to
various peripheral devices (such
as
a DATAS-
SETTE'" recorder
or
Commodore Disk Drive).
If
you
are
not
familiar
with
any
of
the above items, take the
time
now
to
read
and understand the USER'S GUIDE and PROGRAMMER'S
REFERENCE
GUIDE
for
your
computer
and/or peripherals.
THE
OPEN COMMAND:
This command creates a linkage
or
correspondence between a given
physical device and a file number. Its
format
is
as
follows:
OPEN
fn, dn,
sa
or
OPEN
fn,
dn
where:
fn
Is
the
file
number
(any
number
from 1 to
255).
If
the file
number
is
greater than
127, any printed lines
will
be
double spaced.
dn
sa
Is
the device
number
of
the peripheral
that
will
be
receiving the file.
Unless you change
it
with
the
DIP
switches, the device number
for
the
printer
will
be 4.
Is
the secondary address, a
way
of
instructing the printer
to
perform
certain tasks. More about this feature later.
THE
PRINT# COMMAND:
This command works
just
like the BASIC PRINT
command
except
that
it
directs the
output
to
the printer instead
of
the video screen. There
must
be
no space before the
#,
and spaces after
the
# are ignored. The
format
is
as
follows:
PRINT# fn
II
where:
fn
Is
the file
number
(any
number
from 1 to
255). This number
must
correspond
to
a given
OPEN
command.
THE
CLOSE
COMMAND:
Always use this command
to
close files when you have finished using
them. The
format
is
as
follows:
CLOSE
fn
where:
fn
Is
the file
number
of
the file being closed. This
number
must correspond
to
a given
OPEN
command.
THE
CMD
COMMAND:
Good
programming
practice dictates never using this statement
within
a
program; use in direct mode only.
This statement transfers the primary
output
device (video monitor)
to
the
file
number
specified in the command. The file must have been previously
OPENed. When
this
command is in effect, all output generated by a PRINT or
LIST command
will
be sent
to
the file instead
of
the video monitor. The
format
of
the
command
is
as
follows:
CMDfn
where:
fn
Is
the file
number
to
receive the output.
To
re~direct
the
output
back
to
the primary
output
device, the PRINT#
command
must
be used to send a blank line to the CMD device prior
to
closing the file. If a SYNTAX
ERROR
occurs, output
will
not
be
redirected
back
to
the video monitor.
PRINTING
IN
DIRECT
MODE
Now
that
you have reviewed the BASIC printing commands, let's
put
them
to
use in some practical applications. The direct mode allows you
to
communi-
cate
with
your
printer by entering printing commands directly into your
computer
via the keyboard and having them executed immediately.
The
following
example illustrates the direct mode procedure
for
listing a
short BASIC program.
In
the example below, a single statement BASIC
program is keyed
into
the computer's memory. A LIST command prints the
12
program on your video monitor. A file (#3) is
OPENed
to your printer and
CMD3 is issued
to
that file (the printer
is
now
listening). Issue the LIST
command again. This
time
the output is sent to your printer. To unlisten the
printer, send a blank to the OPENed file (PRINT#
3).
Now
close the file
with
a
CLOSE3.
All output
will
now
appear on the video monitor.
You
type:
10
PRINT "TEST"
LIST
OPEN
3,4
CMD3
LIST
PRINT#3
CLOSE3
PRINTING A PROGRAM
The screen displays: 10
PRINT "TEST"
LIST 10
PRINT "TEST"
OPEN
3,4
READY. CMD3 LIST
PRINT#3 READY.
CLOSE3 READY.
The printer prints:
READY.
10
PRINT "TEST"
READY.
To
print
a program,
follow
the examples below.
OPEN
4,
4: CMD4: LIST
OPEN
4,
4: CMD4: LIST 100-500
Prints the program. Prints lines 100-500
of
a
program.
OPEN
4, 4: CMD4,
"program
name":
LIST Prints the program name and
the program.
After executing any
of
the above examples, type in the following:
PRINT#4
CLOSE4
or PRINT#4,
CHR$(12)
CLOSE4
PRINTING UNDER PROGRAM CONTROL
This performs a Form
Feed
You have seen
how
to print a listing
of
a simple
BASIC
program directly from
the keyboard. Although
it
is
not
good programming practice, the following
13
example shows
how
to
print a listing
of
a BASIC program under control
of
the program itself. First, type in the
following
simple program:
10
OPEN
3,
4
20
CMD3
30
PRINT"PROGRAM CONTROL"
40 LIST
Now
type LIST and the program
will
be
listed on
your
video monitor. Type in
the RUN command and the
following
should be printed on
your
printer: PROGRAM CONTROL 10
OPEN
3,4
20
CMD3 30 PRINT"PROGRAM CONTROL" 40
LIST READY. Now, type in the
following:
PRINT#3
CLOSE3
Here's
what
happened:
The RUN command instructed the computer
to
execute the program in its
memory. First,
file#3
(device#4) was opened. Next, the CMD command
instructed the
computer
to
direct all subsequent
output
to
file#3. The .pro-
gram
then PRINTed PROGRAM CONTROL on file#3. The LIST command
instructed the
computer
to
print
a listing
of
the program in its
memory
on
file#3.
REMEMBER: When using the LIST command
within
a program,
you
must
type the PRINT# fn command
to
unlisten the printer. Then
you
must
type in the CLOSE fn command
to
close the file. Both
of
these
commands
can be entered
into
the program
or
after
you
have RUN the
program. Using the LIST command
or
the CMD command in a program
is generally
not a good
programming
practice. It is suggested that
you
only
use
them
in Direct mode.
14
SECONDARY ADDRESSING Earlier you were introduced
to
the secondary address concept in the discus-
sion
of
the
OPEN
statement. This feature allows you to instruct your printer
to
perform the
following
functions: Function Secondary Address Print data exactly as received
o (default)
in upper case/shifted lower case mode
Print data exactly
as
received 7
in
lower
case/shifted upper case mode
Reset the printer
10
For each function you must
OPEN
a file using the appropriate secondary
address, then issue a PRINT# command to that file. That instructs the printer
to
perform the function defined by the secondary address.
A program that takes advantage
of
all the above functions could have 3 files
open at the same time. To avoid confusion,
we
recommend that you associ-
ate the
following
file number,
with
the corresponding secondary address in
all programs
for
your
printer (all examples in this guide
follow
this conven-
tion):
File Secondary
Number
Address
Example
4 0
OPEN
4, 4 (OPEN
4,4,0)
7
7
OPEN
7,4,7
10
10
OPEN
10,4,10
The reason that the secondary address
of
0 has been assigned
file#4
is that a
file
number
of
0 is
not
allowed.
A secondary address
of
0 causes the printer
to
print
ASCII
data exactly
as
received in upper case/shifted
lower
case mode. Upper case/shifted lower
case mode is the equivalent
of
Upper-case/Graphic Character Mode (Graphic
Mode) in
dot
matrix printers (except graphic characters).
In
this mode, you
can get a program list in upper-case characters. The
format
for
this command is
as
follows:
OPEN
4,
4
(OPEN
4,
4,
0)
PRINT#4 <, variable/data> CLOSE4
15
In
global upper case/shifted
lower
case
mode, you
can
print in local lower
case/shifted upper case mode. When you want to print data in local
lower case/shifted upper case, you should use the Cursor Down Code[CHR$(17)]. Conversely, when you
want
to
print data in local upper case/shifted lower
case, you should use the Cursor Up Code [CHR$(145)).
A secondary address
of
7 allows the printer
to
print data exactly
as
received
in
lower
case/shifted upper case mode. The SYNTAX
of
the secondary ad-
dressing
of 7 is
compatible
with
that of all serial printers.
The
format
for
this command is
as
follows:
or
OPEN
4,
4,
7
PRINT#4
<, variable/data>
CLOSE4
OPEN
7,4,7
PRINT#7 <, variable/data> CLOSE7
16
In global
lower
case/shifted upper case mode, you can print in local upper
case/shifted
lower
case mode. When you
want
to
print data in local upper
case/shifted
lower
case, you should use the Cursor Up Code [CHR$(145)].
Conversely, when you
want
to
print
data in local lower case/shifted upper
case,
you
should use the Cursor Down Code [CHR$(17)].
A secondary address
of
10
resets the printer.
The
format
for
this
command is
as
follows:
OPEN
10,4,
10 PRINT#10 CLOSE10
17
CHAPTER
THREE
CONTROL CODES
ASCII CODES
Code Chr$ Value Function
BS
(Back Space) Chr$
(8)
Backspaces the carriage one character
position.
HT (Horizontal Tab) Chr$
(9)
Advances the carriage
to
the next tab
stop on the right.
If
no tab has been set,
this code is ignored.
LF
(Line Feed) Chr$
(10)
The printer feeds one line (either
116"
or
1/8" depending on the
DIP
switch set­ting). At the bottom margin the printer feeds
to
the top margin.
FF
(Form Feed) Chr$
(12)
Advances the paper
to
the next Top
of
Form (top margin). The
amount
of
feed
is
determined by the
DIP
switch selecta-
ble
form
length.
CR
(Carriage Return) Chr$
(13)
CD
(Cursor Down)
Chr$
(17)
ESC
(Escape) Chr$ (27)
CS
(Carriage Stand) Chr$ (141)
CU
(Cursor Up) Chr$ (145)
Moves the carriage
to
the left margin
(with or
without
a line feed), depending
on the
DIP
switch setting.
Prints in lower case/shifted upper case mode. This local mode is cancelled by
CR,LF,FF,CS,CU
and auto carriage re-
turn codes.
Used
with
other characters
to
form
es-
cape codes. Covered in the next section.
Moves the carriage
to
the left margin
only when pin
3,
DIP
switch
SW1
is
OFF.
Prints in upper case/shifted lower case mode. This local mode is cancelled by
CR,LF,FF,CS,CD
and auto carriage re-
turn codes.
19
ESCAPE
CODES
Code
Chr$ Value
ESC
1 Chr$(27) + Chr$(49)
ESC2
Chr$(27)
+ Chr$(50)
ESC
8 $1838 $18 $38
Chr$(27) + Chr$(56)
ESC9
Chr$(27)
+ Chr$(57)
ESCO
Chr$(27) + Chr$(48)
ESCT
Chr$(27) + Chr$(84)
ESC
L
Chr$(27)
+ Chr$(76)
ESCC
Chr$(27)
+ Chr$(67)
ESC
5
Chr$(27)
+ Chr$(53)
ESC6 Chr$(27)
+ Chr$(54)
20
Function
Sets a horizontal tab stop at the current carriage location.
Up
to
16
tab stops can be set.
Clears all horizontal and verti­cal tabs.
Clears
individual
horizontal tabs at the current carriage lo­cation.
Sets the left margin at the cur-
rent carriage location.
Sets the right margin at the
current carriage location.
Sets the
top
margin (Top
of form) at the current carriage lo­cation.
Sets bottom margin at the cur-
rent carriage location.
Clears the
top
and
bottom
mar-
gins.
Clears backward print mode.
Places the printer in backward print mode, provided that the last
print
line was terminated
by
an
LF,
ESC
LF,
or
CR
code
before the
ESC
6 code was re­ceived. In backward print, the carriage moves
to
the left in-
stead
of
to
the right. Tabs, car­riage return, all paper move­ment functions are unaffected by backward print. Clear this mode
with
an
ESC 5 or a CR
code.
Loading...
+ 58 hidden pages