Star Micronics NX 1000 color printer User's manual
Below you will find brief information for color printer NX 1000. The NX 1000 is a compact color dot-matrix printer compatible with Epson and IBM printers, allowing you to print text and graphics in black-and-white or six bright colors. The printer offers various features including embeddable commands for NLQ type styles, color printing, bold, italic, and extra-large characters, making it easy to use even with software that doesn't explicitly support these features. It supports single sheets, fanfold forms, and multi-copy forms, providing flexibility in paper handling. The printer also features high-resolution near-letter-quality printing and a diverse range of type styles and sizes.
Advertisement
Advertisement
NX-1000
COLOUR PRINTER
USERS MANUAL
NOT INTENDED FOR SALE
PN 80820241
Federal Communications Commission
Radio Frequency Interference Statement
This equipment generates and uses radio frequency energy and if not installed and used properly, that is, in strict accordance with the manufacturer’s instructions, may cause interference to radio and television reception. It has been type tested and found to comply with the limits for a Class
B computing device in accordance with the specifications in Subpart J of Part 15 of FCC Rules, which are designed to provide reasonable protection against such interference in a residential installation. installation.
However, there is no guarantee
If this equipment that interference does cause interference will not occur in a particular to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures: l
Reorient the receiving antenna l
Relocate the computer or printer with respect to the receiver l
Move the computer or printer away from the receiver l
Plug the computer or printer into a different outlet so that it and the receiver are on different branch circuits.
If necessary, the user should consult the dealer or an experienced redio/television technician for additional suggestions. The user may find the following booklet, prepared by the Federal
Communications Commission helpful: “How to Identify and Resolve Radio-TV Interference
Problems.” This booklet is available from the U.S. Government Printing Offlice, Washington,
D.C.. 20402, Stock No. 004-000-00345-4.
For compliance. with the Federal Noise Interference Standard, this equipment requires a shielded cable.
The above statement applies only to printers marketed in the U.S.A.
Trademark Acknowledgements
NX-1000, NL-10, NP-10, NX-10/15, ND-lo/l&
NR-10/K% Star Micronics Co., Ltd.
IBM PC, IBM Proprinter II, PC-DOS: International Business Machines Corp.
Microsoft BASIC, MS-DOS:
Microsoft Corporation
LX-800, FX-86e, EX-800, LX-80/W Seiko Epson Corp.
NOTICE
l
All rights reserved. Reproduction of any part of this manual in any form whatsoever without STAR’s express permission is forbidden. l
The contents of this manual are subject to change without notice. l
All efforts have been made to ensure the accuracy of the contents of this manual at the time of press. However, should any errors be detected, STAR would greatly appreciate being informed of them. l
The above notwithstanding, manual.
STAR can assume no responsibility for any errors in this
@Copyright 1987 Star Micronics Co., Ltd.
HOW TO USE THIS MANUAL
This manual is organized into five chapters and four appendixes. To learn how to make the best use of your printer you are urged to read all of chapters 1 through 5. The appendixes can be referred to as necessary.
Chapter 1 explains how to get the printer unpacked and set up. Read this chapter before you do anything else.
Chapter 2 explains the control panel. After getting set up, read this chapter and try out the procedures in it to find out how the printer works.
Chapter 3 gives tips on using word-processing programs and other com- mercial software with this printer. Read this chapter in conjunction with your software manual.
Chapter 4 is addressed to do-it-yourself programmers. programming examples using DOS commands and BASIC.
It shows simple
Chapter 5 covers maintenance and troubleshooting. Look through this chapter to see what it contains, then refer to it as necessary later.
Appendix A lists the printer’s technical specifications.
Appendix B details the functions of escape sequences and other printer commands.
Appendix C presents a BASIC program you can use to define and download new characters.
Appendix D presents tables of the printer’s character sets.
FEATURES OF THE PRINTER
This printer is a compact, colour, dot-matrix printer that supports the
IBM/Epson commands and character sets. An excellent partner for your personal computer, it prints text and graphics in black-and-white or six bright colours. A print sample generated by a BASIC program is included inside the back cover. With more advanced software, you can produce even more striking colour graphics. Besides colour printing, some of the features of this printer are: l
Extensive software support
Since it is compatible with the Epson and IBM printers, it works with any software that supports those printers. That includes most word-pro- cessing and graphics programs, spreadsheets, and integrated software packages. l
Embeddable commands
Commands for NLQ type styles, colour printing, bold, italic, and ex- tra-large characters can be embedded in documents without the escape code, so you can use these features easily even if your word-processing software does not support them. l Easy operation
Clearly understandable lamp displays and beep tones provide immediate feedback when you press the switches on the control panel. The four switches can operate in combinations to perform a surprising variety of functions, including margen setting and micro-alignment. l
Easy care and maintenance
The colour ribbon cartridge can be replaced in seconds; the print head in a few minutes. l
Versatile paper handling
Single sheets, fanfold forms, and multi-copy forms (up to triple-ply) are all accepted, and you can use either tractor or friction feed. A speical feature enables you to keep fanfold forms parked in readiness while printing on other paper. l Fast draht-quality printing
At 120 characters per second, the printer can print a page faster than you can read it. Characters are naturally shaped, with true descenders. l
High-resolution near-letter-quality printing
When you select an NLQ type style, the printer slows down and employs a dense matrix of up to 18 by 23 dots to print clear, well-formed characters. l Large variety of type styles and sizes
The printer has one draht style and four NLQ styles (Courier, Sanserif, and Orator with small capitals or lower case), plus italics for all styles, plus condensed print, bold print, double-sized the print sample inside the back cover. print, quadruple-sized print-see
-
TABLEOFCONTENTS
Chapter 1
SETTING UP THE PRINTER
Locating the printer
Unpacking and inspection
Check the carton contents
Setting up
Mount the platen knob
Remove the top cover
Install the ribbon cartridge
Replace the top cover
Connect the printer to the computer
Connect the printer’s power cord
Loading single sheets
Mount the paper guide
Semiautomatic loading
Manual loading
Loading and parking fanfold forms
Paper parking
Paper unparking
Test printing
Short self test
Long selft test
Interface test
Adjusting the printing gap
DIP switch settings
Chapter 2
CONTROL PANEL OPERATIONS
Switches and indicators
Power indicator
On Line switch
Paper Feed switch
Print Pitch switch
NLQ Type Style switch
Power-up functions
Short test pattern
Long test pattern
Stay in panel pitch
Stay in panel style
Hexadecimal dump
Switch combination functions
Paper parking
Page feed
23
26
3
6
9
12
14
14
19
19
Chapter 3
Top of form
Forward micro-feed
Reverse micro-feed
Left margin
Right margin
Clearing the buffer
USING THE PRINTER WITH
COMMERCIAL SOFTWARE
Installing your software
Printer menu
Printer command options
Type styles
Page width
Initialization sequence
Setting the DIP switches
Using your software
Page alignment
Type style and pitch selection
Embedding printer commands
Chapter 4 USING THE PRINTER
WITH DOS AND BASIC
Hard-copying the screen (MS DOS and PC-DOS)
Programming the printer with DOS commands
Programming the printer with BASIC
Chapter 5
MAINTENANCE AND TROUBLESHOOTING
Cleaning the printer
Replacing the ribbon
Replacing the print head
Troubleshooting
Appendix A TECHNICAL SPECIFICATIONS
Appendix B PRINTER CONTROL COMMANDS
Font control commands
Colour printing commands
Character set commands
Character size and pitch commands
Vertical position commands
Horizontal position commands
Graphics commands
Download character commands
Macro instruction commands
Other printer control commands
31
31
33
33
A7
47
47
48
50
53
37
37
38
40
59
59
64
64
66
71
76
80
82
85
85
-
-
Appendix C DOWNLOAD CHARACTER GENERATOR
Draft character
NLQ character
Appendix D CHARACTER SETS
Standard character set
IBM character set #2
IBM character set #l
Additional character set
International character sets
INDEX
REFERENCE CARD
89
Inside the cover
97
98
100
102
103
104
105
SETTING UP THE PRINTER
Subjects covered in Chapter 1 include -
l
Locating the printer l
Unpacking and inspection (names of parts)
0 Setting up l
Loading single sheets l
Loading and parking fanfold forms l
Test printing l
Adjusting the printing gap l
Setting the DIP switches
LOCATING THE PRINTER
Give some thought to the best place to put the printer. Both the printer and computer should be used in a normal indoor environment. For best performance, we recommend: l
Place the printer on a flat surface. l
Keep it out of direct sunlight and away from heat-producing appliances. l
Use it only in temperatures where you are comfortable. l
Avoid locations with dust, grease, or high humidity. l
Supply it “clean” electricity. Don’t connect it to the same circuit as a large, noise-producing appliance such as a refrigerator. l
Make sure the line voltage is within 10% of the voltage specified on the identification plate. l
If you will be using fanfold forms, place the printer where the forms can feed up to it from below, with at least a full page hanging free.
UNPACKING AND INSPECTION
Check the carton contents
Open the carton and check each item in the box against Figure 1-l to make sure that you have everything (there should be five items).
.-
igure l-1. Check to make sure you have all five items: 1) Printer, 2) Paper guide, 3) Platen knob, 4) Ribbon cartridge, and 5) User’s manual.
Make an external inspection of the printer. Note the locations of the following parts:
Bail lever:
opens and closes the paper bail which holds the paper against the platen.
L
-
Connector
Figure 1-2. The printer’s external parts
Release lever:
Top cover:
Rear cover:
Entry slot:
Control panel:
Power switch:
Connector:
releases the platen. This lever must be down for printing on single sheets, and up for fanfold forms. protects the print head and other parts. protects the sprocket feed mechanism. for inserting single sheets of paper. controls various printer functions. switches power on and off. for connecting the computer to the printer.
SETTING UP
Mount the platen knob
The platen knob is packed into a recess of the white foam packing material which held your printer inside the packing box. Be careful to remove the knob before disposing of the packing.
Mount the platen knob on its shaft on the right side of the printer. Turn it until you can push it in all the way.
Power should always be off when you turn the platen knob. Turning the platen by hand while power is on can damage the printer’s gears.
L
igure l-3. Mounting the platen knob
Remove the top covef
Lift the front edge of the printer’s clear plastic top cover. Then disengage the tabs at the back of the cover and remove the cover completely.
-
-
-
-
-
-
-
-
-
-
Figure 1-4. Removing the top cover
-
install the ribbon cartridge
The top side of the ribbon cartridge has a handle for turning the ribbon.
Turn this handle in the direction of the arrow to tighten the ribbon.
Next place the ribbon cartridge on the print head assembly, guiding the ribbon between the print head and the metal platen guard. Press down lightly on the cartridge until it locks into place.
Caution:
Don’t touch the brass gear on the carriage.
Ribbon cartridge
-
trgure I-J. msrawng me rlcmon canrmge
Replace the
top
cower
Hold the cover upright and engage the tabs at the back. Then swing the front edge down until the cover is closed.
Leave the cover closed during normal operation. It keeps out dust and dirt and reduces the printer’s operating sounds. Open the cover only to change the ribbon or make an adjustment.
Connect the printer to the computer
Connect the printer end of the interface cable to the connector socket on the right side of the printer as shown in Figure 1-6.
Make sure the computer is turned OFF, then connect the other end of the cable to your computer as described in the computer manual.
5
I ’
-
-
-
-
-
-
-
Figure
I-6. Connecting the interface cable
Connect the printer’s power cord.
Check that the printer’s power switch (located at the left front) is OFF.
Then plug the printer’s power cord into an AC wall outlet.
Never plug or unplug the power cord while the printer is turned on.
LOADING SINGLE SHEETS
This section will take you through the procedures for loading single sheets of paper.
If you are using the optional automatic sheet feeder (ASF), read the
ASF instruction booklet.
Mount the paper guide
The paper guide fits into the two holes on top of the rear cover. Mount the guide and raise it to the upright position.
-
-
-
__
.-
6
-
-
-
-
.
Figure l-7. Mounting the paper guide ror smgle sneers
Semiautomatic loading
Single sheets can be loaded manually with power off, or semiauto- matically with power on. We will start the easy way with semiautomatic loading.
1. Check that the release lever is down and the bail lever back (bail closed), then switch power on. You will hear a short beep tone and the Power indicator on the control panel will flash. These are the printer’s paper-out signals.
2. Place a single sheet on the paper guide and insert it down into the entry slot. You will feel a slight resistance as the paper engages the paper detector lever. Work the paper past this resistance and insert it down as far as it will go.
3. Move the bail lever forward. When the bail opens, the printer feeds the paper automatically.
4. Move the bail lever back. The paper will feed slightly forward again, ending in position to print with a top margin of about one inch.
rfgure 1-u. Loaamg a smgle sneer
Manual loading
It is also possible to load paper manually while the printer’s power is off. The procedure is:
1. Check that printer power is off and the release lever at the back of the printer is down.
2. Insert a single sheet of paper into the entry slot as far as it will go, the same way as for semiautomatic loading.
3. Move the bail lever on top of the printer forward to open the paper bail.
4. Turn the platen knob clockwise until the front edge of the paper comes out from under the top cover.
5. If the paper is not straight, move the release lever to the up position, straighten the paper by hand, then move the release lever back down.
6. Move the bail lever back to close the paper bail. -
-
8
LOADING AND PARKING FANFOLD FORMS
Fanfold forms have holes along the sides and perforations between the sheets. They are also called sprocket forms, punched forms, or just plain
“computer paper”. This printer accepts forms up to 10” wide. Fanfold forms are loaded, parked, and unparked as explained next.
I. Place a stack of fanfold paper behind and at least one page-length below the printer.
2. Turn the printer’s power OFF.
3. Set the release lever to the up position. If there is paper in the printer, remove it. (Since the platen is released, you can just pull the paper out.)
4. Move the bail lever forward to open the bail.
5. Remove the paper guide and put it aside for the moment.
6. Remove the rear cover. Grip it by its front edge and lift upwards and backwards as in Figure l-9.
Flgufe 1-Y.
upentng me rear cover
7. Open the sprocket covers on the right and left sprocket units, as shown in Figure l-10.
8. Flip the clamp levers down. This allows the two sprocket units to move freely right and left so you can align them with the holes in the paper.
9. Insert the front edge of the paper over the paper detector lever and tuck it in under the platen.
9
Figure
l-10. Opening the sprocket covers to expose the sprocket teeth lever
Figure
I-11. Closing the sprocket covers
10. Fit the holes in the paper over the sprocket pins. Check that the paper is even.
11. Close the sprocket covers (Figure l-l 1).
12. Raise one of the clamp levers to lock one sprocket unit in place.
10
e
L
&
13. Turn the platen knob to feed the paper forward until it comes out from under the top cover.
14. Move the bail lever back to close the bail.
15. Check that the paper is feeding in flat, then raise the other clamp lever to lock the other sprocket unit.
16. Replace the rear cover. Hold it tilted upward and insert the two tabs at the bottom into their slots. Then rotate the cover forward, pressing down on the thumb pads on the left and right to snap it into place.
17. Mount the paper guide in the horizontal position shown in Figure l-12,
Figure l-12.
Mounting the paper guide for fanfold forms
Now you are ready to switch power on and print.
Paper parking
After loading fanfold paper, you do not have to unload it when you want to print on a single sheet. The printer will “park” it for you if you follow the procedure below.
1. Paper parking starts with power ON, fanfold paper loaded in printing position, the release lever up, and the bail lever back.
2. Press the On Line switch on the control panel to set the printer off-line
(On Line indicator off).
3. Tear off the printed form at the last perforation, leaving not more than about half a page showing above the top cover. If necessary, press the
Paper Feed switch to feed paper forward until a perforation is located just above the top cover, and tear there.
4. Press the Print Pitch switch on the control panel and hold it down.
5. Still holding the Print Pitch switch down, press the Paper Feed switch.
The printer will automatically feed the fanfold form backward until the paper is completely free of the platen.
6. Move the release lever to the down position.
7. Mount the paper guide in the upright position.
Now you can load single sheets either semiautomatically or manually, as explained previously. The fanfold paper remains parked at the back of the printer.
When you want to resume using fanfold paper, the procedure is as follows.
Paper unparking
1. Remove all single sheets from the printer and close the paper bail.
2. Mount the paper guide in the horizontal position.
3. Move the release lever to the up position.
4. With power ON, move the bail lever forward. The printer will auto- matically feed the parked fanfold paper into position for printing.
5. Move the bail lever back to close the bail. Now you are ready to print.
.-
TEST PRINTING
After loading paper, you can test the printer as described next.
Short self test
This procedure prints a seven-line “barber-pole” test pattern, each line in a different colour. The lines are eight inches wide, so the paper should be at least that wide.
1. Check that paper is in position for printing.
2. With power off, press the On Line switch on the control panel and hold it down.
3. Still holding the On Line switch down, turn the printer’s power on.
The printer will automatically start printing its short test pattern. You can release the On Line switch after printing starts. To remove the paper at the end of the test, switch power OFF, then turn the platen knob. (Don’t turn the platen knob while power is on.)
-.
-
-
-
-
--
Figure I-13. Short test pattern
Long self test
To see the printer’s variety of type styles, you can run the long version of the printer’s self test.
1. Check that paper is in position for printing.
2. With power off, press the Paper Feed switch on the control panel and hold it down.
3. Still holding the Paper Feed switch down, turn the printer’s power ON.
The printer will automatically start printing a test pattern of its full character set in various type styles. Watch the lights on the control panel; they indicate which type style is printing. The test pattern varies depending on the setting of DIP switch l-6 (ON - Standard mode, OFF - IBM mode), but more about that later.
This test repeats indefinitely in a cycle of 30 or 70 lines. To stop the test, switch power off.
Interface test
After confirming that the printer works by itself, it is time to test the interface with the computer. The simplest way to do this is with a direct command. Power up both the printer and computer, load paper, then try a command like one of the following:
MS-DOS or PC-DOS command:
A >ECHO THE INTERFACE WORKS >PRN
Microsoft BASIC command:
LPRINT “THE INTERFACE WORKS”
Or you can try any other command understood by your computer to print a line of text. Consult your computer manual if you need help. If you repeat the command a few times, the printout will come into view.
Next you may want to try a test printout with word-processing software, but for this to succeed you will have to set the printer’s DIP switches (see the end of this chapter) and install your software to support the printer correctly (see Chapter 3).
13
ADJUSTING THE PRINTING GAP
The distance between the print head and the platen can be adjusted to accommodate different paper thicknesses. To make this adjustment, remove the top cover. The adjustment lever is located near the left end of the paper bail. Pulling the adjustment lever towards you widens the gap; pushing it away from you narrows the gap.
There are four positions; you can feel the lever clicking into each position.
The first position (narrowest gap) is the one most commonly used for single sheets of paper. Try different positions until you get the best printing results.
When you remove the printer’s cover and look inside, you will see on the green board at the bottom of the printer two groups of small switches marked DSWl and DSW2. These are the printer’s DIP (Dual In-line
Package) switches. DSWl has eight switches, named l-l to 1-8 from left to right. DSW2 has four switches named 2-1 to 2-4.
For all switches, the ON position is towards the back of the printer and the OFF position is towards the front. To set a DIP switch, use a ballpoint pen or other small implement to move the switch to the ON or OFF position.
The printer’s power should be off when you set the DIP switches. Settings made while power is on do not take effect until power is switched off, then on again, because the printer reads the DIP switches only at power-up.
14
-
Figure
7-15. DIP switches
Switch Function
l-l Page length
1 l-2 1 Auto CR
1-3 Orator lower case l-4 Auto sheet feeder
ON OFF
11 inches 12 inches
1 Yes 1 No
Small caps Lower case
Inactive Active
I l-5 Paner-out detector
I l-6
I
Printer mode
Enabled Disabled
I
Standard
I
IBM character set (Std. Mode) Italics Graphics l-7
Character set (IBM Mode)
Set #2 Set #I
1-8
Auto LF
I 2-l I Usage of RAM
No Yes
I
I
Buffer
I
Download
I
2-2
2-3 International character set (See below)
2-4
The printer is delivered with all
DIP
switch set to the ON position. These are the standard settings. By changing the settings, you can alter various printer functions to match your requirements. help you make the right settings.
The following questions will
15
Switch l-l:
Is the page length of your paper 11 inches or 12 inches?
Leave this switch ON if you will be using 1 l-inch forms. Move it to the
OFF position if you will be using 12-inch forms.
Switch 1-2:
Do you want an automatic carriage return?
Leave this switch ON. The printer will automatically perform a carriage return by moving to the left margin at each line feed. Even if your software sends a separate carriage-return code, an extra carriage return does no harm because two consecutive carriage returns are the same as one. Very few programs require this switch to be OFF.
Switch 1-3:
When you select the Orator type style on the control panel, do you want lower-case letters to print as lower case (OFF) or as small capitals (ON)?
Take your pick from the samples below. Note that lower-case Orator does not have descenders for the letters g, j, p, q. and y.
ORATOR PRINTS THIS WAY WITH SWITCH
l-3 ON.
Orator Prints this way with switch 1-3 OFF.
Switch 14:
Are you going to use the automatic sheet feeder (ASF)?
To use the automatic sheet feeder, move this switch to the OFF position.
Otherwise leave it ON.
Switch l-5:
Do you want the printer to stop printing about an inch from the end of the paper, or to keep printing to the bottom?
Leave this switch ON except when you need to print very close to the end of the paper. When this switch is OFF the printer ignores the paper-out detector and prints down to (and beyond) the bottom edge.
Switch 1-6:
Do you want to use the printer in standard mode or IBM mode?
Select the mode compatible with your computer and software. In standard mode the printer operates like the Epson LX-800. In IBM mode it operates like the IBM Proprinter II. The ON position selects standard mode. The
OFF position selects IBM mode.
Switch 1-7:
The action of this switch depends on the mode chosen with switch I-6.
If you selected standard mode, do you want italics or graphic charactes?
Leave this switch ON to print italics in the standard character set. If you set this switch to the OFF position, in place of italics you will get the graphic characters, international characters, and mathematical symbols of IBM character set #2. See Appendix D, character codes 128 to 254.
If you selected IBM mode, do you want IBM character set #l or #2?
16
-
_
. _
ON selects character set #2, which is for computers with an B-bit interface
(the most common kind). OFF selects character set #l, for computers with a 7-bit interface.
Switch l-8:
Do you want an automatic line feed?
If you leave this switch at the ON position, a separate line-feed code is re- quired to obtain a line feed.
If you move this switch to the OFF position, the printer performs both a carriage return and line feed each time it receives a carriage-return code.
Most computer systems send a line feed code, or both a carriage return and line feed, at the end of each line, so this switch should be left ON.
If you get double line spacing when you expect single spacing, or if lines overprint each other, try changing the setting of this switch.
Switch 2-1:
Does your software download new characters to the printer?
To download characters this switch must be OFF. The printer then uses its RAM memory for storing character patterns and provides only a one-line print buffer. If you leave this switch ON the printer uses its RAM memory as an input buffer, allowing the computer to send data faster than the printer prints.
Switches 2-2 to 2-4:
Do you want an international character set?
International character sets differ in their assignment of 14 character codes.
See the character tables at the back of this manual. With the DIP switches you can select one of eight character sets as follows:
*
Denmark/Norway when switch l-6 is OFF and switch l-7 is ON.
18
MEMO
Chapter 2
CONTROL PANEL OPERATIONS
This chapter explains how to use the control panel to:
0 Pause printing l
Feed paper (fast and slow, forward and reverse) l Select the print pitch
0 Select a type style
0 Print test patterns l
Prevent software from changing the panel pitch and style selections l
Print a hexadecimal dump l
Park fanfold forms l
Set the top-of-form position l Set the left and right margins l
Clear the printer’s buffer
SWITCHES AND INDICATORS
The control panel has four switches marked:
0 On Line l l
Paper Feed
Print Pitch l NLQ Type Style
The On Line, Print Pitch, and NLQ Type Style switches respond with a beep tone when pressed, and indicators beside them indicate their current status. There is also a Power indicator that lights when power is on.
I
lgure 2-l. l;ontrol panel
The control panel switches can be pressed singly to perform the oper- ations indicated by their names. Other functions can be obtained by holding these switches down when you turn the printer’s power on. Still further functions can be executed by pressing the control panel switches in com- bination. This chapter explains all the switch and indicator functions.
Power indicator
The power indicator lights (yellow) when power is on.
When paper is not present, the power indicator flashes. A beep tone also alerts you to the need to load paper.
On Line switch
The On Line switch sets the printer on-line and off-line. The state changes each time you press the switch.
In the on-line state the printer receives data from the computer and prints the data. In the off-line state the printer stops printing and sends the computer a signal indicating that it cannot accept data.
The printer powers up in the on-line state if paper is present. If paper is not present, the printer powers up off-line with the Power indicator flashing. When you load paper the Power indicator stops flashing, but the printer remains off-line. To start printing you must press the On Line switch go on-line. are:
The three main times when you will want to press the On Line switch l
Before and after any other panel operation
The other panel switches operate only in the off-line state. First press the On Line switch to go off-line, then perform the panel operation, then press the On Line switch again to go back on-line. l
To pause during printing
If you press the On Line switch during printing, the printer stops printing and goes off-line, allowing you to check the printout or change a control panel setting. Printing resumes when you press the On Line switch again to go back on-line. l To cut fanfold forms at the end of printing
When using fanfold forms, if you hold the On Line switch down for 2 seconds, in addition to going off-line the printer feeds the paper about two inches forward, allowing you to cut it off just below the last line printed.
When you press the On Line switch again to go back on-line, the paper feeds backward about one inch, stopping in the right place to resume printing.
Paper Feed switch
This switch operates only when the printer is off-line. If you press it once the paper feeds forward by one line. If you hold this switch down, the printer performs consecutive line feeds.
While you are feeding lines, if you also press the On Line switch, the paper will feed to the top of the next page. This is explained later.
When power is on, always use the Paper Feed switch instead of the platen knob to feed paper. Turn the platen knob only when power is off.
Print Pitch switch
This switch operates off-line to select the print pitch: the spacing between characters. The indicators to the left light (green) to indicate the selected pitch.
The printer powers up in pica pitch. To change to another pitch, press the On Line switch to go off-line, then press the Print Pitch switch repeatedly until the indicators show the pitch you want.
In Standard mode (when DIP switch l-6 is ON), the pitch selections cycle as follows:
Pica
Elite
Condensed pica
Condensed elite
Proportional pica
Proportional elite
(10 characters per inch)
(12 characters per inch)
(17 characters per inch)
(20 characters per inch)
This is pica (10 characters
This is elite (12 characters
This is condensed pica (17 characters per inch). per inch). per inch).
This
This is proportional is proportional pica. elite.
Figure 2-2. Print pitches selectable from the control panel
Samples of these pitches are shown in Figure 2-2. Note that with proportional pitch different letters occupy different widths. (For example,
“i” and “1” are narrower than other letters.) Proportional pitch is attractive and space-efficient, though not always convenient when column alignment is required.
Note that you cannot select condensed proportional pitch on the control panel. You can make this selection by the printer commands < SI > < ESC >
“p” 1 - see Appendix B.
In IBM mode (when DIP switch l-6 is OFF), the pitch selections cycle as follows:
Pica
Elite
Condensed pica
Proportional pica
Proportional elite
(10 characters per inch)
(12 characters per inch)
(17 characters per inch)
There is no condensed elite pitch in the IBM mode.
NLQ Type Style switch
This switch selects the type style. Draft style is always selected at power-up. To change to one of the NLQ (near letter quality) styles, set the printer off-line, then press the NLQ Type Style switch repeatedly until the indicators beside the desired selection light. The selections cycle in the fol- lowing order:
Draft (all indicators off)
Courier (NLQ)
Courier italic (NLQ)
Sanserif (NLQ)
Sanserif italic (NLQ)
Orator (NLQ)
Orator italic (NLQ)
Samples are shown in Figure 2-3.
The Orator style is unique in two ways. First, it is a dot larger (higher) than the other styles. This makes it a good choice for labels and other text requiring high visibility. A little extra line spacing helps when Orator is used.
Second, there are two versions of the Orator type style: one prints small capitals in place of lower-case letters; the other prints lower-case letters, but without descenders. The version you get when you select Orator from the control panel depends on the DIP switches. If DIP switch l-3 is OFF, lower-case Orator will print as lower case. Otherwise it will print as small capitals.
22
“1” ; ‘1 i, Li ,j, ‘Li ij r z., -+: .I:;. i:.j I,..( a I/, :i b L. :
This is near-letter-quality
'This is Courier italic.
Courier.
This
is Sanserif.
This is Sanserif italic.
THIS IS ORATOR WITH SMALL CAPITALS.
THIS IS ORATOR ITALIC WITH SMALL CAPITALS.
This is Orator with lower case.
This is Orator italic with lower case.
@ure 2-3. Type styles selectable from the control panel
The other type styles do not have a small-capitals option, Lower case always prints as lower case.
The type style can also be selected by printer commands given in Ap- pendix B. Printer commands enable you to select both Orator styles, and also draft italic, which cannot be selected from the control panel.
POWER-UP FUNCTIONS
In addition to their normal functions, all the control panel switches have special functions that operate if you hold them down while switching power on.
i aA. . . ..wm
L”““lCti
r,
”
NLQ
---
/TYPE
ISTYLE
PAPER
FEED
rPAPER PARK1
O-POWER
1
Long test
Short test
Hexadecimal dump
Figure 2-4. Power-up functions of control panel
23
Short test pattern:
On Line switch
If held down during power-up, this switch prints a short test pattern
(shown in Chapter 1).
Long test pattern:
Paper Feed switch
If held down during power-up, this switch prints a long test pattern.
The test cycles endlessly. To stop the test you must switch power off.
Stay in panel pitch:
Print Pitch switch
By holding this switch down during power-up, you can prevent software interference with the print pitch selected from the control panel. You will hear an acknowledging beep as power comes on. After the beep tone, you can set the printer off-line, select a print pitch, then return to on-line and start printing. The pitch you selected will not be reset or otherwise changed by any commands your software may issue.
Stay
in
pane/
Sty/e: NLQ Type Style switch
If held down during power-up, this switch prevents software interference with the type style selected from the control panel. There will be an ac- knowledging beep, after which you can set the printer off-line, select a type style, then return to the on-line state and start printing. The selected type style will not be changed by any commands sent by software.
If you want to protect both the Print Pitch and NLQ Type Style settings from software changes, press both switches during power-up. There will be two acknowledging beeps,
Pressing these switches during power-up does not prevent you from making any number of changes later from the control panel.
/fexadecima/ Cfun?p:
Paper Feed and Print Pitch switches
This feature is useful for programmers who are debugging printing programs and want to see the actual codes the printer is receiving. (Some computers change the codes the programmer intended.)
1. Holding both the Paper Feed and Print Pitch switches down, turn power
ON. A beep tone will be heard.
2. Start printing. In place of the usual printout you will get a formatted dump showing exactly what data the printer receives. Each line presents sixteen characters, their hexadecimal codes to the left and printable characters printed on the right.
24
.
3. At the end of the hexadecimal dump, set the printer off-line with the
On Line switch. This i;&necessary to print the last line.
The following BASIC pr:gram is a simple test you can run in hexade- cimal mode:
10 FOR I=0 *TO 255
20 LPRINT
CHR$(I);
30 NEXT I
40 LPRINT
50 END
If your system passes the codes directly to the printer without changing them, you will get a printout like Figure 2-5.
10 11 1: 1s 14 15 16 17
20 21 22 23 24 25 26 27
30 31 72 55 34 25 J6 .:7
40 41 42 4; 44 45 4b 47
50 51 5” 5’3 54 55 56 57
60 61 62 61: 64 65 66 67
70 71 72 71 74 75 76 77
SO 81 82 83 84 85 86 87
90 91 92 9T 94 95 96 97
A0 Al A2 A3 A4 A5 A6 A7
HO Hl 62 62 84 65 66 H7
CC1 Cl CL’ CS C4 C’5 C6 C7
DO Dl D2 DS D4 D5 D6 D7
EO El E2 E3 E4 E5 Eb E7
FO Fl F2 F3 F4 F5 Fb F7
OD OA
18 19 1A 1H 1C 1D 1E 1F
2El 29 2A 26 2C 2D 2E 2F
23 79 ;A 56 ?C ;D 3E =F
48 49 4A 4H 4C 4D 4E 4F
58 59 5A 56 SC 5D 5E 5F
68 69 6A 6H 5C 6D bE 6F
78 79 7A 76 7C 7D 7E 71-
88 39 RA 66 BC
SD SE SF
98 9? 9A 9H 9C
9D 9E 9F
AS A9 AA AH AC AD AE AF
68 H9 HA BH HC SD SE SF
CS C9 CA CH CC CD CE CF
DS D9 DA DH DC DD DE DF
ES E9 EA ES EC ED EE EF
FS F9 FA FS FC FD FE FF
................
................
................
................
................
. .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . .
‘1”iB%t’o*+.-./
(:I 123456789:
BABCDEFGHI
; .:: = :??
JKLMNO
PQRSTUVWXYZC\l’~
.abcdefqhijklmno pqrstuvwxyz1: 3”.
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
Most BASICS, however, are not quite that straightforward. For example, the IBM-PC prints the following.
00 ,:r 1 02 03 (‘14 05 06 07
I:IF 11‘) ii 12 1; 14 l”j 16
20 21 22 :3 24 “5 26 27
30 ;1 3- - -7 ;5 56 37
40 41 42 42. 44 45 46 47
50 51 52 51: 54 55 56 57
60 61 62 63 64 65 bb 67
70 71 72 73 74 75 76 77
SO 81 82 a3 84 85 86 a7
90 91 92 93 94 95 96 97
AC) Al A2 A5 A4 A5 A6 A7
BO 61 B2 6; H4 65 136 H7 co Cl C” c: c4 c5 Cb c7
DC1 D1 D2 D; D4 D5 D6 D7
El:, El E2 E‘ E4 E5 E6 E7
FO Fl F2 FS F4 F5 Fh F7 cjD (:,A
08 09 (:,A 06 CC cm CIA c:bE
17 18 19 16
1C 1D 1E 1F
28 29 2A “H 2C riD 2E 2F
38 39
JA JH 3C 3D I;E TF
48 49 4A 45
4C 4D 4E 4F
58 59
5A 56 5C 5D SE SF
68 69 6A 6H 6C 6D 6E 6F
78 79 7A 7H 7C 7D 7E 7F
88 89 RA 86
SC SD SE SF
98 99 9R 9H
9C 9D 9E 9F
AS A9 AA AS AC AD AE AF
68 B9 BA 66 BC BD SE SF
CS C9 CA CH CC CD CE CF
DB D9 DA DS DC DD DE DF
ES E9 EA ES EC ED EE EF
FS F7 FA FE! FC FD FE I;F
Figure 2-6. Sample hexadecimal dump with IBM-PC
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
’ “#$%C‘ 0 a+. -. /
0123456789: :*:=>-
PARCDEFGHI JKLMNO
PQHSTLJVWXYZC\l.‘~-
‘abcdefqhi>klmno pqrstuvwxyz<: :“.
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . ..I..........
. . . . . . . . . . . . . . . .
. .
25
When the IBM-PC BASIC interpreter sends hex code OD (carriage re- turn) it adds an extra hex OA (line feed). Hex code 1A (end-of-file) also gets special treatment: the interpreter does not send it at all. This can cause problems in programs that generate graphics or download character data, but there is a solution. Try changing line 20 in the preceding program and adding the coding shown below.
Coding for IBM-PC with monochrome display:
20 GOSUB 100
100 O-INP(GH3BD)
110 OUT &H3BC,I
120 RETURN
:IF
:OUT
0<128
&H3BE,5
THEN 100
:OUT &H3BE,4
Coding for IBM-PC with colour adaptor:
20 GOSUB 100
100 O=INP(&H379)
110 OUT &H378,1
120 RETURN
:IF
:OUT
0<128
&H37A,5
THEN 100
:OUT &H37A,4
SWITCH COMBINATION FUNCTIONS
Several additional functions can be obtained by pressing the control panel switches in combinations.
Reverse micro-feed
COURIER 0
SANSERIF 0
ORATOR 0 piiiqn
1 NLU
TYPE
/STYLE n PICA
/ n ELITE I
;;;A
rwkn
FEED
rPAPER PARK1
0 -POWER
ON LINE
Rieht marein
Top of form
Figure 2-7. Switch combination functions of control panel
26
-
-.
.-
Paper
parking:
Print Pitch and Paper Feed switches
This procedure feeds the paper backward. It parks the fanfold form at the back of the printer so that you can switch to single-sheet feeding (by moving the release lever to the down position).
Before parking fanfold forms, tear off all but the last page, leaving less
(at least three inches less) than a full page showing above the top cover.
1. Press the On Line switch to set the printer off-line.
2. Press the Print Pitch switch and hold it down.
3. Press the Paper Feed switch. The paper will be fed out backward.
Page feed:
Paper Feed and On Line switches
If you are using single sheets, this operation ejects the current page. If you are using fanfold forms, it feeds to the top of the next page.
1. Press the On Line switch to set the printer off-line.
2. Press the Paper Feed switch and hold it down. The printer will start performing successive line feeds.
3. Still holding the Paper Feed switch down, press the On Line switch. then release both switches. The printer will smoothly eject the current page.
Top Of form: NLQ Type Style and On Line switches
When you turn on printer power, the top-of-form position is auto- matically set to the current position.
If this is not where you want the top of the page to be, you can change the top-of-form position as follows.
1. Press the On Line switch to set the printer off-line.
2. Move the paper to the desired top-of-form position by pressing the Paper
Feed switch, or by performing a forward or reverse micro-feed.
3. Press the NLQ Type Style switch and hold it down.
4. Press the On Line switch. The printer will beep to indicate that the top-of-form position has been set.
Forward micro-feed:
On Line and Paper Feed switches
For line alignment, you can feed the paper forward in very small in- crements as follows:
1. Press the On Line switch to set the printer off-line.
2. Press the On Line switch again and hold it down.
3. Press the Paper Feed switch. The paper will start advancing in a series of small steps. When you want to stop. release both switches.
27
Reverse micro-feed:
On Line and Print Pitch switches
You can also feed the paper in small increments in reverse, to return to a higher position on the same page.
Note: With fanfold forms, do not try to return to a previous page. The perforation may catch inside the printer.
1. Press the On Line switch to set the printer off-line.
2. Press the On Line switch again and hold it down.
3. Press the Print Pitch switch. The paper will start moving backwards in a series of small steps. When you want to stop, release both switches.
Left margin:
NLQ Type Style and Print Pitch switches
Software almost always provides commands for controlling the margins, so you will not usually have to set them from the control panel. When necessary, however, you can set the left margin as follows.
1. Press the On Line switch to set the printer off-line.
2. Press the NLQ Type Style switch and hold it down.
3. Press the Print Pitch switch. The print head will make a short excursion from the left end, then start advancing from left to right in a series of steps, each equal to one pica character width (l/10”). When the print head reaches the desired left margin position, release both switches.
The printer will beep to indicate that the margin has been set.
Right
margin:
NLQ Type Style and Paper Feed switches
You can also set the right margin.
1. Press the On Line switch to set the printer off-line.
2. Press the NLQ Type Style switch and hold it down.
3. Press the Paper Feed switch. The print head will travel to the right end of the carriage, then start advancing from right to left in a series of l/10” steps. When it reaches the desired right margin position, release both switches. The printer will beep to indicate that the margin has been set.
Clearing the buffer:
Print Pitch, On Line and Paper Feed switches
When DIP switch 2-l is ON, the printer stores received data in a large memory buffer. This creates a problem when you want to abandon a printing job and restart: the printer may be holding much more data in its buffer than it has actually printed, and this unprinted data must be cleared out before restarting. Turning power off is one way to clear the buffer, but there is another way:
1. Halt the printing program on the computer. If printing stops imme- diately, the buffer is clear and the rest of this procedure is unnecessary.
If printing does not stop, continue as follows:
2. Press the On Line switch to set the printer off-line. Printing will now stop, but there may be data remaining in the buffer.
3. Press the Print Pitch switch and hold it down.
4. Press the On Line switch and hold it down.
5. Press the Paper Feed switch and hold it down. Continue holding all three switches down. In about three seconds you will hear a beep tone signaling that the buffer has been cleared.
6. Release all three switches, make any necessary control panel settings, then set the printer back on-line.
It is essential to halt the printing program on the computer before you go off-line. Otherwise, when you go back on-line the computer will start sending data again and the printer will continue printing, with missing data where the buffer was cleared.
MEMO
Chapter 3
USING THE PRINTER
WITH COMMERCIAL SOFTWARE
There is an abundance of commercial software available: spreadsheet programs, word-processing programs, graphics programs, and more. This printer will work with any program that supports a Star, Epson or IBM dot-matrix printer. Before using the printer with commercial software, however, there are two things you must do: l Install the software so that it supports the printer l
Set the printer’s DIP switches to match the software
INSTALLING YOUR SOFTWARE
Most commercial software includes an installation program or routine that you can run to customize the software to lit your hardware system.
Start by reading the explanation of the installation program in your software manual.
Printer menu
The installation program usually offers a menu of printers from which to choose. If you find this printer on the menu, select it.
If this printer is not listed, look for the Epson LX-800 or IBM Proprinter
II. If these are not listed, look for another Star, Epson or IBM printer. A few of the choices you may see are given below in order of preference:
Star NL-10
NP-10
NX-10/15
ND-lo/15
NR-lo/15
Epson LX-800
FX-86e
EX-800
LX-86
LX-80
IBM Proprinter II
Proprinter
Graphics Printer
Some menus are less explicit about model names but offer general de- scriptions such as “Star printer”, “Epson printer”, “IBM dot-matrix printer”,
“dot-matrix ASCII printer”, “Centronics-type printer”, “Draft printer”, or “Standard printer”. Any of these selections should work. If you are not sure of the right selection, it does not hurt to experiment. If you choose wrong, you will get strange printing results, but don’t worry; just try a different selection. Don’t pick any printer described as a daisywheel printer or laser printer.
A few installation programs may ask you not to select a printer but to describe what your printer can do. The answers to the most often asked questions are: Yes, this printer can do a backspace; and Yes, it can do a hardware form feed.
Selecting (or describing) a printer is the main step in the installation process and frequently the only step necessary. If you selected this printer or any Star, Epson or IBM printer you should be able to use software commands for all the standard printer functions, including bold or dou- ble-strike printing, underlining, line-spacing control, and graphics. subscripts, superscripts, margin control,
Printer command options
Besides the standard printer functions, however, your printer has some capabilities your software may not be aware of, including double- and quadruple-size printing and the printing of special characters assigned to control codes. Some software enables you to define these capabilities as user options in the installation process. Read your software manual to find out whether you can do this and if so, how.
The most useful thing you can do is to define a way to enter the escape code < ESC > , which is the control character with decimal character code
27 (hexadecimal 1B). This code usually cannot be keyed in directly (pressing the ESC key will not work). As an installation option, however, you may be able to assign it to a function key or a special key combination. Doing so will put the full power of the printer at your disposal.
Type sty/es
Some word-processing software has commands that enable you to change type styles in the middle of a document without a printing pause.
To use these commands you must generally define the printer’s type styles
(fonts) during installation, by assigning them numbers for example. Read your software manual for details, and refer to Appendix B for the relevant printer commands.
Page width
Spreadsheet programs in particular may ask you to specify the printer’s column width. The column width of this printer depends on the character pitch used:
Pica
Elite
Condensed pica
Condensed elite
80 columns
96 columns
137 columns
160 columns (Standard mode only)
32
-
-
I P?
The character pitch can be selected from the control panel before you start printing, or possibly by an initialization sequence as described next.
initialization sequence
One of the installation options may be to specify the commands your software sends at the beginning of each printing job. These commands are called the “initialization sequence” or “setup string.” If necessary, you can use the initialization sequence to adjust the margins to your paper size or select a particular type style or pitch. You can look up the commands you want in Appendix B.
For example, if you selected 96-column width for a spreadsheet program, it would be convenient to add an elite pitch command to the initialization sequence. Appendix B indicates that this command consists of the two characters:
< ESC > “M” which have decimal character codes 27 and 77 (hexadecimal 1B and 4D).
Your software manual or an on-screen prompt will explain how to place these codes in the initialization sequence.
SETTING THE DIP SWITCHES
After completing the installation of your software, check the setting of the printer’s DIP switches, in particular DIP switch l-6. If you selected a Star or Epson printer on the installation menu, switch 1-6 should be ON
(the factory setting). If you selected an IBM printer, switch l-6 should be
OFF.
DIP switches l-2 (auto CR), l-7 (character set), l-8 (auto LF), and 2-l
(RAM usage) are also related to your software. Read what your software manual has to say about carriage returns, line feeds, character sets, and downloading characters, and refer to the explanation at the end of Chapter
1.
USING YOUR SOFTWARE
With the installation and DIP switch settings correctly completed, you are ready to entrust most of the control of your printer to your software.
However, there will still be some things you have to do yourself.
Page alignment
If you are printing on fanfold forms, the first thing to do before you start printing is to align the top of the forms so that printing will start at
the right position on the page, a short distance below the perforation. With power off, you can align the forms by turning the platen knob. When power is on, use the Paper Feed switch on the control panel.
Type sty/e
and
pitch selection
If your software does not control the type style and pitch, you must make these selections with printer commands or panel controls. The default selections are draft style and pica pitch. To select a different style or pitch from the control panel, proceed as follows:
1. Hold the NLQ Type Style or Print Pitch switch down when you turn the printer’s power on. Hold both switches down if you intend to make both settings. The printer will beep in acknowledgement as it powers
2. Fress the On Line switch to set the printer off-line.
3. To select a type style, press the NLQ Type Style switch one or more times.
4. To select a print pitch, press the Print Pitch switch one or more times.
5. Press the On Line switch to set the printer back on-line.
Most programs begin each printing job by sending a command that resets the printer. That is why you must press the NLQ Type Style and/or Print
Pitch switches as you power up. If you do not press these switches during power-up, the reset command will reset your panel selections to draft style and pica pitch.
If you want to change the type style or pitch in the middle of a printing job, one way to do this is to insert a printing pause command in your file at the point of the change. When the printer pauses, press the On Line switch to go off-line. If the change occurs in the middle of a line, the printer will print the first part of the line. Now make the change with the control panel switches, set the printer back on-line, then command your software to resume printing. next.
Another way is to embed printer commands in the file, as explained
Embedding printer commands
Many word processors and other software lack commands for changing type style, printing double-size characters, or printing in colour, and some do not even support bold printing or italics. The printer therefore has commands that can be embedded in documents to control these functions without software help. The commands consist of a capital letter enclosed in double parentheses, followed by a digit:
-
-
34
Type style (Font): ((F))O Courier
((F))l Sanserif
((F))2 Orator with small capitals
((F))3 Orator with lower case
((F))9 Draft
Size: ((S))O Standard size
((S))l Double width
((S))2 Double height
((S))3 Double width and height
Colour:
Bold:
((C))0 Black
((C)Y Red
((C))2 Blue
((C))3 Violet
((C))4
Yellow
((C))5 Orange
((C))6
Green
((B))O Non-bold
((B))l Bold
Italic:
((I))0 Non-italic
((I))1 Italic
If you want to print a title in double-size Orator with small capitals, then change to regular-size Courier for some text that includes italics, you can use these commands as follows:
File as seen on computer screen:
((F))Z
Printer
((F))O ((S))O
Type style,
((1))litalic
((S))3
Commands
((1))lanywhere size. colour.
((
bold
print, and
1j)Ocommands
((I))Oin
can-be embedded
a document.
Printout:
PRINTER COMMANDS
Type style,
italic
size, colour, bold print, commands can be embedded
anywhere
in a document. and
When you use these commands there are several points to note: l
The type style ((F)) and italic ((I)) commands are ignored if the NLQ
Type Style switch was held down when power was switched on. l
The bold command ((B))l gives double-strike printing. In draft mode you may prefer to use emphasized printing, which requires a software command or escape sequence. l A line consisting of commands alone prints as a blank line. l Software does not know that these commands are commands, so you cannot trust your software to give you the correct line width. The printed line may be considerably shorter than the line on the screen; the missing space is the space that was occupied by the commands.
One way to handle the last problem is to prepare your document without the commands, then insert them as a final step, with the margins released.
The find, replace, and copy functions of word-processing software can be helpful here.
If you do not use these commands or the panel controls, the printer will print standard-size, black, draft, non-bold, non-italic characters.
The printer supports various commands in addition to the above, such as quadruple-size printing. Most of these other commands consist of the escape code followed by one or more letters or numbers. If your software enables you to place the escape code in your files, or if you were able to define this as a user option during installation, you can also embed these escape sequences. See Appendix B for further details.
After printing the first page of a long job, you may want to pause to check that the printing is correctly formatted. Press the On Line switch, setting the printer off-line. Printing will stop immediately. To resume printing, press the On Line switch again.
If you need to abandon a printing job before it is finished, your software should provide a command for this purpose. Another simple expedient is to switch the printer’s power off.
--
--
36
Chapter 4
USING THE PRINTER
WITH DOS AND BASIC
Although you will probably do most of your printing with the aid of commercial software, at times you will want to employ direct commands or programs of your own. This chapter will give you some ideas. Three subjects are covered: l
Hard-copying the screen l Programming the printer with DOS commands l
Programming the printer with BASIC
HARD-COPYING THE SCREEN (MS-DOS AND PC-DOS)
If your computer has a PRTSC (or PrtSc) key, there is an easy way to get hard copy of the screen. Press the SHIFT and PRTSC keys. The printer will print the current screen contents. The PRTSC key works both at the system command level and while you are running application software.
Normally the PRTSC key prints only text data, but if your DOS system includes a file named GRAPHICS.COM, you can hard-copy graphics dis- plays, by first typing the command:
A>GRAPHICS
You will find that graphics printing takes considerably more time than text printing. See your DOS manual for further information on the
GRAPHICS command.
At the DOS command level, there is also a simple way to have the printer print hard copy continuously, instead of one screen at a time. Press the CTRL key, hold it down, then also press the PRTSC key. If your computer does not have a PRTSC key, press the CTRL and P keys. Nothing visible will happen, but you have just switched on the print-screen function. After this, the printer will hard-copy all text displayed. For example, try typing the directory command:
A>DIR
You will obtain a printed directory.
37
To switch printer output off, press CTRL-PRTSC or CTRL-P again.
Each time you press this key combination, hard copy toggles from on to off or from off to on.
PROGRAMMING THE PRINTER WITH DOS COMMANDS
If your system includes the file PRINT.COM you can use the main
DOS printing command. Simply type the word PRINT followed by the name of the file you want to print. To print a file named example, type:
README.DOC, for
A >PRINT README. DOC
The computer may respond with the following message, asking which printer to use:
Name of list device [PRNI:
If your computer is connected to only one printer, press RETURN to select the default choice (PRN). Printing will begin and the A> prompt will reappear. You can execute other commands or programs while the file is being printed.
A single PRINT command can print two or more files. List the file names consecutively on the same line, or use wild-card characters (* and ?). Each file will be printed starting on a new page. The PRINT command also has control options. For example, you can terminate a printing job in progress with the /T option. (The printer may not stop priming immediately; it may have considerable data stored ahead in its buffer.) For the /T option, type:
A >PRINT/T
See your DOS manual for further information about the PRINT command. If your system does not include PRINT.COM, you can print files by using the PRN device name in COPY or TYPE commands such as the following:
A >COPY README. DOC PRN
A >TYPE README. DOC >
PRN
COPY and TYPE do not permit you to execute other commands while the file is printing. r
If you want a particular type style, print pitch, or right or left margin, you can make these settings from the control panel before you start printing.
See Chapter 2.
If you print from the DOS command level very often, it will be ad- vantageous to create a printer setup file. Then instead of setting margins etc. manually each time, you can complete the setup with a single command from your computer. For example, you can create a file containing printer commands to set the right and left margins, select near letter quality, and select elite pitch. You can find the commands in Appendix B. We suggest the following: l l l
Near letter quality
Elite pitch
Left and right margins
< ESC > “x” “1”
< ESC > “!”
<I>
<ESC> “X” <12> <92>
<ESC> “!” < 1 > is a powerful command that, in addition to selecting elite pitch, cancels unwanted features such as underlining which might be left from previous commands. The angle brackets around the < 1 > indicate character code 1, which is a control code, not the printable digit “1”.
< ESC > “x” < 12 > < 92 > sets the left margin in column 12 and the right margin in column 92. This will give a 6.7-inch, 80-column printed line with a one-inch left margin. (Elite has 12 characters per inch). < 12 > is a control code; < 92 > is the character “\“, as you can verify in Appendix
D.
You may want to place additional commands in this file, such as line spacing and bottom margin commands. Or you may want to create a variety of setup files with a different set of commands in each.
To avoid excess line feeds, you should place the commands on one line in the setup file. You may or may not be able to generate a setup file with word-processing software; it depends on whether your software lets you enter control codes. If your system includes the file EDLIN.COM, however, you can easily create a setup file with the DOS line editor.
An appropriate name for this setup tile would be NLQELITE.DAT.
To use the DOS line editor, type the command EDLIN NLQELITE.DAT, then type the underlined parts of the following display. Press RETURN at the end of each line. Don’t type the symbol “““. This symbol means to hold the CTRL key down while pressing the next key: for example, *V means to type CTRL-V. “C means to type CTRL-C, which indicates the end of the input.
A>EDLIN
New file
NLQELITEVDAT
l:*-V[xl^V[!“VA^V[X-VL\
“V indicates that the following character is a control code. “V[ enters the <ESC > code. <ESC > has character code 27, and “[,’ is the 27th character in ASCII sequence from A. Similarly, ^VA enters the control code < 1 > and h VL enters the control code < 12 > . See your DOS manual if you need further information about EDLIN.
You can now set up the printer by sending it the file NLQELITE.DAT.
To avoid unnecessary logging of commands, switch hard-copy output off
(by pressing CTRL-PRTSC
README.DOC if hard copy is on). in NLQ elite type, give the following
To print the tile two commands:
A>COPY NLQELITE.DAT
A >PRINT README.
DOC
PRN
._
For greater convenience you can make a batch tile that will set up the printer and print any specified file with a single command. To create such a batch file with the name NLQPRINT.BAT, type in the first four lines shown next. *Z means to press the CTRL and Z keys simultaneously. To use this file to print README.DOC, type the fifth line.
A>COPY CON NLQPRINT.BAT
COPY NLQELITE.DAT PRN
PRINT %1
"2
A?NLQPRINT README.DOC
The first above line is a copy command from the CONsole screen to a file named NLQPRINT.BAT. The next two lines are the contents of this file. The %l is a dummy parameter: whatever file name you type after
NLQPRINT will be substituted for %l and printed.
PROGRAMMING THE PRINTER WITH BASIC
As an example of programming the printer in Microsoft BASIC, we have listed the program for the IBM-PC that printed the sample on the foldout inside the back cover. This program runs in the printer’s Standard mode (DIP switch l-6 ON).
-
-.
_
-
40
-
You will note that this program avoids the printer’s double-parenthesis commands. To change colours, for example, it uses the escape sequence
E$; “r”; CHR$(n), where E$ is predefined as CHR$(27), instead of the equivalent command ((C))n. The double-parenthesis commands are great for embedding in documents, but they are less convenient in programs. In their simplest form they cannot be listed; instead of listing them, the printer executes them.
1000 ’ Set control
1010 E$-CHR$(27)
1020 D$-E$+“xO”
1030 N$-E$+“xl”
1040 C$=E$t”kO”+N$
1050 S$-E$+“kl”+N$
1060 Ol$-E$t”k2”tN$
1070 02$-E$t”k3”+N$
1080 H$=CHR$ (9)
1090 P$-E$+“P”
1100 ’ Start printing
1110 WIDTH “LPTl : ‘I. 255
1120 LPRINT
1130 LPRINT
1140 LPRINT
1150 LPRINT
1160 LPRIN’T
1170 LPRINT
1180 LPRINT
1190 LPRINT
1200 LPRINT
1210 LPRINT
1220 LPRINT
1230 LPRINT
1240 LPRINT
1250 LPRINT
1260 LPRINT
1270 LPRINT
1280 LPRINT
1290 LPRINT
1300 LPRINT
1310 LPRINT
1320 LPRINT
1330 LPRINT
1340 LPRINT
1350 LPRINT
1360 LPRINT
1370 LPRINT
1380 LPRINT
1390 LPRINT
1400 LPRINT
H$;02$;”
E$ ; “4” ; codes
E$; “h”; CHR$ (0)
C$; “Colour
‘Escape code
‘Draft quality
‘Near letter
‘Courier quality
‘Sanserif
‘Orator with small capitals
‘Orator with lower case
‘Horizontal tab
‘Pica pitch
E$;“D”iCHR$(3) ;CHR$(20) ;CHR$(O) ‘Set HT
C$ ; “Type sty 1 es are : ”
H$;D$;“Draft
H$;C$;“Courier
H$;S$; “Sanserif
H$;Ol$;“Orator with lower case characters,”
H$ ; 02$ ; “and “;Ol$; “italics
H$ ; E$ ;
E$ ; “~0”
“M”
H$;CHR$(15);
P$;
CHR$(18)
H$;E$; “~1”;
“Proportional characters,
:LPRINT :LPRINT characters,” characters, with small
‘Select printing: italics pitch,“;
; “Elite pitch, ”
‘Cancel
‘Select
”
”
C$;“all
E$ ; “5”
“;D$; “styles.
‘Cancel
C$; “Print pitches
H$;P$;“Pica
” italics are: ”
P$; “Condensed pica pitch, ‘I;
” capitals,
“;S$; “for
‘Condensed pitch
H$ ; E$ ; “M” ; “Condensed elite pitch,“;
‘Pica pitch condensed proportional
‘Cancel proportional
H$ ; E$ ; “Wl ” ; “Expanded,
E$ ; “~1” ; “Double-height, print
” ; E$ ; “WO” ;
“;E$; “~0”
H$;E$;“h”;CHR$(l);“Double-sized,”
H$ ; E$ ; “h” ; CHR$ (2 1 ; “Quad-sized. ” ; or II
‘I; spacing spacing for all pitches,” spacing
41
1410 LPRINT
1420 LPRINT H$;E$;"wl";E$;"r";CHR$(l);"RED, 'I;
1430 LPRINT E$;"r";CHR$(2);"BLUE, 'I;
1440 LPRINT E$;"r";CHR$(3);"VIOLET, ";
1450 LPRINT E$;"r":CHR$(4);"YELLOW,"
1460 LPRINT
1470 LPRINT H$;E$;"r";CHR$(5);"ORANGE, ";
1480 LPRINT E$;"r";CHR$(61;"GREEN, ";
1490 LPRINT E$;"r";CHR$(O);"and
BLACK."
1500 LPRINT E$;"wO"
1510 LPRINT E$:"Q";CHR$(47) 'Set right margin
1520 LPRINT C$;"Various line and character spacings:"
1530 LPRINT E$;"al"
'Center text
1540 FOR I-l TO 7
1550 LPRINT E$;"A";CHR$(I); 'Set line spacing
1560 LPRINT E$;" ";CHR$(I); 'Increase character space
1570 LPRINT E$;"r";CHR$(I-1); 'Select colour
1580 LPRINT "THE SPACING HAS CHANGED"
1590 NEXT I
1600 FOR I-7 TO 1 STEP -1
1610 LPRINT E$;"A";CHR$(I);
1620 LPRINT E$:" ";CHR$(I);
1630 LPRINT E$;"r";CHR$(I-1);
1640 LPRINT "THE SPACING HAS CHANGED"
1650 NEXT I
1660 LPRINT E$;"aO"
'Left justify
1670 LPRINT E$;"3";CHR$(36); 'Set l/6" line spacing
1680 LPRINT E$:" ";CHR$(O); 'Normal character space
1690 LPRINT :LPRINT
1700 LPRINT C$:"Other features:"
1710 LPRINT H$;E$;"E";"Emphasized";E$;"F";", 'I;
1720 LPRINT E$;"G";"Double-strike";E$;"H";","
1730 LPRINT H$;E$;"-l";"Underlining";E$;"-0";". 'I;
1740 LPRINT E$;"~l";"Overlining";E$;"~O";"."
1750 LPRINT H$;E$;"SO";"SUPERSCRIPT";E$;"T";", 'I;
1760 LPRINT E$;"S1";"SUBSCRIPT";E$;"T";","
1770 GOSUB 2130
1780 LPRINT H$;C$;"Download characters: ";
1790 LPRINT D$;E$:"%l":
Select download character
1800 FOR I-l TO 7
1810 LPRINT E$;"r";CHR$(I-1 1
1820 LPRINT CHR$(60);
'Change colour
Print download
character
1830 NEXT I
1840 LPRINT E$;"%O";
Select normal character
1850 GOSUB 2230
1860 LPRINT C$;E$;"%l";
'Select download character
1870 FOR I-1 TO 7
1880 LPRINT E$;"r";CHR$(I-1);
'Change colour
1890 LPRINT CHR$(60):
'Print download character
1900 NEXT I
42
-
-
1910 LPRINT E$;"r";CHR$(O);
1920 LPRINT E$;"%O"
1930 LPRINT H$;C$;"Dot
'Select graphics:"; normal character
1940 DIM LOGO$(4)
1950 RESTORE 2450
1960 FOR ROW-1 TO 4
1970 FOR COL-1 TO 100
1980 READ DG
1990 LOGO$(ROW)=LOGO$(ROW)+CHR$(DG)
2000 NEXT COL
2010 NEXT ROW
'Set 8/72" line spacing 2020 LPRINT E$;"A";CHR$(8);
2030 FOR ROW-1 TO 4
2040 LPRINT H$;H$;
2050 LPRINT E$;"*";CHR$(O);
2060 LPRINT CHR$(lOO);CHR$(O);
2070 LPRINT LOGO$(ROW)
2080 NEXT ROW
2090 LPRINT E$;"O"
'Select
'Initialize normal density printer
2100 END
2110 '
2120 ' SUBROUTINES
2130 ' Define draft download character
2140 LPRINT D$;E$;":"; CHR$(O);CHR$(O);CHR$(O);
2150 LPRINT E$;"&";CHR$(O);CHR$(60);CHR$(60);
2160 RESTORE 2340
2170 FOR M-O TO 11
2180 READ MM
2190 LPRINT CHR$(MM):
2200 NEXT M
2210 RETURN
2220 *
2230 + Define
NLQ download character
2240 LPRINT C$;E$;":";
CHR$(O);CHR$(O):CHR$(O);
2250 LPRINT E$;"&";CHR$(O);CHR$(~OJ;CHR$(~O);
2260 RESTORE 2380
2270 FOR M-O TO 46
2280 READ MM
2290 LPRINT CHR$(MM);
2300 NEXT M
2310 RETURN
2320 '
2330 ' DATA
2340 ' Draft download
2350 DATA 139,124, character data
0, 66,
4, 64, 36, 16,
2, 16
2360 DATA 12.
0
2370 '
2380 ' NLQ download character
2390 DATA 128, 14, 16. 38. data
1. 70,
1, 70, 0,126
2400 DATA 0. 0. 70.
0, 38. 0, 22, 9.
6, 9
43
2410 DATA
6. 8, 6. 0, 28, 32, 14, 64. 14.
2420 DATA 14. 0,124, 0. 0, 12, 64, 12, 32,
2430 DATA 16, 14. 0. 14, 0, 12. 0
0
14
2440 '
2450 ' Dot graphics data
2460 DATA 0, 0, 0. 0, 1. 3. 7. 7, 7, 15
2470 DATA 14, 14, 14, 14. 14. 7, 7. 3. 3, 15
2480 DATA 15. 15, 0, 0, 0, 0. 0. 0, 0, 0
2490 DATA 0. 1, 3. 3. 7. 7. 15, 14. 14. 14
2500 DATA 14, 15, 7, 7, 7, 3. 0, 0. 0, 0
2510 DATA
0, 0. 0, 0, 0, 0, 0, 0. 0, 0
2520 DATA 0. 0. 0. 0. 0. 0, 0. 0, 0, 0
2530 DATA 1. 3, 7. 7. 7, 15, 14. 14, 14. 14
2540 DATA 14. 7. 7. 3. 3, 15, 15. 15, 0, 0
2550 DATA
0. 0. 0. 0, 0, 0. 0, 0. 0. 0
2560 DATA
0, 0, 60,255,255,255,255.255,143, 15
2570 DATA
7. 7. 7. 7. 3. 3, 3,131,193,241
2580 DATA 240,240, 0, 0. 0. 0. 0, 0. 0. 1
2590 DATA 121,253,253,255.255,255.143. 7. 7, 7
2600 DATA 31,253,252.248.248.240.192. 0, 7, 15
2610 DATA 31, 31, 15, 7, 3. 0. 0. 0. 0. 0
2620 DATA 0, 0. 0, 0. 0. 0. 0. 0, 60,255
2630 DATA 255,255,255.255.143. 15. 7, 7. 7. 7
2640 DATA 3. 3. 3,131,193.241.240,240, 0. 0
2650 DATA 0, 0, 0, 0, 0. 0, 0. 0. 0, 0
2660 DATA
0, 31. 31. 3,129,128,192.192,192.192
2670 DATA 192,224,224,224,224,240.255.255,255,255,255
2680 DATA 255,127. 0. 0, 0, 0, 63,127,255,255
2690 DATA 255,255,193.128,128.128~192,224.240
2700 DATA 252,255,255,255.127, 63, 31, 7. 7, 31
2710 DATA 254,252,248.224,128. 0. 0. 3, 7. 7
2720 DATA
7, 3. 0, 0, 0. 0, 0, 31, 31, 3
2730 DATA 129,128,192,192.192,192,192~224~224~224
2740 DATA 224,240,255,255.255.255,255,127, 0, 0
2750 DATA
0. 0, 0, 0. 0. 0. 0, 0, 0, 0
2760 DATA
0,248,248,240,224,224,1~2,112, 56, 56
2770
DATA 56, 56, 56,120.120.240.240.224.224.192
2780 DATA 128, 0, 0, 0. 0, 0,192,224,240,240
2790 DATA 240,248,248,248,120.120~ 56. 56, 56. 56
2800 DATA 48,112,224,224,224,224,240.240.240,248~248
2810 DATA 120.120, 56. 56, 56, 56.120.240.224.224
2820 DATA 192,128. 0. 0. 0, 0, 0,248,248,240
2830 DATA 224.224.112.112. 56. 56, 56, 56, 56.120
2840 DATA 120,240,240,224.224,192.128~ 0, 0, 0
2850 DATA 0. 0, 0. 0. 0, 0. 0, 0. 0, 0
How the program
works
This begins
BASIC
string
beginning
Appendix B.
44
-
.-
-
-
-
The WIDTH “LPTl:” 255 statement in line 1110 means infinite line width. It prevents the IBM-PC from inserting unwanted carriage returns and line feeds in graphics data.
Actual printing begins in line 1120. Using the preassigned commands, the program prints samples of its different type styles, including a line showing all styles in italics, followed by samples of the print pitches, then some double-size, quadruple-sized, and colour printing.
Next comes the central attraction of the program: a line of text printed fourteen times in expanding and contracting loops to give a multicoloured barrel effect. The work is done by five printer commands: a command setting the right margin (line 1510); a centering command (line 1530); a command to vary the line spacing (lines 1550 and 1610); a command to micro-adjust the space between characters (lines 1560 and 1620); and a colour command
(lines 1570 and 1630).
Next the program returns to normal spacing and gives a demonstration of the printer’s word-processing abilities: bold printing, underlining, sub- scripts, etc.
The row of automobiles in the next printed line is created by downloading two new character patterns, which are printed in place of the character “ < ”
(character 60). Details can be found in Appendix C.
The final part of the program uses dot graphics to print an “S&S” logo.
The dot pattern of the logo was originally laid out on graph paper, then converted to the data in lines 2460 to 2850 with the help of a calculator.
Each number represents eight vertical dots. (See “Graphics Commands” in
Appendix B for details. See also Figure C-l in Appendix C.)
The pattern is printed in four rows, each eight dots high and 100 dots wide. Lines 1940 to 20 10 read the dot data into a string array variable named
LOGOS. Line 2020 sets the line spacing to 8/72 inch so that the rows will connect vertically. The loop in lines 2030 to 2080 does the printing in four passes of the print head.
This program can also be run in IBM mode (DIP switch l-6 OFF) if you change a few of the lines as shown below to allow for differences in some of the commands. You will get a cylinder instead of a barrel effect, because the IBM mode does not have any command to micro-adjust the character spacing.
Modifications for IBM mode:
1090 P$-CHR$(lB)
1190 LPRINT CHR$(28);“4”;
1220 LPRINT CHR$(28) ;“5”;
‘Pica
‘Select pitch italics
‘Cancel italics
1280 ’ LPRINT H$ ; E$ ; “M” ; “Condensed elite pitch, I’:
45
1510 LPRINT CHR$(28);"Q";CHR$(47) 'Set right margin
1550 LPRINT E$;"A";CHR$(I);E$;"2"; 'Set line spacing
1560 ' LPRINT E$;" ";CHR$(I); 'Increase character space
1610 LPRINT E$;"A";CHR$(I);E$;"2";
1620 ' LPRINT E$;" ";CHR$(I);
2020 LPRINT E$;"A";CHR$(8);E$;"2"; 'Set 8/72" spacing
2140 LPRINT D$;CHR$(28);":";CHR$(O);CHR$o;CHR$(O~;CHR$(O);
2240 LPRINT C$;CHR$(28);":";CHR$(O);CHR$(O);CHR$(OJ;
2250 LPRINT E$;"&";CHR$(O);CHR$(6O~;CHR$(6O~;
-
46
C
hapter 5
MAINTENANCE
AND TROUBLESHOOTING
Subjects covered in Chapter 5 include -
l
Cleaning the printer l
Replacing the ribbon l
Replacing the print head l
Troubleshooting
Dust and heat will make any mechanism wear more quickly. The best maintenance is preventive, and the first step is correct location of the printer.
This is covered in greater detail in Chapter 1, but in general an environment comfortable for humans is best for both the computer and the printer.
CLEANING THE PRINTER
Cleaning the printer regularly will prolong its service life. Use a damp cloth on the exterior every week or so. For stubborn dirt, you may moisten the cloth with alcohol or water containing a mild detergent, but be careful not to spill any liquid into the interior of the printer.
Use a soft brush to remove paper dust and lint from the interior. A small vacuum cleaner can also make this task easier, but be very careful not to bend or injure any electronic parts or wiring. The printer contains delicate electronic parts, so only clean those places where you have easy access.
REPLACING THE RIBBON
The printer uses an endless-type colour ribbon cartridge in which the ribbon is recycled automatically. to replace the ribbon cartridge.
When the print becomes faint, it is time
To remove the old cartridge, take off the top cover and press the ribbon release catch toward you with your index finger. Once the ribbon is free of the print head, the cartridge lifts out easily. To fit the new cartridge, guide the ribbon between the print head and the metal platen guard, then set the cartridge in place on the carriage and press down lightly. The release catch will lock automatically. See Figure 5-1.
47
REPLACING THE PRINT HEAD
The dot matrix print head has a life of about 200 million dots, or years of normal use. When printing is too light even after replacing the ribbon, you’ll know that the print head has reached the end of its service life. To replace the print head, follow the procedure below.
As you remove the old print head, note carefully how the cable is threaded, so that you can thread the new cable in the same way. gear on the carriage. using the printer, wait awhile so that the print head can cool off.
1. Turn power OFF and unplug the power cord.
2. Remove the top cover and ribbon cartridge.
3. Move the print head carriage toward the right until you can see the connector cover. Remove the connector cover and pull the cable free from the connector.
4. Remove the gear cover by pushing the fulcrums on both sides. At this time. take care not to lose the spring.
5. Unscrew the two screws that hold the print head in place and set them aside.
48
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
3
-
__
6. Disengage the cable from the tabs holding it down, then remove the print head.
7. For easy installation of the new print head, move the carriage toward the left end of the rail.
8. Place the new print head on its support, seating it on the two pins.
9. Thread the new cable the same way as the old, securing it under the tabs on the print head carriage.
-
Figure 5-2. Replacing the print head
10. Plug the cable into the connector, inserting it as far as it will go.
11. Fasten the print head down with the two screws.
12. Replace the spring and the gear cover in place.
13. Move the carriage back toward the right and replace the connector cover.
Slide the connector cover to the left until it locks into place.
14. Replace the ribbon cartridge and top cover, and plug the power cord back in.
49
a I
-
TROUBLESHOOTING
W If the printer doesn’t print:
l
Check the Power and On Line indicators. Both must be on. l
Check that the interface cable is securely plugged in at the computer and printer ends. l
Make a test print. (Turn power OFF, hold the On Line or Paper Feed switch down, then turn power ON.) If the test print succeeds, the problem is not with the printer; try a different printing command, or try using a different cable. If the test print fails, have the printer checked by a qualified serviceman. l
Turn power off, take off the rear cover, remove the paper, and reload the paper as described in Chapter 1. l
Make sure the paper is placed so that it feeds into the printer straight. l
Have a qualified serviceman remove any label paper that adheres inside the printer. Do not attempt to remove it yourself. l
Avoid using label paper with any exposed adhesive areas. l
Check that the ribbon cartridge is installed correctly. If the ribbon cartridge is old, replace it. l
Adjust the printing gap. See Chapter 1. l
If ribbon replacement or gap adjustment does not solve the problem, replace the print head.
H If al text is printed on the same line:
l
Set DIP switch l-8 to the OFF (front) position. l
Set DIP switch l-8 to the ON (back) position.
w If you can’t print to the end of the page:
l
This is normal. The printer’s paper-out detector detects the end of the paper and stops printing about an inch above the end. l
You can make the printer ignore the paper-out detector by setting DIP switch I-5 to the OFF (front) position, or by using the < ESC > “8” printer command.
-
-
-
-
H If the printed characters don’t match the characters on the screen:
l Check DIP switches 2-2 to 2-4. When these switches are not all ON (back), an international character set is selected and some ASCII symbols are changed to other characters. See Appendix D. l
Some software is not able to display international characters on the screen.
If you use an international on the keyboard. character set you may want to paste labels l If you are using the IBM mode, check DIP switch l-7. Some international characters and symbols do not print when this switch is OFF (front).
rectly:
l Check that the setting of DIP switch l-6 matches the type of printer your software supports: ON (back) for Star or Epson; OFF (front) for IBM. l A few commands are mutually exclusive. For example, you cannot get emphasized condensed printing.
w If you have problems with horizontal tabulation:
l Don’t change the margins after setting tabs. l
Don’t change the print pitch after setting tabs. The physical positions of the tab stops do not adjust to the new print pitch. l If you are using commercial software, check that it supports this printer, or a Star, Epson or IBM printer, and that DIP switch l-6 is set correctly:
ON (back) for Star or Epson; OFF (front) for IBM. l
Use a hex dump to verify the codes the printer is receiving. See the graphics command descriptions in Appendix B. Some computers insert unwanted commands (such as carriage returns and line feeds) in graphics data, or change the values of certain codes. l BASIC programs may require a WIDTH statement. Check your BASIC manual.
w If you have problems with download characters:
l Check that DIP switch 2-1 is OFF (front). l
Make the same checks as for graphics problems.
MEMO
-
-
-
-
-
_-
-
-
-
Appendix
A
TECHNICAL SEC/FICA TIONS
Printing method
Printing speed
Printing direction
Print head
Ribbon
Paper feed
Paper feed speed
Serial impact dot matrix
120 characters per second (draft pica)
30 characters per second (NLQ pica)
Draft: bi-directional
(selectable), logic seeking or unidirectional
NLQ and graphics: unidirectional, logic seeking
9 Pins
Life: 200 million dots
Black/blue/red/yellow fabric ribbon car- tridge
Life: 1 million draft characters/colour
Friction and push-tractor feed
Semiautomatic sheet loading
2.7 inches/second (during page feed)
Interface
Data buffer
Centronics-compatible,
TTL-level
7 or 8 bit,
8K bytes when not used for download characters l-Line buffer when using download
Epson LX-800 and IBM Proprinter II
Emulation modes
w Switches and indicators
Power switch
Control panel
Rocker switch
4 Membrane switches, 10 LED indicators
DIP switches
Special features
w Co/our Printing
Colours
12 pins
Panel pitch/style lock-in
Forward and reverse micro-feed
Paper parking
Hexadecimal dump
Black, red, blue, violet, yellow, orange, green
Character matrix
Bit-image graphics
9 x 9 dots (Draft pica)
18 x 23 dots (Courier and Orator pica)
18 x 18 dots (Sanserif pica, elite)
12 x 11 dots (IBM block graphics, pica)
18 x 19 dots (Courier and Orator elite)
18 x 12 dots (Condensed pica)
18 x 10 dots (Condensed elite)
8 x 480 dots at 60 dpi (Single density)
9 x 480 dots at 60 dpi (Single density)
8 x 576 dots at 72 dpi (Plotter mode)
8 x 640 dots at 80 dpi (CRT I)
8 x 720 dots at 90 dpi (CRT II)
8 x 960 dots at 120 dpi (Double density)
9 x 960 dots at 120 dpi (Double density)
8 x 960 dots at 120 dpi (High speed)
8 x 1920 dots at 240 dpi (Quadruple den- sity)
54
Standard character set
IBM character set
96 ASCII characters
244 characters (ASCII, international characters, symbols, block graphics)
Download characters
Max. 192 (draft) or 78 (NLQ)
International character sets
14 sets (USA, France, Germany, England,
Denmark I, Denmark II, Sweden, Italy,
Spain I, Spain II, Japan, Norway, Latin
America, Denmark/Norway)
-
-
-
.-
-
-
-
Draft type styles
NLQ type styles
Extra-large characters
Print pitches
Line spacing
Column width
Draft, draft italic
Courier, Sanserif, Orator (with lower case or small capitals), and italic versions of these
Double width, double height, double width and height, quadruple width and height
Pica (10 cpi)
Elite (12 cpi)
Condensed pica (17 cpi)
Condensed elite (20 cpi) (Standard mode only)
Proportional spacing can be selected for each of the above l/6 inch (standard) l/8, n/72, or n/216 inch (programmable)
8 inches
Pica: 80 characters
Elite: 96 characters
Condensed pica: 137 characters
Condensed elite: 160 characters
Single sheets
Fanfold paper
140 to 216 mm (5.5 to 8.5 inches) wide,
0.07 to 0.10 mm thick
102 to 254 mm (4 to 10 inches) wide
0.07 to 0.10 mm thick (single-ply)
Max. 0.28 mm thick (3-ply)
Max. 3 (original + 2 copies)
Number of copies
w Dimensions and Weight
Dimensions
Width 384 mm (15.1 inches)
Depth 287.5 mm (11.3 inches)
Height 108 mm (4.3 inches)
Weight
4.7 kg (10.3 pounds)
H Electrical Speciiications
Line voltage 120 VAC + 10%
Line frequency
Power consumption
Insulation resistance
Dielectric strength
Operating temperature
Operating humidity
Storage temperature
Storage humidity
(varies according to the country of pur- chase)
50 or 60 Hz
Typ. 30 W, Max. 60 W
10 megohms between AC power line and chassis
Withstands 1 kVAC rms at 50 or 60 Hz between AC power line and chassis for at least 1 minute
-
-- -‘-
-
-
-
10% to 80% (no condensation)
10% to 95% (at 40°C) (no condensation)
Automatic sheet feeder
W Interface Sianals
kn
Signal
N0.l $
I Name
1 I?XIzBE
? InAT, 1
DiEdiOD
IN
TNT
Function
Goes from High to Low (for at least 0.5 microseconds) when data are valid.
-.AA.-.
InAl-AC
-_.
I TNT
Eight-bit character data. DATA8 is the most significant bit; DATA1 is the least
1 significant bit. High is logic 1 and Low is
9
10
DATA8
XX
IN
OUT 5-Microsecond Low pulse acknowledges receipt of data.
56
Pin No.
11
Signal
Name
BUSY
Direction
OUT
Function
Low when the printer is ready to accept
MEMO
. .
PRINTER CONTROL COMMANDS
This appendix arranged by function. describes
The the printer’s name of each control command commands. is followed one below:
The commands are by a table like the
Mode
Both
L
ASCII
< ESC >
<ESC>
‘lx”
-X”
“1”
<I>
Decimal
27 120 49
27 120 1
Hexadecimal
IB 78 31
1B 78 01
Mode:
Indicates
Std.
IBM
Both the mode
Standard in which mode (DIP the command switch is recognized.
1-6 on)
IBM mode (DIP switch l-6 off)
Both standard and IBM modes
ASCII:
Decimal:
Hexadecimal:
Parameters such as n.
Indicates characters
Gives the ASCII coding of the command. are enclosed in pointed brackets:
Control
For example,
< 0 > means character
Gives the command the command code in decimal
0. in hexadecimal for which values must be supplied character character are indicated codes. codes. by italic letters
Many commands have alternative forms. Some commands use <ESC>
(character code 27) in Standard mode. Other commands have mode parameters and that
< FS > (character can be specified code as either
28) in IBM character codes or digit characters, like the parameter 1 in the sample command above.
FONT CONTROL COMMANDS
Select draft quality characters
Mode ASCII Decimal
40 40 70 41 41 57
Hexadecimal
28 28 46 29 29 39
6‘ ( 31 “ ( 1, “F” “)” “)”
“9”
Both <ESC>
“X”
I I
<ESC>
IBM
“X”
< ESC “I”
I
< ESC > “I”
“0” co>
“0”
co>
27 120 48
I 27 120
0
1 27 73 48
127 73 0
IB 78 30
1 1B 78 00
1 IB
49 30
IIB 49 00
Changes from near letter quality to draft quality. Ignored
Type Style switch was pressed during power-up. if the NLQ
I
Select draft elite characters
Mode
IBM
ASCII
<ESC>
< ESC >
“I”
“I”
Cl>
Decimal
21 13 49
21 13 1
Hexadecimal
IB 49 31
1B 49 01
Changes to draft quality characters with elite pitch (12 cpi). Ignored if the NLQ Type Style switch was pressed during power-up.
I
Select NLQ characters
Mode
I
Both
I
ASCII
<ESC> ‘7%” “ 1 ”
Decimal
27 120 49
Hexadecimal
1B 78 31
<ESC>
---
3” <I>
I
27 120
1
I
1B 78 01
Changes from draft quality to near letter quality. The initial NLQ type style is Courier unless a different style has been selected by a preceding command. Ignored if the NLQ Type Style switch was pressed during power-up.
I
Select NLQ type style
Mode
Both
ASCII
<ESC> “k” n
Decimal
27 107 n
Hexadecimal lB6B n
Selects an NLQ type style according to the value of n. In draft mode, this command remains dormant and takes effect later when NLQ is se- lected by < ESC > “x” 1. Ignored if the NLQ Type Style switch was pressed during power-up. n Tvne style
0 Courier (initial value)
1 Sanserif
2 Orator with small capitals
3 Orator with lower case
Select Courier characters
Mode ASCII
Both “(” “(”
[BM
< EfjC >
< ESC >
< ESC >
< ESC >
‘,F”
“1”
“)”
“3”
“I” <3>
“I” “7”
“I” <7>
“)”
Decimal Hexadecimal
“0” 40 40 70 41 41 48 28 28 46 29 29 30
27 73 51
21 73 3
IB
IB
49
49
33
03
21 73
55
2-l 13 7
IB
1B
49
49
31
07
Changes to the Courier NLQ font. Ignored if the NLQ Type Style switch was pressed during power-up.
60
-
.-
-.
--
-
Select Sanserif characters
Mode
Both
IBM
ASCII
“(” “(”
c ESC > cESC>
“F”
“I”
“)”
“2”
<2>
“)”
Decimal Hexadecimal
“ 1” 40 40 70 41 41 49 28 28 46 29 29 31
27
73 50 1B 49 32
27
73 2 IB 49 02
Changes to the Sanserif NLQ font. Ignored if the NLQ Type Style switch was pressed during power-up.
Select Orator characters with small capitals
Mode
Both
ASCII Decimal Hexadecimal
“(” “(” “F” “)” “)”
“2” 40 40 70 41 41 50 28 28 46 29 29 32
Changes to the Orator with samll captitals NLQ font, Ignored if the
NLQ Type Style switch was pressed during power-up.
Select Orator characters with lower case
Mode
Both
ASCII
“(” “(7. “F” “)” “)”
Decimal Hexadecimal
“3” 40 40 70 41 41 51
28 28 46 29 29 33
Changes to the Orator with lower case NLQ font. Ignored if the NLQ
Type Style switch was pressed during power-up.
Select italic characters
Mode
Both
Std.
IBM
ASCII
“(” “(”
<ESC>
<FS>
“I”
“4”
“4”
‘. ) ” “ ) ”
Decimal Hexadecimal
“1” 40 40 73 41 41 49
28 28 49 29 29 31
27 52
28
52
1B 34
1c 34
Causes subsequent characters to be printed in italics. Ignored if the NLQ
Type Style switch was pressed during power-up.
Select upright characters r
Mode
Both
Std.
IBM
ASCII
“(” “(”
<ESC>
< FS >
“I” “)” “)”
“0”
Decimal Hexadecimal
40 40 73 41 41 48 28 28 49 29 29 30
27 53
28 53
1B
1c
35
33
Stops italic printing and causes subsequent characters to be printed up- right. Ignored if the NLQ Type Style switch was pressed during power-up.
61
Emphasized pr Ming
1 Mode 1 ASCII
I
Both <ESC> “E”
I
Decimal
21 69
I
Hexadecimal
IB 45
Causes subsequent draft characters to be emphasized by adding extra thickness to vertical strokes.
I
Cancel emphasized printing
IModel
I
Both
ASCII
<ESC> “F”
Cancels emphasized printing.
Double-strike printing
I
Decimal
27 70
I
Hexadecimal
1B 46
I
I
Mode
Both
ASCII
“ 3, ‘5 31
( (
<ESC>
“B”
“G”
“)” “)” “1”
Decimal
Hexadecimal
40 40 66 41 41 49 28 28 42 29 29 31
27 71 1B 47
Causes subsequent characters to be printed in double-strike mode with a slight vertical paper motion in between, causing a thickening of hori- zontal strokes.
For bold print. use of double-strike is recommended in NLQ mode, and combined use of emphasized and double-strike is recommended in draft mode.
Double-strike cannot be used with superscripts or subscripts.
Cancel double-strike printing
Mode
Both
ASCII
“ 3,
(
<ESC>
“B” “)” “)”
“H”
Cancels double-strike printing.
Decimal Hexadecimal
“0” 40 40 66 41 41 48 28 28 42 29 29 30
27 72 IB 48
Start underlining
Mode
Both
ASCII i ESC >
< ESC >
“-”
“1”
“-” <I>
Decimal
27 45 49
27 45 1
Hexadecimal
IB 2D 31
1B 2D 01
Causes subsequent characters to be underlined. IBM block graphics characters and spaces skipped by horizontal tabulation are not underlined.
62
Stop underlining
Mode
Both
ASCII
< ESC >
< ESC >
“_”
“-”
Stops underlining.
“0” co>
Start overlining
Decimal
27
45 48
27 45 0
Hexadecimal
IB 2D 30
1B 2D 00
Mode
Both
ASCII
< ESC >
<ESC>
“-” “1”
“p” < 1 >
Decimal
21 95 49
27
95 1
Hexadecimal
1B 5F 31
1B 5F 01
Causes subsequent characters to be overlined. Spaces skipped by hori- zontal tabulation are not overlined.
Stop overlining
Mode
Both
ASCII
<ESC >
<ESC>
“_X
Stops overlining.
“0”
co>
Super script
Mode
Both
Decimal
27 95 48
27 95 0
Hexadecimal
1B 5F 30
1B 5F 00
ASCII
<ESC>
<ESC>
“S” “0”
Decimal
27 83 48
27 83 0
Hexadecimal
1B 53 30
“S” co>
1B 53 00
Causes subsequent characters to be printed as superscripts. Does not change the character pitch.
23” Cl>
27 83 49
27
83
1B 53 31
1B 53 01
Causes subsequent characters to be printed as subscripts. Does not change the character pitch.
Cancel superscript or subscript
Mode
Both
ASCII
<ESC> “T”
Decimal
27 84
Hexadecimal
1B 54
Stops printing superscripts or subscripts and returns to normal printing.
COLOUR PRINTING COMMANDS
Select printing co/our
IModel
Both
ASCII
.‘
(
>3
.‘(” ‘Lc.> “)” “)” n
1 Decimal I Hexadecimal
40 40 67 41 41 n
28 28 43 29 29 n
27 114 n
1B 72 n
I
<ESC> “r” n
Select the printing colour according to the value of n. Ignored if a colour ribbon is not installed. The value of n may be either the character code or the digit character. n
< 0 > or “0”
<I> or”1”
<
2
> or
“2”
< 3 > or “3”
< 4 > or “4”
< 5 > or “5”
<
6
> or
“6”
Colour
Black
Red
Blue
Violet
Yellow
Orange
Green
CHARACTER SET COMMANDS
Select standard character set
Mode ASCII
< ESC >
Sld L
< ESC >
“t”
“t”
“0” co>
Decimal
27 116 48
27 116 0
Hexadecimal
IB 74 30
IB 74 00
Selects the standard character set. This is the power-up default in Standard mode if DIP switch l-7 is ON. The standard character set cannot be selected in IBM mode.
Select IBM character set
IModel ASCII
Std. .
< ESC >
< ESC >
“t” “ I”
“1” <I>
I
Decimal
27 116 49
27 116 1
I
Hexadecimal
1B 74 31
IB 74 01
Selects an IBM character set (character set #2 unless an <ESC> “7” command has been received). Ignored in IBM mode, since the IBM character set is selected automatically.
I
64
Select IBM character set #7
Mode
Both
ASCII
<ESC> “7”
Decimal
27 55
Hexadecimal
1B 37
Selects IBM character set #l. If the standard character set is currently selected, this command remains dormant and takes effect at the next
< ESC > “t” 1 command. In IBM mode, character set #l is the power-up default if DIP switch 1-7 is OFF.
Select IBM character set #2
Mode
Both
ASCIL
<ESC> “6”
Decimal
27 54
Hexadecimal
1B 36
Selects IBM character set #2. If the standard character set is currently selected, this command remains dormant and takes effect at the next
< ESC > “t” 1 command. In IBM mode, character set #2 is the power-up default if DIP switch 1-7 is ON.
Select international character set
Mode
Std.
IBM
ASCII
‘ESC>
<FS> n n
Decimal
27 82 n
28 82 n
Hexadecimal
1B 52 n
“It”
“R” 1C 52 n
Selects an international character set according to the value of n. n Character set n Character set
0 U.S.A
1 France
2 Germany
3 England
4 Denmark I
5 Sweden
6 Italy
7 Spain I
8 Japan
9 Norway
10 Denmark II
11 Spain II
12 Latin America
13 Denmark/Norway
The first eight of these character sets (from U.S.A. to Spain I) can be selected as power-up defaults by DIP switches 2-2 to 2-4.
Enable printing of a// character codes
Mode
IBM
ASCII
< ESC > “\” nl
n2
Decimal
27 92
nl n2
Hexadecimal
1B 5C
nl n2
Enables printing of all characters in the IBM character set, including those assigned to character codes which are normally considered control codes.
This command remains in effect for the next nl + n2 x 256 characters, where nl and n2 are numbers between 0 and 255.
During this interval no control functions are executed. If a code with no assigned character is received, the printer prints a space.
65
Enable printing of all character codes on next character
Mode
IBM
ASCII
<ESC> ‘LA”
Decimal
27 94
Hexadecimal
IB 5E
This command operates like < ESC > “\” except that it remains in effect for only one character.
Select s/ash zero
Mode
Both
ASCII
<ESC>
<ESCz
‘. - 7. ‘L
S‘-” <I>
Decimal
27 126 49
27 126 1
Hexadecimal
1B 7E 31
1B 7E 01
Causes subsequent zero characters to be overprinted with a slash (S).
Select normal zero
Mode
Both
ASCII
<ESCz
<ESC>
“ - 3, “0”
“N” <o>
Decimal
27 126 48
27 126 0
Hexadecimal
1B 7E 30
1B 7E 00
Causes subsequent zero characters to be printed normally (0), without a slash.
CHARACTER SIZE AND PITCH COMMANDS
Pica pitch
Mode
Std.
IBM
ASCII
<ESC> “p”
Decimal
27 80
Hexadecimal
1B 50
12
<DC2> 18
In Standard mode, changes from elite to pica pitch (10 cpi) or from condensed elite to condensed pica (17 cpi). In IBM mode, changes from either elite or condensed to pica (10 cpi). Ignored if the Print Pitch switch was pressed during power-up.
Elite pitch
IModel
Both
IBM
ASCII
<ESC> c ESC z
“M”
“:”
I
Decimal
27 77
27 58
I
Hexadecimal
1B 4D
1B 3A
In Standard mode, changes from pica to elite pitch (12 cpi) or from condensed pica to condensed elite (20 cpi). In IBM mode, changes from either pica or condensed to elite (12 cpi). Ignored if the Print Pitch switch was pressed during power-up.
I
Condensed printing
Mode
Both
ASCII
<SI >
Decimal
OF
Hexadecimal
<ESC> ISI>
15
27 I5 1B OF
In Standard mode, changes from pica to condensed pica (17 cpi) or from elite to condensed elite (20 cpi). In IBM mode, changes from either pica or elite to condensed (17 cpi). Ignored if the Print Pitch switch was pressed during power-up.
I
Cancel condensed printing
Mode
Both
ASCII
<DC2>
18
Decimal
12
Hexadecimal
In Standard mode, changes from condensed pica to normal pica or from condensed elite to normal elite. In IBM mode, always changes to normal pica. Ignored if the Print Pitch switch was pressed during power-up.
Expanded printing
IModel
Both
ASCII
<ESC>
<ESC>
“W” “1”
“w” Cl>
I
Decimal
27 87 49
27 87 1
I
Hexadecimal
IB 57 31
1B 57 01
Causes subsequent characters to be expanded to double width.
Cancel expanded printing
I
Mode ASCII
<ESC>
Both -
<ESC>
“w” “0”
“W” co>
Decimal
27 81 48
27 87 0
Stops expanded printing and returns to normal width.
Hexadecimal
1B 57 30
1B 57 00
Expanded printing for one line
IModel
Both
ASCII
<so>
<ESC> <so>
I
14
Decimal
27 14
I
Hexadecimal
OE
1B OE
Causes subsequent characters in the current line to be expanded to double width. Characters return to normal width after the next line feed ( < LF > ).
The <DC4>, <VT>, < FF >, and < ESC > “W” 0 commands also cancel expanded printing.
I
Cancel one-line expanded printing
Mode 1 ASCII
Both I <DC4>
I
20
Decimal
I
14
Hexadecimal
Stops one-line expanded printing set with < SO > or < ESC > < SO >
Does not cancel < ESC > “W” 1.
Select proportional spacing
Mode
Both
IBM
ASCII
< ESC >
<ESC>
<ESC>
“1”
<I>
“p” <I>
Decimal
21 112 49
27 112
27 80
1
1
Hexadecimal
1B 70 31
1B 70 01
1B 50 01 spaced. Ignored if
IBM
Causes subsequent characters to be proportionally the Print Pitch switch was pressed during power-up.
Select fixed spacing
?
Mode ASCII
< ESC > “0”
Both
<ESC> co>
<ESC> “p” co>
Decimal
27 112 48
27 112 0
27 80 0
Hexadecimal
1B 70 30
1B 70 00
1B 50 00
Causes subsequent characters to be printed with fixed character spacing.
Ignored if the Print Pitch switch was pressed during power-up.
Select master print mode
Mode
Both
ASCII
<ESC>
“,V n
Decimal
27 33 n
Hexadecimal
IB 21 n
Selects a combined print mode according to the value of n. The value of n is the sum of the values given below for the desired characteristics.
Examples: n = 1 gives elite; n = 9 (1 + 8) gives emphasized elite; n
= 137 (1 + 8 + 128) gives underlined emphasized elite.
Function
Underline
Italic [*l]
Expanded
Double strike
Emphasized
Condensed [*2]
Proportional [*2]
Elite [*2] n value
128
64
32
16
8
4
2
1
[*I] Ignored if the NLQ Type Style switch was pressed during power-up.
[*2] Ignored if the Print Pitch switch was pressed during power-up.
68
Increase character spacing
Mode
Std.
ASCII
<ESC> “” n
Decimal
27 32
n
Hexadecimal
1B 20
n
Increases the space between characters by n/240 inches, where n is a number from 0 to 127. Used in microjustification.
Select double or quadruple size
Mode
Both
ASCII
<ESC> “h”
n
Decimal
27 104
n
Hexadecimal
1B 68
n
Selects the size of subsequent characters as shown below. Extra-high characters align along the cap-line of normal characters, with the base line temporarily moving down. Line spacing is temporarily doubled when
n = 1, 5 or 6 and quadrupled when n = 2. To print correctly when n
= 3,4, 5 or 6, set the line spacing to 24/2 16 (l/9) of an inch with < ESC >
“3” < 24 > , and print the same characters twice, upper half on one line, lower half on the next. For accurate alignment of the two halves, select unidirectional printing with < ESC > “U” < 1 > .
n Effect
0 Normal size
1 Double-high, double-wide
2 Quadruple-high, quadruple-wide
3 Double-high, double-wide (Lower half only)
4 Double-high, double-wide (Upper half only)
5 Quadruple-high, quadruple-wide (Lower half only)
6 Quadruple-high, quadruple-wide (Upper half only)
Print double-height characters
Mode
Both
ASCII
<ESC>
<ESC>
“W” “1”
“W”
<I>
Decimal
27 119 49
27 119 1
Hexadecimal
1B 77 31
IB 77 01
Prints subsequent characters at double height without moving the base line, and without changing the line spacing. Temporarily cancels super/subscript and condensed printing modes.
Return to normal height
Mode
Both
ASCII
<ESC>
<ESC>
“W”
(‘W”
“0”
co>
Decimal
27 119 48
27 119
0
Hexadecimal
1B
77 30
IB 77 00
Terminates double-height printing and prints subsequent characters at normal height. Resumes super/subscript and condensed printing if these modes were in effect before double height was selected.
Select character size
Mode
Both
ASCII
“(” “(”
“s” “)” “)” n
Decimal
40 40 83 41 41
Hexadecimal
n 28 28 53 29 29 n
Selects a combination of character height and width according to the value of
n, as below. Does not move the base line. n
0
1
2
3
Character width Character height
Single width
Double width
Single width
Double width
Single height
Single height
Double height
Double height
Double-height characters are always printed at near letter quality. Double height printing temporarily cancels the super/subscript and condensed printing modes, but these modes resume when the printer returns to normal height.
Select character height, width, and line spacing
Mode
Both
ASCII
<ESC> “[”
“8”
<o> <I)> <I)>
<4>
M
n
Decimal
27 91 64 4
0 0 0 n
M
Hexadecimal
1B 5B 40 04
00 00 00 n m
Selects a combination of character height, width, and line spacing ac- cording to the value of
n and m, as below. Does not move the base line.
n
Line spacing
0 Unchanged
Unchanged
: Unchanged
16 Single
17 Single
18 Single
32 Double
33 Double
34 Double
Character height
Unchanged
Single height
Double height
Unchanged
Single height
Double height
Unchanged
Single height
Double height m
1
2
Character width
Single width (same as < ESC > “W” 0)
Double width (same as < ESC > “W” 1)
Double-height characters are always printed at near letter quality. Double height printing temporarily cancels the super/subscript and condensed printing modes, but these modes resume when the printer returns to normal height.
--
70
VERTICAL POSITION COMMANDS
Set line spacing to l/8 inch
Mode
Both
ASCII
<ESC> “0”
Decimal
27 48
Hexadecimal
IB 30
Sets the distance the paper advances or reverses in subsequent line feeds to l/8 inch.
Set line spacing to 7172 inch
Mode
Both
ASCII
<ESC> “1”
Decimal
27 49
Hexadecimal
IB 31
Sets the distance the paper advances or reverses in subsequent line feeds to 7172 inch.
Set Iine spacing to l/6 inch
Mode
Std.
ASCII
<ESC> “2”
Decimal
27 50
Hexadecimal
IB 32
Sets the distance the paper advances or reverses in subsequent line feeds to l/6 inch.
Set line spacing to n/216 inch
Mode
Both
ASCII
<ESC> n
Decimal
27 51
n
Hexadecimal
1B 33 n
Sets the distance the paper advances or reverses in subsequent line feeds to n/21 6 inch, where n is between 0 and 255. If n = 0, in Standard mode the line-feed distance is set to 0, but in IBM mode this command is ignored.
Set line spacing to n/72 inch
Mode
Both
ASCII
<ESC> “A”
n
Decimal
21 65 n
Hexadecimal
IB 41 n
In
Standard mode, sets the distance the paper advances or reverses in subsequent line feeds to n/72 inch, where n is between 0 and 85. If n
=0, the line spacing is set to 0.
In IBM mode this command does the same except that (1) the new line spacing does not take effect until the next < ESC > “2” command, and
(2) if n = 0, the < ESC > “A” command is ignored.
Execute < ESC> “A”
Mode
IBM
ASCII
<ESC> “2”
Decimal
27 50
Hexadecimal
1B 32
Sets the line spacing to the value defined by the last preceding < ESC >
“A” command. Sets the line spacing to l/6 inch if there is no preceding
< ESC > “A” command.
Line feed
Mode
Both
ASCII
<LF> 10
Decimal
OA
Hexadecimal
Prints the current line and feeds the paper to the next line. If DIP switch l-2 is ON, also moves the next print position to the left margin. See the preceding commands for the line spacing.
Reverse line feed
Mode
Both
ASCII
<ESC> <LF>
Decimal
27 10
Hexadecimal
1B OA
Prints the current line and feeds the paper in the reverse direction to the preceding line. If DIP switch l-2 is ON, also moves the next print position to the left margin. See the preceding commands for the line spacing.
Ignored when friction feed is used.
Perform one n12764nch line feed
Mode ASCII
Both 1 < ESC > “J” n
Decimal
1 27 74 n
Hexadecimal
IIB 4A n
Feeds the paper once by n/216 inches, where n is between 1 and 255.
Does not move the print position right or left when DIP switch l-2 is
OFF. Does not change the line-spacing setting. Ignored when friction feed is used.
Perform one n12764nch reverse line feed
Mode
Both
ASCII
< ESC >
“j”
n
Decimal
27 106 n
Hexadecimal lB6A n
Feeds the paper once by n/216 inches in the reverse direction, where n is between 1 and 255. Does not move the print position right or left when
DIP switch l-2 is OFF. Does not change the line-spacing setting. Ignored when friction feed is used.
I
72
Feed paper n lines
Mode
Both
ASCII Decimal Hexadecimal
<ESC> “f’ “I” n 27 102
49 n 1B 66 31 n
<ESC>
“f <l> n 27 102 1 n IB 66
01 n
Feeds the paper n lines from the current line, where n is between 0 and
127.
I
Set top of page at current position
Mode 1 ASCII Decimal Hexadecimal
I
IIBM 1 <ESC> “4” 1 27 52 IlB 34
Sets the current position as the top-of-page position. Note that this can also be done from the control panel.
I
Set page length to n lines
Mode ASCII Decimal Hexadecimal
Both 1 <ESC> “C” n 1 27 67 n IIB 43 n
Sets the page length to n lines in the current line spacing, where n is between
1 and 127 in Standard mode or between 1 and 255 in IBM mode. Changing the line spacing later does not alter the physical page length. The current line becomes the top of the page.
Set page length to n inches
Mode
Both
ASCII
<ESC> “C” co> n
Decimal
27 67 0 n
Hexadecimal
IB 43 00 n
Sets the page length to n inches, where n is between 1 and 22 in Standard mode or between 1 and 127 in IBM mode. The current line becomes the top of the page.
Set top margin
Mode
Both
ASCII Decimal Hexadecimal
< ESC > “c” n 27 99
n
1B 63
n
Sets the top margin to (n - 1) lines, where n is between 1 and 255. Printing begins on the nth line on the page. The power-up default is n = 1, giving no top margin.
Set bottom margin
Mode
Both
ASCII
<ESC>
“N” n 21
Decimal
78 n
Hexadecimal
1B4E
n
Sets the bottom margin ton lines, where
n is between 0 and 127 in Standard mode or between 0 and
255 in IBM mode. The bottom margin is reset when you change the page length.
Cancel top and bottom margins
Mode
Both
ASCII
<ESC> “0”
Decimal
27 79
Cancels both the top margin and the bottom margin.
Hexadecimal
IB
4F
Form feed
Mode
Both
ASCII
<FF> 12
Decimal oc
Hexadecimal
Feeds the paper to the top of the next page according to the current page length, and moves the print position to the left margin. When the auto- matic sheet feeder (ASF) is selected (DIP switch l-4 is OFF), this com- mand ejects the current page.
Return to top of current page
Mode
Both
ASCII
<ESC> <FF>
Decimal
27 12
Hexadecimal
IB OC
Feeds the paper backward to the top of the current page. Ignored when friction feed is used.
Disable paper-out detector
Mode ASCII
Roth 1 ~ESC~ “8”
Decimal
I27 56
Hexadecimal
IIB 38
Causes the printer to disregard the signal sent by the paper-out detector, enabling printing to the bottom of the paper. Overrides the setting of
DIP switch 1-5.
Enable paper-out detector
Mode ASCII
Both 1 <ESC>
“9”
Decimal
I21 57
Hexadecimal
IlB 39
Causes the printer to stop printing about an inch before the end of the paper. Overrides the setting of DIP switch 1-5.
I
74
I
Set vertical tab stops
Mode
Both
ASCII
cESC> “B” nl
n2 ,,, <O>
Decimal
27 66 nl n2 . ..O
Hexadecimal
18 42
nl d...OO
Cancels all current vertical tab stops and sets new vertical tab stops at lines
nl, a?,
etc., where no, nZ. etc. are numbers between I and 255. A maximum of 16 vertical tab stops can be set. The tab stops must be specified in ascending order; any violation of ascending order terminates the tab stop list. Standard termination is by the < 0 > control code. The vertical tab stops are set in terms of the current line spacing and do not move if the line spacing is changed later.
Set vertical tab stops every n lines
Mode
Both
ASCII
‘ESC> “e” “1” n
n
Decimal
27 101 49
27 101 1 n n
Hexadecimal
IB 65 31 n
< ESC > “e” cl> 1B 65 01 n
Cancels all current vertical tab stops and sets new tab stops every n lines, where
n
is between 1 and 127.
Set vertical tab stops in channel
Mode
Both
ASCII
<ESCz
“b”
n2 . ..<o> n0 nl
Decimal
27 98 n0 nl n2 . ..O
Hexadecimal
IB 62 n0
nl n? _.. 00
Cancels all current vertical tab stops in channel
no,
(where
n0
is between
0 and 7) and sets new vertical tab stops in this channel. (A channel is a set of vertical tab stops selected by the -z ESC > “/” command.) See
< ESC > “B” for parameters
nl, n2,
< 0 1.
Select vertical tab channel
Mode
Both
ASCII
< ESC > “,i” no
Decimal
27 47 n0
Hexadecimal
IB 2F n0
Selects a set of vertical tab stops designated by a channel number
(no)
from 0 to 7. The tab stops in each channel are set by < ESC> “b”.
1
Vertical tab
Mode ASCII Decimal Hexadecimal
Both 1 <VT> 1 11 1 OB
Feeds the paper to the next vertical tab stop and moves the print position to the left margin. Performs a line feed if no vertical tabs are set, as at power-up. Feeds to the top of the next page if vertical tabs are set but the current line is at or below the last vertical tab stop.
I
75
HORIZONTAL POSITION COMMANDS
Set left margin
Mode
Both
ASCII
< ESC > “I”
n
Decimal
27 108
n
Hexadecimal
1B6C
n
Sets the left margin at column
n
(where n is between 0 and 255) in the current character pitch (pica pitch if proportional spacing is selected).
The left margin does not move if the character pitch is changed later.
The left margin must be at least two columns to the left of the right margin and within the limits below:
Pica
Elite
Condensed pica
Condensed elite
Expanded pica
Expanded elite
Expanded condensed pica
Expanded condensed elite
Osns76
Osns91
0 I n I 130
0 I n 2
152
Osns38
Olns45
Osns64
Osns76
The left margin can also be set from the control panel.
Set right margin
Mode
Std.
IBM
ASCII Decimal Hexadecimal
<ESC>
<FS>
“Q” n
“Q” n
27 81
n
28 81
n
1B 51
n
IC 51
n
Sets the right margin at column
n
in the current character pitch (pica pitch if proportional spacing is currently selected). Column
n
becomes the last character position in the line. The right margin does not move if the character pitch is changed later. The right margin must be within the limits below:
Pica
Elite
Condensed pica
Condensed elite
Expanded pica
Expanded elite
Expanded condensed pica
Expanded condensed elite
4sns80
51ns96
7 In I;
137
8 5 n I 160
2sns40
3sns48
4sns68
4sns80
The right margin can also be set from the control panel.
76
r!
-
Set left and right margins
Mode
Both
ASCII
<ESC>
“X” nl n2
Decimal
27 88
nl n2
Hexadecimal
1B 58
nl n2
Sets the left margin at column no and the right margin at column
n2. See
the preceding commands for margin restrictions and other notes.
Carriage return
Mode
Both
ASCII Decimal
Hexadecimal
<CR>
13 OD
Prints the current line and returns the next print position to the left margin.
If DIP switch l-8 is ON, also performs a line feed.
Set automatic line feed
Mode
IBM
ASCII
<ESC> “5” Cl>
Decimal
27 53 1
Hexadecimal
1B 35 01
Causes the printer to perform both a carriage return and line feed each time it receives a <CR > code. This command takes priority over DIP switch 1-8.
Cancel automatic line feed
Mode
IBM
ASCII
<ESC> co>
Decimal
27 53 0
Hexadecimal
1B 35 00
Causes the printer to perform only a carriage return when it receives a
< CR > code. This command takes priority over DIP switch l-8.
Backspace
Mode ASCII
Both 1 CBS>
Decimal
1 8
Hexadecimal
1 08
Moves the print position one column to the left. lgnored if the print position is at the left margin. This command can be used to overstrike or combine characters.
Left justify
Mode
Both
ASCII
<ESC>
<ESC>
“a” “0”
“a” co>
Decimal
27 97 48
27 97 0
Hexadecimal
1B 61 30
IB 61 00
Aligns subsequent text with the left margin, leaving the right margin ragged.
77
/
Center text
Mode
Both
ASCII
<ESC>
<ESC>
“a” “ 1 ”
“a” Cl>
Decimal
27 97 49
21 97 I
Hexadecimal
1B 61 31
1B 61 01
Centers subsequent text between the left and right margins.
Right justify
Mode
Both
ASCII
<ESC’ “a”
Decimal
27 9-I 50
21 97 2
Hexadecimal
1B 61 32
<ESC> “a”
<2>
1B 61 02
Aligns subsequent text with the right margin, leaving the left margin ragged.
Set horizontal tab stops
Mode
Both
ASCII
‘ESC>
“D” nl
Decimal Hexadecimal
n2 . ..<O> 27 68 nl nZ...O
1B 44
nl n2...00
Cancels all current horizontal tab stops and sets new tab stops at columns
nl, n2, etc. in the current character pitch (pica pitch if proportional spacing is currently selected), where
nl, n2. etc. are numbers between 1 and 255.
The maximum number of horizontal tab stops allowed is 32 in Standard mode and 28 in IBM mode. The tab stops must be specified in ascending order; any violation of ascending order terminates the tab stop list.
Standard termination is by the < 0 > control code. To clear all tab stops, specify < ESC > “D” < 0 >
Set horizontal tab stop every n columns
Mode
Both
ASCII
<ESC>
<ESC>
“e”
“e”
“0” n
<OS n
27
27
Decimal
101
101
48
0
n n
Hexadecimal
1B 65 30
1B 65 00
n n
Cancels all current horizontal tab stops and sets new tab stops every
n
columns, where
n is between 1 and 127.
Reset all tab stops
--
-
Mode
IBM
ASCII
‘ESC>
Decimal
27 82
Hexadecimal
1B 52
“R”
Resets the horizontal tab stops to their power-up values in which a tab stop is set every 8 column starting at column 9. Also clears all vertical tab stops.
-
-
-
_
Horizontal tab
Mode
Both
ASCII Decimal Hexadecimal
<HT> 9 1 09
Moves the print position to the next horizontal tab stop. Ignored if there is no next horizontal tab stop in the current line. Note that when un-
1
derlining is selected, spaces skipped by horizontal tabulation are not underlined.
Relative horizontal tab
Mode
Std.
IBM
ASCII
<ESC>
< FS >
“r
“\” nl nl
n2
n2
Decimal
27
92 nl
112
28
92 nl n2
Hexadecimal
IB 5C
nl n2
IC 5C
nl n2
Moves the print position right or left a specified distance (maximum 6 inches). Ignored if the resulting position is beyond the right or left margin.
The
formulas for the distance and direction are as follows:
If n2 is between 0 and 63, the print head moves right by
(nl + n2 x
256)/120 inches
If
n2
is between 64 and 127, the print head moves left by (nl +
[n2
- 641 x 256)/120 inches
Absolute horizontal tab in inches r
Mode
Both
ASCII
<ESC>
“$” nl n2
Decimal
27 36
nl n2
Hexadecimal
1B 24
nl n2
Sets the next print position to
(nl
+ n2 x 256)/60 inches from the left margin on the current line. Ignored if this position is beyond the right margin. The maximum position is 8 inches.
Absolute horizontal tab in columns
(Model
Both
ASCII
<ESC> “f’ “0”
n n
I Decimal
27 102 48
n
27 102
0 n
I Hexadecimal
1B 66 30
n
IB 66 00
n
<ESC> “f CO>
n
Moves the next print position to column
n
from the left margin, where is between 0 and 127.
I
79
GRAPHICS COMMANDS
Print sing/e-density 8-bit graphics
Mode
Both
ASCII
<ESC> “K”
ml m2 nl n2
Decimal
27 75 nl n2 ml m2
Hexadecimal
1B 4B
nl n2 ml m2 ___
Prints bit-image graphics at 60 dots per inch horizontally. The graphic image is 8 dots high and
nl + n2 x 256 dots wide. Maximum width is
8 inches (480 dots).
mf, m2,
are the dot data, each a l-byte value from
0 to 255 representing 8 vertical dots, with the most significant bit at the top and the least significant bit at the bottom. The number of data bytes must be
nl + n2 x 256. Dots beyond the right margin are ignored. At the end of bit-image printing the printer returns automatically to character mode.
Print double-density 8-bit graphics
Mode
Both
ASCII
<ESC>
“L”
ml m2 nl n2
___
Decimal
27 76 nl n2 ml m2
Hexadecimal
1B 4C
nl n2 ml m2 ___
Prints bit-image graphics at 120 dots per inch horizontally (maximum
960 dots wide). See < ESC > “K” for other information.
I
Print double-density, double-speed 8-bit graphics
Mode
Both
ASCII
<ESC>
“Y” nl ml m2 n2
Decimal
21 89 nl n2 ml m2
Hexadecimal
IB 59
nl n2 ml m2 ___
Prints bit-image graphics at 120 dots per inch horizontally (maximum
960 dots wide), skipping every second dot in the horizontal direction.
See < ESC > “K” for other information.
Print quadruple-density 8-bit graphics
Mode
Both
ASCII
<ESC>
“2” nl ml m2 n2
___
Decimal
27 90 nl n2 ml m2
Hexadecimal
1B 5A
nl n2 ml m2 _._
Prints bit-image graphics at 240 dots per inch horizontally (maximum
1920 dots wide), skipping every second dot in the horizontal direction.
See < ESC > “K” for other information.
-
-
-
-
-
-
80
Select graphics mode
Mode
Both
ASCII
<ESC> -a” no nl n2 ml m2 .
Decimal
21 42
n0 nl n2 ml m2
Hexadecimal
IB 2A n0
nl n2 ml m2 . . .
Selects one of seven graphics modes depending on the value of
n0
and prints bit-image graphics in this mode. See < ESC > “K” for information on
nl, n2, ml, m2, . . . n0
Graphics mode
0 Normal-density
1 Double-density
2 Double-density, double-speed
3 Quadruple-density
4 CRT graphics, mode I
5 Plotter graphics
6 CRT graphics, mode II
(60 dots per inch)
(I 20 dots per inch)
(240 dots per inch)
(80 dots per inch)
(72 dots per inch)
(90 dots per inch)
Convert graphics density
Mode
ASCII
Both
<ESC> “?” n
m
Decimal
27 63
n m
Hexadecimal
IB 3F
n m
Converts graphics defined by subsequent < ESC > “K”, < ESC > “L”,
< ESC > “Y” or < ESC > “Z” commands to a density mode defined by <ESC>
“*“, n is “K”, “L”, “Y” or “Z”. indicating the mode to be converted.
m
is a code from < 0 > to < 6 > indicating one of the modes of <ESC> “*“.
Print O-pin graphics
Mode
Std.
ASCII
<ESC > ““’ n0
n2 ml m2 nl
Decimal
21
94 n0 nl n2 ml m2 . . .
Hexadecimal
1B 5E
n0 nl n2 ml m2
Prints bit-image graphics at 60 dots per inch if
n0 =
0 or 120 dots per inch if
n0
= 1. The graphics image is 9 dots high and
nl + n2 x
256 dots wide. Maximum width is 8 inches. Dots beyond the right margin are ignored.
ml, m2, . . .
are byte pairs representing 9 vertical dots each. In the leftmost position, the most significant bit of
ml
is the top dot; the least significant bit of ml is the second dot from the bottom; the most significant bit of
m2
is the bottom dot; and the other bits of
m2
are ignored.
Other byte pairs are similar. The number of data bytes must be 2 x (nl
+
n2
x 256). At the end of bit-image printing the printer returns auto- matically to character mode.
81
DOWNLOAD CHARACTER COMMANDS
Copy standard characters
from ROM into RAM
Mode
Std.
IBM
ASCII
< ESC >
< FS >
Decimal
Hexadecimal
“:”
CO> <O> <O>
27
58 0
0 0 IB 3A 00 00 00
“:”
<O> CO> (02
28 58
0
0 0 IC
3A
00 00 00
Copies all the standard characters to the corresponding download char- acter RAM area, overwriting any download data already present. Ignored when DIP switch 2-l is ON.
Define draft download characters
Mode
Both
ASCII
<ESC> “&” co> nl n2
m0 ml m2 m3... ml1
Decimal
21 38
0 nl n2 in0 ml m2 m3...mll
Hexadecimal
1B 26 00 nl
n2
m0 ml m2 m3...mlI
Defines one or more new draft characters and stores them in RAM for later use. DIP switch 2-1 must be OFF; otherwise RAM is used as an input buffer, not for downloading characters, and this command is ig- nored. Draft mode must be selected before this command is executed.
nl is the character code of the first character defined and n,? is the character code of the last character defined.
nl and n2 must both be between 32 and 127 or both be between 160 and 255.
nl must be equal to or less than
n2. Use of character codes 32 (space) and 127 (delete code) should be avoided if possible.
Each character is defined by an attribute byte
(m0) and 11 data bytes
(ml, m2 ,..... mll).
The most signitican bit of the attribute byte is 1 if the character is an ascender (positioned entirely above the baseline) or 0 if it is a descender
(descending below the baseline). The attribute byte also indicates the amount of white space to the left of the character (0 to 7 dots, specified by bits 4 to 6) and the width of the character cell, including this space
(4 to 15 dots, specified by bits 0 to 3). The left space and cell width at- tributes are used only in proportional spacing.
Each data byte indicates eight vertical dots, with the MSB being the top dot and the LSB the bottom dot. These correspond to pins 1 to 8 or 2 to 9 of the print head, depending on whether the character is an ascender or descender.
For further details, please refer to the Appendix C.
-_
q
Define NLQ download characters
Mode
t
Both
ASCII
<ESC> “&”
CO> nl n2 m0 ml m2 m3... m46
Decimal
21 38
0 nl n2 m0 ml m2 m3...m46
Hexadecimal
IB 26 00
nl n2 m0 ml m2 mS...m46
Defines one or more new NLQ characters and stores them in RAM for later use. DIP switch 2-l must be OFF. NLQ mode must be selected before this command is executed. The parameters are the same as for the draft download character command except that the attribute byte specifies right space instead of character width and the dot density is doubled in each direction, so each character consists of 16 dots vertically and 23 dots horizontally and requires 46 data bytes. Dots defined by
ml
to
m23
are printed on the first pass of the head. Dots defined by
m24
to
m46
are printed on the second pass, the paper being scrolled up half a dot between the two passes. For further details, please refer to the Appendix C.
Define download characters
! ASCII
<ESC> “=”
nl n2
<DC4>
a0 al ml m2 . ..mll a2
Decimal
27 38
20
nl n2 a0 al a2 ml m2 . ..mll
Hexadecimal
1B 26
nl n2
14
a0 al a2 ml m2 . ..mll
Defines one or more new draft characters and stores them in RAM for later use. Draft mode must be selected before this command is executed.
nl
and
n2
give the number of bytes of character data that will follow.
a0
is the character code of the first character defined.
al
and
a2
are at- tributes bytes.
ml
to
ml1
are the character data, and are the same as in
< ESC > “&.” The attribute byte
al
indicates whether the character is an ascender (not using the lowest of the nine vertical dots) or a descender
(not using the highest dot) and whether it has a downward extension to
12 dots.
The attribute byte
a2
gives proportional-spacing information. Bit 7 is ignored. Bits 4 to 6 specify the offset to the first byte printed (0 to 7), enabling leading spaces in the character to be ignored. Bits 0 to 3 specify the width of the character cell (maximum 11 dots). The character will be followed by a mandatory blank dot column which is not included in this width.
Characters defined by this command can be selected by < ESC > “%”
1, < ESC > “I” 4, < ESC > “I” 5, or < ESC > “I” 6. This command is ignored when DIP switch 2-1 is ON.
Select download character set
Mode ASCII
Both .
<ESC>
<ESC>
“%” “1”
“o/o” <I>
Decimal
27 37 49
27 31 1
Hexadecimal
IB 25 31
1B 2.5 01
Selects the download character set. Ignored when DIP switch 2-1 is ON.
Select draft download character set
Mode
IBM
ASCll
< ESC >
< ESC >
“I” “4”
“I”
<4>
Decimal
27 73 52
2-l 73 4
Hexadecimal
1B 49 34
1B 49 04
Selects the download character set and draft quality. Ignored if the NLQ
Type Style switch was pressed during power-up or if DIP switch 2-1 is
ON.
Select draft elite download character set
Mode
IBM
ASCII
< ESC >
< ESC >
“I” “5”
“I”
<5>
Decimal
27 73 53
21 73 5
Hexadecimal
IB 49 35
1B 49 05
Selects the download character set, draft quality, and elite pitch (12 cpi).
Ignored if the NLQ Type Style switch was pressed during power-up or if DIP switch 2-l is ON.
Select NLQ download characfer set
Mode
IBM
ASCII
< ESC >
< ESC >
“I”
“I”
“6”
~62
Decimal
27 73 54
27 13 6
Hexadecimal
IB 49 36
IB 49 06
Selects the download character set and near letter quality. Ignored if the
NLQ Type Style switch was pressed during power-up or if DIP switch
2-l is ON.
Select ROM character set
IModel
Both
ASCII
<ESC>
<ESC>
“% 97 “0”
“O/O” < 0 >
I
Decimal
27 37 48
27 37 0
I
Hexadecimal
1B 25 30
1B 25 00
Stops using the download character set and returns to the built-in ROM character set. Ignored when DIP switch 2-1 is ON.
1
-
--
84
-
MACRO INSTRUCTION COMMANDS
Define macro instruction
Mode 1 ASCII
Both 1 <ESC> “f” ____ <RS>
Decimal
127 43 ___ 30
Hexadecimal
1 IB 2B .._ 1E
Cancels any existing macro instruction and replaces it with the defined instruction. The defined macro instruction consists of the characters between the “ + ” and < RS > These can be any printable characters or control characters except < RS > , up to a maximum of 16 characters.
Execute macro instruction
Hexadecimal
IlB 2B 01
Mode ASCII
Both 1 <ESC> “ + ” Cl>
Decimal
1 27 43 1
Executes a previously defined macro instruction.
OTHER PRINTER CONTROL COMMANDS
Set MS8 to 1
Mode 1 ASCII
Both 1 ‘ESC> “ > 1.
Decimal
27 62
Hexadecimal
IlB 3E
Sets the most significant bit of each subsequent byte received to 1, allowing users with a 7-bit interface to access characters with ASCII codes greater than 127.
Set MSB to 0
Mode
Std.
IBM
ASCII
<ESC>
<FS,
“=”
(‘z”
Decimal
27 61
28 61
Hexadecimal
1B 3D
1C 3D
Sets the most significant bit of each subsequent byte received to 0.
Accept MSB as is
IMode I ASCII
Both <ESC>
“#”
I
Decimal
1 27 35
I
Hexadecimal
IIB 23
Cancels the preceding commands and accepts the most significant bit as it is sent to the printer.
I
85
Delete last character sent
Mode
Both
ASCII
<DEL> 127
Decimal
?F
Hexadecimal
Deletes the last character received. Ignored if the last character received has already been printed, or if the last character received was all or part of a command.
Cancel last line
Mode
Both
ASCII
<CAN> 24
Decimal
18
Hexadecimal
Deletes the last line currently present in the print buffer.
immediate print
.-
-
-
-
-
Mode
Both
ASCII
< ESC >
< EfjC >
“i”
“i”
‘( 1”
Cl>
Decimal
27 105 49
27 105 1
Hexadecimal
1B 69 31
1B 69 01
Selects the immediate print mode, in which the printer prints each character as soon as received. At every pause in the incoming data stream the printer scrolls the paper up about 2 inches so that the current line can be seen. When the next character is received the paper is scrolled back down and printing continues. This command is ignored when friction feed is used.
Cancel immediate print
IModel
Both
ASCII
I
Decimal
1 27 105 48
I
Hexadecimal
IB 69 30
< ESC > “i” “0"
< ESC > “i” <o>
27 105 0 IB 69 00
Cancels the immediate print mode. The printer waits for each line to be completed before printing it, and does not scroll the paper up and down.
This command is ignored when friction feed is used.
I
Set printer off-line
.-
-
-
Mode
Std.
IBM
ASCII Decimal Hexadecimal
<DC3>
<ESC> “0” <3>
19
27 81 3
13
1B 51 03
Sets the printer off-line. The printer disregards all subsequent characters and commands except < DC1 >, which returns it to the on-line state.
The printer’s On Line indicator does not go off.
86
Set printer on-line
Mode
Both
ASCII
<DCl> 1 17
Decimal
Ill
Hexadecimal
Returns the printer to the on-line state, allowing it to receive and process all subsequent characters and commands. This command is ignored if the printer was set off-line by pressing the On Line switch on the control panel.
Bell
1 Mode I ASCII
IBoth 1 <BEL>
I
Decimal
I
7
Sounds a brief beep tone from the printer’s beeper.
I
Hexadecimal
I
07
Bidirectional printing
I
I
Mode
Both
ASCII
<ESC>
<ESC>
“U” “0”
“U” co>
Decimal
27 85 48
27 85 0
Hexadecimal
1B 55 30
IB 55 00
Causes subsequent printing to be done in the normal bidirectional mode, which is faster than unidirectional printing.
Unidirectional printing
Mode
Both
ASCII
<ESC>
<ESC>
“U” “1”
“U”
<I>
Decimal
27 85 49
27 85 1
Hexadecimal
1B 55 31
IB 55 01
Causes subsequent printing to be done unidirectionally, ensuring maxi- mum vertical alignment precision.
One-line unidirectional printing
Mode
Both
ASCII
<ESC>
“ < 7,
Decimal
27 60
Hexadecimal
IB 3C
Immediately returns the print head to the left margin, then prints the remainder of the line from left to right. Normal bidirectional printing resumes on the next line.
Manual feed
Mode
Both
ASCII
<ESCz <EM> CO>
“(” “(” “0”
Decimal Hexadecimal
27 25
0 1B 19 00
“)” “)”
40 40 48 41 41 28 28 30 29 29
Selects manual sheet feeding even when the optional automatic sheet feeder is mounted. Ignored if DIP switch 1-4 is ON (ASF inactive).
Auto feed
Mode
Both
ASCII
<ESC> u(.,
<EM> c4>
u(>,
“4” “)” “)”
40
Decimal
21 25
40
4
52 41 41
1B 19 04
28
Hexadecimal
28 34 .29 29
Selects the automatic sheet feeder. Ignored if DIP switch l-4 is ON (ASF inactive).
Eject paper from ASF
1 Mode
I
ASCII
I I
<ESC>
<EM> “R”
“ 7, ‘L ,T
(
“R”
I(
“)” “)”
I
I27
Decimal
25 82
I Hexadecimal
1 1B 19 52
40 40 82 41 41 28 28 52 29 29
Ejects the current page. Ignored if DIP switch 1-4 is ON (ASF inactive).
I
I
Set print start position on ASF
-.
--
-_
Mode
Both
ASCII Decimal Hexadecimal
<ESC> <EM> “T” n 27 25 84
n
IB 19 54 n
“ c -3 “(” “T” “)” “)” n
40 40 84 41 41
n 28 28 54 29 29 n
Skips n/6 inches at the top of the page, where
n is equal to or greater than
1. Ignored if DIP switch l-4 is ON (ASF inactive).
Reset printer
Mode
ASCII
Both I <ESC> “62”
I27
Decimal
64
Hexadecimal
IIB 40
Reinitializes the printer. Clears the print buffer and returns settings to their power-up values. Does not clear the input buffer or change ASF selections.
88
-
-
-
DOWNLOAD
CHARACTER GENERATOR
With this printer you can create new characters and symbols, download their dot data, and have them printed in place of selected characters in the regular character set. Characters that can be generated in this way range from simple but useful symbols like the check mark through complex Chinese or Japanese characters.
The process of designing new characters with paper and pencil is somewhat time-consuming. The program listed in this appendix enables you to do everything on the computer screen. It also enables you to maintain disk files of character data for downloading when required. near-letter-quality character ( & ) is explained below.
Draft character
1
ml m2 m3 m4 m5 m6 m7 m8 m9 ml0 ml1
128
64
32
16
8
4
2
I
I I.1 I I I I.1 I I I
I I I I I I I I I
Dot
data
1
I I I I I I I I I II
124
0
66 4 64 36 16 2 I6 I2
0
ASCII Code
Descender
Start column
End column
33
I
0
I I
m0 =
Descender x 128
+ (Start x 16)
+ End
Figure
C-7. Car symbol, draft quality
89
/
I
I
The dot matrix for a draft-quality character is 8 cells high and 11 cells wide. Figure C-l shows the matrix with the car symbol filled in. Note that there are no pairs of horizontally adjacent dots. The pins in the print head cannot fire fast enough to print adjacent dots in the horizontal direction.
To the printer, a draft character is represented by 11 bytes of dot data, one byte for each column. If you are working by hand, you can calculate the data as shown in Figure C-l and enter them via the < ESC > “&” < 0 > printer command. If you use the program in this appendix, proceed as follows.
The program starts by asking whether you want to read characters from an existing file. If you are going to add the car symbol to a file of download characters you have already generated, answer yes; if you are going to create a new file, answer no. The arrow on the screen toggles between Yes and
No when any key except Return is pressed. The Return key enters your choice.
In the same way the program asks you to select Standard or IBM mode and draft or near letter quality, then to confirm whether to continue or start over. Continuing, on the next screen the program asks what character you want to redefine, offering the exclamation mark (!) as a suggestion. If you want to print the car symbol in place of the exclamation mark, press Return.
If you want to assign the car symbol to another character, press the key of that character.
Next you must choose whether to make the car symbol an ascender or a descender. This determines how the character is seated on the line:
Ascender CnF< Descender &F:
After you press Return for the ascender/descender choice, the cursor enters the character box. You can move the cursor with the numeric keypad. For example, pressing the “6” key moves to the right; pressing the “3” key moves diagonally down to the right. The function keys control the setting and clearing of dots. After Fl is pressed the cursor clears the dot in each position it is moved to. F3 causes the cursor to set dots. F2 allows the cursor to pass over dots without either setting or clearing them.
In draft mode a dot position is a 2x2 character block with the cursor located in the upper left corner of the block. When a dot is set, a 2x3 block of sharp signs is displayed, partly overlapping the dot position to the right.
This reflects the fact that the printer cannot print horizontally adjacent dots.
The program automatically censors adjacent dots.
_
-
_
90
By moving the cursor and pressing the Fl, F2, and F3 keys you can quickly build up the dot pattern. If necessary you can clear all dots by pressing
F4 and start over. When the character is complete, press Return to store the dot data in the computer’s memory. The program will clear the character box and ask you to select the next character to design.
When you have finished designing characters, press the F6 key. The program will ask you whether you want to save, download, and print the characters you have designed. If you answer Yes to all three questions, your characters will be saved on a disk file and downloaded to the printer, and the entire character set from character 33 (!) to character 126 (-) will be printed out.
At any point while you are selecting or designing characters you can press F5 to skip the current character and proceed to the next character.
The program does not allow you to redefine the space character, or to define any other character as an all-blank character. Nor can you assign character codes less than 33 or greater than 126 to the characters you define.
NLQ character
1 First rul.
mZ4...
9ta
1st: 14 38 70 70 126 0
0 0
16 I
9 9 8
0 0 70 39 22 6 6 6
2nd: 28 14 14 14 124 0 64 32 16 0 0 0
32 64 0 0 0 12 12 I4 14 I4 12
Figure
C-2. Car symbol, near letter quality
. ..m23
Second pass
,28 ASCII Code
Descender
64
Left space:
Right space:
33
I
0
0
32
16
mO
= Descender x 128
+ (Left x 16) + Right
8
4
2
1
91
If you select near letter quality, the character box is the same size but now has 16 (high) x 23 (wide) dot positions. Each dot is represented by two adjacent sharp signs, occupying its own position and the position to the right.
This reflects the fact that the printer still cannot print horizontally adjacent dots, but that even skipping every other dot, the dots appear joined when printed.
A near-letter-quality character is represented by 46 bytes of dot data, two bytes for each column. Near-letter-quality characters are printed in two passes of the print head, the paper scrolling half a dot up between the passes.
The first 23 bytes of dot data represent the first pass; the next 23 bytes represent the second pass. In each column the first, third, fifth, . . . dots belong to the first-pass byte and the second, fourth, sixth, . . . dots belong to the second-pass byte.
A maximum of 78 near-letter-quality characters can be defined.
The file created by this program contains the following printer com- mands:
1.
< ESC > “:” <O>
CO> <O> (standardmode)or <FS> “:” <O>
< 0 > < 0 > (IBM mode) to copy the printer’s regular characters into download memory. If you leave a download character undefined, the regular character will be printed.
2.
< ESC > “x” < 0 > or < ESC > “x” < 1 > to select draft or near letter quality.
3. One <ESC> “&” CO> <cc> <cc> <a> <pl> . . . command for each character defined. < cc > is the character code, < a > is the attribute byte, and <pl > . . . are the 11 (draft) or 46 (near letter quality) bytes of dot data. This program uses only the most significant bit of the at- tribute byte. It does not set the other bits, which are concerned with proportional spacing.
This program is coded in Microsoft BASIC for IBM-PC. The WIDTH
255 command in line 1010 means infinite line width and prevents the computer from inserting unwanted line feeds in the character data. Some versions of BASIC do not need the WIDTH command. Check your BASIC manual and make any changes necessary.
92
-
1000
~t**t****************** DOpJ)JLOAD
1010 WIDTH "LPT1:",255 :KEY OFF :CLS
CHARACTER GENERATOR t*.tt***tt********l**
1020 DIM A(1261. P(126.23). Q(126.231, DT(16.24) :E$=CHR$(27) :RB=CHR5(281
1030 KEY 1, CHR5(71 :KEY 2. CHRB(8) :KEY 3, CHR5(9)
1040 KEY 4. CHRB(10) :KEY 5, CHR$(lll :KEY 6. CHRB(12)
1050 FOR I-33 TO 126 :A(I)=-1 :NEXT I
1060
1070
LOCATE 1.1 :PRINT STRING5(25.62):
1080
PRINT " DOWNLOAD CHARACTER GENERATOR ":STRING5(25,601
1090
1100 LOCATE 3.1 :PRINT "READ CHARACTERS FROM EXISTING FILE?"
1110 SO$="Yes" :Sl$="No" :S=-1 :PX=4 :PY=l :GOSUB 3020 :IF S THEN 1320
1120
I-____ &en existinfl file ___________~~_~~~-~-____________________--------
1130 LOCATE 4:20
1140 INPUT "File name";FI$
1150 OPEN "R" #l FI$ 48
1160 FIELD #1:48'AS A5
1170
I----_ Read 2 initial comands _________-----__________________________---
1180 GFT X1.1
1190
1200
IF MID5(A$.4,1)=E5 THEN IBM-O ELSE IBM--I
IF MID5(A5,3,1)="0" THEN NLQ-0 ELSE NLQ=-1
1210
1220
IF NLQ THEN WI-23 :HI=16 ELSE WI-11 :HI*E
----_______~~~~~~~~~-~-----------------~~
1230 FOR CC-33 TO 126 :M=CC-31
1240 GET
X1.M
:IF LEFT5(A5,11=CHR5(0) THEN A(CC)=-1 :GOTO 1310
1250
A~CC~=ASC~M1D$~A5.2.1))
1260 FOR Y-l TO WI
1270
1280
P(CC,Y)=ASC(MID$(AS,Y+Z.l~~ :NEXT Y
IF NLQ-0 THEN 1310
1290 FOR Y-l TO WI
1300
Q(CC.Y)=ASC(MID$'(AS,Y+25.1)) :NEXT Y
1310
1320
NEXT CC :CLOSE 1
I----- Select Std./IBM --------------__~~~~____________________--~~-~~~~~~
1330 LOCATE 6.1 :PRINT "SELECT MODE"
1340 SO5="Standard mode (DIP SW. l-6 ON 1"
1350 SlS="IBM mode (DIP SW. l-6 OFF)"
1360 S-IBM :PX=7 :PY=l :GOSUB 3020 :IBM=S
1370
1380
IF IBM THEN HD5=R$+":"+STRING5(3.0) ELSE HD$=E5+":"+STRING$(3.0)
I----- Select
Draft/)&Q
~~~~~~~~~~---___________________________----------
1390 LOCATE 9.1 :PRINT "SELECT QUALITY"
1400 SO$="Draft quality" :Sl$="Near letter quality"
1410 S-NLQ :PX=lO :PY=l :GOSUB 3020 :NLQ=S
1420 IF NLQ THEN HD5=CHR5(27)+"xl"+HD$ :WI=23 :HI=16 :GOTO 1440
1430 HD$=CHR5(27)+"xO"+HD5 :WI=ll :HI=E
1440
PL$=STRING$(24."+") :HYB=STRING5(24,"-"1
1450
1460
"
I----- Select Continue/Start over ---_~~~~~-~-------------------~~~~~~~~~~
1470 LOCATE 12.1 :PRINT "CONTINUE?"
1480 SO$="Continue" :SlS="Start Over"
1490 S-O :PX=13 :PY=l :GOSUB 3020 :IF S THEN CLS :GOTO 1070
1500
1510 n===== DRAW BOX ====================_____3___~__________==================
1520 CLS :IF NLQ THEN 1540
1530
LOCATE 1.3 :PRINT "1 2 3 4 5 6 7 8 9 0 1 m :GOTO 1550
1540 LOCATE 1.3 :PRINT "123456789012345678901234"
1550
LOCATE 2.3 :PRINT "+++++++++++++++++++++++"
1560 FOR N-l TO 16
1570 IF NLQ THEN LOCATE N+Z,l :PRINT RIGHTJ(STR5(N),l);:GOTO 1590
1580 IF N
MOD
2 -1 THEN LOCATE N+Z,l :PRINT RIGHT$(STRJ((N+1)/2),1);
1590 LOCATE N+2,2 :PRINT ":";SPC(24);":" :NEXT N
1600
LOCATE 19.3 :PRINT "++++++++++++++++++++++++"
1610
I----- select character --------------------------------------------------
1620 CH$=CHR$(CCl
1630 LOCATE 1.40 :PRINT "SELECT CHARACTER I":CHS:"I":
1640 15=INPUT5(1) :IF u "<IS AND IS<CHR5(127) THEN CHS-15 ELSE GOT0 1660
1650 CC=ASClCH$l
1660 LOCATE 1.40 :PRINT "SELECTED CHARACTER : ";CH$:" II
1670 a----- Ascender or descender? --________________--____________________----
1680 SO$="Ascender" :S15="Descender"
1690 S=(A(CCl=O) :PX=3 :PY=40 :GOSUB 3020 :DES=S
93
1700 I__--_ Key exp~a"ations _____--------___---------~~-------.----------------
1710 LOCATE 10.40 :PRINT "Fl: Clear dot"
1720 LOCATE 11.40 :PRINT "F2: Pass overu
1730 LOCATE 12.40 :PRINT "F3: Set dot"
1740 LOCATE 13.40 :PRINT "F4: Clear all dots"
1750 LOCATE 14.40 :PRINT -F5: Skip character"
1760 LOCATE 15.40 :PRINT "F6: End"
1770 LOCATE 16.40 :PRINT "RET Record character"
1780 I___-- Get =haracter __________------____---------------------------------
1790 IF A(CC)<O THEN GOSUB 3220 :GOTO 1950
1800 IF NLQ THEN 1870
1810 I----- Draft character
1820 FOR Y-l TO 11 :WT-128 :FOR X-l TO 8
1830 IF (P(CC.Y) AND WI)=0 THEN 1850
1850 WT=.5*Wl- :NEXT X.Y :GOTO 1940
1860 I----- NLQ character
1870 FOR Y-l TO 23 :WI=128 :FOR X-l TO 15 STEP 2
1880 IF (P(CC,Y) AND WT)-0 THEN GOT0 1900
1890 DT(X,Y)-1 :DT(X.Y+1)=2 :BX=X :BY=Y :CS$="##" :GOSUB 3730
1900 IF (Q[CC,Yl AND ViT)=0 THEN GOT0 1920
1910 DT(X+l,Y)=l :DT(X+l.Y+1)=2 :BX=X+l :BY=Y :CS$="##" :GOSUB 3730
1920 WT=.5*WI :NEXT X.Y
1930 I----- MOdifV & olot character _-----____------_----~~~~--------------~~~~
1940 X-l :Y=l
1950 FOR Z-10 TO 12 :LOCATE 2.38 :PRINT u u :NEXT Z
1960 ST-2 :LOCATE 11.38 :PRINT "'I :IF NLQ THEN 2180
1970 I----- Draft character
1980 IF DT(X.Y)=2 THEN CS$=CHR$(2)+" " :GOTO 2050
1990 IF DT(X,Y)=0 THEN 2020
2000 IF ST-1 THEN DT(X,Y)=0 :DT(X.Y+l)=O :CS$=STRING$(3,1)+" u :GOTO 2050
2010
CS$=STRING$(3,2)+" o :GOTO 2050
2020 IF ST<3 THEN CSO-STRINGB(2.1) :GOTO 2050
2030
IF DT(X,Y+l)=l THEN CSO=STRING$(2.1) :GOTO
2040
DT(X,Y)=l :DT(X.Y+l)-2 :CSB=STRING5(3.2)+"
2050
G"C"%J ?CF),-l
“YVY lYYY
2060
2070
2080
R, 13 .T.OCITF
~~
2090
2100
IF ST-4 THEN GOSUB 3220 :GOTO 1950
2110
IF ST-5 THEN GOSUB 3220
:GOTO 1520
2120
IF ST-6 THEN 2410
2130
IF ST-7 THEN 3260
2140 IF DT(BX.BY)=2 THEN CSJ="# u :GOTO 2170
2150 IF DT(BX.BY)-1 THEN CSIG="+#X u :GOTO 2170
2160 IF DT(BX,BY)=O AND DT(BX,BY+l)=O THEN CSJ-"
2170
GOSUB 3700 :GOTO 1980
2180
I----- NLQ character
2190
2200
IF DT(X,Y)=2 THEN CS$=CHR$(Z) :
IF DT(X yt-" 711CM 777n
,-v LllYl. e&.2”
2210
2220
2230
CS$=STRING5(2.2!) :GOTO 2260
____ --_.
2240
2290
" ELSE CS$-" "
2260 GOSUB 3720
2270 SS-ST :BX=X :BY=Y :GOSUB 3110 :IF SS-ST THEN 2360
2280
2290 IF ST>3 THEN 2320
2300 FOR Z-10 TO 12 :LOCATE 2.38 :PRINT u u :NEXT Z
2310 LOCATE 9+ST.38 :PRINT u" :GOTO 2180
2320 IF ST-4 THEN GOSUB 3220 :GOTO 1950
2330 IF ST-5 THEN GOSUB 3220 :GOTO 1520
2340 IF ST-6 THEN 2410
2350 IF ST-7 THEN 3260
2360
2370 IF DT(BX,BY)=2 THEN CS$="#" :GOTO 2400
2380 IF DT(BX,BY)=l THEN CSB="#W" :GOTO 2400
2390 IF DT(BX.BY+l)-0 THEN CS$="
" ELSE CSJ-" "
94
-
2400 GOSUB 3730 :GOTO 2180
2410 I---__ Wrap-"p -_---------------------------------------------------------
2420 CLS :LOCATE 1.1 :PRINT "SAVE TO FILE?"
2430 S--l :PX=2 :PY=l :SOI="Yes" :Sl$="No" :GOSUB 3020
2440 IF S THEN 2530
2450 LOCATE 5.10 :PRINT "Output file name I":FI5:"1 ":
2460 INPUT F05
2470 IF FOB-"" AND FI$="" THEN 2450
2480 IF FOB-"" THEN FOS-FI5
2490 OPEN "R",#l,F0$.48
2500 FIELD X1.48 AS A5
2510 LSET A$=HD$+STR1NG5(48-LEN(HD5~.0) :PUT X1.1.
2520 GOSUB 3420 :CLOSE 1
2530
2540 LOCATE 7.1 :PRINT "DOWNLOAD TO PRINTER?
(DIP SWITCH 2-1 MUST BE OFF)"
2550 S-O :PX=8 :PY=l :SOB="Yes" :S15="No" :GOSUB 3020
2560 IF S THEN END
2570 LOCATE 11.1 :PRINT "PRINT CHARACTER SET?"
2580 S-O :PX=12 :PY=l :SOB="Yes" :SlS="No" :GOSUB 3020
2590 IF S THEN END
2600 LOCATE 15.1 :PRINT "WHICH MONITOR ARE YOU USING?"
2610 S-O :SlJ="COLOR" :SO5="MONOCRO" :PX=16 :PY=l :GOSUB 3020 :PB=S
2620 GOSUB 3500 :LPRINT E5;"3":CHR5(50):
2630 FOR CC-33 TO 126 :LPRINT CHR$(CC):" "::NEXT CC
2640
LPRINT STRINGS(10.10) :PRINT STRINGS(5.10) :END
3000
3010 a=====
3020
I_____
S,,BRO”‘I’INES selector
====================__P_________________=============== ro”tlne---------------------------------------------------
3030
LOCATE PX.PY :PRINT u
3040 LOCATE PX+l,PY :PRINT "
";S15
3050 IF NOT S THEN 3060 ELSE 3070
3060 LOCATE PX,PY :PRINT "==>" :LOCATE PX+l,PY :PRINT " v :LOCATE PX,PY
3070 IF S THEN 3080 ELSE 3090
3080
LOCATE PX.PY :PRINT v u :LOCATE PX+l,PY :PRINT "==>" :LOCATE PX,PY
3090
I$=INPUT5ll~ :IF IB<>CHR5(13) THEN S-NOT S :GOTO 3050
3100
3110
RETURN .-
___-----------_---______________________---------------
3120 I$=INPUT$(l) :SK=ASC(IS) :FK=VAL(IS)
3130 IF SK>6 AND SK<14 THEN ST-SK-6 :GOTO 3210
3140 IF FK-0 OR FK-5 THEN 3120
3150 IF FK MOD 3 = 0 THEN Y-Y+1
3160 IF FK MOD 3 = 1 THEN Y-Y-1
3170
IF FK >6 THEN X-X-1
3180
IF FK <4 THEN X=X+1
3190 IF Y>WI THEN Y-WI ELSE IF Y<l THEN Y-l
3200 IF X>HI THEN X-HI ELSE IF X<l THEN X-l
3210
3220
RETURN
I_-_-- Clear al) dots ----------------__--____________________------------
3230
FOR N-l TO 16 :LOCATE N+2.3 :PRINT SPC(24) :NEXT N
3240
FOR X-l TO HI :FOR Y-l TO WI :DT(X,Y)=O :NEXT Y.X
3250
3260
ST-2 :X-l :Y=l :RETURN
I----- Store =haracter data ----------------------------------------------
3270 FL-O
3280 IF DES THEN A(CC)=0 ELSE A(CCI=128
3290 IF NLQ THEN ZA-15 :ZB=2 ELSE ZA-8 :ZB=l
3300
FOR Y-l TO WI :h'T=128 :P(CC,Y)=O :Q(CC.Y)=O
3310
3320
3330
FOR X-l TO ZA STEP ZB
IF NLQ THEN Q~CC,Y,=Q(CC,Y)+WI*(DT~X+1.Y) AND 1)
P(CC,Y)=P(CC,Y)+WT'(DT(X.Y) AND 1)
3340
3350
WT-.5*wr
NEXT X
3360 FL=FL+P(CC.Y)+Q(CC.Y)
3370 NEXT Y
3380 IF FL-O THEN A(CC)=-1
3390 BEEP
3400 CC-CC+1 :IF CC-127 THEN CC-33
3410
3420
GOSUB 3220 :GOTO 1510
I--___ OutDUt to Diskette ___---------------------------------------------
3430 FOR CC-33 TO 126 :M=CC-31
3440
IF A(CC)=-1 THEN B$=STRING5(48.0) :GOTO 3480 ELSE B$=CHR$(l)+CHR$(A(CC))
95
3450 FOR Y-l TO WI :B$=BJ+CHR$(P(CC.Y)) :NEXT Y
3460 IF NOT NLQ THEN B$=B$+STRING5(35.0) :GOTO 3480
3470 FOR Y-l TO WI :Bb=BB+CHR$(Q(CC.Y)) :NEXT Y
3480 LSET AS-B5 :PUT X1.M
3490 NEXT CC :RETURN
3500 I----- output to pr,“ter -------------------------------------------------
3510 LPRINT HD5;
3520 FOR CC-33 TO 126
3530 IF A(CC)<O THEN 3580
3540 LPRINT E5:"&":CHR5(O):STRING5~2.CC);:Z=A~CCl
3550 FOR Y-l TO WI :Z=P(CC,Y) :GOSUB 3600 :NEXT Y
:GOSUB 3600
3560 IF NOT NLQ THEN 3580
3570 FOR Y-l TO WI :Z=Q(CC,Y) :GOSUB 3600 :NEXT Y
3580 NEXT CC
3590 LPRINT E$;'%"::RENRN
3600
3610 IF PB THEN 3640
3620 PP=INP(&H3BD) :IF PP<128 THEN 3620
3630 OUT LH3BC.Z :OUT bH3BE.5 :OUT bH3BE.4 :GOTO 3660
3640 PP=INP(&H379) :IF PP<128 THEN 3640
3650 OUT hH378.Z :OUT hH37A.5 :OUT &H37A.4
3660 RETURN
3670 I----- plot character _______________-----____________________------------
3680 LOCATE X'2+1.Y*2+1
3690 LOCATE X*2+2.Y*2+1
:PRINT CS5
:PRINT CSZ :REl'URN
3700 LOCATE BX*2+1,BY*2+1 :PRINT CS5
3710 LOCATE BX*2+2,BY*2+1 :PRINT CS5 :RETURN
3720 LOCATE X+Z.Y+2
3730 LOCATE BX+2,BY+2
:PRINT CS5 :REKJRN
:PRINT CS5 :RETURN
-
96
CHARACTER SETS
sets.
This appendix gives tables of the printer’s standard and IBM character
The decimal character code of each character is shown in an inset to the lower right of the character.
The hexadecimal code can be found by reading the entries at the top and left edges of the table. For example, the character “A” is in column 4 and row 1, so its hexadecimal character code is 41. This is equivalent (4 x
16 + 1 = 65) to decimal 65, the number in the inset.
Control codes recognized by this printer are indicated by abbreviations inside pointed brackets < > .
< Sample >
Character r
Hexadecimal
(high order) value
2
<DC2> ”
18
/ ,-‘--
34
2 B-R
50 66
? c -s
1
82 b r
98 114 c s pF-
L
Control code L Decimal value
I-
- Hexadecimal value
(low order)
97
STANDARD CHARACTER
2
3
4
5
2
3
1 18
<DC3>
#
19
1 34
35
1 50 1 66 1 82 1 98 114
3 c s c s
51 67
83 99 115
4 1 20
I I I I I---,
% 5 E U e u
-
98
3
6
133
134
149
150
(165 I181
& 6
F
166 182
[I97
198
1213
V
214
1229
f
230
I245
v
246
B
C
<VT> <ES0 +
139 155 171
cFF>
140 156
’
172
;
<
187
K I k f
203 219 235 251
188
L
204
\
220
1
236
:
252
Y
IBM CHARACTER SET #2
100
-
101
IBM CHARACTER SET #l
Hexa,
Lecims
6
Other characters are identical to IBM character set #2.
The duplication of control codes enables systems with a 7-bit interface to obtain control functions when the most significant bit is set to 1 by the
<ESC> “ > ” command.
102
ADDITIONAL CHARACTER SET
E
t
F
C
D
A
B
8
9
6
7
4
5
Hexa- decimal
0
1
2
3
In IBM mode, additional characters be printed by special commands. can
INTERNATIONAL CHARACTER SETS
When an international character set is selected by DIP switches 2-2 to
2-4 or by a command from software, the following changes are made in the character set:
I Country
I 35 36 64 91
T @ r i
92 I93 I 94 96 11231124
T a o -i-
-{
+-I--
I
-7
T
-i- a
s zi
z
@ 1
i
*
6 AZ
8 ij
1
I-
Al -
AlU
- {- :
- 82
T
T i
T
i 1 - 1 I-lo
T m v s
1 I-
AIU
T
T d i s
-F
T +
d i T
@I [
-
A Iii i I4 i le
* i fi
+I--
i
1
I- ‘I{ I: e-l0
See page 17 for the DIP switch settings.
1571
Ul
The commands for selecting the international character sets are:
Standard mode: < ESC > “R” n IBM mode: < FS > “R” n
Where n means character code n, i.e. CHR$ (n) in BASIC. The values of
n are:
0 U.S.A
1 France
2 Germany
3 Denmark
4 Sweden
I
5 Italy
6 England
7 Spain I
8 Japan
9 Norway
10 Denmark II
11 Spain II
12 Latin America
13 Denmark/Norway
104
INDEX
m
Absolute tab, 79
Ascender, 83, 90
Auto feed, 88
Automatic carriage return,
16
Automatic line feed, 17, 77
Automatic sheet feeder, 6, 16, 56, 88
m
Backspace, 77
Bail lever, 2, 7, 8, 9, II, I2
BASIC, 25,40, 92
Beeper, 20, 24, 27, 28, 29, 87
<BEL>, 87
Bidirectional printing, 87
Bit-image printing, 37, 45, 51, 80, 81, 82
Bold printing, 35, 62
Bottom margin, 74
Buffer, 17, 28, 53 a
Cancel command, 86
Carriage return, 77
Centering, 78
Channels of vertical tab stops, 75
Character codes, printing of all, 65
Character set commands, 64
Character sets, 54, 64, 65, 97-104
Character size and pitch commands, 66
Character spacing, 69
Cleaning, 47
Colour commands, 35
Colour printing, 54
Colour printing commands, 64
Column width, 32, 55
Commands: double parentheses, 34-36 download character, 82 font control, 59 graphics, 80 horizontal position, 76 macro instruction, 85 print size, 35 type style, 35 vertical position, 71
Commercial software, 31-35
Condensed pitch, 21, 51, 67
Connector, 3, 5
Control panel, 19
Courier type style, 22, 60
D
Delete, 86
Descender, 83, 90
Dimensions of printer, 55
DIP switches,
74-17, 33, 50, 51, 54, 64, 65,
72, 74, 82, 83, 84, 88
DOS commands, 37,38,39,40
Dot matrix size, 54
Double parentheses commands, 34-36
Double-size characters, 69, 70
Double-strike printing, 62
Download character commands, 82
Download characters, 17, 51, 54, 82, 83, 84,
89-96
Draft quality, 22, 59. 60, 82, 84, 89, 90, 91
IE(
Electrical specifications, 56
Elite pitch, 21, 60, 66, 84
Emphasized printing, 51, 62
Emulation,
16, 32, 53
Entry slot, 3
Environmental requirements, I, 56
Epson printers, 31
Escape code, 32
Escape sequences, 59
Expanded printing, 67
CFI
Fanfold forms: loading, 9, 50 parking, II, 27 specifications, 55 unparking, 12
Fixed spacing, 68
Font control commands, 59
Form feed, 74
LQ
Gap, 14
Graphics, 37, 45, 51, 80, 81, 82
10s
Graphics commands, 80
!Hl
Hard copy, 37
Hexadecimal dump, 24-26
Horizontal position commands, 76
Horizontal tabulation, 51, 79
Ii
IBM character sets, 64, 100-103
IBM mode, 16, 22, 45
IBM printers, 31
IBM-PC, 25, 26
Immediate print, 86
Initialization sequence, 33
Installing software, 31
Interface: signals, 56 specifications, 53 test, 13
International characters, 17, 51, 65, 204
Italic printing, 22, 35, 61
G
I
Justification, 78
m
Label printing, 50
Left margin, 28, 76, 77
Line feed, 72
Line spacing, 50. 55, 70, 71. 72
Locating the printer, I
m-
Macro instruction, 85
Macro instruction commands, 85
Maintenance, 47
Manual feed, 88
Margins: bottom, 74 left, 28, 76, 77 right, 28, 76, 77 top, 7, 73
Master print mode, 68
Micro-feed, 27, 28
Microjustification, 69
Most significant bit, 85
Near letter quality, 22, 60, 83, 84, 91, 92
NLQ Type Style switch, 22, 24
106
Off-line, 20, 86
On Line switch, 20. 24, 87
Orator type style, 16, 22, 60, 61
Overlining, 63 m
Page feed, 27, 74
Page length, 16, 73
Page width, 32, 55
Panel pitch, 24
Panel style, 24
Paper Feed switch, 21, 24, 27, 28
Paper feed, 7. 8, 9. IO, 11, 12, 53
Paper guide, 6, 1 I
Paper specifications, 55
Paper-out detector, 16, 50, 74
Parking,
11, 12. 27
Pause, 20, 35
Pica pitch, 21, 66
Pitch. 21, 24, 34, 55, 66
Platen knob, 3
Power cord, 6
Power indicator, 20
Print Pitch switch, 21, 24, 27, 28
Print head, 48-50, 53
Print size commands, 35
Printer commands, 39, 51, 59
Printing gap adjustment, 14
Printing mechanism, 53
Programming, 38-46
Proportional pitch, 21, 68
PrtSc key, 37 p1
Quadruple-size characters, 69
R
Rear cover, 3, 9
Release lever, 3, 7, 9
Reset printer, 88
Reverse line feed, 72
Reverse micro-feed, 28
Ribbon cartridge, 5, 47, 53
Right margin, 28, 76, 77
ROM character set, 84 gerif type style 22 60 61
Self tests, 12, 13.24 ’ ’
Setting up, 3
Single sheets: manual loading, 8
semiautomatic loading, 7 specifications, 55
Slash zero, 66
Small capitals, 26, 22
Software, 31-35
Specifications, 53-57
Sprocket feed, 9-12, 53
Standard character set, 17, 64, 98, 99
Standard mode, 16. 17, 21. 45
Star printers. 31
Subscripts, 63
Superscripts, 63
Tabulation, 51, 75, 76, 77
Test patterns, 12, 13. 24
Top cover, 3, 4, 5
Top margin, 7, 73
Top of page (form), 27, 33, 73
Tractor feed, 9-13, 53
Troubleshooting,
50-51
Type style, 22, 34, 55, 60
Type style commands, 35
UI
Underlining, 62, 63
Unidirectional printing, 87
Unpacking and inspection, I
Unparking, I2
Vertical position commands, 71
Vertical tabulation, 75
Zero (slash or normal), 66
107
NX-1000
COLOUR PRINTER
REFERENCE CARD
POWER-UP FUNCTIONS
In addition to their normal functions, all the control panel switches have special functions that operate if you hold them down while switching power on.
COURIER
SANSERIF
ORATOR
0 -POWER
ON LINE
Hexadecimal dump
SWITCH COMBINATION FUNCTIONS
Several additional functions can be obtained by pressing the control panel switches in combinations.
Top of form
: DIP SWITCHES
2-1 Usage of RAM
2-2
Buffer
2-3 International character set (See below)
2-4
Download ON
ON
ON
ON
International character sets:
4
U
* ij
* Denmark/Norway when switch 1-6 is OFF and switch 1-7 is ON.
Note: DIP switches are read only at power-up. Switch power off before changing a DIP switch setting.
PRINT PITCH SELECTION
Standard mode
Pica
Elite
12::.q5h.7~9(:i < ESC > “M”
12Ip~.!$JJ~yjy)12
1234567890
1234567890 *
* 123456789012
123456785’012
1234567890 <ESC> “~‘3 123456789012
A
A
CHR$(l8) CHR$(lS)
CHR$(I8)
CHR$( 15)
-m i-*
‘1’
v v
123456789N234567
< ESC
12345679901234567890
12345678901234567
12345678901234567
4
* 12345678901234567890
.
12345678901234567890
Condensed Pica Condensed Elite
IBM mode
Pica
< ESC > “:”
Elite
1, 2::ii;4.55”7~396 < ESC > “M”
~~:5il.“5(57fy~()jJ
1234567890
1234567890
1234567890
4
CHR$(18)
) 123456789012
,
123456789012
123456789012
12345678901234567
12345678901234567
12345678901234567
Condensed Pica
< ESC > “M"
COMMAND SUMMARY IN NUMERIC ORDER
MODE CONTROL CODE FUNCTION
IBM
STD
STD
STD
IBM
STD
IBM
STD
IBM
IBM
IBM
STD
STD
<BEL>
CBS>
<HT>
<LF>
<VT>
<FF>
<CR>
<so>
<SI>
<DC1 >
<DC2>
<DC2>
<DC3>
<DC4>
<CAN>
<DEL>
CESC> <LF>
<ESC> cFF>
<ESC>
<ESC>
<ESC>
<ESC>
<ESC>
<so>
<SI>
<EM> CO>
<EM> <4>
<EM> “R”
<ESC> <EM> “T”n
<ESC> ““,,
< ESC > “1” n
< ESC > “#”
<ESC> “$” nf n2
< ESC > “%” 0
< ESC > “%” 1
<ESC> “&” co> nl n2 mo ml....
< ESC > -*‘% no nl n2 ml m2....
cESC> “+” .._.. <RS>
<ESC> “+” <, 5
<ESC> “-“0
<ESC> “-” 1
< ESC > “/” “0
< ESC > “(I”
<ESC> “1”
< ESC >
< ESC >
“2”
“2”
< ESC > “3” n
<ESC> “4”
<ESC> “4”
< ESC > “5”
<ESC> “5” <O>
< ESC > “5” < 1 >
< ESC >
“6”
< ESC > “7”
< ESC > “8”
< ESC > “9”
< ESC > “:”
<ESC> “.” <O> <O> CO>
Bell
Backspace
Horizontal tab
Line feed
Vertical tab
Form feed
Carriage return
Expanded printing for one line
Condensed printing
Set printer on-line
Cancel condensed printing
Pica pitch
Set printer off-line
Cancel one-line expanded printing
Cancel last line
Delete last character sent
Reverse line feed
Return to top of current page
Expanded print for one line
Condensed printing
Manual feed
Auto feed
Eject paper from ASF
Set print start position on ASF
Increase character spacing
Select master print mode
Accept MSB as is
Absolute horizontal tab in inches
Select ROM character set
Select download character set
Define download characters
Select graphics mode
Define macro instruction
Execute macro instruction
Stop underlining
Start underlining
Select vertical tab channel
Set line spacing to l/8 inch
Set line spacing to 7/72 inch
Set line spacing to l/6 inch
Execute < ESC > “A”
Set line spacing to n/216 inch
Select italic characters
Set top of page at current position
Select upright characters
Cancel automatic line feed
Set automatic line feed
Select IBM character set #2
Select IBM character set #l
Disable paper-out detector
Enable paper-out detector
Elite pitch
Copy standard characters from
ROM into RAM
One-line unidirectional printing
Set MSB to 0
PAGE
77
67
67
87
67
87
77
79
12
75
74
88
88
88
88
69
68
85
86
72
74
67
67
66
86
68
86
72
71
77
65
65
74
61
73
61
77
74
66
81
85
85
63
79
84
84
82
62
75
71
71
71
82
87
85 i/--
.-
IBM
IBM
IBM
IBM
IBM
IBM
IBM
IBM
STD
IBM
IBM
IRM
STD
IBM
STD
MODE
IBM
IBM
STD
IBM
STD
CONTROLCODE
NNCTION
PAGE
<ESC>
<ESC>
“=”
->”
nl n2 < DC4> a0 al a2 ml...
Define download characters
< ESC > “?” n m
Set MSB to I
Convert graphics density
< ESC > “A” n
< ESC > “B” nl n2
<ESC> “C” <o> n
< ESC > “C” n
< 0 >
Reset printer
Set line spacing to n/72 inch
Set vertical tab stops
Set page length to n inches
< ESC > “D” nl nZ...... < 0 >
< ESC > “E“
< ESC > “F”
< ESC > “G”
< ESC > “H”
Set page length to n lines
Set horizontal tab stops
Emphasized printing
Cancel emphasized printing
< ESC > “I” 0
< ESC > “I” I
< ESC > “I” 2
< ESC > “I” 3
< ESC > “I” 4
< ESC > “I” 5
< ESC > “I” 6
Double-strike printing
Cancel double-strike printing
62
62
Select draft quality characters
Select draft elite characters
Select Sanserif characters
Select Courier characters
59
60
61
60
Select draft download character set 84
Select draft elite download character set 84
< ESC > “I” 7
< ESC > “J” n
< ESC z “K” nl n2 ml m2 c ESC > “L” nl n2 ml m2
< ESC > “M”
< ESC > “N” n
< ESC > “0”
< ESC > “p”
< ESC , “P” < 0 > iESC>
<ESC>
“p” <I>
“Q” <3>
< ESC > “Q” n
< FSC > “R”
< FSC > “R” n
< ESC > “S” 0
C’ FSC z “S” 1
83
85
81
88
71
7s
73
13
78
62
62
Select NLQ download character set 84
Select Courier characters
Perform one n/216-inch line feed
60
12
Print single-density
Elite pitch
Set bottom margin
Pica pitch
Select fixed spacing
Select proportional
Set printer off-line
Set right margin
Reset all tab stops
Select international
Superscript
Subscript
P-bit graphics
Print double-density 8-bit graphics
Cancel top and bottom margins spacing character set
80
80
66
74
14
66
68
68
86
76
78
65
63
63
< ESC‘ > “T”
< ESC > “l-1” 0
<ESC> “I.,” I c ESC > “W” 0
< ESC > “W” I
(ESC>
<ESC>
“X”n1 n2
“Y” nl n2ml m2...
Cancel superscript
Bidirectional
Unidirectional printing printing
Cancel expanded
Expanded prmting or subscript printing
Set left and right margins
Print double-density.
63
87
87
67
67
77
< ESC > “2” nl n2 ml m2...
< ESC > “[” “ia” <4> <o> <o>
( ESC > “\” nl n2
< ESC > “I” nl
<ESC> .‘,W
<ESC>
<ESC>
“^“nOnln2mlm2...
“-” 0
< ESC > “L” I
< ESC > “a” 0
< F,SC > “a” I
s. ESC > “a” 2
n2 double-speed 8 bit graphics
Print quadruple-density g-bit graphics
80
80
Select character height, width. and line spacing
70
Enable printing of all character codes 65
Relative horizontal tab
Enable printing of all character
79
codes on next character
Print 9-pin graphics
Stop overlining
Start overlining
66
81
63
63
Left justify
Center text
Right justify
71
78
78
IBM
IBM
IBM
IBM
IBM
IBM
IBM
MODE CONTROL CODE
< ESC > “b” n0 nl n2...... <O >
< ESC > “c“ n
< ESC > “e” 0 II
STD
STD
< ESC > “e” 1 n
<ESCs “f-On
<ESC> “f’ 1 n
< ESC > “h” n
< ESC > “i” 0
< ESC > ‘5” 1
< ESC > ‘j” n
< ESC > “k” n
< ESC > “I” n
< ESC > “p” 0
<ESC> “p” 1
< ESC > “r” n
< ESC > “t” 0
< ESC > “t” 1
< ESC > “w” 0 cESC> “w” 1
< ESC > “x” 0
< ESC > “x” 1
<ESC> “-“I)
< ESC > “-” 1
<FS>
“4"
<FS> “5”
<FS> “:” co > <O> <O>
<FS> “c”
< FS > “Q” n
< FS > “R” n
<FS> “\”
nl n2
“(” “(” “o” “)” ..)”
“(” “(” “4” “)” “)”
“(” “(” “B” “)” “)” ‘,o”
“(” “(” “B” “)” “)” “, 11
“(” “(” ‘.c” “)” “)” n
“(” “(” “F” “)” “)” “o”
“(” “(” .‘F” “)” “)” “, ,.
“(” “(” “F” “)” “)” “2”
FUNCTION PAGE
Set vertical tab stops in channel
Set top margin
Set horizontal tab stop every n columns
Select italic characters
Select upright characters
Copy standard characters from
ROM into RAM
15
73
78
Set vertical tab stops every n lines
Absolute horizontal
Feed paper n lines
tab
in columns
Select double or quadruple size
Cancel immediate print
Immediate print
Perform one n/Zl&nch reverse line feed 72
Select NLQ type style
Set left margin
Select fixed spacing
Select proportional
Select printing
Select standard
Select
IBM
character set character set
Print double-height
Select normal zero
Select slash zero spacing colour
Return to normal height characters
Select draft quality characters
Select NLQ characters
60
76
68
68
64
64
64
69
69
59
60
66
66
75
79
73
69
86
86
61
61
Set MSB to 0
Set right margin
Select international
Relative horizontal
Manual feed
Auto feed
Cancel double-strike character tab
Double-strike printing
Select printing colour printing
Select Courier characters set
82
85
76
65
79
88
88
62
62
64
60
Select Sanserif characters
Select Orator characters with
61 small capitals
Select Orator characters with lower case
Select draft quality characters
Select upright characters
Select italic characters
Eject paper from ASF
Select character size
Set print start position on ASF
61
61
59
61
61
88
70
88
Download
Advertisement
Key features
Color printing
Supports Epson & IBM commands
Multiple type styles
High-resolution printing
Versatile paper handling
Frequently asked questions
You can load single sheets semiautomatically with power on or manually with power off. For semiautomatic loading, place a sheet on the paper guide and insert it into the entry slot. Move the bail lever forward, and the printer will automatically feed the paper. For manual loading, insert the sheet into the entry slot, open the paper bail, turn the platen knob to position the paper, adjust as necessary, and close the paper bail.
To load fanfold forms, turn the printer OFF, set the release lever to the up position, open the bail and sprocket covers, insert the paper, close the covers, and raise the clamp levers. Turn the platen knob to feed the paper forward. To park the fanfold paper, press the On Line switch off-line, tear off the printed form, press and hold the Print Pitch switch, press the Paper Feed switch, move the release lever down, and mount the paper guide upright.
Remove the top cover and locate the adjustment lever near the left end of the paper bail. Pulling the lever widens the gap, and pushing it narrows the gap. There are four positions, and you can feel the lever clicking into place.