Congratulations on selecting the
printer that performs a variety of different printing operations, such as:
• Proportionally spaced characters
• Monospaced characters (standard, condensed and compressed)
• Correspondence-quality characters
• Italic characters
• Super-/subscript
• Microfont
• Graphics
DMP
132
The
Data
•
•
Word
tion
• Graphics mode for drawing pictures, figures,
For
word processing, the
spaced characters produce letter-quality results. When you need a quick
printout, standard characters probably suit your needs,
mode, you can use graphic data to draw nearly any type of graphic con-
figuration you desire.
With your ve·rsatile
style and printing mode, but you can also select the code set (control
code sequence) and character set.
operatesinthree modes:
processing mode for quick
processing mode for letter writingorcreating text documenta-
DMP
DMP
DMP
132, a high-density,
output
132's correspondenceorproportionally
132, you can determine not only character
of program listingsordata
or
graphs
dot-matrix
In
graphics
Code sets:
• Tandy (original) code set
• Code set for IBM
Character sets:
• Tandy character set
• IBM character set
80
CPS graphics printers
1
Page 10
Introduction
You can use two typesofpaper
•
Tractorholes.
carbon
• Friction-fed, single-sheet
Other
•Full-orhalf-line feed
Underline
•
•
Buzzer
Automatic
•
•
Character
fed 4- inch
The
copies.
features
function.
or
10- inch
DMP 132 can also
typewriter
include:
and
capability.
paper
loading.
pitch
set
function
with the DMP 132:
computer
print
3/4or4/5 line feed.
fanfold forms with guide
one
original
paper.
andupto
two
non-
2
Page 11
Printer Components
CD
o
®
-<-->-----
Figure1.Front
1
POWER
nected and the
2
ALERT
this case, the printer enters the off-line state
for I second. Load more
switch.
or
some sortofelectrical problem.
indicator. Illuminates when the
POWER
indicator. Lights when the
The
ALERT
Panel
ONIOFF switch
indicator blinks when thereisa carriage fault
NotetoMODELIIusers: When a
because
However, the entire contents
current
:3
of
a printer
print head position.
ONIOFF
pressing this switch once causes the
printing at any time
switch to set the
LINE
error,
switch.
printertoOFF
or
type
of
At
to use
®
Controls.
paper
and press the
BASIC
CaNT
the print buffer prints starting with
power- up, the
other
LINE.
DMP
132
is
properly con-
is
set to
ON.
DMP
132
is
outofpaper. In
and
the buzzer sounds
aNI
OFF
LINE
proram
JENTER to resume printing.
printer
front panel switches, press this
to go off line. To stop
stops execution
DMP
132
is
on line;
the
3
Page 12
Introduction
Press and hold this switch for one second while in on line mode to
enter the pitch-set mode.
Note: To print the remaining data
by
ing
pressing the
ON/OFF
using your computer software. Then, press the
132
to set the DMP
(V
ON/OFF
is
on line and ready to print. The indicator flickers in the pitch- set
LINE
to ON LINE.
indicator.
in
the buffer after you stopped print-
LINE switch, cancel the printing process
ON/OFF
LINE switch
When this indicatorison, the DMP
mode.
(~)
NLQlDP
Quality (NLQ)
selected, the
mode. This switch works only when the DMP
In
the pitch-set mode, pressing this switch sets the pitch.
6
NLQ
switch. Press this switch to select either the Near Letter
or
standard print mode. When the NLQ mode
NLQ
indicator lights. Press this switch again for standard
132isoff line.
indicator.
Illuminates when the DMP
132isin
the NLQ
mode.
7
FORM
next top-of-form position.
FEED
switch. Press this switch to advance the paper to the
It
is
effective only when the DMP
off line.
In the pitch-set mode, pressing this switch moves the print head to
the left.
132
132
is
is
8
LINE
FEED
switch. Press this switch to advance the paper one
line. Press and hold for continuous paper feed. This switch works
only when the DMP
132isoff line.
In the pitch-set mode, pressing this switch moves the print head to
the right.
4
Page 13
Setting
This
chapter
using it
• Choosing a location for the printer
• Installing the
• Installing/adjusting the tractor feed unit
• Installing
• Loading
• Connecting the printer to a power source
• Connecting the printer to your
• Powering up the printer
• Performing a self-test
Carefully unpack the
paper
rack. Keep the empty box and packing material in case you ever
need to transport the
shows you how to set up the
as
soon as possible. Setting up the printer involves:
paper
rack
or
replacing a ribbon
paper
DMP
132, being sure to locate the ribbon and the
DMP
132.
Up
computer
the DMP
DMP
132
so you can begin
132
1
Choosing a Location
When you choose the location for your printer, be sure to consider the
following:
The
•
•
• Space for paper.
• Noise generation.
Once you choose a location for
ting it up.
work surface. Place the printer on a sturdy surface.
The
length of the printer cable. This determines the distance from
the
computer
tractor-feed paper.
such as refrigerators
that you can place
Be
suretoleave enough room for smooth flow
Do
not place the printer
or
industrial equipment.
the
printer.
near
noise generators
the
printer, you are ready to begin set-
of
5
Page 14
SettingUpthe DMP
132
Installing the Paper Rack
The paper rack keeps both fanfold and single- sheet paper feeding
smoothly into the printer. Mount this rack on the DMP
eration. To do so:
1.
Open the printer cover.
2.
Holding the paper rack upright, insert the tips of the rack onto the
as
supporters on both sides of the DMP 132,
shown below.
132
before op-
Printer Cover
Paper Rack
Figure2.Installing
the
~,..~~_-
Paper
Rack.
Supporter
Paper
Guide
Folding Leg
3a. For single-sheet printing, pull up the folding leg and insert it into
the hole centered on top of the case.
3b. For printing on continuous fanfold paper, fold the leg and place
the paper rack in its horizontal position. Or, you can detach the
paper rack completely. However, note that proper paper flow
assured with the use of the paper rack.
is
6
Page 15
You
can adjust the
widths. Pull
Then
position it as you desire (within the range allowed). When using
narrow
range
empty switch
ting a single sheet, slide the right
paper
paper,
of
the
width.
the
paper
and
paper
left
paper
position the
guide. This ensures
also reduces the possibilityofpaper
rack's
paper
guide upward to removeitfrom the rack.
paper
paper
guides for
so that the left edgeiswithin the
proper
guidc to the left to match
paper
operationofthe
jam.
Tractor Feed Unit
Chapter 1
of
various
paper
Aftcr
set-
thc
You can use the
system.
(fanfold) that has guide holesonboth edges, while the
the friction feed system does not have these holes.
When
When the
DMP
The
you use the friction feed system, be sure to remove the tractor.
tractorisinstalled, the friction mechanismisreleased
132
might not feed the
DMP
132 with
differenceisthat
either
the
tractor
the tractor feed systemisused with
paper
properly.
feedorfriction feed
Installing the Tractor
1.
Be
2.
3.
sure the printer's
Remove
Turn
ward.
the
the
paper
paper
power
switchisoff.
rack and
loading knob forward to move the
open
the
printer
cover.
paper
paper
paper
used with
and
the
bail for-
7
Page 16
SettingUpthe DMP
132
Printer CoverPaper Rack
POWER Switch
Figure3.Right Side View.
4.
Place the front pins of the tractor unit into the holes on both sides
of the printer. Then push down on the rear of the tractor unit until
is
the tractor
securely locked into position.
Tractor
Figure4.Installing the Tractor.
8
Page 17
Chapter 1
5.Turn the
the paper bail toward the platen.
6.Close the printer cover. Replace the
Removing
1.
Turn off the printer.
2.
Open
Turn
3.
toward the front.
4.Lift the tractor unit from the rear, then pull it upward.
5.
Turn
6.
Replace the paper rack and close the printer cover.
paper
loading knob backward (away from you) to move
paper
the
Tractor
the printer cover. Remove the
the
paper
loading knob toward you to move the
the paper loading knob away from you.
paper
rackifdesired.
rackifnecessary.
paper
bail
9
Page 18
Setting
Up
the DMP
132
Ribbon Cassette
If
the ribbonisalready installed, simply check to see
threaded
If
the ribbon cassetteisnot installed,orif you need to replace it due to
excessive wear, faint printing, etc., follow this procedure:
1.
between
Set the power switch to
the
paper
and print head.
OFF.
Note: When you turn off the power, any information stored in the
is
printer's buffer
2.
Remove the printer cover.
3.
To
replace the ribbon cassette. grasp the fin on the old ribbon cas-
sette
and
gently pull it upward.
4.Unwrap the new cassette. Before inserting the new cassette. tighten the ribbon
the arrow.
automatically lost.
by
turning the ribbon feed knob in the direction of
thatitis
properly
10
Figure5.Removing
the
Ribbon
Cassette.
Page 19
Chapter 1
Print Head
Figure6.Installing the Ribbon Cassette.
5.Gently slide the ribbon between the ribbon mask and the print
head. Press down on the left sideofthe cassette until you hear a
click. While rotating the ribbon feed knobinthe direction of the
arrow, press down the right sideofthe cassette.
If
the ribbon feed knob does not match up with the ribbon drive
mechanism, the cassette
cassette into place. Instead, fit it into place gradually while turning
the ribbon feed knob.
6.Once the new cassetteisinstalled, tighten the ribbon by turning
the ribbon feed knob in the indicated direction.
7.
Replace the printer cover.
will
not fall into place.
Do
not force the
Caution: Printing without paper or ribbon can damage the print
headorplaten.
11
Page 20
SettingUpthe DMP
132
Connecting the DMP
Before plugging the power cord into an
is
• The power switch
• The printer
Connect the
or
an approved power strip, such as the Radio Shack plug- in power
strip, Cat. No. 26-1396,
203.
is
AC
set to OFF .
not yet connected to the computer.
power plug to a 120-volt, 60Hz, grounded
1II11111LI\\
132
to a Power Source
AC
power outlet, be sure that:
or
the power switching system, Cat. No.
\
......./
I
AC
outlet
26-
Figure7.Connecting to a Power Source.
Set the power switch to
switch to
on during operation may cause loss of the current program.
12
OFF/O
to turn off power. Note that turning the power off and
ONII
to turn on the power. Set the power
Page 21
Paper Loading
Chapter 1
Note: When loading paper (single-sheet
correctly enters the
To
prevent paper skewingorjamming, the paper must
132
straight and directly from the backofthe printer. Proper position-
ing
of
the paper guideisalso important to help prevent paper jamming.
paper
insertion opening.
or
fanfold), be sure the
enter
Single-Sheet Paper
1.
Be sure the printer's powerisoff.
2.Lift the
on the top case.
paper
rack and insert the folding leg into the hole centered
Open
the printer cover.
the
paper
DMP
Figure8.Positioning the Paper
13
Page 22
Setting
3.Position the paper on the paper rack, aligning it with the paper
4.
5.
6.
7.
Up
the DMP
guide. Since the auto-paper-loading system pulls the paper into the
printer, just placing the paper on the paper rack
you insert the paper into the opening, the
that the paperisalready in place and might not activate the autoloading mechanism.
Turn on the printer.
Turn the paper loading knob toward you. The paper automatically
advances to the print-start position.
If
Note:
system does not work. In such a case, remove the sheet and position it again to turn on the indicator.
Turn the paper loading knob away from you to return the paper
bail to the platen.
To align the paper, use the platen knoborthe front panel LINE
FEED
Verify that the paper bail
necessary.
the
switch (see "Printer Components") to advance the paper.
132
ALERT
is
sufficient.
DMP
132
might "think"
indicatorisnot lit, the auto- paper-loading
is
against the platen. Adjust the paper
If
as
Note: The paper bail MUST be against the platen for paper
adjustment.
8.
Set the print head adjustment lever located on the inside right of
the printer to the appropriate position. Refer to "Print Head
Adjustment Lever."
9.
Close the printer cover.
Hints
and
Tips on Single-Sheet
• With the paper properly installed, printing continues until the paper
passes the paper empty sensor. The printer then goes off line. Insert
another sheet and turn the paper loading knob to set the paper.
When the paper
DMP
132
continues printing where it left off.
isinplace, press the
Paper
Loading
ON/OFF
LINE switch and the
14
Page 23
•
If
you want to print
detects the
nottoexceed the bottom edgeofthe paper.
paper
end,
another
press the
few lines after the
ON/OFF
Fanfold Paper
The
DMP
132
accepts standard fanfold paper from 4 inches to10inches
wide. Before using fanfold
installed.
1.
2.
3.
4.
Referto"Tractor
Turn
off the power.
Open
the printer cover. Remove the
Turn
the
paper
away from the platen.
Feed
the
paper
into the printer through the
ing. Use the
appears between the platen and the print head.
paper
paper,
Feed
loading knob toward you to move the
feed knob to pull the
however, the tractor unit should be
Unit."
LINE
paper
rack temporarily.
paper
paper
Chapter 1
paper
empty sensor
switch. Be careful
paper
insertion open-
around
until it
bail
Adjust
5.
per.
6.
Open
7.
Align the holes in the
need to align the
lease friction on the paper.
8.Close the pin-feed clamps, and adjust the position of the paper.
the pin-feed
RefertoFigure
the
pin-feed
paper
9.
paper
paper,
clamp positions for
clamps.
paper
with the pin- feed sprockets.Ifyou
return the
paper
the
widthofthe pa-
bail to the platen to re-
15
Page 24
Setting
Up
the DMP
132
Pin-feed Paper Clamps
Figure9.Front
9.
Turn
the
paper
loading knob away from you to move the
bail toward the platen.
leased by setting the
that
you perform this step to
10. Set the print
the
printer.
11. Replace the paper rack and the printer cover. For the proper paper
flow, we
flat with
10).
head
Referto"Print
recommend
the
paper
The
paper
bail against
adjustment
Head
that
you attach
feeding
friction roller under the platenisre-
preventapaper
underneath
View.
paper
the
platen. (Itisimportant
jam
from occurring.)
lever located on the inside right
Adjustment
the
Lever."
paper
rack and lay it down
it into the
printer
(Figure
16
of
Page 25
Tractor
Chapter 1
Rack
Print Head
Figure
If
fanfold paperiscorrectly loaded, it should enter between the body of
10.
Fanfold Paper Path.
the printer and the paper rack. Once the paper
on, check the
Components." Press the
illuminated.Ifthe
ALERT
ALERT
indicator on the front panel. Refer to "Printer
ON/OFF
LINE switch if the
lamp remains lit, the
Paper
is
loaded and power
ALERT
paperisprobably
Fanfold Paper
lamp
loaded incorrectly.
If
the
printer
ALERT
is
lamp does not illuminate after the paperisloaded, the
ready for operation.
Hints and Tips on Fanfold Paper Loading
is
is
• Be sure the paperispositioned so thatitcan travel through the
printer without binding.
Do
•
not let printed paper pile on top of unprinted paper. This can
cause the printed paper to be pulled into the paper insertion opening. This could jam the paper feed or damage the printer.
• When using fanfold paper, try to place the paper on the same level
as
the printer.
17
Page 26
Setting
Up
the DMP
132
Print Head Adjustment Lever
The
print
head
adjustment
print
head
and platen for using various
head
according to
The
leverislocated on the inside rightofthe
the
lever lets you adjust the gap
paper
paper
thickness variations, as described below.
weights.
printer.
between
Adjust
the
the print
Figure
Single-part forms.
11.
Set the lever to position
Multiple- part forms. Set
Too
narrow a gap can cause:
Paper
•
• Inaccurate line feeding
•Ribbon to loosen
Too
•Light printing
• Missing characters
Caution:
ble; otherwise, damage to
damageatthe leftorright margin
or
come off its guide during printing
wide a gap can cause:
The
print
head
18
Print Head Adjustment Lever.
the
lever to position
must always be as closetothe platen as possi-
the
print
head
may result.
or
Page 27
If
smudging occurs, set the print
ting, by moving the lever toward the front of the printer.
head
adjustment lever to a higher set-
Performing a Self-Test
The
DMP
132 has a built-in self-test feature to check the print quality
and general printer operation before you begin using it.
the
Before running the self-test, be sure to load
paper
since the test prints from one end of the platen to the other.
DMP
Chapter 1
132 with lO-inch
Caution: Printing
the print head.
To
run the self-test:
1.
Press and hold either the
"Printer
2.Set the
ternal buzzer, the
programmed into
If
you press
font.
The
correspondence quality fontisused during
NLQ
switchispressed.
Printing continues until you press the
endisdetected.
on
the platen can shorten the life of the platen and
Components."
POWER
LINE
switch to ON. Starting with the soundofthe in-
DMP
the
FEED,
LINE
132 will print the ASCII96characters pre-
printer.
the
self- testisperformed in the
FEED
ON/OFF
switchorNLQ
the
LINE
switchorpaper
switch. See
standard
test when the
19
Page 28
Setting
Up
the DMP
132
Connecting the DMP
Before making any connections between the
be sure the power to all units
Figure
Be sure that you have the correct cable for connecting your computer
DMP
to the
If
ries.
face connector.
nect the cable to the parallel interface connector. See your computer
owner's guide for connection locations on the computer.
132. Table 1 lists the printer cables that Radio Shack car-
you have a color computer, connect the cable to the serial inter-
If
your computer has parallel interface capabilities, con-
132
to the Computer
is
off.
POWER Cord
12.
Computer Connections.
DMP
132
and computer,
20
Page 29
Chapter 1
Table 1. Computer to DMP
Computer
Model I (Keyboard only)
Model I (Exp. Interface)
Model I1/12/16/16BIDT-1 /Tandy 2000/6000
Model III/4/4D/4P/1000
Model100/Tandy
Tandy 1000EX/1 000SX/1 000HX/1
Tandy 1200/3000
Tandy
3000HLl3000HD/4000/1400LT
DT-100
Color
Computer
*Note:
If
a cableissupplied with your computer, be sure to use it.
1.Attach the molded male end of the cable to the connector on the
right rear of the
one way, turn it over and try again. Lock a parallel interface con-
nector to the
2.Connect the other end of the cable to your computer's printer
jack. See your computer owner's manual for specific instructions.
DMP
DMP
132.
Do
not force the plug.Ifit does not fit
132
by snapping the cable latches inward.
Print
There
switches allow you to customize some
applications.
Function
are10switches located on the
Switch 2
(DIP) Switches
1
.....
OFF
Figure
13.
DIP Switch Panel.
rear
panel of the printer. These
DMP
132
features for your own
Switch 1
1 2 3 4 5 6 7 8
21
Page 30
SettingUpthe DMP
132
When you set Switch1-1 to
DMP
132
selects Tandy codes. In this setting, the switches function
OFF
before turning on the power, the
as
showninTable2.For instance,inTandy mode, you can select word
processing mode (better print quality) or data processing mode (faster
printing speed). On the other hand, if you set Switch 1-1 to ON, the
132
DMP
function
If
you want to use the DMP
selects codes for the IBM mode. In this case, the switches
as
shown in Table
3.
132
with the Color Computer, turn off the
power and set the appropriate switches accordingly. The serial port
compatible with Color Computers only.
When you receive the DMP 132, all DIP switches should be set to
OFF.
Remember! The printer's power must be off before you change any of
the switches.
Table2.DIP
Sw.SymbolON
1-1
Control Codes
1-2
CR
1-3
LF
1-4
Form Length
1-5
1-inch Skip
1-6Line Spacing1/8 Inch1/6 Inch
1-7
Character SetIBM Character
1-8
WPIDP
Mode
Switch
(Switch
Carriage Return OnlyCarriage Return and
(CR=CR)
Line Feed and CarriageLine Feed Only
Return
12
Valid Perforation
Word
FunctionsinTandy Mode.
1-1
is settoOFF)
(LF
= NL)
Inches
Processing
Mode
Tandy Codes
Line Feed
(LF=LF)
11
Inches
Not
Valid
Tandy
Data Processing
OFF
(CR
= NL)
Character
Mode
is
Switch
interface.
22
2-1
and Switch
2-2
select the interface and baud rate for serial
Page 31
Chapter 1
Interface
Parallel
Serial
Serial
Serial2400
Table3.DIP
Baud Rate
600
1200
Switch
(Switch
Sw.Symbol
1-1
Control Codes
1-2
CR
1-3
LF
1-4Form Length
1-51-inch SkipValid
Perforation
1-6Line Spacing
1-7
Character SetIBM Character Set 2
1-8
Buffer Full
Codes
Carriage Return OnlyCarriage Return and
(CR=CR)
Line Feed and Carriage
Return
12
1/8 Inch
Carriage Return OnlyCarriage Return and
FunctionsinIBM
1-1issettoON)
ON
for
IBM
(LF
= NL)
Inches
Switch
2-1
OFF
OFF
ON
ONON
2-2
OFF
ON
OFF
Mode.
OFF
Line Feed
Line Feed Only
(LF=LF)
11
NotValid
1/6 Inch
IBM Character Set 1
Line Feed
(CR
Inches
= NL)
Switch
interface.
Interface
Parallel
Serial
Serial
Serial
2-1
and Switch 2-2 select the interface
Baud Rate
600
1200
2400
and
baud rate for serial
Switch
2-1
OFFOFF
OFF
ON
ON
2-2
ON
OFF
ON
23
Page 32
SettingUpthe
DMP
132
Power
The specific power- up sequence depends on your computer. Consult
your computer owner's guide for details on powering up your computer
with peripheral devices, such
In any event, the
on.
It
is
computer.
nected but not turned on, the entire system might operate erratically.
Up
Sequence
POWER
essential that the
If
you turn the power onoroff,orif the
as
printers.
indicator remains lit while the
DMP
132 remains on when connected to the
DMP
DMP
132
is
132
con-
Character Pitch Set Switches
You can set the character pitchofthe
by
once you set the pitch
from the computer has no effect on the printing.
the pitch from the computer or your application software, do not set
the pitch by the front panel method, The default
pitch must he used. Turning the power off and then hack on restores the
pitch to default
CODE.
the front panel method, any control code
o
POWER
DMP
132; however, note that
If
you want to change
CODE
setting of
is
24
ON/OFF LINE
Indicator--
NLQ Indicator
Figure
o
14.
ALERT
Front
.-1--+------>
Panel.
PITCH
Switch
SET Switch
<-
Switch
Switch
Page 33
1.
Be sure the ON LINE indicatorislighted.
2.
Press and hold the PITCH
(ON/OFF
LINE indicator blinks.
Chapter1
LINE) switch until the
ON
3.Press the
--+
(LINE
FEED)
or+-(FORM
FEED)
switch to move
the print head to the position indicated on the printer cover you
as
wish to set
4.
Press the SET (NLO/DP) switch to set the character pitch.
CODEisselected, you can change the character pitch
sending control codes from the computer.
by
25
Page 34
Setting
Up
the
DMP
132
Hex Dump Function
The
DMP
132 can print the hexadecimal values for data transmitted to
it. This modeisuseful for checking exactly what informationisbeing
received by the
power to the
FEED
switch.
DMP
DMP
132
132.
To
implement this function, turn on the
while simultaneously holding down the
FORM
Before printing, be sure that lO-inch
avoid printingonthe platen. Then press the
the program that you want to check.
To
exit hex dump mode, turn the printer off and then on again.
paperisloaded in the
ON-LINE
switch and run
DMP
132 to
Start-up Checklist
The checklist that follows reminds youofthe things you should do each
time you use the
prepare to use the printer.
w Is the power off?
w Does the printer have enough paper?
w Is the ribbon installed?
w
Is
the printer connected to a power source?
w
Is
the printer connected to the computer?
w Are the
w Turn power on and perform self-test. Does the printer pass the self-
test?
DMP
132. Be sure to check the list each time you
DIP
switch positions correct?
26
Page 35
The
DMP
132isdesigned for three distinct applications:
•
Data
processing
• Word processing
• Graphics
Printing Applications
2
The DMP
computer -one for each application. The three response patterns,
modes, have many similarities, but each has its own unique features.
Data
The only difference between these two modes
line feed commands -commands that determine the direction and distance the paper
• In the word processing mode, each line feed command causes an
immediate paper advancement. Word processing programs (such as
SCRIPSIT®) use immediate line feeds for superscripts, subscripts,
and
• In the data processing mode, a line feed command other than five
special line feed commands (see page
ate line feed. Instead, line feeds are stored
along with other data. When a line
mands stored
paper feed.
In both data processing and word processing modes, the DMP
print in different fonts (type styles) and pitches (character spacing).
One font
spaced character set.
132
has three different responses to software codes from the
processing and word processing modes are for printing characters.
is
in the way they handle
is
fed.
other
special printing styles.
49) does not cause an immediin
the printer's memory
is
printed, the line feed com-
in
memory determine the direction and pitch of ·the
132
can
is
the proportional character set and anotheristhe mono-
or
• Proportionally spaced characters have variable widths.
an M takes up more space than an
create professional-looking documents.
• Monospaced characters are so named because each character
allotted the same space width. This uniformity makes this font preferable for tables and charts that require vertical alignment.
I.
Use proportional characters to
For
example,
is
27
Page 36
Printing Applications
Charactersinthe various fonts are createdina dot- matrix pattern.
Monospaced characters use an
proportionally spaced characters use a matrix
n depends on the width
of
11
by 9 and a
the character being printed.)
of
23
n by
by
18
matrix, while
18.
(The value
of
The print pitch (character spacing)isdesignated by the space the
132
puts between each printed character. The font selectedisalso a
factorindetermining the pitch. Consequently, you must thinkofpitch
in
termsofthe numberofcharacters printed
and 17CPI for normal printing, and 5CPI, 6CPI, and 8.5CPI for elongated printing.
The graphics mode can be used to create custom letterheads, designs,
and special fonts. However, many control codes which can be used in
data processing and word processing modes cannot be usedingraphics
mode. The
send such a code; it simply ignores the code. This includes control
codes that change line feed pitch and direction.
To ensure full coverageofthe paper in graphics mode, the line feed
lengthofthe LF code (10 Dec.)isfixed at 7/72 inch. The five special
line feeds canbeexecuted by dynamic
DMP
132
does not give you an
per
inch -IOCPI, 12CPI,
error
message when you
paper
movement commands.
DMP
Control Codes
Before you proceed, consider how the computer communicates with the
printer.
All informationissent to the
decimal (00- FF hexadecimal). The printer interprets these numbers
according to the American Standard Code for Inforntation Interchange,
commonly referred to as the ASCII code. (See Appendix A for a list
ASCII codes.) Most numbers
bers,orsymbols. However, the numbers 0-31, as well as some special
sequencesofcode numbers, are used to "control" various printer functions. These control codes let you change character sets, select print
modes, underline, superscript, subscript, and perform
functions.
DMP
132
as numbers between 0 and
(or
codes) are printedasletters, num-
other
255
special
of
28
Page 37
Chapter 2
The control codes have different meanings, depending on the current
print mode.
X.
The next few sections demonstrate how some of the control codes
activate various printer functions.
If
a codeisnot recognizedbythe printer,itis
printed
as
Sending Control Codes from BASIC
Some printer features are activatedbya single code, but many func-
or
tions require a sequence of two
sequences begin with decimal
The ESC code notifies the printer that a special sequence
The next code(s) sent determines which printer feature
BASIC, use CHR$ () to send these codes to the printer.
For instance, set up the
and enter BASIC in the normal way.
Then, type and run the following program:
10
REM
20
LPRINT "DATA
30
LPRINT
"MODE"
27
DMP
"jCHR$(27)CHR$(28)j"PROCESSING"
more codes. Most multiple- code
referred toasthe ESC (escape) code.
is
on its way.
is
selected. In
132inTandy modeasdescribed earlier,
Note: The command LPRINT
DMP
to the
PRINT-2, for LPRINT.
Roll the paper forward and look at the results. The word
printed over part of the word
CHR$(28) tell the printer to change the forward line feed to half its
normal distance. The chart in Appendix B shows the various code sequences understood
132.Ifyou are using a Tandy Color Computer, substitute
by
the
is
used in the examples that send codes
DATA.
DMP
Why? The codes CHR$(27) and
132.
MODE
Tandy Computer Code Set
The Tandy computer code setisthe default DMP
is
ly, this code set
Tandy computer, the DMP
processing, and graphics printing modes,
DMP
132
control codes.
used on Tandy computer systems. When you use a
132
lets you use the data processing, word
as
132
code set. Usual-
wellasthe other original
29
Page 38
Printing Applications
Code Set
When you select the code set for IBM, the
80 CPS graphics printer's code set.
you can use the
IBM-compatible systems without code conversion and get the same results as you would with an IBM printer. Detailed information
Chapter
Character
The
character sets as well.
ified ASCII, 64
others are the IBM character sets 1 and
set at any time.
Data
How can you tell which mode the
on? Some reflection on the program you previously
you need to know.
Line feed commands are executed immediately in word processing
(WP) mode, but not
quence did not cause a half- forward line feed until after the first line
was printed. Thus, the printer must be in
feed stays
mode). To see this, type:
for
IBM
DMP
132
with the IBM personal
7, "Selecting a Code Set and
Set
OMP
132
not only has two kindsofcode sets, but three kinds
Oneisa Tandy character set (96 ASCII, 4 mod-
European
Processing
in
effect until further notice
Mode
in
data processing (OP) mode.
If
you select this operation mode,
Character
symbol, and
OMP
DMP
132 emulates the IBM
computer
Set."
30
block graphics), and the
2.
You can use any character
132isin
OP
(another
when itisfirst turned
entered
The
mode.
And
characteristicofOP
system
tells you all
(27, 28) se-
this new line
is
or
in
of
LLIST
The
Word
If
you executed the same program in WP mode, the line feed would
have occurred immediately after the word
and try it. To
ITNTE~
short line feedisstill there.
Processing
enter
Mode
WP
mode, change line10to:
DATA.
Go
into WP mode
30
Page 39
10
LPRINT CHR$(20):REM
and run the program.
CHR$(20)
SELECTS
Chapter 2
WP
MODE
As you can see, the line feed
Note that in WP mode, the
LUST
once.
IENTERI to prove that the half- forward line feed occurs only
The
line feed then returns to normal.
is
immediately executed.
new line feedisonly temporary. Type
Graphics Mode
Graphics modeisvery different from the other two printer modes.
one thing, in graphics mode the
opposed to the ordinary 1/6" pitch in WP and
only a few WP and
letters and symbols, for example, are ignored by the
is
in graphics mode. Instead, numeric data from
into dot patterns for the print head. This lets you produce graphic
printouts
For
10
20
30
40
and run the program.
of
charts, graphs, logos, andsoon.
a quick look at this mode, change your test program to:
LPR1NT
FOR
1=128
LPRINT
NEXT
DP
features are available in graphics mode. Normal
CHR$(18)
TO
CHR$(!);
255
LF
code (10 Dec.) feeds
DP
paper
modes. Furthermore,
DMP
132
128to255istranslated
For
7/72"
when it
as
DMP
132
CHR$(18) puts the
through
Type
again to be sure you are no longeringraphics mode.
255
are interpretedasdot patterns.
LPRINT
CHR$(30) IENTERI to return to WP mode. Try
into graphics mode. The numbers
128
LUST
33
Page 40
Printing Applications
Selecting a Print Mode
To move from one mode to another, refer to Table 4 for the required
_
-,
Page 41
Print Fonts and Character Widths3
The
DMP
132
has four distinct print (character) fonts:
• Standard and condensed
• Correspondence (NLQ)
• Proportional
• Graphics
Each font
is
created with a unique dot pattern laid outina grid,
or
matrix.
The character styles differ in the size of the matrix and the way in
which individual characters are created within the matrix.
132
Table 5 shows that the DMP
•
10
CPI
•
12
CPI
•17 CPI
Table5.Character
Font
Style
Standard
Condensed
Correspondence
(NLQ)
Proportionaln x
Remember that the
Matrix Size
11x18
11
x 9
23x18
DMP
setting to receive character select control codes.
other than
CODE
by
using the front panel switch, the set character
has three basic dot pitches:
Widths
18
and
Densities.
Pitch
Normal 10 CPl/Elongated 5
Normal12CPl/Elongated 6
Normal
Normal10CPl/Elongated 5
Normal
Variable Width (canbeElongated)
17
CPl/Elongated 8.5
12
CPl/Elongated 6
132 must be set to the default
If
you set the pitch to
CODE
CPI
CPI
CPI
CPI
CPI
pitch
pitch stays valid even if you send control codes from the computer.
35
Page 42
Print
Fonts and Character Widths
If
you change a fontina line without changing the dot pitch, the line
For
prints continuously without pausing.
not pause while changing from proportional printing to correspondence
10
CPI because both use the same dot density.
of
the density
one, the
printing in the new character style. When condensed characters are
printed on the same line with
because
when you change from standard to condensed characters.
the new style characterisdifferent from the preceding
DMP
132
prints the current buffer contents and then resumes
other
of
the changingofthe dot density.
example, the
On
characters, some dot spaceisleft
For
example, this happens
the
DMP
other
132
does
hand, if
Selecting Fonts
You can select character fonts by using the control codes from the com-
NLQ
puter, as well as by using the control panel
switch.
A font style stays in effect until you choose
graphics mode does not change the font.
to the last active font upon leaving graphics mode.
another
The
font style. Entering
DMP
132
simply returns
Standard and Condensed Fonts
Standard characters are composedofan11by 9 dot matrix. The character pitch
tween each character
This font prints in three character widths:
• Standard-IO characters per inch (CPI)
• Standard-12 CPI
• Condensed-17 CPI
You can elongate each
width), which gives you half as many characters
six
different print widths.
To
see the different print widths available, print a few sample lines.
Standard-10
Correspondence-10
Proportional
Standard-12
Condensed-17
Correspondence-12
Start Elongation
End Elongation
Start Bold
End Bold
Start Italics
End Italics
Start Subscript
Start Superscript
End Sub-/Superscript
Microfont
Print Example
AE:Chijk
ABCh1jk
ABCh1jk
A8Chi j k
ABChijk
ABChljk
AE:C:hi
AE:Ct-,
ABChijk
AE:Chijk
A8Chi
A8Chijk
ADChlJk
A8ChlJk
ABChijk
118ChlU.
CPI
j k
i j k
-ik
37
Page 44
Print
Fonts and Character Widths
Correspondence Font
The second character setisa23by18dot matrix character set for cor-
10
respondence
from. standard-l0
ty.
(23
dots wide fits in the same space as11dots wide.) You can elon-
gate correspondence print to 5 and 6 CPI.
• Correspondence-lO CPI
• Correspondence-12 CPI
and12CPI. The characters have different total widths
or12characters, but print with the condensed densi-
Correspondence characters appear to be the same
ters in normal width, but they are an entirely unique character style.
As an example, add these lines to the program, and then compare the
two styles.
150
F$="CORRESPONDENCE
160
!{=29:W$="12
Run the program.
STANDARD
STANDARD
STANDARD
AND
AND
AND
CONDENSED
CORRESPONDENCE
CORRESPONDENCE
You can see the differences between the characters. The correspond-
is
ence style
support proportional characters.
good for use with word processing programs that do not
CPI":GOSUB
CONDENSED
CONDENSED
CHARACTERS17CPI
CHARACTERS
CHARACTERS12CPI
":N=18:W$="10
240
CHARACTERS
CHARACTERS12CPI
10
as
CPI":GOSUB
cpr
standard charac-
240
10
cpr
Proportional Spacing Font
The third character setisthe proportionally spaced character set. This
font
is
also different from the
width varies from character to character.
11
dots (including two columns of blank dots to allow space between
to
the characters).
other
two fonts, and the character matrix
The
widths vary from 3 dots
38
Page 45
To
see an exampleofthis font, add this line to the program.
170
F$="PROPORTIONAL
180
W$="VARIABLE
Run the program.
":N=17
PITCH":
GOSUB
240
Chapter
3
STANDARD
STANDARD
STANDARD
CORRESPONDENCE
CORRESPONDENCE
PROPORTIONAL
Proportional characters add a quality look to word processing documents by eliminating wide gaps between characters. You can also elongate these characters to twice their normal width.
AND
AND
CONDENSED
AND
CONDENSED
CONDENSED
CHARACTERS
CHARACTERS12CPI
CHARACTERS17CPI
CHARACTERS
CHARACTERS12CPI
CHARACTERS
VARIABLE
10
CPI
10
PITCH
CPI
Graphics Characters
The fourth character setisused for block graphics printing. The characters can be normal10CPI width,12CPI widthorcondensed17CPI.
This setisnot fully compatible with the screen graphicsofmost Tandy
computers. Rather, itisa unique character set.
To
see that the various character widths do not affect graphics charac-
ters, add these lines to the program:
190
N=19:W$="10
200
GOSUB
210
N=23:W$="12
220
N=20:W$="17
260
FOR
270
LPRINT:RETURN
240:
1=224
CPI":F$="GRAPHIC
GOSUB
260
CPI":GOSUB
CPI":GOSUB
TO
254:
LPRINT
":LPRINT
240:
GOSUB
240:GOSUB
260
260
CHR$(I)j:NEXT
I
39
Page 46
Print
Fonts and Character Widths
Run the program.
STANDARD
STANDARD
STANDARD
CORRESPONDENCE
CORRESPONDENCE
PROPORTIONAL
GRAPHIC
1ft
m.
..'"
GRAPHIC
••••••-.,j
GRAPHIC
Since the normal line-to-line spacingis1/6
the graphics characters are 6 dots high, you can create continuous vertical graphics by using the half forward line feed (CHR$(27);
CHR$(28)).
After you print the results, delete lines10through
40
90.
Page 47
Wrap-Around
The
DMP
132isa dot-addressable printer.
termined
per
word processing mode is:
• Standard-1O=960
• Standard-12=1l52
• Condensed-17=1918
• Correspondence-lO=1920
• Correspondence-12=2304
If
the lengthoftext the
line
feed, and the "leftover" character(s)
next line. This
not by the
line.
The
numberofaddressable dots
(or
the right margin if it has
is
numberofcharacters but by the
called wrap-around.
DMP
132 receives exceeds the limitofdots
been
is
printed at the beginningofthe
Elongated Characters
You
can elongate any font to twice its normal width.
Therefore,
per
line in
set), the
line lengthisde-
numberofdots
data
processing
printer
inserts a line
Chapter 3
or
per
Table8.Elongated Printing.
Send CHR$( ):
27
14
15
27
Enter
the codes to start
times within a line in any mode.
and
Start elongation
End elongation
end
elongated characters any
To:
number
of
43
Page 48
Print Fonts and Character Widths
Boldface
The printer produces boldface characters by widening each character's
line width horizontally.
Send
CHR$( ):
27
31
27
32
Table9.Bold
Printing.
To:
Start bold
End bold
printing
printing
When the printer receives a (27,31) code sequence, it begins bold character printing at the next character it receives.
Mixing Bold
and
Elongated
You can activate both bold and elongated characters at the same time.
Italics
You can print any font on a "slant."
Table
10.
Italic
Printing.
Send
27
27
CHR$( ):
66
1
66
0
To:
Start italic
End italic
printing
printing
The printer starts printing italic characters at the first character it encounters after receiving the (27
If
the printer receives a super-/subscript command during italic charac-
ter
printing, the
DMP
132
66
1) code sequence.
prints the current buffer contents and then
enters the super-/subscript printing mode.
44
Page 49
Chapter 3
Superscript
and
Subscript
In superscript and subscript, character heightiscutinhalf. In superscript character printing, the character prints on the upper half of the
line. In subscript, the character prints on the lower half of the line.
Table
11.
Super-/Subscript
Send
CHR$( ):
27
83
0
27
83
1
27
88
When the printer receives a (27830)or(27831)
Printing.
To:
Start superscript
Start subscript
End super-/subscript
printing
printing
code sequence, sub-
printing
sequent characters printinsuperscriptorsubscript until the printer receives a (27 88) code.Itthen returns to the font that wasinuse before
entering super-/subscript character printing.
The printing speedorhorizontal dot resolutionisfixed at17CPr.
The
underline positionisnot changed.
Microfont
In the microfont mode, all printouts areinsuperscript, with half forward line feeds (1/12 inch)inWP mode,orhalf the designated line
pitchinDP
mode.
Table
12.
Send
CHR$( ):
27
77
Microfont
Printing.
Start
To:
microfont
Microfont stops when you send another font select command, such as
CHR$(27);CHR$(19);orCHR$(27);CHR$(23). (See Table 6 for
other
character style change commands.)
45
Page 50
Print
Fonts and Character Widths
As with superscript, printing pitch for
CPI.
the
microfont
modeisfixedto17
46
Page 51
Buzzer
General Control Codes4
In IBM
132
mode,
sounds a buzzer for one second.
when the printer receives thc code CHR$(07), the
DMP
Line Feed
When
the
DMP
132
receives an LF code (ASCII 10), all
is
print buffer
wise, the
paper
(or
If
the
DIP
with the line feed, moving the printing position to the next print line.
the settingisoff, the printing position staysinthe
and moves down one line.
Other
line feed codes control the pitch and directionofthe line feed.
DP
In
they
Pitch and direction settings are sent to the
sequence. First, a control code
DMP
mines the specific pitch and direction. These control codes are listed in
Table
mode,
take
132
13.
printed, followed by a line feed. Unless you tell it other-
DMP
132
uses 1/6- inch forward line feed when advancing
liS-inch if the
switch 1-3isset to
these codes are usually stored in the buffer. In
effect immediately.
that a special code sequence follows.
DIP
switch 1-6isset to
ON,
27issent (CHR$(27)). This tells the
ON).
a carriage returnisalso
current
DMP
132ina two- code
The
next
data
in the
performed
print column
WP
mode,
number
deter-
If
Table
Send CHR$( ):
27
10
27
28
27
30
27
54
27
56
13.
Line Feed Control Codes.
Full reverse line feed (1/6 inch)
Half
forward
Half reverse line feed (1/12 inch)
forward
Full
3/4
forward
To:
line feed (1/12 inch)
line feed (1/6 inch)
line feed (1/8 inch)
47
Page 52
General Control Codes
Hints
About Line Feed
• In data processing mode, codes are stored in the print buffer. They
are not activated until you send an LF code. In word processing
mode, these code sequences cause the
in
formation
pitch and direction.
• CHR$(27);CHR$(1O) does not work from some BASICs with the
CHR$
sent to the printer as
• All the codes in Table13are ignored in graphics mode.
•
If
the
each line feed.
its buffer and then execute a line feed of the specified
function. The LF code (10)isintercepted by BASIC and
13.
DIP
switch 1-3isset to
LF&CR,
DMP
132
to print the in-
a carriage return follows
Note these restrictions for paper feeding:
• None of the reverse feed commands can feed the paper backward
beyond the "top- of- form" position. When the paper reaches this
point, the printer ignores these commands.
• A paper jam occurs if paper
of the paper
is
nearing the print head.
48
is
fed backward when the bottom edge
Page 53
Special Line Feed Control Codes
Chapter
4
There
are five special line feed codes that operates in all three print
mode. They are:
Table
14.
Special Line Feed Control Codes.
Send
CHR$( ):
27 26
27
50
27
51
27
57
27 64 n
These codes initiate an immediate
1/8
forward
1112
forward
1/36
forward
1/24 forward line feed
nl24
forward
dump
of the print buffer followed by
the specified line feed, with one exception. In
is
sequence
stored
A carriage return
in the buffer andisactivated by
is
not performed, regardlessofthe settingofthe
switch 1-3.
These special line feed codes are useful
in
matrix picture.
Carriage
Return
(CR)
To:
line feed (1/48 inch)
line feed
linefeed
linefeed
DP
(1172
(1/216 inch)
(1/144 inch)
(n/l44
mode,
the2764 n code
the
next
inch)
inch)
LF
code.
DIP
adjusting a print lineordot-
A
CR
(13or141) code tells the printer to print the current buffer con-
If
tents and then perform a carriage return.
OFF.
one line feed (the current active line feed)isperformed at the
If
same time.
the switchisset to
ON.
the DIP switch
a line feedisnot activated, and
printing continues on the same line.
or
In addition, the line feed function can be set to ON
of
codes, independent
switch settings.
CHR$(27); CHR$(22). the line feed function
feed function
is
turned off when you send control code CHR$(27);
If
you send control code
is
OFF
turned ON; the line
CHR$(21).
1-2isset to
via control
49
Page 54
General Control Codes
Backspace
You can backspace on
sending it a two-code sequence.
is
code
ing the
position.
LPRINT
would backspace the printing position 150 dot-columns from the
position.
In general, backspacing should be specified
character
should
acters).
two characters.
the
If
backspace
If
ning
Backspace works
mode,
ent
in the form
numberofdot-columns to backspace from the
For
example:
CHR$(B)jCHR$(150)
size.
That
be12dots
For
instance,
To
numberofdots.
n
is
0, backspacing does not occur.
more
than
n
is
greater
of
the backspace codeisignored, and nistreated
character.
than the
the line.
the
DMP
132, from 1 to
The
first codeisCHR$(8).
CHR$(n),
is, backspacing for the
per
character
LPRINT
backspace over elongated characters, simply double
255 dot-spaces.
current
in
both
where nisa value from 1 to
(9 dots plus 3 for spacing
CHR$(8);
dot-position, printing startsatthe begin-
data
and
word processing modes. In graphics
You
CHR$(24)
can use the
255
dot-columns,
in
multiplesofthe
standard-lO
would backspace
repeat
as an independ-
The
255
current
character
between
by
second
specify-
printing
current
current
set
char-
feature to
The
backspace
command
execute a backspace
The
widths
portional
commandisa print
causes the
of
the available fonts are shown in Table
character
50
command.
DMP
132
to print all
operation.
widths naturally vary from
Receiving the backspace
data
in the buffer
character
and
15.
The
to character.
then
pro-
Page 55
Table
Font
Style
Standard-10
Standard-12
Condensed-17
Correspondence-1010CPI
Correspondence-1212CPI
The
dots/character
characters.
10
5CPI24
12
6CPI
17
8.5
5CPI
6CPI48
columninthe
15.
CPI
CPI
CPI
CPI
Character
Set Width.
Dots!
Character
12
12
24
14
28
12
24
24
preceding table includes dots
To
Backspace
1Character
08
12
24
08
12
08
24
08
14
08
28
08
24
08
48
08
24
08
48
08
Chapter 4
n Character
12xn
08
24xn
08
12xn
08
24xn
08
14xn
08
28xn
08
24xn
08
48xn
08
24xn
08
48xn
08
between
Setting
The
in
all
resets
form position.
inch)tobe used with
Ifnis0or
Top-of-Form
control
code
three
print modes.
the
line feed
L it is changed to 2.
and
CHR$(27);CHR$(52);CHR$(n)
After
printing the
counttozero
The
line length
the
form feed code.
and sets the
per
Whenever
activated, line feed pitchiscounted
inchor1/8 inch).
On
initial
power-up,
paper
position and
DIP
switches 1-4 and 1-6. See
Be
sure
the
paper
the
DMP
132
the
form length in accordance with
Table
is properly positioned
132.
Form
pageisset
up
and
sets the
16.
before
Length
sets the form length
current
current
any line feed
compared
top-of-form
buffer
line as
to
n (by 1/6 inch
with n (by 1/6
the
you
turnonthe
at the
contents,
the
top-of-
or
1/8
operation
current
settingofthe
DMP
51
it
is
Page 56
General Control Codes
Table
DIP
Switch
1-41-6
OFFOFF
OFF
ON
ON
16.
Form
ON
OFF
ON
Length/Lines-per-Page.
Form
length
11
inches
11
inches
12 inches
12 inches961ines
lines-per-Page
66
lines
881ines
72
lines
In single-sheet printing, the
numberoflines-per-pageis56.
Form Feed
When the printer receives a
tents print
out
completely,
tion, and the line feed counter resets to zero.
However, a small problem exists in communicating with the
through BASIC. Most BASICs keep trackofthe top-of-form internally, intercept the form feed (FF) code on its way to the printer, and
send
out, instead, a seriesofline feeds. Since theFFcode never gets to
the printer, the CHR$(12)
POKEorOUT
statement to send the form feed directly to the printer
and bypass the interceptor.
Note:
Do
not use CHR$(12) except in graphics applications. Most Tandy application programs have the top-of-form
plication program
user's guide for instructions on setting
the program does the rest.
CHR$(
paper
12)
command, the print buffer con-
advances to the next top-of-form posi-
DMP
is
not activated. Some BASICs can use the
"built-in." See your ap-
FORMS,
132
and
Entering IBM Mode
When the printer receives a CHR$(27);CHR$(33) code, the
resets to the defaults of the IBM mode.
That
is, buffer contents print
out, the carriage returns to its home position, and all settingsofthe
DIP
switches (except the switch 1-1) are read again.
DMP
132
52
Page 57
Chapter 4
Ignored
or
Undefined Codes
Codes that are unusableorundefined in a given print mode are either
ignored or printed with the symbol
Z , which represents an invalid
code.
There are several reasons a code might be unusableina certain mode.
Redundant codes that do not change the current printer status are
usually ignored. For example, if the DMP
DP
a CHR$(19) (used to enter
ASCII control codes
in
the range 0 to31that the DMP
recognize. ASCII 0, for example,
mode)isignored. And there are many
is
132isin DP mode, sending
132
does not
not used in any of the three print
modes.
17
Table
summarizes the undefined print codes.
Table
17.
DMP
132
Ignored Control Codes.
All
Modes:
• Out
of
range on repeat sequence.
of
range
pas
• Out
• Redundant codes that do not change the current printer status.
DP
Mode:
WP
Mode:
Graphics
Unprintable repeat sequence data n2 is also ignored.
Codes Printed
inDPand WP:
• All codes
• Unprintable repeat data
Mode:
0-31
above ignored codes.
sequence.
0,1,19,30,127,255
0,1,20,30,127,255
All codes in the range 0-127 are ignored except:
(7), (10), (12). (13).
(27,21),
(27,
as
X
and 128-159, except the active function codesorthe
57),
(27,
(27,
n2.
22),
64,
(27,
14), (27,15), (27,16, n1, n2),
(27,
33),
(27,
50),
(27,
n).
(27,
72, n).
(28,
n1, n2). (30).
51),
(27,
52, n)
53
Page 58
General Control Codes
DMP 132 Buffer Operation
The
DMP
132's ability to temporarily store
over
advantages
you press)
a typewriter. Codes sent to a typewriter
are
transferred
immediately to the
dataisone
paper.
of
its main
(thatiskeys
Codes sent to a
separate
a
buffer fillsorcertain codes
is
emptied
data
buffer
ing continues
different position relative to
In the
can be
Tips on
For
•
•
•
DP
stored
the
DP, WP,
The
buffer allocates a fixed
acter width selected.
equals
The
last
the next line following an
The
form feed code
ing (if the code
If
you select
the
print
return. Otherwise, the printing position
top-of-form line.
printer
sectionofmemory
and
all
prints
on
mode,
in the
DMP
and
that
number.
character
"LF
head
are
dataisprintedonthe
dependsonthe circumstances. In some cases, print-
the same line;inothers,
commands for changing fonts, line feed,
print
buffer until
132
Buffer
graphics modes:
Printing resumesatthe startofthe next line.
received by the bufferisprintedatthe start
(FF=12
is
received by the
only" (the
moves to the next top-of-form line without a carriage
not
printed
in the
are
received
the
paper.
numberofdots, dependingonthe char-
The
buffer empties when the
automatic
decimal) automatically activates print-
DIP
immediately; they are
printer
called the buffer.
(that
is,
LForCR),
paper.
dataisprinted.
line feed
DMP
switch 1-3), the buffer prints
What
happens
the
print
head moves to a
and
carriage return.
132).
is
set at the startofthe next
When
the buffer
andsoon,
data
stored
the
after the
stored
and
in
of
The
•
carriage
printing (assuming
buffer).
the printing position moves to the
return
If
you select "carriage
code
that
at least
(CR=13
54
decimal) automatically activates
one
character
return
startofthe
only" (the
codeisalready in the
DIP
switch 1-2),
current
line,
and
the
Page 59
Chapter
4
next buffer full prints
Otherwise, subsequent characters print
The
•
line feed code
select
print
"LF
head
only" (the
moves to the next print line without a carriage return.
Otherwise, the printing position
subsequent
(LF
= 10) automatically activates printing.
DIP
characters over the
at
switch
1-3),
is
set at the startofthe next print
the startofthe next line.
the buffer prints
line.
•
If
the
computer
delays
more
than
a second before sending the next
print code, the buffer prints. Printing continues from the
position.
The
dot
•
positioning sequence (27, 16,
designated position
continues in the
is
to the leftofthe
current
line at the
nl,
n2) prints the buffer if the
current
dot
address specified by the (27,
position. Printing
16) command.
Data
and
word processing modes only:
•
The
backspace
the
current
•
If
you select a character setofdifferent
command
activates printing. Printing continues
line at the dot address specified by the command.
dot
density, the
buffer prints. Codes for changing character sets are: (27,
(27,19), (27,20), (27,23),
18),
ing continues in the
current
(27, 29), (27 31),
and
line with the new character style.
current
data
(2732).
line.
If
you
and
the
current
in the
17), (27,
Print-
In
When
the
•
lowed by
printer
standard
ing continues from the
Graphics
•
When
standard
prints.
mode only:
the
printer
or
The
DMP
receives the
characters, the buffer prints.
current
receives the
condensed character printing condition, the buffer
132 returns to the previous print
ing continues in the same line from the
start
graphics
mode
Dot
code (18) folgraphics print-
character position.
end
graphics code and returns to a
mode,
current
print position.
and
print-
55
Page 60
General Control Codes
Notes:
• In the description, "next line" means the new line reached by performing a line feed operation. In data processing mode, if a reverse
line feedisset in the memory, the line feed operation causes paper
to move in the reverse direction.
•
Repeat
flow characters are wrapped around and printed at the beginning
the next line.
data can cause a buffer fulloroverflow condition. The over-
of
56
Page 61
Word
and Data Processing Modes5
Superscript and Subscript
In an earlier chapter,
essing and word processing modes
codes. In data processing mode, LF codes are stored until the end of
the line and become the current line feed standard; in word processing
mode, these codes are executed immediately and are only temporary.
Printing superscripts and subscripts
to take advantage of the immediate response to line feed codes.
this program in BASIC:
In this program, frequently used codes are stored in variables E$,
and U$ to shorten the program. The directionsinlines10through 30
refer to the motion you would make when drawing the script characters
by
hand -move down to print the subscripts 1 and2.then back up to
the output line, and then move up to print the superscript
2.
0$,
Repeat Printing
The DMP
to repeat a single character codeasmanyas255
for repeating graphic codes, underlining, repeating block graphics, and
so on. The repeat feature uses a three-code sequence:
132
also provides a built-in repeat capability, You can use
times. Itisalso useful
57
it
Page 62
Word and Data Processing Modes
• CHR$(28)
• The number of repetitions
• The code to be repeated
Underline Printing
To underline any textineither
CHR$(15). All text that follows this code
DP
or WP mode, send the DMP
is
underlined until you send a
132
CHR$(14), which stops underlining.
Dot Positioning
In any mode, you can position the print head to a specified dot posi-
in
ROM
tion. However, even though the character stored
the print head positions, you cannot.
For example, using the correspondence-IO character sets (10 CPI),
there are 1920 dots
• CHR$(223) specifies the last available dot column.
Note:Ifyou had used CHR$(48) in line15insteadofCHR$(47), the
DMP
132
tion to the first dot column in the next line.
tells the
would ignore the positioning command and set the new posi-
DMP
132
that the position IS greater than
64
or
Page 69
Chapter 6
Printing Graphics Patterns
Besides positioning the print head, you also need to be able to tell the
DMP
132 what to print once the headispositioned.
Remember that there are seven vertical dotsina dot column. You can
print anyorallofthese dotsinany combination you want.
Look back at the sample programs used to illustrate print head positioning. The last partofthe program line (CHR$(255)), which always
printed a vertical bar,isan example of all seven dots being printed at
once.
Try printing just the top dotofthe last dot column (479):
10
LPRINT
15
LPRINT
How does the CHR$(129) print just the top dot? Even though the
seven dots in a dot column are a vertical row, they are not numbered
sequentially from 1 to7.Table27describes the numbering system to
use with the
Specify the dot numbers that represent the individual dots you
want to print.
2.
Add
those individual dot numbers together.
3.
Add
the sumofthe combined dot numbers to 128.
For example, to print the first dot (dot # 1), the fourth dot (dot # 8),
and the last dot (dot #64), add them together: 1 + 8 +
add the sum (73) to
dot pattern in the form
10
LPRINT
15
LPRINT
The following sample program line prints a box with a line through the
middle:
Be prepared for a pause.Ittakes time to fill the print buffer.
ILPT1:",255
1=1
J=O
8<0
NEXT
LPRINT
CHR$(18)j
TO
20:8=-8
TO
6
THEN
CHR$(N)j
J:NEXT
CHR$(30)
N=N+2~(6-J)
I
EL8E
N=N-2~J
66
Page 71
Chapter 6
This program alternately adds and substracts powers of two to the cur-
rent code pattern stored in the variable
remove a single dot from the preceding dot pattern.
n. The net effect
is
to add
or
Line Feed
In graphics mode, itisassumed that you want to print rows of graphics
one right after another, each seven dots high. Therefore, graphics
mode provides only one fine feed. A single line feed advances the paper seven dots,
allows for continuous printing without unwanted space between lines.
or
approximately 0.12 inch. This small paper advance
Modify the current program to demonstrate this fixed line feed. Add
change:
20
FOR
K=l
TO
2:S=1:N=128
50
IF
K=l
THEN
60
IF
S<O
THEN
70
GOTO
110
Run the program.
These lines infiltrate the current loop and produce a mirror image
the first pass of the print head. The LPRINT in line 110 causes the line
feed between passes.
In addition to a 7/72 inch line feed, the following four line feed codes
are available:
1/72
•
• 1/144 inch line
• nl144 inch line
n should be a value between 1-255.
• 1/216 inch line
90
LPRINT:NEXT K
inch line
feed-(27
80
N=N+2~J
feed-en
feed-(27
feed-(27
50)
57)
64
51)
n)
ELSE
N=N-2~(6-J)
or
of
67
Page 72
Graphics Mode
Repeat Function
CHR$(28);CHR$(n) tells the DMP
specified number
The format for the repeat function
repeat code + number of times to repeat + what to repeat
For instance, LPRINT CHR$(28);CHR$(15);CHR$(255) prints the
solid vertical bar
Change line
90
LPRINT
and run the program.
Or
run this program:
10
LPRINT
20
LPRINT
of
times.
15
times.
90
to:
CHR$(28)iCHR$(2)iCHR$(N);
CHR$(18)j
CHR$(28)iCHR$(50)jCHR$(135)j
132
to repeat a graphics pattern a
is:
Leaving Graphics Mode
CHR$(30) exits graphics mode.Itplaces the DMP
(DP or WP) the printer was in when it entered graphics mode. In addi-
as
tion, all the previous conditions, such
are restored.
underline and character style,
132inthe mode
Freehand Drawing
Having graphics at your disposal requires a good amount of data.
computer can do most of the work in drawing figures that can be described
hand, requires translating the figure into a matrix of dots and then calculating the dot printing combinations for each print head position.
by
a mathematical function. Freehand drawing, on the
68
The
other
Page 73
Chapter 6
Because seven dots are available for graphics, separate the matrix into
rows seven dots high.
The numbers can be stored
and typing time, store the data
128
as you send them to the DMP
NEW
I
ENTER
120
DATA
160
DATA
190
DATA
210
DATA
The 999's signify the end of a line. The other numbers are between °
and
127.
send them to the DMP
Enter and run this program.
10
LPRINT
20
FOR
30
READ
40
LPRINT
80
LPRINT:NEXT I
90
LPRINT
100
LPRINT
The resultisnot spectacular. However, you can make it repeat a num-
ber several times. A good approach
cate the number of repetitions, followed
Add:
The DMP
These modes can operate independently of each other. Three different
character sets are also provided so that different characters can be
printed using the same binary code.
132
provides two operation modes with different capabilities.
Code Set Selection
Two types of code sets are available with the DMP
ginal Tandy code set, described earlier in this manual. The other
is
code set for IBM, which
printer. (Refer to Chapter 8,
Select these two operation modes
operations:
• Send control code CHR$(27);CHR$(33)
changes the operation mode to the other mode.
DIP
• Set the
use the Tandy code set, set the switch to OFF.
switch
like that used with the IBM80CPS graphics
"IBM Emulation Mode" for details.)
by
performing one of the following
1-1
to ON; this selects the code set for IBM. To
132.
Oneisthe ori-
in
either mode. This
is
Character Set Selection
The DMP
acter set, which can print
characters,
The other character sets are the IBM character sets 1 and
print
select a character set from either Tandy
132
has three kinds of character sets. Oneisthe Tandy char-
94
ASCII characters, four modified ASCII
64
European symbols, and
94
ASCII characters and48block graphics characters. You can
30
block graphics characters.
2,
or
IBM emulation mode.
which can
a
Select IBM character set 1 byusing control code CHR$(27);
CHR$(58). To return to the Tandy character set, send control code
is
CHR$(27);CHR$(59). Only IBM character set 1
mode.
Note: Select between IBM character sets 1 and 2
code sequences in IBM code set mode.
LPRINT CHR$(27)
LPRINT CHR$(27)
"7" for character set 1
"6" for character set 2
applicableinTandy
by
using the following
71
Page 76
Selecting a
Code
Set
and Character
Set
International Character Set Selection
You can select the following international character sets using the "international character sets" command (27, 89,n)by
following numbers for
Table
n.
25.
International
Characters
selecting one of the
Sets.
Character Sets
U.S.A.
Germany
France
Norway
Sweden
Denmark
Finland
Italy
Spain
England
Belgium
When the DMP
132
receives this command, the ASCII codes that are
input print characters specified
power up.
Codes (Hexadecimal)
20
21
22
23
24
25
26
27
28
29
2A
asinAppendix A. USAisdesignated at
72
Page 77
IBM Emulation Mode8
Description
The
DMP
132
has two different control code sets; oneisthe original
DMP
132
code set, and the otherisa code set for IBM, similar to the
80
one used with the IBM
are independent.
Code Set Selection
You can easily select the code set for IBMbyperforming one of the
following operations:
CPS graphics printer. These two code sets
• Set the
• When using the Tandy (original code set) mode, send the code
sequence CHR$(27);"!".
DIP switch
1-1
to ON.
Character Set Selection
In
the
IBM
emulation mode, you can select two different character sets
(not character styles). One
character set2.Select IBM emulation modebysetting the DIP switch
1-1toONorby
pondence between ASCII codes and character patterns, refer to
Appendix A.
Choose between IBM character sets 1 and 2 by sending the following
control codes at any time:
• CHR$(27);"6" for IBM character set 2
• CHR$(27);"7" for IBM character set 1
You can also select the IBM character sets
switch 1-7: set to
designate the character set
In
addition, character codes with a decimal value below32(normally
as
used
CHR$(27);""". That is, one character following this control code sequence
ter code has a decimal value less than 32. For the character patterns
control codes) can be printed
is
sending the correct control code. For details on corres-
OFF
handled like a normal printable character, even if the charac-
is
IBM character set1,and another
by
the setting of the DIP
to designate the character set1,set to
2.
by
sending control code
is
ON
IBM
of
73
to
Page 78
IBM Emulation Mode
codes with a decimal value below 32, refer to printable characters for
32
codes below
(decimal)inAppendix A.
Carriage Return
A carriage return (CHR$(13» prints the datainthe buffer, then the
print head moves to the leftmost dot position. A line feed
the
DIP
switch1-2isset to OFF or if the printer has received a
CHR$(27);"5";CHR$(1) code sequence. This command terminates the
double-width print mode. Automatic line feed capability can be set to
ON or OFF using the following code sequence:
• CHR$(27);"5";CHR$(O) for carriage return without line feed
• CHR$(27);"5";CHR$(1) for carriage return with line feed
is
executed if
Vertical Formatting Control Codes
Setting the Command for Line Feed Pitch
The line feed pitchisset to
ting of
ing one of thesecontrol codes:CHR$(27);"O", CHR$(27);"1",
CHR$(3), or CHR$(27);"A".
The control code CHR$(27);"O" changes the line feed distance to
inch.
The control code CHR$(27);"1" changes the line feed distance to 7/72
inch.
DIP
switch 1-6) at power up. You can change the pitchbysend-
1/6
inch or
1/8
inch (designatedbythe set-
1/8
Start Variable Line Feed
The control code CHR$(27);"2"isan execution command for the
by
CHR$(27);"A" command. That is, the line feed pitch designated
is
CHR$(27);"A" command
sent.Ifno CHR$(27)"A" command has been given, the line feed dis-
tance
is
set to
1/6
inch.
For example, if the line spacing
mode and you want to return the line spacing to
sent after the CHR$(27);"2" command
is
set to 7/72 inch for the bit image
1/6
inch, send a con-
the
74
is
Page 79
Chapter 8
trol code CHR$(27);"2" only (without a CHR$(27);"A" command).
will
The line spacing
return to
1/6
inch.
Variable Line Feed
The control code CHR$(27);"3";CHR$(n) changes the line feed distance to
any number between 1-255.
n/216 inch. n
is
a single-byte binary number and can represent
Setting the Variable Line Feed
The control code CHR$(27);"A";CHR$(n) defines the line feed pitch
in
increments of 1/72 inch. nisa single- byte binary number and can
represent any value 1-127.
Remember that this command only defines the pitch; you need to send
a control code CHR$(27);"2" to change the line feed distance.
Execution Command for Line Feed
The code CHR$(lO) prints out the character and feeds the paper one
line. The paper feed distance
switch or
mand terminates a double-width print mode.
by
the line spacing set commands discussed above. This com-
is
specified
by
the function selection
Carriage return
is
wise, it
not performed.
performed if the DIP switch
1-3isset to
ON;
other-
is
Execute Variable Line Feed
The control code CHR$(27);"J";CHR$(n) prints out the current buffer
contents and feeds the paper
ber and can represent any value 1-255. A carriage return
if the
DIP
switch
When, for example, you want a one- inch line feed, send the control
code CHR$(27);"J";CHR$(216) instead of sending an LF command
times.
1-3isset to ON; otherwise, itisnot performed.
n/216 inch. n
is
a single-byte binary num-
is
performed
six
75
Page 80
IBM Emulation
Mode
Reverse Line Feed
When you issue the control code CHR$(27);CHR$(93), the printer
prints out the character followed by this code and feeds
in
the reverse direction.
paper
1/6
inch
Notes:
•Reverse line feed cannot be executed beyond the top-of-form position.
• A paper jam can occur if the printer performs a reverse line feed
near the endofa page.
• Carriage returnisperformed if the automatic carriage return (function selection switch1-3)isset to
formed.
ON;
otherwise, itisnot per-
Setting
You can change the form length at any time, whether you are using the
friction feed
CHR$(27);"C";CHR$(n) sets lines
CHR$(27);"C";CHR$(O);CHR$(m) sets inches
byte binary number and can represent any value 1-127. misalso a singlebyte binary number and can represent any value 1-22.
positionisset at the current line after the printer executes
length setting command. Form lengthisset to11inchesor12
(selected by the
Setting
You can set the top-of-form position at any vertical position by using
control code CHR$(27);"4".
margin setting, first feed the
control code CHR$(27);"4" .
Note: Since the control code sequence
the form lengthinline numbers, the actual form length varies according to the line feed pitch you select.
Top-of-Form
or
the bidirectional tractor feed.
DIP
Top-of-Form
and
Form
Length
per
page, and the control code
switch 1-4) at power up.
Position
To
set the top-of-form position for the top
paper
to the target line, and then issue
CHR$(27);"C";CHR$(n)
The
control code
per
page. nisa single-
The
top-of-form
the
form
inches
counts
76
Page 81
Chapter 8
Form
Feed
When you issue control code CHR$(12), the current buffer contents
print out, and the paper feeds to the next top- of- form position. This
is
command terminates a double-width print mode. Carriage return
formed if the DIP switch 1-3
formed.
Skip
Perforation
is
set to ON; otherwise, itisnot per-
per-
Settheskipperforationfunction
"N";CHR$(n)
be used on a page, allowing you to avoid printing on the perforation.
is
a single-byte binary number and can represent any value 1-127. This
function
length set command.
If
Note:
this command.
You can also set the
1-5
to on.
command. n shows the value for the number of lines to
is
terminated
you designate n to exceed the page length, the printer ignores
by
the CHR$(27);"O" command or the form
1-
inch skip perforationbysetting the
by
usingtheCHR$(27);
DIP
switch
Horizontal Formatting Control Codes
Selecting
To select the font, you can use the control panel NLQ switch, but you
can also change the font from your computer. Send CHR$(27);
'T;CHR$(l)
quence CHR$(27);'T';CHR$(2) or CHR$(27);"I";CHR$(3) selects the
IBM near letter quality font.
Once you have selected the font, designate the pitch
Fonts
and
Pitches
to select the high-speed. standard font. The code se-
by
sending:
n
• CHR$(18) for
• CHR$(27);CHR$(58) for
• CHR$(27);"P";CHR$(n) for proportional spacing
10
characters per inch
12
characters per inch
77
Page 82
IBM
Emulation
Mode
Proportional
When proportional spacingison, characters print in different sized
spaces, depending on the width
acters, such as i, are given a small amount
ters, such as W, are given a wide space.
Control code
monospacing to proportional spacing, and control code
"P";CHR$(O) terminates proportional spacing and returns to monospacIng.
Note:
CHR$(18)
code CHR$(27);"P";CHR$(O).
The
Horizontal
Using horizontal tabulation, you can easily place and format sections
horizontally aligned. You can set the maximum
stops to any column (left marginiscolumn0)using the following control codes:
•
CHR$(27);"D";CHR$(nl);CHR$(n2)
n
is
a single- byte binary
position; it represents any value 1-136. Designate
tions
in
horizontal
CHR$(9) skips to the next right
tion
is
affected by character pitch and printing mode. Therefore, when
you change character pitches during compressed print
print mode, horizontal
on, the width of the space codeisusedasthe character pitch.
Spacing
of
each character.
CHR$(27);"P";CHR$(1)
proportional spacing
or
control code CHR$(27);CHR$(58),
changes the printing pitch from
is
not terminated by control code
of
That
is, narrow char-
space, while wide charac-
CHR$
but
only by control
(27);
Tabulation
28
horizontal
... CHR$(nk);CHR$(O)
number
ascending order. Send a null code (CHR$(O)) to terminate the
TAB
designation. Once
TAB
that
indicates the horizontal column
other
column posi-
TAB
stops are set, control code
TAB
position. Horizontal
or
double-width
positions shift.Ifproportional spacing
TAB
TAB
posi-
is
Control code
positions they were in at power up (one
CHR$(27);"R"
sets the horizontal
78
TAB
stops to the same
TAB
in every eighth column).
Page 83
ChapterS
Notes:
•
If
the horizontal TAB stopisnot set, the printer ignores control
code CHR$(9).
is
• When the horizontal TAB
in
ascending order, or if the number of TABs exceeds 28,
is
terminated.
ting
• All previously set TABs are cleared when you designate new TAB
stop positions. To clear all TAB stops, send the control code
CHR$(27);"D";CHR$(O).
• Horizontal TAB stops are set at every eight columns when the printer
powers up.
set, if the TAB stops are not entered
TAB
set-
Printing Mode Control
In IBM emulation mode, you can print elongated, condensed, bold,
emphasized, superscript, or subscript characters, or even change the
in
printing mode. These features are useful
ing in word processing systems.
printing a title or highlight-
Double-Width Printing
In double-width printing mode, the width of a printed characterisdou-
is
bled; space
are not affected, and their pitches are not doubled. Start double-width
printing with CHR$(14), CHR$(27);CHR$(14)
CHR$(l).
CHR$(27);CHR$(14), it
When it
with CHR$(27);"W";CHR$(O) only.
affected, and its pitchisdoubled, but horizontal TABs
or
CHR$(27);"W";
When you establish double-width printing with CHR$(14) or
is
released with CHR$(20) or a line feed.
is
established with CHR$(27);"W";CHR$(1), itisreleased
Compressed Printing
In compressed printing mode,10CPIischanged to17CPI.
Horizontal TABs and spaces are condensed, too. Designate compressed
or
printing with CHR$(15)
CHR$(18).
CHR$(27);CHR$(15), and releaseitwith
79
Page 84
IBM
Emulation
Mode
Notes:
• Compressed printingissuspendedinbit image modeoremphasized
printing mode. When the
printing restores.
• Compressed printingisavailable onlyinstandard font; the printer
ignores the code if itisin
DMP
132
exits either mode, compressed
correspondence font mode.
Data can be printed with up to
eight-inch paper.
Emphasized
In emphasized printing mode, the current characters are wider than
"normal" ones, thereby forming a sortofboldface. This emphasized
printing modeisestablished using control code,
cancelled by CHR$(27);"F".
Double-Strike
In double-strike printing mode, characters are printed once on the normal print line, and again with a small shift vertically. Start this mode by
using
CHR$(27);"G",
Printing
Printing
and cancel it by using CHR$(27);"H".
136
characters in a line when usmg
CHR$(27);"E"
and
Superscript/Subscript
You can print superscript and subscript charactersinIBM emulation
mode. These modes are useful for printing algebraic expressions. In superscript mode, a character prints on the upper halfofa normal character space, and in subscript mode, a characterisprinted on the lower
halfofa normal character space. Superscript modeisestablished by
CHR$(27);"S";CHR$(O),and subscriptmode
CHR$(27);"S";CHR$(I);
both are cancelled by CHR$(27);"T".
is
establishedby
Underlining
In this mode, all characters, spaces, and the spaces moved by horizontal TABs (except bit image data and graphic symbols) are underlined.
This modeisestablishedbyCHR$(27);"-";CHR$(I).
underline mode, send the code sequence CHR$(27);"-";CHR$(O).
To
terminate the
80
Page 85
Bit
Image Mode
There
are four kindsofbit image modes in the
tical line
ticular horizontal
of
dot image consistsofeight-bit data. Each mode has its par-
dot
density, and its maximum number of bitsonone
lineisas follows:
Table
26.
Bit
DMP
Image Modes.
Chapter 8
132, and one ver-
Mode
60
DPI
bit image
DPI
120
120
240
60
DPI
Bit
In 60
DPI
code sequence
LPRINT
CHR$(dn)
nl
and n2 are the numbersofthe horizontal dot positions. Eachisa
single-byte binary number;
the upper
n2.
The
the dot
pattern
bit image
DPI
bit image (Normal speed)
DPI
bit image
Image Mode
bit image mode, horizontal dot (bit) densityis1/60 inch. The
of
CHR$
this mode
(27);
"K";
is:
CHR$
(n!)
i CHR$
nl
is
the lower partofthe value, and n2
partofthe value. Therefore, the actual value
total data number
(nl,
n2) should not exceed 816.
per vertical line andisa single-byte binary number.
Numberofbits/line
816 bits/line
1632 bits/line
1632 bits/line
3264 bits/line
(n2);
CHR$
(dD;
is
nl
+ 256 X
dl
to dn
...
Unlike Tandy mode, the dot patterns are numbered from bottom to
top.
;
is
is
81
Page 86
IBM
Emulation
128•
64
32
16
8•
4
2
1
Add
the numbersofthe
data
fordlthrough dn.
120
DPI
Bit
Mode
Image Mode
dot
patterns
you
wanttoprinttoobtain
the
In 120
The
The
In 120
DPI
code
LPRINT
CHR$Cdn)
total
120
DPI
DPI
120 inch,
but
the bitsonthe
or
ly,
damage
mode
is:
LPRINT
CHR$Cdn)
The
definition
"120
DPI
bit image
sequenceofthis
CHR$
data
number
Bit
Image Mode (Normal Speed)
bit image
and
the
to the
CHR$
Bit Image
mode,
(27)i"L"
(nl,
mode
dot
construction is
same
printer
(27)i"Y"
and
limitsofthis
Mode."
horizontal
mode
is:
i CHR$
n2) should
(normal
vertical position
could occur.
i CHR$
dot
Cni);CHR$
not
exceed 960.
speed),
the
same as 120
cannotbeprinted
The
Cn1)iCHR$
mode
are
(bit) densityis1/120 inch.
<n2)
the
i CHR$
dot
Cd1)
i
...
densityisalso
DPI
bit image,
continuous-
code sequenceofthis
Cn2);
CHR$
Cd1)
i
...
the
same
as described
i
1/
;
In
82
Page 87
240
DPI
Bit
Image Mode
In
240
DPI bit image mode, horizontal dot (bit) densityis11240
In this mode, the
DMP
132
does not print the bits on the same vertical
line continuously. The code sequence of this mode
Chapter 8
inch.
is:
LPRINT
CHR$(dn)
The total data number
CHR$
(27);
"2";
CHR$
(n!);
CHR$
(nl,
n2) should not exceed 1920.
(n2);
CHR$
(dU;
...
Other Control Codes
Paper
You can turn theFAUL
printer detects a paper end condition. By combining this function and
the override function, you can print the last printable line on a page
without a device fault on the external terminal.
The
end), and
paper end)..
Backspace
In this mode, the printer prints out the character thatisfollowedbya
control code CHR$(8) and moves the printing position to the left one
character space. This command
ters such
by
uses the width of the space code
End
Detection
T signal to the interface on or off when the
FAULT
signalisinhibitedbysending CHR$(27);"8" (ignore paper
slashed zeroes. The distance of a backspaceisdetermined
the currently selected pitch.Ifproportional spacingison, the printer
as
the backspace distance.
;
83
Page 88
IBM
Emulation
Mode
Cancel
This command clears all data in the print buffer that was received be-
fore CHR$(24).
affected at all.
Other
control codes received before this code are not
Unidirectional
Usually, the
ing technique, but it allows you to print using a unidirectional printing
method to avoid slight vertical misalignment. This functionisuseful
printing charts, graphs, and so on.
Execute this function using
with CHR$(27);"U";CHR$(O).
When only a small numberofcharacters are required to print, printing
the other characters in bidirectional mode decreases the efficiency
the
DMP
the required characters in unidirectional mode. This codeiscancelled
by CHR$(13).
Printing
The code sequence CHR$(27);"A";CHR$(n) prints the character
assigned to code n when nisbelow
assigned to n, a space (20 hex) prints instead.
Printing
DMP
132
executes printing with a bidirectional logic-seek-
CHR$(27);"U";CHR$(1),
132. Use the home head code CHR$(27);" (" to print only
Characters
with
a Code Below20Hex
20
hex.Ifthereisno character
and cancel it
in
of
Bell
When the printer receives the code, CHR$(07), the printer buzzer
sounds for one second.