any portionofthis manualisprohibited. While reasonable efforts have been
taken in the preparation
sure its accuracy, Tandy Corporation assumes
no liability resulting from any errors or omissions in this manual, or from the use
formation contained herein.
is
IBM
a registered trademarkofInternational
Business Machines Corp.
Warning
with
the
limits
FCC Ruies. Only peripherals
certifiedtocomply
non-certified peripherals is likely to result in interference
wide) computer fanfold forms with guide holes. The
wide) single-sheet typewriter paper.
3/4
Forward Line Feed.
Of
program listings, report writing,
106
prints monospaced, 9 x 7 dot-
106:
106.
Description
Unpacking
Carefully unpack the DMP 106, being sure to locate the Ribbon Cassette
and the Paper Separator. Keep the empty ox and packing materials just
in case you ever need to transport the Prin er.
of
t e DMP 106 1
Figure 1. DMP 106 Dot Matrix Printer
3
Descriptionofthe
Be
sure to remove the Yellow Band from the Carriage. (Refer to Figure 2.)
DMP
106
Figure 2. Removing the Yellow Band
Read this manual carefully. The more familiar you become with the DMP
106,
the more value you will get from the Printer.
4
®
Chapter 1
®
Figure 3. DMP
CD
Power
ON/OFF
the power ON. Press the switch the other way to turn the power OFF.
Note: Turning the power OFF and ON during operation may cause loss
of
the current data.
Switch. Press the sideofthe switch
Figure
106
(Top
4.
Power Switch
5
View)
marked"I"to turn
Descriptionofthe
@
POWER
nected with
@
ON-LINE/OFF-LINE
communicate with
Printer
@
Platen
the
Friction, for the friction feed feature (toward therear side
®
Paper
®
Tractor
DMP
Tractor
(})
Tractor
the Tractor can slide from side
it is locked
®
Paper
®
Paper
@)
Platen.
®
Top
ON
stops the communication.
Pressure Lever. This lever has two positions.
tractor
Bail.
Feed. This
106
when printingonsingle-sheet
Cam.
Feed
Insertion Opening. Insert
Cover.
DMP
Indicator.
the
Power
the
feed feature
For
optimum
Tractor
for
detailsonusing
Whenthe
into
position.
Knob.
Turn
106
Illuminates whenthe
ON/OFF
Switch.
computer.
(toward
print
Cam
clockwisetomanually advance
Switch
When
When
the
quality, keep
Feed is removable. See Setting
the
is moved towardtherear sideofthe Printer,
to
side,
the
ON.
pressed in,
pressed again
frontofthe Printer);
the
Tractor
Feed. You
paper.
and
when moved towardthe front,
paper
here.
DMP
Bail
106 is
the
Printer
and
One
downonthe
can
properly
is ready
released,
is Release,
the
other
of
the Printer).
Up
remove
the
paper.
con-
to
the
for
is
paper.
the
the
@
Transparent
@
Hole
Cover.
@
Paper
@
AC
Power
ModelIIusers:Ifa BASIC
error,
typing:
tire contents
Head
position.
Cover. Shouldbeopened
Put
this Coverinplace when the
Separator.
Cord.
CON
T [
ENTER
of
the print
buffer
while handling
Tractor
program
Iwill causeprinting
will be printed, starting withthe current
stops execution becauseofa
to
resume. However
6
the
is removed.
Paper
Bail.
Printer
the
en-
Print
Chapter 1
CD
Figure 5. DMP
CD
Power Cord. Plug the power cord into a wall outlet or approved power
strip.
@ Parallel Interface Connector.
capabilities, connect the cable here.
the right cable for your computer.
@ Serial Interface Connector.
interface capabilities, connect the cable to the serial interfaceconnector
See
indicated.
Computer or Data Terminal.
Note: Serial interface
@ PrintFunction (DIP) Switches. The settings
mine exactly how your Printer prints in various situations.
Print Function (DIP) switches.
Setting Up the DMP
is
not supported in IBM emulation mode.
106
If
your computer has parallel interface
If
you have a computer with serial printer
®®
(Rear View)
See
Setting Up the DMP 106 for
106
for the right cable for your Color
of
®
these switches will deter-
®
See
Setting
® GroundScrew. Connect theground wire from the shielded printer cable
here.
7
Setting Up the DMP 106 2
The following Start-Up Checklistisa summaryofhow tosetupyour Printer.
You should follow this procedure every time you start-upthe Printer - NOT
JUST
THE
FIRST
o Find a good spot for your Printer. Be sure to consider:
Work
•
stand.
• Length
allowed between your computer
• Papertakes up space.
flow.
• Noise factors. Situate the Printer as far as possible from noise generators such as refrigerators
[Z]
Be
sure the Power SwitchisOFF.
TIME.
surface. Place the Printerona sturdy desk, table,orprinter
of
the printer cable. This determines the maximum distance
and
printer.
Be
sure toleave enough
and
industrial equipment.
room
for smoothpaper
Figure 6.
[2] Remove the packing materials, including the Yellow Band.
[Z]
Install continuous form fanfold paperorsingle-sheet paper.
o Check the Ribbon Cassette.
stallation/Replacement.
o Set the
o Connect the
outlet (220/240V,50Hzwhere the unitisso marked).
Print
Function (DIP) Switches (on the rear sideofthe Printer).
AC
Power
power plugtoa 3-wire, 120 volt, 60Hzgrounded
Switch (OFF Position)
If
it has
not
been installed, see Ribbon In-
9
AC
Setting Up the
DMP
106
o Check to
seeifthe Printerisready by running the Self-Test.
o Connect the interface cable from the computer to the printer interface
connector.
o Turnthe Power ON and check that the Power ON Indicator (on the Con-
trol Panel)
o Place the ON-LINE/OFF-LINE Switch in the ON-LINE position.
o
Be
sure that the Top Coverisclosed securely.
Paper Separator Installation
Install the Paper Separator by inserting the tipsofthe Separator into holes
provided on the top
Tractor Installation and Removal
This Printer can be used with either the Tractor Feed system or the Friction
Feed system. The difference
which has guide holes on both edges, while the paper used with the Friction
Feed system does not have these holes.
The Friction Feed system may be used with the Tractor installed; however,
better operation can be achieved
single sheets
Installing the Tractor
1.
Set the Power
is
illuminated.
of
paper.
of
the Printer (behind the Paper Insertion Opening).
is
that the Tractor Feedsystemisused with paper
ifitis
removed - especially when using
ON/OFF
Switch to OFF.
2.
Open the Top Cover and remove the Hole Cover.
3.
Move the Paper Bail forward (toward the frontofthe Printer)
4. Place the pins inthe Tractor onto the cutouts,
is
on the Tractor until it
5. Move the Paper Bail back against the platen.
6.
Close the Top Cover.
securely locked into position.
10
as
shown. Then push down
Chapter 2
Removing the Tractor
1.
Set the Power
2.Open the Top Cover.
3.
Move the Paper Bail forward (toward the frontofthe Printer).
4.
Hold the front barofthe Tractor in your hand and pull upward; then
push it away and remove the Tractor.
5.
Move the Paper Bail back against the platen.
6.
Replace the Hole Cover.
7.Close the Top Cover.
ON/OFF
Switch to OFF.
Figure 7. Installing the Tractor
11
Setting Up the
DMP
106
Paper Loading
Warning! When loading paper (single-sheet or fanfold), be sure the paper
correctly enters the Paper Insertion Opening.
It
is
very important that the paper enters the DMP
106
straight. The paper
must be directly behind the Printer or paper skewing or jamming may oc-
of
cur. Proper positioning
the Paper Separatorisalso important to help pre-
vent paper jamming.
PRINTER
II
II
L-~
II
II
II
I_
iPAPER I
WRONGRIGHT
If
the fanfold paperiscorrectly loaded, it should enter between the body
of
the Printer and the PaperSeparator. Once the paperisloaded and power
is
ON, presstoset the ON-LINE/OFF-LINESwitchtoON-LINE. Then you
may begin printing.
Sing~e-Sheet
1.
Be
sure the Power SwitchisOFF.
2.
Remove the Tractor and replace the Hole Cover. (See Tractor Installa-
paper Loading
tion and Removal.)
3.
Move the Platen Pressure Lever forward (towardthe frontofthe Printer).
4.
Open the Transparent Cover and tilt the Paper Bail forward.
5.
Insert the paper into the Paper Insertion Opening and push the Platen
Pressure Lever back toward the rear side
of
the Printer. Use the Paper
Feed Knob to pull the paper around until it appears between the Platen
and the Print Head.
to
6.Move the Platen Pressure Lever forward
align the paper. Push the
Platen Pressure Lever back again.
12
Chapter 2
7.
Tilt the Paper Bail back toward the rear sideofthe Printer.
8.
Close the Transparent Cover.
is
Warning! The gap between the Print Head and the Platen
adjusted properly at the factory. Do not try to adjust it.
is
outofposition, contact yourlocal Radio Shack Computer Service Center•
mechanically
If
it looks like
./
QB0/
00
Figure 8. Single-Sheet Paper Loading
it
Hints
• With the paper properly installed, printing
• Remember to set the Platen Pressure Lever and the Paper Bail toward
• When you want to print a
and
Tips
On
Single-Sheet
passes the Paper Empty Sensor. The Printer will then go OFF-LINE.
First, press to release the ON-LINE/OFF-LINE Switch to OFF-LINE.
of
Next, insert another piece
vance the paper. When the paper
LINE Switch again and the DMP
it left off, without loss
of
the rear side
Paper Empty Sensor, press the ON-LINE/OFF-LINE Switch once to set
it to OFF-LINE; then press it again to set it to ON-LINE. This will print
one more line. Just follow this procedure once for each additional line
you wish to print.
the Printer while using single-sheet paper.
paper and turn the Paper Feed Knob to ad-
of
data in the print buffer.
few
Paper
is
in place, press the ON-LINE/OFF-
106
will continue printing from where
more lines after the paper has passed the
13
Loading
will
continue until the paper
...
Setting
Up
the
DMP
106
Fanfold Paper Loading
The DMP
wide. The paper may contain one original plus one copy.
Before using fanfold paper, however, the Tractor should be installed.
To load fanfold paper into the DMP
1.
2.
3.
4.
5.
6.Close the Pin Feed Clamps to secure the paper.
106
will
accept standard fanfold paper thatisfrom4"to 9.5"
106
:
Set the Power
Open the Transparent Cover.
Gently move the Platen Pressure Lever and the Paper Bail toward the
of
front
Open the Pin Feed Clamps.
Pass the paper between the bodyofthe Printer and the Paper Separa-
tor. Insert the paper intothe Paper InsertionOpening and push the Platen
Pressure Lever back toward the rear side
Feed Knob to pull the paper around until it appears between the Platen
and the Print Head.Besure the paperisstraight so that the holes
line up withthe pin feed sprockets. Move the PlatenPressure Lever forward to align the paper; since pin feed paper
Platen Pressure Lever in the forward position.
If
Note:
Cams toward the rear side
from side to side; after adjustment, pull the Cams forward to lock the
Tractors into position.
ON/OFF
the Printer.
re-positioningofthe Tractorsisnecessary, move the Tractor
Switch to OFF.
of
the Printer. Use the Paper
is
being used, leave the
of
the Printer so that the Tractors can slide
will
7.
Move the Paper Bail toward the paper.
8.
Close the Transparent Cover.
14
Chapter 2
Figure9.Fanfold Paper Loading
Warning! The gap between the Print Head and the Platen is mechanically
adjusted properly
out of position, contact your local Radio Shack Computer Service Center.
at
the factory.
Don't
try to adjust it.Ifit looks like it
is
Hints
• Remember to set the Platen Pressure Lever toward the frontofthe Printer
and
Tips
on
Fanfold
and the Paper Bail towardthe rear side
paper.
Paper Bail
Figure 10. Platen Pressure Lever and Paper Bail Position
Paper
15
Loading
of
the Printer while using fanfold
...
Paper Pressure Lever
Setting
•Besure that the paperispositioned so thatit cantravel through the Printer
•
Up
the
DMP
without binding .
Do
not let paper pile
be pulled back into the Paper Insertion Opening. This could
feed
or
damage the Printer.
106
up
on
topofunprinted paperorprinted paper may
jam
the paper
Figure 11. Paper Insertion
Ribbon Installation/Replacement
If
the Ribbon Cassetteisalready installed, simplycheck to
ly threaded between the paper and Print Head.
If
the Ribbon Cassetteisnot installed,orif
sive wear, faint printing, etc., follow this procedure:
1.
Set the Power Switch to OFF.
NOTE: When you
Printer's buffer will automatically be lost.
2.Open the
3.Gently grasp the Ribbon Cassette and remove the Cassette by lifting it
upward.
Top
turn
Cover.
the power OFF, any information stored in the
it mustbe replaced due to exces-
16
see
that itisproper-
Chapter 2
Note: Every time you replace the ribbon cassette, clean the two ribbon
guide posts (located at the left end
cloth.
Figure 12. Cleaning the Ribbon Guide Posts
4.Unwrap the new Cassette and remove the packing foam.
5.Gently move the Print Head to the extreme right.
of
the carriage shaft) with a soft dry
CAUTION:
Print Head.
Be
sure Printer powerisOFF before manually moving the
Figure 13. Power Switch (OFF Position)
17
Setting
Up
the
DMP
106
6.Hold the new Ribbon Cassette and pass the ribbon end around the Ribof
bon Guide Posts near the left edge
sette toward
.the righttodraw out the ribbon.
7.Gently press the Cassette down until it
of
Claw
the Cassette Holder.
Do not force the Cassette into place!
will
ted, the Cassette Knob
not match up with the shaft from the Cas-
the Printer; then move the Cas-
is
firmly secured by the Stopper
If
the Cassetteisnot properly fit-
sette Holder. Do not force theCassette down, but fit it in gradually while
pushing and turning the Cassette Knob in the indicated direction. (See
Figure 15.)
8.
Once the new Cassetteisinstalled, move the carriage back and forth
manually. The ribbon
the ribbon has not been properly fitted between the Ribbon Guide
and Print Head (Le., into the Print Head Ribbon Guide Bezel), the ribbon feed will not operate smoothly.
10.
Close the Top Cover.
18
Figure 15. Ribbon Cassette Installation
Chapter 2
Setting Print Function (DIP) Switches
There are four switches locatedonthe left rear sideofthe Printer. These
of
switches allow you to customize some
applications.
When you set switch 1 to OFF before turning the DMP 106's power ON,
the DMP
shown in Table
106
Table 2. For instance, in Tandy mode, you can select different baud rates
and interface modes.
Remember! The Printer power must be OFF before you change any
switches.
106
selects Tandy codes.Inthis setting, the switches function as
1.
On the other hand,ifyou set switch 1 to ON, the
selects codes for IBM. In this case, the switches function as shown in
Before plugging the power cord into anAC power outlet, check the following:
o Is the Printer Power
[2J
Have you removed the Yellow Band from the Carriage?
[2J
Don't
connect the Printer to your Computer yet.
Connect the AC power plug to a 3-wire,
(2201240
strip such as the Plug-In Power Strip (Radio Shack Cat. No. 61-2619) or
the Automatic Power Controller,
V, 50 Hz where the unitisso marked), or to an approved power
ON/OFF
Switch set to
120
volt,
SW-301
(26-1429).
OFF?
60Hz
grounded AC outlet
Carriage Movement Test
The Carriage Movement Test allows you to check that the Carriage moves
freely from one end
properly.
Printing
You can run the Carriage Movement Test by following these steps:
1.
2.
is
not performed during the Carriage Movement Test.
Set the ON-LINE/OFF-LINESwitch to
er Switch to ON.
The Carriage first moves toward the right until it strikes the Right Switch
which determines how far it must move to reach the home position at
the left; then it moves left until it reaches the home position.
Press the ON-LINE/OFF-LINE Switch to set it to
Carriage
forth, performing a Line Feed
of
the Platen to the other and thatthe Platenisturning
OFF-LINE
is
moving toward the left. The Carriage will move back and
at
the endofeach line.
and then set the Pow-
ON-LINE while the
3.
Turn the power
OFF
to end the Carriage Movement Test.
21
Setting
Up
Self-Test
the
DMP
106
The DMP
quality and general printer operation before you connect the Printer to your
computer. This
(printing
ly. The Self-Test
Before running the Self-Test, however, always be sure to load the DMP
with wide paper (9.5 H wide) since the test prints from one endofthe Platen
to the other. Printing on the Platen can shorten the life
the Print Head.
To run the Self-Test:
1.
2.
3.
4.
The Printer will begin printing rolling ASCII
CPI mode.
5.
106
has a built-in SeIt-Test feature which lets you check printing
is
a good time to check that the Print Headisset properly
is
neither toofaint nor smudged) and that paperisfeeding correct-
will
last for several minutes.
106
of
the Platen and
Plug the Printer into an AC power outlet.
Set the ON-LINE/OFF-LINE Switch to ON-LINE.
Set the Power
Press the ON-LINE/OFF-LINE Switch to set it to OFF-LINE while the
Carriage
Printing
ON/OFF
is
moving toward the left.
will
continue until you turn the power OFF.
Switch to ON.
96
characters in Standard
Connecting the DMP 106 to a Computer
Before making any connections between the Printer and your computer, be
sure all units are off!
10
You need the correct cable for your computer. Table 3 describes the printer
cables carried by Radio Shack; Table 4 provides a quick reference for printer
connection locations.
22
Table 3. Computer to DMP 106 Cables
COMPUTER
Model I (Keyboard only)
Model I (Exp. Interface)
Modelll/12/16/16B/DT-1/
Tandy 2000
Model 1II/4/4D/4PITandy 1000
Computer·
Color
Model 100ITandy 200/600
DT-100·
Tandy 1200/3000
Tandy 1000EXl1000SX
Tandy 3000HU3000HD
Table 4. Computer Connection Points
COMPUTER
Model I (Keyboard only)
Model I (Exp. Interface)
Model 1I/4PI12116/100
Modellll/4/DT-1/DT-100
Color Computer
Tandy 200/600/1000/1
Rear side of Keyboard
Left side of E.!.
Rear Panel of Computer
Underneath Panel
Rear Panel of Computer
Rear Panel of Computer
• When you use the Color Computer or the
off
set DIP switch 1to the
position. Serial interfaceisnot supportedin IBM
emulation mode.
23
DT-lOO
data terminal, always
Setting
1.
2.Connect the other endofthe cabletothe Printer Jackofyour Com-
Up
the
DMP
Attach the molded male endofthe cable to the connectoronthe left
rear side
Do not force the plug.
If
you are using shielded printer cable, connect the ground wire to the
ground screw shown in Figure
puter. See your computer owner's manual for specific instructions.
of
the Printer.
106
If
it doesn't fit one way, turnit over andtry again.
17.
__
..JuU
=
-
=-f
S";"'"~rl~'~
Figure 17. Connecting the Interface Cable
R)
/I
Parallel interface
V'
"\GrOUnd
wire
Power-Up Sequence
The specific power-up sequence
gest you consult your computer owner's manual for details
your computer with peripheral devices (such as printers).
In
any event, the Power Lamp will remain lit while the PrinterisON.
It
is
essential thatthe Printer remains ON when connectedto theComputer.
If
you turn the power ONorOFF,ora Printerisconnected but not turned
of
on, erratic operation
the entire system may occur.
will
depend upon your Computer. We sug-
on
powering
up
24
Using the
DMP
106 3
(General Printer Operation)
The DMP
• Character Printing
• Graphics Printing
The Printer responds to software codes from the computer in two different
ways
many similarities, but each has its own unique features.
The Character Printing Modeisused for printing characters. In this mode,
Line Feed commands do not cause immediate printing. Instead, they are
stored in the Printer's memory along with the other data. When the current
line
pitch
The Print Pitch (character spacing)
DMP
Consequently, you must think
printed per inch
5 CPI, 6 CPI, and 8.3 CPI for Elongated printing.
In Graphics Mode, you have completecontrol
can be used to create a custom letterhead, designs, special type fonts, etc.
However, with Graphic operation, many control codes (which can be used
with Character Printing operation) cannot be used.
The DMP
ply ignores the code. This includes codes that changeline feed pitch. Graph-
ics
Mode
106isdesigned for two distinct applications:
- one for each application. The two response patterns, ormodes, have
is
printed, the List Feed commands stored in the memory determine the
of
the paper feed.
is
determined by the space the
106
puts between each printed character and also by the Font Style.
of
Pitch intermsofthe numberofcharacters
10
CPI,12CPI, and
106
doesn't return an error when you send such a code - it sim-
uses
only one Line Feed (7/72") to insure full coverageofthe paper.
16.7
CPI for Standard printing and
of
the Print Head. This mode
Control Codes
Before investigating the various print modes, consider how thecomputer communicates with the Printer.
is
All information
(OO-FF
according to the American Standard Code for Information Interchange, commonly referred to
codes.) Most numbers (or codes) are printed
bols. However, the numbers 0-31,
numbers, are used to control various functions
trol Codes allow you to change charactersets, select print modes, underline,
etc.
for you hexadecimal fans). The Printer interprets these numbers
sent to the Printerasnumbers between 0 and
as
the ASCII code.
(See
Appendix C for a listofASCII
as
letters, numbers, or sym-
as
wellassome special sequencesofcode
of
the Printer. These Con-
25
255
decimal
Using the
The Control Codes have different meanings, depending on thecurrent print
mode.
next
ous Printer fuctions. Read these sections carefully.
DMP
If
a Codeisnot recognized by the Printer, itisprinted as X. The
few
sections demonstrate how someofthe Control codes activate vari-
106 (General Printer Operation)
Sending Control Codes from BASIC
Note: Tandy codes are discussed in this section (DIP switch 1 set to OFF).
For IBM codes, refer to Chapter 8,
Some Printer features are activated by a single code, but many functions
of
require a sequence
gin with decimal
fies the
determines which Printer feature
these codes to the Printer.
Prin..ter
two or more codes. Most multiple code sequences be-
27
(referred toasthe ESCAPE code). The ESC code noti-
that a special sequenceison its way. The next code(s) sent
mM
Emulation Mode.
is
selected. In BASIC, use CHR$( ) to send
Note: This section
to the Printer.
# -2, for LPRINT.
For instance, set up the DMP
the normal way. Then type the following program:
1111
REM
20
LPRINT"DATA";CHRS(27);CHR$(28);"PROCESSING
30
LPR
and RUN it.
~f1i5~PROCESSING
Roll the paper forward and look at the results. The word MODE printed
over part
CHR$(28) are the guilty parties. Take a quick look
shows the various code sequences understood bythe DMP
Code sequence CHR$(27); CHR$(28) means change the forward line feed
to half its normal distance.
will usethe command LPRINT inexamples thatsend codes
If
you're using a Tandy Color Computer, substitute PRINT
106asdescribed earlier and enter BASIC in
INT"
!'"lODE"
of
DATA PROCESSING. Why? The codes CHR$(27) and
at
Appendix A. This chart
106.
The Control
5
26
Chapter 3
Character Printing Mode
Line Feed commands are not executed immediately. The
did not cause a Half ForwardLine Feed until afterthe first line was printed.
The set Line Feed pitch stays in effect until a
designated.
Type:
LL18T
Sure enough. You still have that short Line Feed.
Type: LPRINT CHR$(27);CHR$(54) to return to normal Line Feed pitch.
I
ENTER
I
new
(27 28)
Line Feed pitch
sequence
Graphics Mode
Graphics Modeisvery different from theCharacter Printing Mode. For one
thing, Graphics Mode accepts only one Line Feed Code - CHR$ (10). This
is
Line Feed
Mode features are available in the Graphics Mode. Standard letters and symbols, for example, are ignored by the Printer when
Instead, numeric data from
Print Head. This lets you produce high-resolutiongraphic print-outs
logos, etc.
For a quick look at this Mode in action, change our test program to:
fixed at 7/72 ". Furthermore, onlya
128to255istranslated into dot patterns for the
few
ofthe CharacterPrinting
itisin Graphics Mode.
of
charts,
is
10
LPRINT
20
FOR
30
LPRINT
40
NEXT:LPRINT
and RUN the program.
CHR$(18) puts the DMP
255
are interpreted as dot patterns.
LPRINT
Type:
LUSTing the program to be sure you're not stuck in Graphics land.
CHR$(18);
1=128
CHR$(I);
CHR$
TO
255
CHR$(30);
106
into Graphics Mode. The numbers
(30)1ENTER
Ito return the Printer toCPMode. Try
27
128
through
Using the
DMP
106
(General Printer Operation)
Selecting a
Print
Mode
Table 5 summarizes the Control Codes required to move from one mode
to
another.
Table 5. Control Codes for Changing Modes
If
you're
CP
Graphics
In:
and want
change to:(Dec)
Graphics
CP
to
Send a
18
30
CHR$(
);
(Hex)
12
1E
Hints and Tips About Print Modes...
Character Printing Mode
• All commands which determine LineFeed pitch are stored in the Printer's
memory. They are not executed until a LF code
is
received. Then, the paper advances according to the pitch codes stored
in the Printer's memory.
• Line Feed commands stay in effect until replaced by a new command,
is
or until the Printer
turned off.
• All printable characters (except user-defined Graphics) can be printed in
this mode.
Graphics Mode
(10
• Only one Line Feed Code
the paper to move 7/72
• Decimal numbers
128-255
Dec.)isacceptable. The LF Code causes
1/
forward. No other pitchisallowed.
sent via CHR$in BASIC are interpretedaspin
firing patterns for the Print Head.
• Only a
few
code sequences are recognized in Graphics Mode.
(10
Dec. or
138
Dec.)
28
Print Font Styles
and Character Widths
The DMP
• Standard
• Graphic Characters
Each font style
The character styles differ in the size
characters are created within the matrix.
The horizontal dot positions overlap; vertical ones don't.
Font Style
Standard
Block
Graphics
Table 6 shows that there are three basic pitches:
• Normal
• Compressed
• Condensed
When character pitch
the data in the buffer
will
106
has two distinct print (character) font styles:
is
created with a unique dot patternlaid outin a grid or matrix.
of
the matrix and the way individual
Table 6. Character Widths and Densities
Matrix Size
9x7
6x6
is
changed (for example from Normal to Condensed),
is
printed, some dot spaceisadded, and then printing
continue in the current line with the new character style.
Since the normalline-to-line spacingis1/6"or12
ics characters
using
the
to
the
program:
10
LPRINT·CHR$(27);CHR$(28l;
20
FOR
30
FOR
40
READ
50
NEXT
60
NEXT
70
DATA
80
DATA
90
DATA
CHARACTERS
CHARACTERS
CHARACTERS
CONDENSED
CHARACTERS
_........
~....--.
CHARACTERS
.......
CHARACTERS
rs.IiiiI...,
are
Half
Forward
R=1
C=1
,--,
CONDENSED
T"
1-1
u.y
6 dots high, we can create continuous vertical graphics by
TO
3
TO
7
N: LPRINT
Line Feed (CHR$(27);CHR$(28).
NORMAL
COMPRESSED
DENSITY
NORMAL
,-1-1
COMPRESSED
or
1-1
W.L-f
+r
DEr~ITY
+1'
J"..
CHRS(Nl;
C: LPRINT
R: LPRINT
CHR$(27l;CHR$(S4l;
241,243,241,224,241,243,241
224,244,241,241,241,249,224
241,248,241,224,241,248,241
W.L.j
DENSITY
.......
DENSITY
DENSITY
DENSITY
+JI""
.............
dots high
and
Add
the
Graph-
these lines
31
Print Font Styles and Character Widths
and RUN it.
E-=c
STANDARD
STANDARD
STANDARD
CHARACTERS
CHARACTERS
CHARACTERS
CONDENSED
NORMAL
COMPRESSED
DENSITY
DENSITY
DENSITY
GRAPHIC
..
•••...
GRAPHIC
••••••-...
GRAPHIC
" • •
'.-.1
CHARACTERS
-..111
1II"""Il&.lII,---,orI-I
CHARACTERS
rsr...JiI.---,
CHARACTERS
......
CONDENSED
,.....,.,.~I
U.l...l~~
NORMAL
L.I..l....1
COMPRESSED
T"
1-1
L.l
J....j
+T
A"-
DENSITY
DENSITY
+T
...of"l!lIII..
DENSITY
When you've printed out the results, delete lines10through 90.
Wrap-Around
The DMP
termined by the number
By
counting dot columns, a combinationofdifferent font styles, including
standard and elongated, can be printed on each line. The numbers
dressable dots-per-line in the Character Printing Mode is:
• Normal
• Compressed=
• Condensed=
If
the lengthoftext the Printer receives exceeds the limitofdots-per-line,
a Line Feed
next line. This
106isa dot-addressable Printer. Therefore, line lengthisnot de-
of
characters, but by the numberofdots-per-line.
of
ad-
=
960
1152
1600
is
inserted and the last characterisprinted from the startofthe
is
called wrap-around.
Elongated Characters
Anyofthe character font styles canbe elongated totwice their normal width.
Table 8. Elongated Printing
Send a CHR$( ):
(Dec)(Hex)
27 14
27 15
18
18
OE
OF
To:
Start Elongation
End Elongation
32
Chapter 4
The start
tered any number
(27
14)
and end
(27
15)
codes for Elongated characters may be en-
of
times within a line and can be used in every mode.
You can easily elongate the characters in the current program. Change:
100
230
LPRINT
LPRINT
CHR$(27);CHR$(141
CHR$(271;CHR$(19);
CHR$(27);CHR$(lSI:STOP
and RUN the program.
STANDARD
STANDARD
STANDARD CHARACTERS CONDENSED
GRAPHIC
-
-_
_-_-~
GRAPHIC
.
-.
.-_-_
GRAPHIC
• -•••__
CHARACTERS CONDENSED
~
CHARACTERS
CHARACTERS
CHARACTERS
__
CHARACTERS
=
........
.---,..,....1-1
COMPRESSED
DENSITY
COMPRESSED
........
I-
I
L...I..t-1......,~
DENSITY
NORMAL
NORMAL
-.-I-I
~
-t-.4
L---.I
4-P"'"
-L.-J
~
DENSITY
DENSITY
DENSITY
~
~
DENSITY
Bold Characters
Bold characters are implemented in much the same way as Elongated
characters.
Table 9. Bold Printing
Send CHR$(
(Dec)
27
31
27 32
):
(Hex)
1B 1F
1B 20
To
Start Bold Printing
End Bold Printing
Bold characters start when you send a CHR$( );CHR$(31) and stop when
you send a CHR$(27);CHR$(32).
When a
(27
31)
code sequenceisreceived, the DMP
106
prints the current
buffer contents; thenitresumes Bold characterprinting from thenext character received.
Bold characters can be added to the current program by changing lines:
1~0
230
LPRINT
LPRINT
CHR$(27);CHR$(311
CHR$(27);CHR$(19);CHR$(27);
CHR$(32):STOP
33
Print Font Styles and Character Widths
Now RUN the program.
STANDARD
STANDARD
STANDARD
GRAPHIC
•
••••
GRAPHIC
--.rl'..-.J
GRAPHIC
...
~
CHARACTERS
CHARACTERS
CHARACTERS
CONDENSEDIlENSITY
CHARACTERS
__
~.
CHARACTERS
.............
CIi4RACTERS
....
CJ:.lNDefiEI)
~
...
I-I
NORMAL
COMPRESSED
NORMAL
-,.........,..,...1-1
COMPRESSED
-rl-I
U-4W~
lEISITY
U..L.j"'~
DENSITY
DENSITY
DENSITY
W.14+r~
DENSITY
Mixing Bold and Elongated
Bold and Elongated characters cannot be active at the same time. The first
to
code (either Bold or Elongated)
106
dence. The DMP
then simply ignores the second code.
be received and activated will take prece-
Superscript and Subscript
In Superscript and Subscript, character heightiscut in half. In Superscript
is
character printing, a character
in Subscript, a character
is
Table 10. Super./Subscript Printing
Send CHR$( ):
(Dec)(Hex)
27
83 0
27 83 1
27 88
18
18
18
printed on the upper halfofa line; and
printed on the lower halfofa line.
To:
53 0
53 1
58
Start Superscript Printing
Start Subscript Printing
End Super-/Subscript Printing
Superscript printing startswhen you send a CHR$(27);CHR$(83);
CHR$(O).
A CHR$(27);CHR$(83);CHR$(l) code sequence starts Subscript printing.
Send a CHR$(27);CHR$(88) tostop either Superscript or Subscript printing.
34
Chapter 4
When a
ters are printed in Superscript
received. When a
contents; then
(27830)or(27831)
(27
88)isreceived, the
it
returnstothe font style which prevailed before entering
code sequenceisreceived, subsequent charac-
or
Subscript printing mode until a
DMP
106
prints the current buffer
Super-/Subscript character printing.
of
The character style
Super-/Subscript printingisthe same as the one used
before entering Super-/Subscript mode.
Type in this program:
The character set can be selected by the following commands:
(27
88)
is
Table 11. Character Set Change Commands
Send
(Dec)(Hex)
27
581B
27
591B
• When a
(27
58)
CHR$( ):
3A
3B
code sequenceisreceived, the
IBM Character Set
Tandy Character Set
DMP
To:
106
prints thecurrent
Tandy characters stored in the buffer; then it starts IBM character set 2
printing from the next character received.
DMP
106
• Whena (2759) code sequence is received, the
prints the current
IBM characters storedin the buffer; then it resumes Tandy characterprinting from the next character received.
35
General Control Codes 5
Line Feed Codes (LF)
When aLF(ASCII
buffer
DMP
is
printed followedbya Line Feed. Unless you tell it otherwise, the
106 uses
10)
codeisreceived bythe
1/6"
Forward Line Feed when advancing paper.
DMP
106, all datainthe Printer
Pitch settings are sentto the
trol Code
27
is sent (CHR$(27». This tells the
DMP
106
in a two-code sequence. First, a Con-
DMP
106
that
a special code
sequence will follow. The next number determines the specific pitch. These
Control Codes are listed in Table 12.
Table 12. Line Feed Control Codes
Send CHR$(
(Dec)
27
28
54
27
27 56
Hints
and
TipsonLine Feed
•Inthe Character Printing Mode, codes are stored in the
They are
not
activated until a
):
(Hex)
18
18
18
...
1C
36
38
LF
codeissent.
To:
1/2 Forward LF (1112")
Full Forward LF (116")
3/4 Forward LF (1/8")
Printer
buffer.
• Line Feed Pitch codes have no effect in the Graphics Mode. The Line Feed
is
setat7/72"
forward.
Special Line Feed Codes
There aretwo
oneisfor execution and the otherisfor setting.
27 90 n
27
nl72"
Forward Line Feed codes
Table 13. Special Line Feed Control Codes
Send CHR$( ):
(Dec)(Hex)
18
5A n
91
n
18
58
that
operate in different ways;
To:
n172"
Forward Line Feed
n
Execution
n172"
Forward Line Feed
Set
nl72"
Forward Line Feed Execution:
This code is effective
in
both
CP
and
Graphics Modes.
37
General Control Codes
• When a CHR$(27);CHR$(90);CHR$(n)isreceived by the DMP
is
data in the Printer buffer
ward Line Feed pitch
For example,
ifnis
cause one full Line Feed
n/72"
This code
It
• When a
Forward Line Feed Set:
is
similartothe above code except the timing to be executed.
is
effective only in
CHR$(27);CHR$(91),CHR$(n)
Line Feed occurs but it
The
n/72"
Forward Line Feed
Line Feed code
n
is
a value between 0-127.
(LF=10or
seno
printed followed by the LF code. The For-
is
determined by the value n between 0-255.
12,
one full Line Feed will be carried out be-
is
12/72" (116").
CP
Mode.
is
received by the DMP
is
stored in the Printer buffer.
will
be executed with the receptionofthe
138).
106,
106,
all
no
Carriage Return (CR)
A CR
(13or141)
and then performs either a Carriage Return followed by a Line Feed or a
Carriage Return only, depending upon the following New Line Control Code
setting.
(Dec)
27
21
27
code tells the Printer to print the current buffer contents,
Table 14. New Line Control Codes
Send
CHRS(
22
):
(Hex)
18
18
15
16
CR=CR
CR=CR
Set
+LF(NL) Set
To:
• When a CR (13 or
CHR$(27);CHR$(21) already received, only a Carriage Return
141)
Codeisreceived by the DMP
106
with a
is
per-
formed after printing the buffer.
• When a CR Code
a Carriage Return followed by a Line Feed (NL)
is
received with a CHR$(27);CHR$(22) alreadyreceived,
is
carried out.
• DIP switch 4 determines the mode at power on. (ON: CR only, OFF: CR
with NL).
38
Setting Top-of-Form and Form Length
Chapter 5
The control code CHR$(27);CHR$(52)isused to set the Form Length.
resets the line feed count to zero and sets the currentlineasthe Top-of-Form
position. The line length per page
Form Feed code.
operation
n
(x
On initial power-up, the DMP
position and the Form Length
is
properly positioned before you turnonthe Printer.
is
1/6").
If
n
is0or1,itischanged to2.Whenever any Line Feed
activated, the Line Feed pitchiscounted up and compared with
is
set so
thatn:(x
106
sets the Top-of-Form at the current paper
is
set to 66 lines per page.Besure the paper
1/6")isused with the
Entering IBM Mode
When a CHR$(27);CHR$(33) codeisreceived, the DMP
of
defaults
riage returns to its home position, and all
are read again.
Note: When serial interface
(27
33)isignored and the Printer stays in Tandy mode.
the IBM mode. That is, buffer contents are printed out, the car-
DIP
switches (except switch
is
selected (DIP switch 2ison), the code sequence
106isreset to the
Ignored or Undefined Codes
Codes
printed with the symbol X which representsaninvalid code.
There are several reasons why a code may be unusable in a certain mode.
nored.
codes in the range 0 to
CII 0, for example,
The following summarizes the undefined codes:
that
are unusableorundefined in given mode are either ignored
Redundant codes
For
(used toenter Graphics Mode)
that
don't
example, if the Printerisin Graphics Mode, sending a CHR$(18)
31
that the DMP
is
not used in either print mode.
or
change the current Printer status are usually ig-
is
useless. And there are many ASCII control
106
simply doesn't recognize. AS-
It
1)
39
General Control Codes
Table. 15. DMP 106 Ignored Control Codes
Both Modes:
• Out of rangeonrepeat sequence.
on
• Out of range
• Redundant codes that don't change the current printer status.
For example, if you send a CHR$(14) when underline
CP Mode:
Graphics Mode:
All codes
(27
Codes printed as X
CP
• All codes from
the above ignored codes.
• All codes between 192-223.
0,1,127,255
in
15),
(27 90
Mode only:
positioning sequence.
is
already set.
the range 0-127 are ignored, except (10), (13), (30), (27 14),
n),
(27 16 n1
0-31
n2)
and (28 n1
and 128-159, except the active function codes or
n2)
DMP 106 Buffer Operation
The DMP 106's ability to temporarily store dataisoneofits main advantages over a typewriter. Codes sent to a typewriter (Le., keys pressed) are
transferred immediately to the paper. Codes sent to a Printer are not printed immediately; they are stored in a separate section
called the buffer. When the buffer fills,
LF or CR), the buffer
is
emptied and all dataisthen printed on the paper.
What happens afterthe buffer data
or
certain codes are received (Le.,
is
printed depends on the circumstances.
In some cases, printing continues on the same line; in others, the Print Head
is
moved to a different position relative to the paper.
In the CP Mode, commands for changing print fonts, Line Feed, etc., can
be stored in the buffer to take effect when the data
Understanding how the buffer works
full control
of
the DMP
106.
is
important for those who wish to gain
of
memory inthe Printer
is
dumped to paper.
Hints and Tips on the
For
CP and Graphics Modes
• The buffer allocates a fixed number
width selected. The buffer
DMP
106 Buffer.•.
of
dots, depending on the character
is
emptied when the data stored equals that
number.
If
different character widths have been used on the same line, the last
character added may exceed the dot count. The buffer
is
printed without
this last character.
40
Chapter 5
• The Carriage Return (CR =13decimal) code automatically activates printing (assuming at least one character code
• The Line Feed
Print Head
•
If
the computer delays more than a second before sending the next print
code, the buffer
• The Head Positioning sequence
Printing continues
(27
16)
command.
• When the buffer
(LF=
10)
is
positioned at the startofthe next print line.
is
code automatically activates printing, and the
printed. Printing continues from the current position.
(27
in
the current line at the dot address specified by the
is
full, the bufferisprinted. Printing continues from
the current position.
CP
Mode only
•
If
a character setofdifferent dot densityisselected, the data in the buffer
is
printed. Codes for changing character sets are:
(27
23).
Printing continues in the current line with the new
adding some dot space.
• Dot graphics printing continues from the current character position.
is
• When a start Bold orend Bold
received, the bufferisprinted. Bold print-
ing continues from the current character position.
is
• Since the buffer capacity
and/or
Elongated features, the buffermay be printedbefore the contents
small,ifyou frequently use the Underline
exceed the capacity for one line. Printing
character position.
•
If
a CR =CR feature has been selected, receptionofthe Carriage Return
(CR =
13)
code causes the buffercontents to be printedfollowed by a Car-
riage Return, and the next full buffer
If
CR =CR +LF(NL) has been selected, it
New
to be printed followed by a
will
Printing
resumeatthe start of the next print line.
Line (CR and LF).
is
already in the buffer).
16
nl
n2) prints the buffer.
(27
19),
char~cter
will
continue from the current
will
overprint on the current line.
will
cause the buffer contents
(27
20), and
style after
Graphics Mode only
is
• When the End Graphics Mode command
received, the bufferisprinted. The Printer returns to the CP Mode and printing continues in the same
line from the current print position.
Note: Repeat data can cause a buffer full or overflow condition,
as
single characters.
41
well
as
Character
Printing
Mode 6
Repeat Printing
The DMP
a single character code up to
underlining, repeated block graphics, etc. The Repeat features use a threecode sequence:
• CHR$(28)
• The number
• The code to be repeated.
Type in this
10
20
30
40
Now RUN the program.
122333444455555666666777777788888888
Note: Depending on thecomputer, the second parameter (numberofrepetitions)
as
the TAB command, causing the print head to move to the next TAB position instead
your computer for details.
106
provides a built-in repeat capability. You can use it to repeat
255
times. It's great for repeating graphics codes,
of
repetitions.
new program:
LPRINT
print
FOR
LPRINT
NEXT
is
interpreted differently. For example, CHR$(9) may be interpreted
CHR$(30):REM
mode
1=1
TO
8
CHR$(28);CHR$(I);CHR$(I+48);
I
of
printing characters 9 times. Refer to the owner's manual
To
be
sure
in
character
of
Underline Printing
If
you need to underline any text in Character Printing Mode, send the
106
DMP
til you send a CHR$(l4) which stops underlining.
Underlineisaccomplished by two pass printing; this means the second pass
creates a continuous unbroken line after the first pass prints the characters
to be underlined.
If
a Print Head Positioning codeisreceived while the Printerisin an
underline-selected condition, the underline
position (left-most printing position) and the dot column position designated by the Print Head Positio{ling code.
If
you enter Graphics Mode while the Printerisin an underline-selected con-
dition, when you return to the Character Printing Mode, the designation
underlineisthe sameasit
a CHR$(l5). All text that follows this code
is
not printed between the home
was
before entering Graphics Mode.
43
will
be underlined un-
of
Character Printing Mode
Table 16. Underline Printing
Send
(Dec)(Hex)
CHRS(
15
14
):
OF
DE
To:
Start Underline
Stop Underline
For example, type in this short program:
10
LPRINT
20
LPRINT
30
LPRINT
40
LPRINT
50
LPRINT
If
this example, line 20 turns on the underline and the first lineoftext
HA"Y'
BIJ.? I
off
and GI
CHR$(301;:REM
CHR$(151;:REM
"LEEWAY
CHRS(141;:REM
"GIVES
NESS
\iE~;
PF1OQUCTS)
GOODSER'v'ICE
BUSINESS
GOOD
SERVICE"
is
underlined. Line 40 turns the underline
is
CHARACTER
PRINTING
START UNDERLINE
PRODUCTS "
STOP UNDERLINE
not underlined.
(bJT
Print Head Positioning
In any mode, you can position the Print Head to a specific dot position.
Every otherPrint Head position
The characters stored in ROM can use the half step positions - you can't.
is
accessible through the position sequence.
Using the Normal character sets
line, but only half
(480) are accessible by you. The same
(10 CPI), there are 960 dot positions per
is
true for Com-
pressed and Condensed characters.
Table 17.
Character WidthDots-per-L1neAvailable Columns
Normal960480
Compressed1152576
Condensed1600800
DMP
106
Print
Head Positioning
Elongated characters use the same dot columns, even though the characters
are printed twice as wide.
Even
if
underlineisdesignated, underline does not appear between the home
position (the leftmost printing position) and the position designated by the
Print Head Positioning code.
44
Chapter 6
To position the Print Head to a specific position, send a
numbers (we'll call them
nl
and n2) thatspecify the desired position. In other
(27
16),
then two
words, just follow this general procedure:
1.
Send a Control Code which specifies the Character set (Normal, Condensed, Compressed).
2.Send a CHR$(27);CHR$(16) to tell the Printer you want to position the
Print Head to print a specific dot column.
3.
Tell the Printer which dot column you want to print.
This
is
a little more complicated and
will
be explained shortly. For now,
just understand that you simple tell the Printer which dot column you
want.
4.
Tell the Printer what you want to print.
When you want to specify a dotcolumn where printing
(27
16)
first use CHR$ to send the
code. Follow this with another two-code
is
to begin, you must
sequence which specifies the position. For instance:
LPRINT CHR$(27);CHR$(
wherenlis
a value between
16);CHR$(n1);CHR$(n2)
0-3
and n2isa value between 0-255.
Table 18. Print Head Positioning
If you wish
specify
dot
256-511
512-767
768-799
0-255
to
column:
n1
must
o
1
2
3
be:
n2
must
0-255
0-255
0-255
0-31
be:
Remember! Normal printing allows you to access dot columns up to
(n1=1,n2 =
575
to
(nl
=3,
Why two numbers
DMP
223);
Compressed printing allows you to access dot columns up
(nl
=2, n2 =
n2=31).
106
with one numberis255, and clearly you have more than
63);
Condensed printing allows you to access up to
(nl
and
n2)?
The maximum value you can send to the
dot positions available.
Those
of
you who are fansofbinary math
is
interpreting these two numbersasa single
two lower bits
ofnlare usedasb(8) and b(9).
will
recognize that the DMP
100bit
(b(0)-b(9»
value. The
45
479
799
255
106
Character Printing Mode
Note: Use
if
See
nl
=I gives
n2. Type:
as
10
and
Whoops! The asterisk printed
you need
10
and
this
Position is a little like a TAB,
you much [mer control. Although itis available
tial is greatest
If
you wanttomake a real messonyour paper, try:
10
20
30
40
50
Get
9.5"
wide paper for this next example.
you
can
print a character startinginposition 480inNormal
256
of
those dots,
LPRINT
RUN
to
LPRINT
RUN
program
LPRINT
FOR
LPRINT
CHR$(100+I*SIN(I/5»;
LPRINT
NEXT
outofthe double-width mode
CHR$(27);CHR$(16);CHR$(1);CHR$(224);"*"
the program.
leave enough
CHR$(27l;CHR$(16);CHR$(1);CHR$(218);"*"
the program.
with the different character densities.
in
Graphics Mode.
CHR$(27);CHR$(28);
1=1
TO
50
CHR$(27);CHR$(16);CHR$(1);
"*"
I
and
at
the left edgeofthe paper.
room
for theasterisktofitonthe endofthe line. Try:
That's
better.Iffits nicelyatthe endofthe
but
*:
..•.
*
:
*
*
*
.
*
.
.
480-256=224
it gets right
and
then
!
*
*
i
*
*
:*
.
*
.
.
*
*
RUN
i
**
***
.*
is the differencetobe sent
Hmmm!
downtothe
in
both
the
dot
level, giving
print modes, its poten-
program.
density.
Maybe
line.
Try
46
Character Printing Mode
Printing Directions
In
the Character Printing Mode, either bi-orunidirectional printingisselec-
table.
At
power ON, bidirectional printingisselected initially.Ifyou need
to select unidirectional printing, send a
ting, send a
(27850).
Table 19. Printing Direction Control Codes
Send CHR$(
(Dec)(Hex)
27
85
11B
27
85
0
1B
):
55
55
1
0
(27851);
and for bidirectional prin-
To:
Select Unidirectional
Select Bidirectional
47
Graphics Mode 7
In Graphics Mode, you no longer have pre-defined characters at your dis-
posal. You are responsible for the positioning and the action
Head.
106
The DMP
allows you to have direct, programmable control over all
the available graphic dots.
How manyacross the paperaddressable dot columns are there? That varies,
depending
10
LPRINT
2'~1
FOt~
30
LPRINl
40
NEXT
50
LPRINT
6v.1
FOF~
70
LPRINT
80
NE:xr
the character style you're using.
CHRt(27);CHR$(8S);CHR$(I);
1=1
TO 5
"Unidirectional
I
CHR$(27);CHR$(8S);CHR$(0);
N==1TO
1'·1
5
"Bidirectional
Printing"
See
Printing"
Table 20.
on
Now RUN the program.
Table 20. DMP 106 Print Head Positioning
Character StyleAvailable Dot Columns
Normal480
Compressed576
Condensed800
of
the Print
of
How many up and down (dot columns) addressable dots are there? The an-
is
swer
That means you can specify
(7
7.
x 800= 5600).
anyone
of
up to 5,600 individual dots
49
Graphics Mode
How do you printjust one (or two or three)ofthose dots in the dot column
you want? (For example, how can you print the 3rd dot from the top in the
400th dot column?)
Simple. Just follow this general procedure:
1.
Send a Control Code which specifies the character set (Normal, Condensed, Compressed).
2.Send a CHR$(l8) to put the DMP
3.
Send a CHR$(27);CHR$(l6) totell the Printer you want to position the
to
Print Head
4.
Tell the Printer in which dot column you wish to print.
is
This
a little more complicated and will be explained shortly. For now,
print a specific dot.
106
into Graphics Mode.
just understand that you simply tell the Printer which dot column you
want.
5.
Tell the Printer what you want to print. You can do this a number
ways. Again, this will be explained in moredetail shortly. For now, just
keep this overall procedure in mind.
is
When you wantto specify a dot column where printing
first use CHR$ to send the
(27
16)
code. Follow this with another two-code
to begin, you must
sequence which specifies the position. For instance:
LPRINT
Wherenlis
If
you wishtospecify
dot
CHR$(27);CHR$(16);CHR$(nl);CHR$(n2)
a value between
Table 21. Graphic
column:
0-255
256-511
512-767
768-799
0-3
and n2isa value between 0-255.
Dot
Positioning
n1
must be:
o
1
2
3
n2 must be:
0-255
0-255
0-255
0-31
of
Remember! Normal graphic printing allows you to access dot columns up
(nl
=
1,
to 479
n2=223);
dot columns up to
you to access up to
Compressed graphic printing allows you to access
575
(nl
=2,
799
n2=63);
(nl=3,
Condensed graphic printing allows
n2=31).
50
Chapter 7
Even though dot columns greater than
er than 255. That is, CHR$(400)
a two-byte value.
For instance, to draw a vertical bar at dot column
10
20
LPRINT
LPRINT
CHR$(18)
CHR$(27);CHR$(16);CHRA$(0);CHR$(144);
255
exist, you cannot send values great-
is
not allowed - you must break it into
144,
try this program:
CHR$(255)
(Don't worry, that last CHR$(255)
In line
CHR$(27);CHR$(16) tells it to get ready to position the Print Head. (Note
that
Try this line to print a vertical bar at the rightmost available dot column
-799.
10,
CHR$(l8) puts the Printer into Graphics Mode and, in line 20,
CHR$(O)isnecessary.)
10
LPRINT
CHR$(27);CHR$(20);CHR$(18);CHR$(27);
will
be discussed shortly.)
CHR$(16);CHR$(3);CHR$(31);CHR$(25S);
What happens is:
106
• CHR$(27);CHR$(20) puts the DMP
• CHR$(18) puts the Printer into Graphics Mode.
• CHR$(27);CHR$(l6) tells the DMP
Head.
• CHR$(3) tells the Printer that the position will be greater than 768.
• CHR$(31) specifies the last available dot column.
Note:
If
you used CHR$(32) in this line insteadofCHR$(31), the DMP
would wrap-around to the first dot column in the next line.
into the Condensed character set.
106
to get ready to position the Print
106
Printing Graphics Patterns
By
now, you should be adept at positioning the Print Head. But you also
106
need to be able to tell the DMP
we
Remember that
can print any or all
Look back at the sample programs used when
positioning. Do you remember the last part
which always printed a vertical bar? That's an example
printed at once.
said there were 7 vertical dots in each dot column. You
of
these dots in any combination you want.
what to print once theHeadispositioned.
we
talked about Print Head
of
the program line (CHR$(255»
of
all 7 dots being
51
Graphics Mode
Try printing just the top dotofthat last dot column (799):
10
LPRINT
CHR$(16);CHR$(3);CHR${Jl);CHR$(129);
How does CHR$(129) print just the top dot?
Even though the 7 dots in a dot column are in a vertical row, they are not
numbered sequentially down from I to
system you must use with the
CHR$(27);CHR$(20);CHRS(18);CHR$(27);
7.
Table22describes the numbering
DMP
106
when specifyinganindividual dot:
Table 22. DMP 106 Addressable
Dot
#:
1
2
4
8
16
32
64
Dot:
Dot
Numbering System
Number You Must Use
To Print the Dot:
129
130
132
136
144
160
192
For instance, you've already seen how to print the top dot in the column,
but to print the bottom dot, change the program line to:
10
LPRINT
CHR$(27);CHR$(20);CHR$(18);CHR$(27);
CHR$(16);CHR$(]);CHR$(]I);CHR$(192);
Thisisfineifyou want to printanindividual dot, but how do you print
of
a combination
That's
1.
actually quite simple, too.
Specify the Dot # (1-64,
dots?
see
Table
22)
that represents the individual dots
you want to print.
73+128
# 's together.
= 201. Use
64
= 73. Then
201
as the addressable dot pat-
2.Add those individual Dot
3.
Add the sumofthe combined Dot # 's to 128.
For example,
# 8), and the last dot (Dot # 64), add them together: 1+8+
add the sum (73) to
if
you want to print the first dot (Dot # 1), the fourth dot (Dot
128:
tern in the form CHR$(201):
10
LPRINT
CHR$(27);CHR$(20);CHR$(18);CHR$(27);
CHR$(16lICHR$(]);CHR$(]I);CHR$(201l;
52
Chapter 7
Remember how CHR$(255) printed a solid (all dots printed) vertical bar.
Tryout
RUN the program.Beprepared for a pause; it takes time to fill the print
buffer.
A.
................
This program alternately adds and subtracts powersoftwo to the current
code pattern stored in the variable N. The net effect
a single dot from the preceding dot pattern.
CHR$(N)j
J:NEXT
iIIio....uIIIIiI.....<JIIilI..
N=N+2A(6-J)
I
.......................
ELSE
N=N-2AJ
is
to add or remove
Line Feed
In Graphics Mode, itisassumed that you want to print rowsofgraphics
one right after another, each 7 dots high. Therefore, Graphics Mode provides only one Line Feed. A single Line Feed advances the paper 7 dots or
0.1
approximately
ing without unwanted space between lines.
inch. This small paper advance allows for continuous print-
53
Graphics Mode
The numbers can be stored in DATA statements. To conserve memory and
typing time, store the data
send them to the Printer. Enter these sample DATA lines:
NEW
I
ENTER
I
120
DATA
160
DATA
190
DATA
210
DATA
The 999's willbeused to signify the endofa line. The other numbers are
between 0and
send them to the Printer.
10
LPRINT
20
FOR
30
READ
40
LPRINT
80
LPRINT:NEXT R
90
LPRINT
100
LPRINT
Now RUN the program.
Not much
a number several times. A good approache
indicate the number
Add:
999
19,12,112,999
40,39,16,16,8,15,999
16,16,8,8,4,4,2,2,1,1,999
127.
Now for the programto read the numbers, add
CHR$(18)
R=l
TO
N:IF
CHR$(128+N);:GOTO
CHR$(30)
"DMP
to
brag about yet. Maybe what it needsisto be jazzedup to repeat
line 120, the sequence - 4,66isusedtomean four 66s: 66,66,66,66. Now
modify the program to recognize the negative numbers.
Change:
40
IF
N>=0
50
READ
60
LPRINT
70
GOTO30
and RUN the program.
The figure still doesn't look like much. Add the remaining DATA lines and
see what you've been working on.
110
DATA
140
DATA
150
DATA
170
DATA
200
DATA
RUN the program.
THEN
LPRINT
CHR$(128+N);:GOTO
M
CHR$(28);CHR$(-N);CHR$(128+M);
-7,O,-2,96,80,-2,72,-2,-2,100,-2,114,
-2,57
-5,124,-2,120,-3,121,-2,113,-3,114,98,
98,-2,100
-2,116,92,88,72,64,32,32
5,5,3
127,-4,64,3,-3,2,3,-5,7,-5,15,-5,31,
-5,63,-6,127
-5,O,-5,1,-5,2,-5,4,-5,8,-5,19,-5,38,
-4,64,127,32,32
16,80,104,72,
L
30
Now
that's
worth the effort!
57
mM
Emulation Mode
1_
Description
of
the
mM
Emulation Mode
The DMP
control code set and the other
sets are independent
Code set selection
The IBM emulation modeisprovided to use with the IBM code set. You
can select it by setting DIP switch 1to ON and then turning the power ON.
If
you send a CHR$(27);"!", it resets the Printer to the defaultofTandy
mode. (Refer to Appendix A.)
The IBM emulation mode does not support serial interface.
your computer to a serial interface, any attempt to select IBM emulation
mode
Character set selection
Two different character sets (not character styles) are also provided in the
DMP
set (refer to Appendix
ing to the setting
selects the Tandy character set, while setting it ON (IBM emulation mode)
selects the IBM character set.
When an IBM character set
character set 2by sending the control codes CHR$(27);"7" with DIP switch
3 OFF (set
When CHR(27);
a high bit set are interpreted to be control codes and not printable characters.
106
has two different control code sets; oneisthe original Tandy
is
the IBM control code set. These two-code
of
each other.
If
you connect
will
be ignored.
106;
oneisthe Tandy character set and the otheristhe IBM character
C). Each character set
of
DIP switch1.Setting DIP switch 1to OFF (Tandy mode)
is
selected, you can designate character set 1 or
1)
or CHR$(27);"6" with DIP switch 3 ON (set 2).
"7"isreceived with DIP switch 3 OFF, control codes with
is
automatically selected accord-
is
When CHR(27);"6"
a high bit set are interpreted to be printable characters.
received with DIP switch 3 ON, control codes with
Carriage Return
The code CHR$(l3) orCHR$(27);CHR$(l3) prints the buffer contents and
then moves the printing position to the leftmost dot position.
is
A line feed
executedifDIP switch 4isset to OFF (CR with LF).
59
IBM
Emulation Mode
When
CHR$(27);"5";CHR$(0) is set;
formed
CR
is received,
if
CHR$(27);"5";CHR$(1)isset.
only
a
both
carriage
carriage return
return
is
performed
and
line feed are per-
Vertical Formatting Control Codes
Setting the line feed pitch
The
LF
pitch is setto1/6
CHR$(27);"0", CHR$(27);"1", CHR$(27);"2", CHR$(27);"3"
mand
CHR$(27);"A".
liS-inch
The control code CHR$(27);
7/72-inch line feed
The control code CHR$(27);" 1" changes the line feed distance to 7172 inch.
Variable line feed
The control code
CHR$(27);"A"
CHR$(27);"A"
If
to
line feed
no
CHR$(27);"A"
1/6
inch.
command.
commandisexecuted after the
inch unless you change it by sending the command
or
the com-
"0"
changes the line feed distanceto1/8
CHR$(27);"2"
That
command has been given, the line feed distanceisset
is
an
is, the
execution command for the
LF
pitch designated by the
CHR$(27);"2"
command.
inch.
if
Useful Hint:
If
you wanttoreturn theLFpitchto1/6
to
spacing has been set
code
CHR$(27);"2"
pitch will returnto1/6
Setting the variable pitch line feed
The control code CHR$(27);"A";CHR$(n) defines theline feed pitch inincrements
of
1/72 inch. nisa single-byte binary number and can represent any
value between one
to
7172 inch by designating n as 7.
This command
code
CHR$(27);"2"tochange the line feed pitch.
Enter the following program:
is
7172 inch for the bit image mode, send a control
only (without a
inch.
and
85.
For
bit image graphics, line spacing can be set
onlytodefine theLFpitch; you needtosend a control
inch when, for example, the line
CHR$(27);"A"
command). The
LF
60
10
LPRINT
20
LPRINT
30
LPRINT
40
LPRINT "HALF LINE FEED
CHR$(27);"A";CHR$(61;
CHR$(271;"2"
"NORMAL
SPACING LINE FEED"
IS
EXECUTED"
Chapter 8
Setting the variable line feed
The controlcode
inch. n is a value between 1
Since the Printer has a minimum line feed pitch
feed pitch
Variable line feed execution
The
control code
termined
Since the
feed pitch
Execution command for line feed
The code CHR$(lO)
feeds the paperone line. Thepaper feed distanceisspecifiedbythe line spacing set commands (mentioned above). This command will terminate a doublewidth print mode set
Setting top-of-form and form length
The
bidirectional tractor feedisused. The control code CHR$(27);"C";CHR$(n)
sets the lines per page
CHR$(m) sets the inches per page.
represent anyvalue between one
ber
tion
The top-of-form position can also be set
CHR$(27);"4".
by
Printer
form length can be changedatany timeifeither the friction feed
and
can represent anyvalue between
is
setatthe current line after a form length setting commandisexecuted.
CHR$(27);"3";
is
in multiplesof1/144 inch.
CHR$(27);"J";CHR$(n)
the value
has a minimum line feed pitchof1/144",
isinmultiplesof1/144 inch.
or
by
The form length is setto11
(n/216")
CHR$(n) sets the line feed pitch to n/216
and
255.
of
1/144",
(n/216")
executes a
of
n. n
is
a number between 1
CHR$(27);CHR$(1O) prints
code14or
and
code sequence (27 14).
the control code CHR$(27);"C";CHR$(O);
n
is
a single-byte binary number
and
127. misalso a single-byte binary num-
one
and
at
the current line by sending
inchesatpower
n/216"
and
out
the character
22. The top-of-form posi-
the actual line
line feed de-
255.
the actual line
and
ON.
and
can
or
61
IBM
Emulation Mode
Vertical tabulation
When a controlcode
prints out the buffer contents and feeds the paper to a predetermined vertical TAB position set by the CHR$(27);"C"; sequence.
is
position
Form feed
When a control code CHR$(l2) or CHR(27);CHR$(12)
prints out the buffer contents and feeds the paper to the next top-of-form
position.
Skip perforation
The skip perforation function can be set by the CHR$(27);"N"; CHR$(n)
command.
number and can represent any value between one and
terminated bythe CHR$(27);
If
you want to print60lines per page on a sheetofII-inch paper, RUN the
following program:
10
The 61st lineisprinted on the next top-of-form without a form feed
command.
predetermined, this code functions the same as an LF code.
n designates the number
LPRINT
CHR$(ll)
CHR$(27);"N";CHR$(60);
or CHR$(27);CHR$(II)isissued, the Printer
If
no vertical TAB
is
issued, the Printer
of
linestoskip. nisa single-byte binary
127.
This function
"0"
command orthe form length set command.
is
Horizontal Formatting Control Codes
Horizontal tabulation
With horizontal tabulation, you can easily align sections horizontally. The
16
maximum
is
column0)by using the following control codes:
gin
CHR$ (27);
CHR$ (nk); CHR$
n indicates the horizontal column position and can represent any number
between I and 80 for lO-pitch mode, 1 and
133 for Condensed mode; column positions should be designated in ascend-
ing order. When all TABs have been selected, send a null code
to terminate the horizontal TAB designation. Once the TABs are set, send
horizontal TAB stops can be set to any column (the left mar-
"D";
CHR$
(nl);
CHR$ (n2)
(0)
62
...
96
for 12-pitch mode, and 1 and
(CHR$(O»
Chapter 8
control code CHR$(9) or CHR$(27);CHR$(09) to skip to the next right TAB
position.
is
• When TAB stops are not set, control code CHR$(9)
if
• During horizontal TAB setting,
if
ing order, or
setting should be terminated.
• All the previously set TABs are cleared by designating new TAB stop po-
sitions.
• Horizontal TAB stops are set at every 8th column when the Printer
wered ON.
Reset all TABs
the numberofTABsismore than
TAB stops are not entered in ascend-
ignored.
16,
horizontal TAB
is
po-
The code CHR$(27);"R" restores all TAB columns to the default value
every 8th column.
Backspace
CHR$(8) or CHR$(27);CHR$(8) causes the printhead to backspace the length
of
one character after printing the current buffer contents.Ifproportional
is
spacing
a space (ASCII 32,20hex).
Home head
If
you send the code sequence CHR$(27);CHR$(60), the print head
to the left margin to print a line. This will occur for one line only.
Set left/right margin
Left
CHR$(27);"X";CHR$(nl);CHR$(n2) command.
nl
indicates the left margin and n2 indicates the right margin, counting from
the leftmost column.
selected, the lengthofthe backspaceisthe same as the length
and
right
margins
can
be set
simultaneously
will
return
by
of
of
the
Printing Mode Control
In IBM emulation mode, you can printelongated, condensed, bold, and emphasized characters; you can also print in super- or subscript mode, bit image mode and so on. Use these various print styles to print a title or to
highlight effectively in the character printing mode.
63
IBM
Emulation Mode
Double-width printing
In
double-width printing mode, the widthofa printed characterisdoubled;
the pitches
printing can be executed via CHR$(l4)
CHR$(27);"W";CHR$(l). When this modeisestablished with CHR$(l4)
or
CHR(27);CHR(l4), itisreleased by CHR$(20), CHR$(27);CHR$(20),
CHR$(27);"W";CHR$(0), a carriage return
lished
CHR$(27);"W";CHR$(0) only.
For
10
20
Now RUN the program.
of
horizontal TABs and spaces are also doubled. Double-width
with
instance, enter the following program:
LPRINT
LPRINT "TEXT
CHR$(27);
"W";
CHR$(l),
CHR$(271;CHR$(141;"TITLE"
PRINTING"
or
CHR$(27);CHR$(l4)
or
a line feed; when itisestab-
it
is
released
or
by
TITLE
TEXT
and RUN it. TITLEisprinted in double-width character mode, but TEXT
PRINTING
results with the results
PRINTING
is
not since a LF took place at the endofline
of
the following program:
10.
Compare these
10
LPRINT
20
LPRINT "TEXT PRINTING"
Selecting to-pitch (pica) mode
When thecode CHR$(l8), CHR$(27);CHR$(l8)
to the Printer, lO-pitch will be selected.
Condensed printing
In
the condensed printing mode, dot density can be condensed from 11120
inch to 11200 inch, and lO-pitch
and spaces are condensed, too. Condensed printing can be selected with
CHR$(l5)
CHR$(27);CHR(18)orCHR$(27);"M".
Note: Condensed printingissuspended in bit imageoremphasized printing
mode; when the Printer exits either
restored.
CHR$(271;"W";CHR$(II;"
is
changed to 16.7-pitch. Horizontal TABs
or
CHR$(27);CHR$(15),
or
and
released with
of
these modes, condensed printing
64
TITLE
CHR$(27)i;"M"issent
"
CHR$(l8),
is
Type in the following program:
10
20
and
LPRINT
LPRINT
RUN it.
CHR$(1S);
"THIS
Data
IS
can be printed with upto133
THISISCOMPRESSED
Selecting 12-pitch mode
Chapter 8
COMPRESSED"
characters in a line.
When thecode
Proportional spacing
Proportional spacing OFF
When the code CHR$(27);"P";CHR$(0)
tents are printed out and the font
Proportional spacing
When the code CHR$(27);"P";CHR$(1)issenttothe
rent buffercontents are printed out andthe font
al spacing font.
Emphasized printing
Emphasized printing
In theemphasized printing mode, each character is printed once
mal printing line, and again with a small shift vertically. This emphasized
printing mode
celled by CHR(27).
Enter the following program:
10
LPRINT
20
LPRINT
30
LPRINT
40
LPRINT
and
RUN the program.
CHR(27);":"issent to the Printer, l2-pitch will be selected.
ON/OFF
is
received, the current buffer con-
is
changedtoa monospaced font.
ON
DMP
106, the cur-
is
changedtoa proportion-
is
executed simultaneously.
on
the nor-
is
established by the control code,
"F".
The printing speedisreduced to halfin this mode.
CHR$(27);"E",
and can-
CHR$(27);"E";
"Emphasized
";
CHR$(27);"F";
"Printing"
Elphasized
Printing
65
IBM
Emulation Mode
Double-strike printing
In the double-strike printing mode, characters are printedtwice
on
the same
position throughtwo-pass printing; therefore, highlighted characters can be
printed not only by bold printing, but also bythe double-strike printing mode
which only slightly intensifies the appearance
is
mode
established by CHR$(27);
"G",
of
designated characters. This
and cancelled by CHR$(27);
"H"
Superscript and subscript
DMP
With your
superscript mode, a character
ter line, and in subscript mode, a character
106, you can print superscript and subscript characters. In
is
printed onthe upper halfofa normal charac-
is
printedonthe lower half
of
a normal character line. The superscript printing modeisestablished by
is
CHR$(27);"S";CHR$(O), and the subscript printing mode
established by
CHR$(27);"S", CHR$(1). Both superscript and subscript can be cancelled
by CHR$(27);
This function
"T"
.
is
useful for printing algebraic expressions.
Try the example program below:
Hl
20
30
40
50
60
7'1
80
90
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
LPRINT
"Y=AX";
CHR$(27);"S";CHR$(0);
11
113
CHP$(27);
II
1I=f,X
;
uT
It
;
CHR$(27);"S";CHR$(0);
u
""':1
U •
,
....
CHR$(271
; "T" ;
"+C"
.
and RUN the program.
Y=AX':3
=:BX2+C
66
Chapter 8
Underlining
In the underlining mode, all characters, spaces and the spaces which are
moved by horizontal TABs (except bit image
be underlined. This mode
celled by CHR$(27);"-";CHR$(0). Underlining
pass printing.
Type in the following program:
10
20
LPRINT
LPRINT
"THIS
CHRS(27);"-";CHRS(1);"UNDERLINE";
is
established by CHR$(27);"-";CHR$(l), and can-
FUNCTION
CHRS(271;"-";CHRS(01;
30
LPRINT "
and
RUN it.
THIS
FUNCTION
UNDERLINE
The word UNDERLINEisprinted with an underline.
Bit image mode
There are four kinds
of
dot
image consistsof8-bit data. Each mode has its particular horizontal
dot density, and its maximum number
WITH
WITH
TEXT
CAN
TEXT
of
bit image modes in the
AUTOMATICALLY"
PRINT
AUTOMATICALLY
data
and graphic symbols) will
is
accomplished through two-
CAN
PRINT"
DMP
106. One vertical line
of
bitsona line, as indicated below:
Mode
480 Bit Image
960
Bit Image
960 Bit Image
(Normal Speed)
1920 Bit Image
480 bit image mode:
In
480 bit image mode, horizontal dot (bit) densityis1160 inch. The code
of
sequence
CHR$ (27);
CHR$ (vK)
nI,
n2 are the numbers
single-byte binary number;
upper
data
tal
this modeisas follows:
"K"; CHR$
partofthe value. Therefore, the actual value
number
(nI,
(nI);
CHR$ (n2); CHR$
of
the horizontal dot positions. Eachofthemisa
nI
is
the lower partofthe value and n2isthe
n2) should not exceed 480.
Number of Bits/Line
480 Bits/Line
960
Bits/Line
960 Bits/Line
1920 Bits/Line
is
67
(vI);
...
nI
+256 xn2. The to-
IBM
Emulation Mode
vI
through vK represent the dot patterns for each vertical1ine and single-
byte binary number. Unlike in the Tandy mode, the dot patterns are numbered from bottom to top:
128
64
32
16
8
4
2
1
Add the numbersofthe dot patterns you want to print to obtain the
data
forvIthrough vK.
960 bit image mode:
In
960 bit image mode, horizontal dot (bit) densityis1/120 inch. The code
sequence
CHR$ (27);
of
this modeisas follows:
"L";
CHR$
(nl);
CHR$ (n2); CHR$ (VI);
...
CHR$ (vK)
The total data number
(nl,
n2) should not exceed 960.
960 bit image mode (normal speed)
is
In 960 bit imagemode (normal speed), the dot density
The difference between these two 960 bit image modes
equally 1/120inch.
is
equivalent to the
difference between boldfaced characters and normal characters. The code
sequence
CHR$ (27);
of
this modeisas follows:
"L";
CHR$
(nl);
CHR$ (n2); CHR$
(vI);
...
CHR$ (vK)
The total data number
(nl,
n2) should not exceed 960.
1920 bit image mode:
In
1920
bit image mode, horizontal dot (bit) densityis1/240 inch. The bits
on
the same vertical1ine are printed every third position in this mode. The
code sequence
CHR$ (27);
of
this modeisas follows:
"Z";
CHR$
(nl);
CHR$ (n2); CHR$
(vI);
...
CHR$ (vK)
The total data number
(nl,
n2) should not exceed 1920.
68
Chapter 8
Other Control Codes
Paper end detection
The FAULT signal to the interface, when a paper end conditionisdetected,
By
can be turned ON or OFF.
tion, the last printable line on the paper can be printed without a device fault
on the external terminal. The FAULT signal
(ignore paper end), and
paper end).
Cancel
CHR$(24) or CHR$(27);CHR$(24) clears the data in the print buffer that
was
received prior to this command; the other control codesthat
prior to this control code remain in effect.
Unidirectional printing
combining this function with an override func-
is
inhibited by CHR$(27);"8"
is
made available by CHR$(27);"9" (cancel ignore
were
received
Usually, the DMP
lows you to print by using a unidirectional printing method to avoid slight
vertical misalignment.
perfectly. This function
CHR$(l), and cancelled by CHR$(27);"U";CHR$(O). When only a small
number
characters on a page in the unidirectional mode decreases the efficiency
the DMP
ters in the unidirectional mode. This code
one line which follows this code
Printing characters below 20 hex
The code sequence CHR$(27);"-";CHR$(n) prints the character assigned
to
(20 hex) will be printed instead.
of
n when n
characters are to be printed unidirectionally, printing all the
106.
is
106
executes bidirectional printing, but this Printer al-
By
using this function, you can print a chart or a graph
is
executed by the code sequence CHR$(27);"U";
of
Use the code CHR$(27);"<"to print only specific charac-
is
below20hex.Ifthereisno character assigned to n, a space
is
cancelled by CHR$(13); only
printed unidirectionally.
69
Appendices
Control Code
Tandy Control Codes
Code
Dec.Hex.
()()
01
138
141
27
27
27
nl
27
27
20
27
21
27
22
()()
01
OA
10
or
or
8A
OD
13
or(When NL, LF pitch
or
8D
14
OE
15
OF
18
12
IB Start Double-widthStart Double-width
14
OE
IB
15
OF
IB10Positioning(3pitchesPositioning(3pitches
16
nl
n2
1B
19
13
IB
14
IB
15
IB
16
Character Printing
Mode
Ignored
IgnoredIgnored
Executive Line Feed
(Execute LF in accordance with information(Executive) 8A hex.:
latched)
Carriage Return
latched one.)per line.)
End UnderlineIgnored
Start UnderlineIgnored
Select Graphics ModeIgnored
Backspace (sameasBS)
Horizontal Tab (same as HT)
Line Feed (sameasLF)
Vertical Tab (sameasVT)
Form Feed (same as FF)
Carriage Return (sameasCR)
Double-Width Printing (same as
Line Feed Set
ESC A Execution
Variable Line Feed
Set TopofForm
(CR+LF)
Select Character Set 2
Select Character Set I
Ignores Paper End
Cancel Ignore Paper End
Select12Pitch
Home Head
Set Variable Line Feed
Set Lines Per Page
Set Inches Per Page
Set Horizontal Tab Stops
Set Emphasized Mode
Cancel Emphasized Mode
Set Double-Strike Mode
Cancel Double-Strike Mode
Variable Line Feed Execution
60
DPI Bit Image Mode
120
DPI Bit Image Mode
Select 10-Pitch Mode (same
DC2)
Set Skip Perforation
Cancel Skip Perforation
as
77
Control Code Summary
Dec.Hex.ASCIIFunction
27+80+00
27+80+01
27+82
27+83+00
27+83+01
27+84
27+85
+00
27+85+01
27+87
+00
27+87
+01
27+88
+nl
+n2
27+89
+nl
+n2
27+90
+nl
+n2
27+94+n
Other codes in Function Area
(01toIF
IB+50+0
IB+50+
IB+52
IB+53+00
IB+53+01
IB+54
IB+55+00
IB+55+01
IB+57
IB+57+01
IB+58
+nl
+n2
IB+59
1
+00
ESC+P
+ NULL
ESC+P
+ SOH
ESC+R
ESC+S
+ NULL
ESC+S
+ SOHSet Subscript Mode
ESC+T
ESC+U
+ NULLCancel Unidirectional Printing
ESC+U
+ SOHSet Unidirectional Printing
ESC+W
+ NULLCancel Double-Width Printing
ESC+W
+ SOH
ESC+X
+nl
ESC+Y
+nl+n2+nl+n2
IB+5A
+nl
+n2
IB+5E+n
and 7F hex.)
ESC+Z
+nl
ESC+~+n
+n2
+n2
Proportional Spacing
Proportional Spacing On
Reset All Tabs
Set Superscript Mode
Cancel Super-/Subscript Mode
Start Double-Width Printing
Set Left/Right Margin
120
DPI Bit Image Mode in Nor-
mal Speed
240
DPI Bit Image Mode
Prints Characters Below20Hex.
Ignored
Off
78
Parallel Interface
Interface Connector
Type36-Pin Receptacle
Model552742-1 or equivalent
AMP
__
or equivalent
._-
Manufacturer
Pin
Assignment
18
_.
-------
Interface B
Signals
Signal
Pin
Name
of
1STROBE
DATA 120
2
DATA 2
3
DATA 322
4
DATA 423
5
DATA 524
6
DATA 625
7
DATA 726
8
DATA 827
9
ACK28
10
BUSY29oV (Return for
11
12
PE
(Paper Out)30
13BUSY
OV
14
15
NC (Not Connected)33INIT
OV
16
17CHASSIS GROUND
18
+5 V (80 mA Maximum)36NC
Signal
36
s~l~al
NameofSignal
19
oV (Return for
oV (Return for
21
oV (Return for
oV (Return for
oV (Return for
oV (Return for
oV (Return for
oV (Return for
oV (Return for
oV (Return for
OV
31
NC
(Not Connected)
FAULT (Printer Error
32
Condition)
34NC
(Not Connected)
35NC
(Not Connected)
(Not Connected)
19
1)
2)
3)
4)
5)
6)
7)
8)
9)
10)
11)
79
Interface
Parallel Interface Signals
DATA
BIT
1-8
=:><,.....,.--
--1
DATA
STROBE---~-;
__
i0.us
,--
min.
'---1-.
5-.u-s-m-in-.
-----~
..J
X
'-
_
BUSY
__
I
-!I
-j
<-1-;-
I---..,.r
I.
__
O.us
min.
III
~I
I
Timing Diagram
DBI-DB3 -Host Generated
DataBits DBI-DB8 contain ASCII character data information. Databit levels
are positive true logic.
ACKNOWLEDGE -Printer Generated
The ACK signal
is
no longer busy.
BUSY -Printer Generated
The BUSY signal goes positive to indicate when the Printer cannot accept
new data from the Host, or some Fault condition has occurred. Timing
illustrated in the Timing Diagram.
PAPER
The paper out signal
is
OUT (PE) -Printer Generated
outofpaperorthat
is
a negative-going signal which indicates
is
a positive-going pulse which indicates that thePrinter
Note: These characters are composedofsix vertical dots. When using these
codes to prepare diagrams, Line Feed should be set to Half Forward Line
If
Feed.
another paper feed pitchisused, the diagram will not be accurate.
88
Appendix C
IBM Character Sets
Character Set 1
When in Tandy mode and an IBM character setisselected, only set 2isap-
plicable and character set 1 may not be printed.
89
Character
Sets
90
Appendix
Character Set 2
When in Tandy mode and an IBM character setisselected, only set 2isapplicable.
C
91
Character
Sets
92
Programming Information D
The following items should be considered when you program the Computer.
1.
When Printer Poweristurned on:
of
• Optional functions are selected according to the setting
Function Selection Switches.
•
If
CP
Modeisselected, Full Forward Line Feedisset.
+LF)
is
• NL (CR
• Underline
• Standard character
• Buffer memory
2.Every character font can be intermixed with another style
in the same line. However, the Printer will insert dot spaces
that the new dot position
cause unexpected automatic wrap-around. To prevent this, intermix
characters only
line.
3.
Elongated (Double-width) characters and Underline are
at
the endofthe line and such printing continues until a terminating
command
4.You should avoid wrap-around. Wrap-around will disturb the dotcount
of
the text in a line.
5.
In the Repeat
many times as provided for in the count number.Ifany function code
is
received for repetition, it will be consideredaninvalid code (X).
is
is
received.
selected.
not
set.
is
set (not Elongated and not Bold).
is
completely cleared.
is
valid for the currentcharacter size. This may
on
short lines, or
Data
commands, printable characters can be repeated
don't
mix character sizesonthe same
not
the
of
character
to
insure
terminated
as
6.
POS commands can be usedatany carriage position.Ifa designated
dot column address
overprint will occur.
7.
Under Block Graphic printing,
for printing diagrams.
8.Line Feed in Graphics Mode
CP
Mode. An odd vertical spacingisgenerated in Graphics Mode. Con-
sider the following relationship between Line Feed pitches.
11
timesofFull Line Feed =18timesofGraphics Line Feed
11
timesofHalf
is
in the current text whichisalready printed out,
Half
Forward Line Feed should be used
is
different from Line Feed pitches in the
Line Feed =9 timesofGraphics Line Feed
93
Programming
9.
Graphic printing can be intermixed with character printing in the same
line. Dot density inGraphics Mode
er character style.
10.
Bold character modeisuseful for headings or titles.
Information
is
the same as the densityofthe form-
Programming
Note to ModelIIProgrammers:
If
the Printer goes off-line during a print operation, and remains off-line
for a certain period
sage. Application programs should be written to trap such errors, inform
of
the operator
rect the condition and continue printing.
gram, an
continue.
The BASIC statements LPRINT and LLIST outputto the Line Printer. See
your Computer's reference manual for syntax details.
Computer, read LPRINT as