Tandy DMP 106 Operation Manual

TANDY®
Dot
Matrix Printer
DMP
OPERATION MANUAL
106
CAT. NO. 26-2802
For
your
own
protection, the space provided. You unit.
we urge youtorecord the serial numberofthis
will
find the serial number on the back panelofthe
unit
in
Serial
Number
_
TERMS
AND
SOFTWARE
STORES
CUSTOMER
A
CUSTOMER copiesofsoftware capacity, CUSTOMER the
II,
III.
IV,
V,
VI.
EQUipment
L1MITEO
WARRANTIES
A
Foraperiodofninety purchaseofthe medium
to
purchasesofTandy
centers,
vOIdIfthe discovered Compul€r dealer exclusive refundofthe replaceorrepaIr
B.
RADIO exceptasprovidedInthis CUSTOMERS Within Software a
participating Exceptasprovided warrantiesofany
EXCEPTASPROVIDED WARRANTYOFMERCHANTABILITYORFITNESS TO
THE
Some applytoCUSTOMER
LIMITATIONOFLIABILITY
A
EXCEPTASPROVIDED OR
ANY ALLEGEDTOBE LICENSEDDRFURNISHEDBYRADIO SERVICE, THE
USEOROPERATIONOFTHE LIABLE ANY
BREACHOFTHIS LEASE, NOTWITHSTANDING DAMAGES THE
PARTICULAR
RADIO Software No
action
more
than
RadiO
Shack Some IlmltatlOn(s)orexcluslon(sl
SOFTWARE
RADIO
SHACK subjecttothe A
Exceptasotherwise
B
Titletothe CUSTOMER, CUSTOMER tobefor terminalonwhich CUSTOMER andasIS Software. CUSTOMERISpermittedfomake additional Software limited CUSTOMER coPyofthe applicabletothird
G
All
COPYright
APPLICABILITYOFWARRANTY
A
The
terms saleofthe conveys The
limitationsofliability owner
STATE
LAW
The
warranties
have
other
rights
CONDITIONSOFSALE
PURCHASED
AND
RADIO
SHACK
OBLIGATIONS
assumes
full
responsibility
Included
capabilities,
versatility,
assumes
full
responsibility
and
Software
AND
CONDITIONSOFSALE
(90)
EQUipment
upon
which
fhe
SoftwareISstoredISfree
retail
EQUipmentorSoftware
dUring
Center,aRadio
for
repair, remedyInthe
SHACK
thirty
The
DURATIONOFTHE
statesdonot
OTHER
LOSSOFBUSINESSORANTICIPATORY
FOR
LOSSOFPROFITS,ORANY
LICENSE,
INCURREDBYCUSTOMEROROTHERS
SHACK
arising
two
sales
statesdonot
LICENSE
grantstoCUSTOMERanon-exclUSive,
follOWing
mediumonwhich
may
useona
shall
specifically
copies
allowsabackup
numberofadditional
may
and
EQUipment
such
andorlicensoroffhe
RIGHTS
granted
which
Equipmentbythe
stores,
and
the
sfafed
Shack
along
withacopyofthe
evenfofa
purchase
price.atRADIO
expendable
makesnowarrantyasto
paragraph.
exclUSive
remedy,Inthe
(30)
calendar
defective
Software
RadiO
Shack
franchiseeorRadiO
hereinnoemployee,
natureonbehalfofRADIO
HEREIN,
allow
limitationsonhow
HEREIN,
PERSONORENTITY
CAUSED
WARRANTYORIN
USEORANTICIPATED
THE
ABOVE
"EQUIPMENT"OR"SOFTWARE"
shall
nofbeliable
outofany
(2)
years
after
document
allow
may
provIsions
providedInthiS
but
not
titletothe
use
Softwareona
multiuserornetwork
SoftwareIStobeused
not
use
make,
proVidedInIh,s
are
reqUIredInthe
copytobe
resellordistribute
Software
for
each
parties
notices
receiving
shallberetaInedonall
conditionsofthiS
andorSoftware
EQUipmenttoa
and
herein
give
vary
from
AND
FROM
FRANCHISEESORDEALERSATTHEIR
LIMITED
with
the
and
arefafuncflon,
calendar RADIO
Radio
warranty
ret,,1
Items.
daysoffhe
shallbereturnedtoa
WRITIEN
RADIO
DIRECTLYORINDIRECTLYBY"EQUIPMENT"OR"SOFTWARE"
LIMITATIONS
for
claimed
the
for
the
the
IImltaflonorexclUSionofInCidentalorconseQuent,,1 not
the
SoftwareISrecorded
Software
manufacture,orreproduce
copies
one
Warranty
third
Warranty
Software
the
statetostate
LICENSEOFTANDY
RADIO
SHACK
COMPANY-OWNED
WARRANTY
thaf
this EQuipmentorlicensed other
SHACK
Shack
has
store,aparticipating
defectISlimitedtothe
RADIO
LIMITED
"EQUIPMENT"OR"SOFTWARE,"INNO
any
breachofthiS
causeofaction
EQUipmentorSoftware,
applytoCUSTOMER
Software
multiuserornetwork
Software
additIOnal
operation
made.
for
unmodified soldordistributed.
copiesofthe
party
and
orlgina'
computer
reqUIrementsofCUSTOMER
tor
the
condition
and
for
ItS
days
from
the
warrantstothe
from
original
franchisees
been
period,
SHACK'S
SoftwareISlicensedonan
evenfofa dateofthe
SHACK WITH
SHACK,
USEOFTHE
CUSTOMER'S
licensetoCUSTOMERortoatransaction
for
provIsions
and
sublectedtoImproperorabnormal
the
defective
sales
documentorlease
election
the
deSign,
capability,
Software
RadiO
Shack
dealer
agent
fr.anchlsee,
SHACK
SHACK
MAKESNOEXPRESS
FORAPARTICULAR
WARRANTIES
longanImplied
SHALL
RESPECTTOANY
INCLUDING,
PROFITSORCONSEQUENTIAL
INDIRECT,
SPECIAL,ORCONSEQUENTIAL
ANY
MANNER
"EQUIPMENT"OR"SOFTWARE,"
AND
WARRANTIES,
SHALL
INVOLVED,
damages
causedbydelayIndeliveringorfurnishing
Warranfy'or
has
paId-up
license,
applicable
systemorone
Simultaneously.
License
copiesofthe
of
one
However,
for
own
copiesofthe Software
copiesofthe
are
applicableasbetween
leasetoCUSTOMER
herein
any
manufactureroffhe
CUSTOMER
COMPUTER
EQUIPMENT
COMPUTER
AUTHORIZED
hardware
purchased
separately
(.the
"Software')
and
eftectlvenessatthe
Installaflon
dateofthe
customer
RadiO
HAVENOLIABILITYORRESPONSIBILITYTOCUSTOMER
accruedormore
(cassette
Radio
Shack
Original
manufacturing
dealersattheir
and
NOT
licensetouse
system
CustomerISexpressly
computer
TRSDOS
use, The
from
Software,
shall
specific
CUSTOMER defects.
from
Radio
authorized
EQUipment
Radio
correctionatthe
manufactUring
Shack
Shack
along
dealeror,other
SET
warranty
ARISING
whichever
copyofthiS
copiesofSoftware
Software
mustbereturnedtoa
Shack
franchiseeora
agreement
sale
expense
capacity,orsUitability
"AS
IS"
sales
document
Computer
With
the
sales
PURPOSEISLIMITEDINITS
FORTH
HEREIN,
lasts,sothe
LIABILITY,
BUT
NOT
LIMITED
OUTOFOR
RADID
SHACK'S
EXCEED
THE
transactions
than
first
occurs.
the
COPYright
laws
andordiskette)orstored
onlyIfeither,
softwareISpurchased
only
for
With
the
Software,
Software,
Software
provided
provIsionsofthiS
CUSTOMER
RADIO
Inuretothe
EQulpmenf
legal
rights
benefitofRADIO
This
Shack
use.Ifa
The
defectbyrepair,
RADIO
baSIS,
defect,ISItS
Center,aRadiO personISauthOrizedtogive
WARRANTIES,
LOSSORDAMAGE
EVENT
AMOUNT
under
four
TANDY
shall
prohibited
backuporarchival
CUSTOMERIspermittedtomake
SHACK
soldbyRadiO
and
AND
CENTERS,
RETAIL
LOCATIONS
(the
"EQuipment'),
meets
operating
enVironmenfInwhich
sales
document
thaf
the
EQUipment
warrantyisonly
company-owned
locations
manufacturing
partlclpaflng
original
CUSTOMER'S
SHACK
hasnoobligation
for
useofthe
Without
warranty, repairorreplacemenf
received
upon
document
AND
above
IlmltatlOn(s)
TO,
ANY
INTERRUPTION
DAMAGES
SHALL
DAMAGES
CONNECTED
LIABILITY
PAIDBYCUSTOMER
thiS
Warranty
(4)
years
after
damages.sothe
Software applytothe
(ROM)IStransferred
the
SoftwareISexpressly
except
for
use
from
but
onlytothe
CUSTOMER Software
has
License
and
CUSTOMERtoeither
whereby
RadiO
SHACK,
Shack
the
original
and
the
specifications,
received
and
applicable
computer
The
warranfy
defect
Radio
Radio
sale
replacement
Software
The
licenseofthe
Shack
ref"l
ANY
IMPLIED
DURATION
may
CAUSED
SOLD,
LEASED,
RESULTING
RADIO
SHACK
ARISING
OUT
WITH
THE
HEREUNDER
EQUipment
maybebrought
fhe
dateofthe
on
one
computer,
Software
for
each
node
on
one
computer
disassembling
purposesorIf
extent
purchased
shall
Shack
the
CUSTOMER
any
upon
the
Shack Shack
and
Original
store.
any
not
OR
FROM
SALE,
FOR FOR
andor
above
labeled
the
the
one
also
sells
author,
may 686
OF BE
OF
IS IS
or to
to
or
a
be
a
or
The
This
equipment
that
is in
strict
radio and television reception.
It
has been in accordance to provide reasonable However, there is no guarantee
If
this
equipment determined by terference by one or more
Reorient Relocate
the
Move
• Plug the branch
FCC
generates and uses radio
accordance
type
with
turning
the
the
computer
computer
circuits.
with
tested
and
the
specifications
protection
does cause interferencetoradio or television reception,
the
equipment
of
receiving antenna
computer
away from
intoadifferent
Wants You to Know
frequency
the
manufacturer's
foundtocomply
in SubpartJofPart15of
against such
that
interference
off
the
with
and on, the user is encouragedtotrytocorrect
following
respect to
the
receiver
outletsothat
energy.Ifnot
instructions,itmay cause interference
with
the
interference in a residential
will
not
measures:
the
receiver
computer
installed and used properly,
limits
for
a Class B
FCC Rules,
occur
in a
and receiver areondifferent
computing
which
particular
are designed
installation.
installation.
which
can be
to
device
the in·
This equipment has been pursuant devices. terminals, printers. etc.) this radio andTVreception.
to
Subpart JofPart15of
computer. Operation
Dot
certifiedtocomply
with
Matrix Printer
Copyright © 1986 Tandy Corporation
Fort Worth, Texas 76102
Reproduction or use, without express written
permission from Tandy Corporation
of
licensor,
any portionofthis manualispro­hibited. While reasonable efforts have been taken in the preparation sure its accuracy, Tandy Corporation assumes no liability resulting from any errors or omis­sions 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
DMP
106 Operation Manual:
with
for a Class B
the Class B
All rights reserved.
of
this manual to as-
(computer
limits
and/or
of
the in-
computing
inputlouput
may be
attached
its
device,
to
to
2/86
10
9 8 7 6 5 4 3 2
Contents
Introduction ,.. .. ....... 1
1 Description
2 Setting Up the DMP
Paper Separator Installation. . . . . . . . . . . . . . . . . .
Tractor Installation and Removal . . . . . . . . . . . . .
Paper Loading
Ribbon Installation/Replacement. . . . . . . . . . . . .
Setting Print Function (DIP) Switches , Connecting the DMP
Carriage Movement Test , Self-Test , Connecting the DMP
Power-Up Sequence. . . . . . . . . . . . . . . . . . . . . . .
3 Using the DMP
of
the DMP
106
106
. . . . . . . . . . . . 3
106
. . . .... . . . . . . . . 9
106toa Power Source.
106
to a Computer
(General Printer Operation) ,.. ...
Control Codes , Sending Control Codes from Character Printing Mode
Graphics Mode . . . . . . . . . . . . . . . . . . . . . . . . . . .
Selecting a Print Mode ,
BASIC.
. . . . . . .
..
..
..
..
..
10
10
12 16 19
21 21 22 22 24
25 25 26 27
27 28
4 Print Font Styles and Character
Selecting Font Styles
Standard Character Font Style. . . . . . . . . . . . . .
Graphics Characters. . . . . . . . . . . . . . . . . . . . . . .
Wrap-Around ,
Elongated Characters. . . . . . . . . . . . . . . . . . . . . .
I(
~
Widths..
r/'
A.
" \
"---.J
29 29
..
30
..
31 32
..
32
\,//
Bold Characters Mixing Bold Superscript and Subscript " Selecting Character Sets
and
Elongated . . . . . . . . . . . . . . . .
33
..
34 34 35
5 General Control Codes "
Line Feed Codes (LF) " Special Line Feed Carriage Return (CR) Setting Top-of-Form and Form Length " Entering IBM Mode " Ignored or Undefined Codes , "
DMP
106
Buffer Operation "
Codes.
. . . . . . . . . . . . . . . . . .
6 Character Printing Mode "
Repeat Printing " Underline Printing "
Print Head Positioning . . . . . . . . . . . . . . . . . . . .
Printing Directions "
7 Graphics
Printing Graphics Patterns " Line Repeat Function " Print Density " Leaving Graphics Mode
Mixing Modes on the Same Line
Freehand Drawing . . . . . . . . . . . . . . . . . .
Feed.
Mode.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
... .... ... ... .... ... ... . .
..
..
..
..
..
37 37 37 38
39
39 39 40
43 43 43
44
47
49
51 53 54 54 55
55 55
8 IBM Emulation Mode. . . ... ... .... ... ...
Descriptionofthe IBM Emulation Mode . . . .
Carriage Return
..
..
59 59 59
Vertical Horizontal Printing Other
Appendices
Formatting
Formatting
Mode
Control
Control
Control
Codes . . . . . . . . . . . . . . . . . . . . . .
Codes.
Control
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . .
Codes . . . . . . .
..
60
..
62
..
63
..
69
A Control Code Summary. . ... .. . .. ...... ...
Tandy IBM
B Interface..;. ... ... ..... ... ... ... ... .....
Parallel Interface 79 Serial
Control
Control
Interface.
Codes
Codes..
. . . . . .... . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
..
..
C Character Sets. . .. ... ... ... ... .. . .. ... ... ..
Tandy IBM
Character
Character
Sets
Sets . . . . . . . . . . . . . . . . . . . . . . .
..
D Programming Information ........ . .. ..
Programming
E Care and Maintenance..... ..... . .. ... ..
Care. Maintenance 98
If
Printing
.. .. .. .. .. .....
You
Have
F Schematic Diagram.. .. .. ...... ..
Examples 94
Problems
Limits (Duty Cycle)... . . . . . . . . . . . .
.. .....
..
..
...
73 73 76
79
85 85
89 93
97 97
98
100 101
G
Specifications..............................
103
Introduction
Tandyisproud to introducethe newest addition to its line - the DMP Itisa very portabledot-matrix printer which can perform a varietyofdiffer-
ent printing operations. For instance, it can print:
• Standard characters - Normal, Condensed and Compressed.
• Graphics characters. 106
The DMP
• Character Printing Mode for output
or the creation
• Graphics Mode for drawing pictures, figures, or graphs.
In the Character PrintingMode, the DMP matrix characters.
In Graphics Mode, you can use graphic data to draw just about any type
of
graphic configuration you desire.
You can use two types
• Standard (4"
Printer can also print one original plus one carbon copy.
• Standard (4"
Other software-controlled features include:
• Bidirectional minimum-distance access carriage motion.
• Full, half, and
• Underline capability.
and much more!
operates in two modes:
of
any text documentation.
of
paper with the DMP
-9.5"
-9.5"
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 gener­ators 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
I I
I I
L-~
I I I I
I I
I_
iPAPER I
WRONG RIGHT
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 for­ward 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 Rib­of
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
will
be gradually inserted between the Ribbon
Guide and Print Head.
Ribbon
guide Bezel
Print
head
Ribbon
guide
Ribbon
Figure 14. Ribbon Position
9. Keep moving theCarriage andcheck thatthe ribbon advances properly.
If
the ribbon has not been properly fitted between the Ribbon Guide and Print Head (Le., into the Print Head Ribbon Guide Bezel), the rib­bon 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
the DMP
19
106
features for your own
DMP
of
the
Setting
Up
the
DMP
106
!
ON
OFF
2 3 4
(In IBM Mode)
!
z
o
234
(In
Tandy Mode)
Figure 16. Print Function (DIP) Switches
1.
DIP
Table
Switch Function in Tandy Mode
(Switch 1 set to OFF)
Pas. Symbol
1 Control Codes Tandy Codes
2 Serial/Parallel Serial Interface Parallel Interface 3 600/2400
4
CR
BPS
ON
600
BPSinSerial
terface terface Carriage Return Only Carriage Return &
(CR=CR)
In-
OFF
2400
BPSinSerial
Line Feed
(CR
ON
OFF
=
In-
Nl)
Table 2.
DIP
Switch Function in
mM
Mode
(Switch 1 set to ON)
Pas. Symbol
1 Control Codes Codes for
2
3 Character Set Character Set 2 Character Set 1 4
IF
CR
ON
IBM
Line
Feed
Only Line
(IF=IF)
Carriage Return (CR=CR)
Only·
OFF
Feed
& Carriage
Return
Carriage Return &
Line Feed
(IF
=
(CR
Nl)
20
=
Nl)
Chapter 2
Connecting the DMP 106 to a Power Source
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
1000SXl1200/2000/3000/
3000HU3000HD
OOOEXI
Chapter 2
Cable Number
26-1411 (available through National
Parts) 26-1401
26-4401 26-1401 26·3020 26-1409 26-1361 26-1347 26-225 26-227
Connector
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 com­municates with the Printer.
is
All information (OO-FF according to the American Standard Code for Information Interchange, com­monly 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 sym­bols, 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.
Normal10CPl/Elongated 5 Compressed 12 CPIIElongated 6 Condensed 16.7 CPIIElongated 8.35
Normal10CPI Compressed 12 Condensed 16.7
Pitch
CPI
CPI
4
CPI
CPI
CPI
Selecting
Character styles are selected by Control Codes from your computer during operation.
Character styles stay in effect until another style Graphics Mode does not change the font. The DMP
active font on leaving the Graphics Mode. Table 7
is
Font
a summaryofthe Character Style change commands:
Styles
29
is
selected. Even entering
106
returns to the last
Print Font Styles and Character Widths
Table 7. Character Style Change Commands
Send
a CHR$( ):
(Dec) (Hex)
27 27 27 27 27 27 27
19 23 20
14
15 31 32
1B 1B 1B 1B 1B 1B 1F 1B
13 17 14
OE
OF
20
If You Want:
Normal Compressed Condensed Start Elongation
End Elongation Start Bold End Bold
Standard Character Font Style
The Standard character setisprinted in a 9 x 7 dot matrix(9dots wide by 7 dots high).
Each
of
the Standardcharacters can be printedin three main character widths:
Norrnal
CDmpressed
Condensed
Eachofthese widths can be elongated (double-width), which gives half as
many characters per inch and a total You can get a better feel for the different available print widths by printing
a
few
sample lines. Type in this program:
NEW
110 120 130 140
230
240
250
and RUN it.
STANDARD
STANDARD
STANDARD
The subroutine in line 240 sends the required Control Codes to the DMP 106. Line 230 returns to Normal character width and stops program execution.
10
Characters
12
CPI
16.7
CPI
[ENTER
I
F$=»STANDARD » N=19:
N=23:
N=2f2l:
LPRINT
LPRINT
W$=»NORMAL W$="COMPRESSED ":GOSUB W$=»CONDENSED
CHR$(27);CHR$(19):STOP CHR$(27);CHR$(N);F$;»CHARACTERS
W$;"DENSITY"
RETURN
CHARACTERS
CHARACTERS
CHARACTERS
CONDENSED
Per
Inch
of
six different print widths.
»:GOSUB
":GOSUB
NORMAL
COMPRESSED
DENSITY
(CPI)
240
240
240
";
DENSITY
DENSITY
30
Chapter 4
Graphics Characters
The
second character set is a 6 x 6 dot-matrix character set used for Block
Graphics printing. Thecharacters canbe
12
CPI,orCondensed 16.7 screen graphicsofmost computers; it is a unique character set. A 6
x6 dot-matrix character set is available
pressed12or6CPI, To
see how the various charactei: widths affect the Graphics characters, add:
190
N=19:
200
GOSUB
210
N=23:
220
N=20:
260
FOR
270
LPRINT:
and
RUN
the
and
W$="NORMAL 240:GOSUB WS="COMPRESSED ":GOSUB W$="CONDENSED
1=224
RETURN
program.
CPI.
Condensed 16.7or8.3
TO
254:LPRINT
Normal10CPI
This set is
not
in
Normal
":F$="GRAPHIC
260
":~OSUB
CHRS(I);:
width, Compressed
fully compatible with
10or5
CPI
character conditions.
CPI,
":LPRINT
240:
240:
GOSUB
GOSUB
NEXT
the
Com-
260
260
I
STANDARD
STANDARD
STANDARD
GRAPHIC
•••..
GRAPHIC
""""".-..j
GRAPHIC
I
""
I'.-~
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 charac­ter 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:
10 LPRINT
20
LPRINT
30
LPRINT
40
LPRINT
50
LPRINT
60
LPRINT
70
Ei'm
CHR$(27);CHR$(83);CHR$(~);
"SUPERSCRIPT"; CHR$(27);CHR$(83);CHR$(1); "SUBSCRIPT"; CHR$(27);CHR$(88); "CHARACTER"
and RUN it.
10
In this program, lines
and30start Superscript and Subscript and line 50
ends the Super-/Subscript.
Selecting Character Sets
The character set can be selected by the following commands:
(27
88)
is
Table 11. Character Set Change Commands
Send
(Dec) (Hex)
27
58 1B
27
59 1B
• 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 characterprint­ing 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 advan­tages over a typewriter. Codes sent to a typewriter (Le., keys pressed) are transferred immediately to the paper. Codes sent to a Printer are not print­ed 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 print­ing (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 bufferisprint­ed. 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 three­code 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 (numberofrepeti­tions) as
the TAB command, causing the print head to move to the next TAB posi­tion 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 designat­ed 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 Width Dots-per-L1ne Available Columns
Normal 960 480
Compressed 1152 576
Condensed 1600 800
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, Con­densed, 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
1 1B
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 Style Available Dot Columns
Normal 480 Compressed 576 Condensed 800
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, Con­densed, 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
the formula on that:
1+2+4+8+
The following sample program line middle:
10
LPRINT
16+
32+64=127+128
=255
will
print a box with a line through the
CHR$(27)jCHR$(20)jCHR$(18)jCHR$(27)j CHRS(16);CHR$(3)jCHR$(31);CHRS(25S); CHRS(210)jCHRS(201';CHRS(201)jCHR$(201)j CHR$(25S)j
Now try the following program. Type in NEW
10
LPRINT
I
ENTER)
CHR$(18)
205=1:N=128 30
FOR
1=1
TO
20:5=-8
40
FOR
J=(2)
TO
6
80
IF
S<0
THEN
9(2)
LPRINT
100
NEXT
120
LPRINT CHR$(3(2)
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 pro­vides 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
as
numbers from 0to127,
4
N=999
of
repetitions followed by the numbertobe repeated.
106"
THEN
80
30
is
to use negative numbers to
then add
128asyou
128,
then
120
130
180
Don't
DATA DATA
DATA
RUN it yet!
17,33,33,34,-4,66,68,-4,4,-5,8,-5,16,
-5,32,-5,64,999
64,96,80,72,68,66,97,112,120,124,126,
-7,127,-5,126 95,79,71,67;65,32,16,8,4,2,1,O,1,2,4,
11,87,76
56
Chapter 7
In
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 inincre­ments
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 spac­ing set commands (mentioned above). This command will terminate a double­width 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 verti­cal 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 em­phasized characters; you can also print in super- or subscript mode, bit im­age 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 num­bered 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-width Start Double-width
14
OE IB
15
OF
IB10Positioning(3pitches Positioning(3pitches
16
nl
n2
1B
19
13 IB
14 IB
15 IB
16
Character Printing
Mode Ignored Ignored Ignored Executive Line Feed
(Execute LF in accord­ance with information (Executive) 8A hex.: latched)
Carriage Return latched one.) per line.)
End Underline Ignored Start Underline Ignored Select Graphics Mode Ignored
End Elongation End Elongation
n2
are available.)
indicate dot position indicate dot position
from Home position.) Select Standard
Character
Select Condensed
Character Set
CR=CR
(No motion)
Set
CR=LF+CR
(No motion)
(NL)
(nl,
n2
Summary
Graphics Mode Remarks Ignored
H
7/72
Line
Feed Printing data
Carriage Return (When NL, LF pitch
is
8D hex.: Printing data
are available.)
from Home position.) Ignored
Ignored
Ignored
Ignored
is
(nl,
7172 H
n2
NLiCR Selectable
nl,
n2:
value
.**
A
Code
Binary
73
Control Code Summary
Code
Dec. Hex. Mode
27
IB
23
27
28
27 31
27 32
27
33
27
52
27
54
27
56
27
58
27
59
27
83
27
83
27 85
27 85
27 88
17
IB lC
IB IF
IB End Bold Ignored 20
IB 21
IB Form Length Set Ignored 34
n n
IB Set Full Forward Ignored 36
1B
38 IB
3A Character Set Character Set
1B
3B
IB Select Superscript 53
0 0
IB 53
1
IB 55
0 0
1B
55
1
IB End Super-/Subscript 58
Character Printing
Select Compressed Ignored Character
Set
Half
Forward Line Feed (No motion)
Start Bold Ignored
Enters IBM Mode
Line Feed (No motion) Set
3/4
Line Feed (No motion) Select IBM Select IBM
Select Tandy Select Tandy Character Set
Character
Select Subscript
Character
1
Select Bidirectional
Printing
Select Unidirectional Printing
1
Character
Forward Ignored
Graphics Mode
Ignored
Enters IBM Mode
Character Set Ignored
Ignored
Ignored
Ignored
Ignored
Remarks
74
Appendix A
Code Character Printing
Dec. Hex. Mode
27
IB
n/72"
90
SA Line Feed
Forward
n n (Executive)
27 91
lB Set
5B
n/72"
Line Feed
Forward
n n (No motion)
28
1C Repeat Print Data
nl
n2
nl
n2 (Undefined Code
changed to X)
30
IE Ignored
Other Codes Prints X in Function Area
(02
dec.)
(02
(128
192
dec.)
DF hex.)
to
to
to
(80
31
to IF hex.)
Other Codes Prints X in Function Area
159, 223 to 9F,COto
Graphics Mode Remarks n172" Forward
Line Feed (Executive)
Ignored
Repeat Print Data (IF
is
is End Graphics Mode Ignored
(Printing Data)
ignored.)
MSB
= 0, Data
75
Control
Code Summary
IBM Control Codes
Dec. Hex. ASCII Function 00 08 09 09
10
11
12 13 14 15
18 20 24 27+08 27+09 27+
10
27+
II
27+12 27+
13
27+
14
27+
15
27+
18
27+20
27+24
27+33
27
+45
27
+45 + 1
00 08
OA OB OC OD OE OF
+0
12 14 18 IB+08
IB+09
IB+OA
IB+OB IB+OC
IB+OD
IB+OE
IB+OF
IB+
12
IB+
14
IB+
18
IB+21 IB+2D+00
IB+2D+Ol
NULL BS HT LF VT FF CR Carriage Return SO SI DC2 DC4 Stop Double-Width Printing CAN Clear Printer Buffer ESC+BS ESC+HT ESC+LF ESC+VT ESC+FF ESC+CR ESC+SO
ESC+SI
ESC+DC2
ESC + DC4
ESC+CAN
ESC+! ESC + - +
NULL ESC + - +
SOH
Terminator
Backspace Horizontal Tab Line Feed Vertical Tab (same as LF) Form Feed
Double-Width Printing Select Compressed Mode Select IO-Pitch Mode
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
SO) Select Compressed Mode (same as
SI) Select IO-Pitch Mode (same as
DC2)
Stop Double-Width Printing (same as DC4)
Clear Printer Buffer (same as CAN)
ReturntoTandy Mode Cancel Underline
Set Underline
76
Appendix
A
Dec. 27+48 27+49 27+50
27+51
+n
27+52 27+53
+00
27+53+01 27+54 27+55 27+56 27+57 27+58 27+60
27+65+n 27+67+n
27+67
+ 0 + m 1B+43+
28+68+nl
+ ...
+00 27+69 27+70 27+71 27+72
27+74+n
27+75
+nl
+n2
27+76
+nl
+n2
27+77
27+78+n
27+79
Hex.
IB+30 1B+31 IB+32
IB+33+n
IB+34 1B+35+00
1B+35+01 1B+36 1B+37 1B+38
IB+39
1B+3A
IB+3C
IB+41
+n
1B+43+n
+m
IB+44
+nl
+ ...
1B+45
IB+46 1B+47 1B+48 1B+4A+n
IB+4B
+nl
+n2
1B+4C
+nl
+n2
1B+4D
IB+4E+n
IB+4F
ASCII Function ESC+O ESC+l ESC+2 ESC+3+n ESC+4 ESC+5+
NULL CR Only ESC+5+S0HCR=NL ESC+6 ESC+7 ESC+8
ESC+9
ESC+: ESC+< ESC+A+n ESC+C+n
ESC+C
00
+NULL+m
ESC+D+nl
+00
+ ... + NULL ESC+E ESC+F ESC+G
ESC+H ESC+J
ESC+K
+nl
ESC+L
+nl
ESC+M
ESC+n+n ESC+O
+n
+n2
+n2
1/8"
Line Feed Set
7/72"
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. ASCII Function 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 Func­tion 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
+ SOH Set Subscript Mode ESC+T ESC+U
+ NULL Cancel Unidirectional Printing
ESC+U
+ SOH Set Unidirectional Printing ESC+W
+ NULL Cancel 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
Type 36-Pin Receptacle Model 552742-1 or equivalent
AMP
__
or equivalent
._-
Manufacturer
Pin
Assignment
18
_.
-------
Interface B
Signals
Signal
Pin
Name
of
1 STROBE
DATA 1 20
2
DATA 2
3
DATA 3 22
4
DATA 4 23
5
DATA 5 24
6
DATA 6 25
7
DATA 7 26
8
DATA 8 27
9
ACK 28
10
BUSY 29 oV (Return for
11 12
PE
(Paper Out) 30
13 BUSY
OV
14 15
NC (Not Connected) 33 INIT
OV
16 17 CHASSIS GROUND 18
+5 V (80 mA Maximum) 36 NC
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)
34 NC
(Not Connected)
35 NC
(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.
I I I
~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
the Printerisnot readytoreceive data.
I I I
~~I
5.us
5.us
that
the Printer
is
BUSY - Printer Generated
is
The BUSY signal
the logical inverseofBUSY.
80
Appendix B
FAULT-Printer The
FAULT dition present;Le., paper out, logic fault, off-line condition, ical fault.
STROBE -
The
STROBE signalisa negative-going signal which indicates, by edge,
CHASSIS
This lineisconnectedtothe 5 V - Printer Generated
This line is connected Maximum supply current
INIT-Host The
INIT
printer controller is available only in IBM mode.
Parallel Interface Receivers
I/O
All
Receiver
lineisa negative-going signal
that
the
GROUND
signalisa negative-going 50-microsecond pulse, which resets the
Signals are TTL-compatible.
8
when
Generated
Host
Generated
Host
Generated
to
mA
max·l
low
sends
datatothe Printer.
chassisofthe Printer.
to
the
Printer's
is
80 rnA.
its initial state
and
1
kG
that
indicates thereis a fault con-
logic +5 V line.
and
clears the print buffer. This signal
Drivers
To Printer
or
other mechan-
the
rising
+sv
Driver
+sv
r2.2
kG/1
>----KJI-----O
1:
mA
min.
when low
Note: Printer-generatedsignals, BUSY,
kohm
a 2.2
pull-up resistor.
Open Collector
81
FAULT,
From Printer
PE,
BUSY, and ACK,have
Interface
Serial Interface (For Tandy mode only)
Serial Interfaceisselected by setting FunctionSelection Switch 2 to ON, and 1 to OFF.
Transmission Rate Function Selection Switch
is
selected from two rates (600 BPS and 2400 BPS) by
3;
OFF designates 2400 BPS and ON designates
600 BPS. General Specifications
of
Serial Interface
Standard Meet with RS-232C Serial Baudrate
600or2400 BPS Serial
Parity Non-parity Buffer Up to Data
Bit 8
148
characters
Start Bit 1 Space bit Stop Bit 1 Signal Cable
or
2 Mark bits
15
m Max.
Interface Connector and Signals
Type
A-Pin
DIN Jack (Receptacle)
Model TCS 4640-01A Manufacturer HOSHIDEN CO., LTD.
equivalent
Pin
Assignment and Signals
Pin No.
1
2
3
4
or
equivalent
Signal
NS
BUSY
GND (0
DATA
or
V)
DATA
Signals
data
to the Printer.
-
To
Printer
on
this circuit are generated by the Computer for transmission
82
of
Appendix B
BUSY - From Printer This signal indicates to the Computer whether or not the Printer can accept
is
data. The OFF condition (low) indicates that the Printer not accept any more data.
Interface Timing and Signal Level
BUSY
and can-
DATA
BUSY
G!'JD~
Baudrate
600 BPS
2400 BPS
+3
-25
V ~ V
V~V
1.67
1.417
H
~
L
f1
+25
~
-3
msec. msec.
(SPACE)
V (MARK)
f2
0.83 msec.
0.208 msec.
Remarks on Serial Interfacing Conditions
• When a Framing ERROR
is
detected, the Printer
will
print only one X
data, then stop printing until the data line goes toVL. In Graphics Mode, this X data
unprintable code, so no printing
will
be performed.
is
• The Printer checks only the first stop-bit and ignores the second stop-bit when a two-stop-bit condition exists.
of
• When a string
if
Mode,
each itemofdataistransmitted intermittently (everyone second
or more), printing
dataistransmitted to the Printer in Serial Interfacing
will
be performed every second.
83
Character
Tandy Character Sets
The DMP The following
The printable characters may be classified as follows.
• Condensed or Condensed Elongated
• Compressed or Compressed Elongated
• Standard or Standard Elongated
106
has
158
dot-matrix patternsin the ROM (Read Only Memory).
is
a tableofthe Character Codes.
ASCII European Symbol Block Graphic
Sets
C
95 32 31
85
Character Sets
95
ASCII Code
Code Char. Code Char.
Dec.
Hex.
Oct.
32
20
40
(Space) 33 34 35 36 37 38 39 40 41 42
43
44 45 46 47
48
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
41
21
42
22 23
43
24
44
25
45
%
26
46
27
47
28
50 (
29
51
2A
52
28
53
2C
54
20
55
-
2E
56 2F 57 30
60
31
61 32
62 33
63 3 83 53
34
64 35
65
36
66 37
67
70
38
71
39 3A
72
38
73 74
3C 3D
75
3E
76 3F n
I
"
#
$
&
.
)
.
+
,
I
0)
1 2
4 84 54 5 85
6
7 87 8 88 9
:
;
<
=
>
?
Note: The following characters descend byone dot: Small Letters
(Underline),;
ASCII Character Sets
Dec.
Hex.
Oct. 64 65 66 67
68
69
70 71 72 73 74 75 76
77
78 79
80
81 82
100
40 41
101
42
102 8 103 C
43
104 0
44 45
105
46
106 F
47
107
48
110
49
111 112
4A
48 113 K 107
114
4C
115
40 4E
116 117
4F
120
50 51
121
52
122 123
124
125
55 56 126
86
57
127 130
58 89 90 91 92 93 94 95
131
59
132 Z
5A
133
58
134 \ 124
5C
135
50
136
5E
5F
137
Dec.
@
96
A 97
98
99
100
E
101
102
G 103
H
104
I
105 106
J
L
108
M
109
N
110 111
0
P 112
Q 113
R
114 115
S
T
116
U 117
V
118
W
119
X
120
Y
121 122
[
123 78 173
125
I
1\
126
-
Code
Hex.
60
61 62 63
64
65
66
67
68
69
6A
68
6C
60
6E
6F
70
71
72
73 74 75
76
n
78
79
7A
7C
70
7E
Oct.
140 141 142 b 143 144 145 146 f
147 150 151 152 j 153 k 154 I 155 156 157 0
160 161 162 163
164 t
165 166 167 w 170 171 172
174 175 ) 176
Char.
a
c d e
9
h
i
m
n
P
q
r
s
u
v
x
Y
z
[
I I
-
g,p,q,y,j,
86
32 European Symbol Code
Appendix C
Standard, Compressed
Code Char.
Dec.
Hex.
Oct.
160
AO
240
161
A1
241
162
A2
242
163
A3
243
164
A4
244
165
A5
245
166
A6
246
167
A7
247
168
A8
250
169
A9
251
170
AA
252
171
AB
253
172
AC
254 '/4
173
AD
255
174
AE
256
175
AF
257
or
Condensed Character Set
Code
Hex.
BO B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC
BD BE BF
OCt.
260 261 262
263 264 265 266 267 270 271 272 273 274 275 276 277
Dec.
176
/
177
a
178
~
£
179 180 181
p.
0
182
'I'
183
184
t
§
185
®
186 187
©
188
3/
4
189
'/2
190
ql
191
Char.
¥
A
0
0
¢
-
ii
0
0
B
TM
e
U
e
..
f
Note: 1 The optimizer function allows the following:Ifa spacing code received, the Carriage moves only the shortest distance, and the action
will
take place without unnecessary movement. This saves printing time. When
is
character data automatically stores it until:
sent to the Printer within a one-secondinterval, the Printer
(1) Function codes are sent,
(2)
the interval
greater than one second. Printingisthen executed.
is
is
2 The following characters descend by one dot.
er,
1', §,
CD
87
Character
31
Block Graphic Code
Sets
Standard, CompressedorCondensed
Code Char. Code
Dec.
224 225 226 227 228 229
230 231 232 233 234 235 236 237 238 239
Hex.
EO E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB
EC ED EE EF
Oct.
340 341 342 343 344 345 346 347 350
351 352 353 354 355 356 357
(Blank)
..
~
-
-
I
I
r
..
..
Dec.
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
Hex.
FO F1 F2 F3 F4 F5
F6 F7 F8 F9 FA FB FC FD FE
Oct.
360 361 362 363 364 365 366 367
370 371 372 373 374 375 376
Char.
I
-
I
II
f-
I
L
-.J
-.JL
-1
+
,..
..lIIIII
~
...
Set
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 2isap­plicable.
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
Examples:
LLIST LPRINT
LPRINT REST"
LPRINT "SMALL";CHR$(27);CHR$(l4);"LARGE";CHR$(27); CHR$(l5);
LPRINT CHR$(23); "COMPRESSED";CHR$(27);CHR$(19); "STANDARD"
LPRINT CHR$(l38);"TWO
the error condition, and give the operator a chance to cor-
I/O
error will occur and the operator may type
Lists the resident program to the Printer.
"THISISA TEST."
Prints the message in quotes and tells the Printer that the next
printable character brings a new line.
"THISISPART OF A
Prints both messages onthe same line (because The next printable character received starts a new line.
Prints both normal and elongated charactersonthe same line.
Prints condensed, compressed, and standard characters in the same line.
"START"
Prints these letters at
Examples
of
time, ModelIITRSDOS will present an error mes-
If
itisa BASIC applications pro-
CON
If
you have a Color
PRINT
"SMALL
CHR$(27);CHR$(20);'
AGAIN"
;CHR$(27);CHR$(56);CHR$(l38);
LINE"
# -2,.
3/4
LINE";:
'CONDENSED"
line pitch.
LPRINT
"THISISTHE
of
the semicolon).
"ONE
T I
ENTER
Ito
;CHR$(27);
LINE";
94
Loading...