background image

Summary of Contents for NP-1O

Page 1: ...NP IO USER S MANUAL NOT INTENDED FOR SALE PN 80820191...

Page 2: ...e U S Government Prin ting Office Washington D C 20402 Stock No 004 000 00345 4 For compliance with Federal Noise Interference Standard this equipment requires a shielded cable This statement will be...

Page 3: ...Selecting and loading paper Loading single sheets Loading sprocket feed paper Adjusting the print head Testing the printer Connecting the printer Chapter 3 Printing with BASIC 19 Some basics of BASIC...

Page 4: ...s Vertical tabs Vertical tab channels Centering and aligning text Chapter 5 Special Features of the Printer Now hear this Resetting the printer Taking the printer off line Printing the bottom of the s...

Page 5: ...g tips Redefining alternate graphics codes g pin graphics mode 79 Appendix B ASCII Code Conversion Chart Appendix C Character Code Table Appendix D Function Codes Commands to control print style Font...

Page 6: ...Appendix F Technical Specifications 165 Appendix G The Parallel Interface 169 Functions of the Connector Signals Index 173...

Page 7: ...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 el...

Page 8: ...icate mechanism and it absorbs nearly all of the printer s operating sounds Don t take off the cover unless you have to change the ribbon or make an adjustment To remove the cover lift up the back of...

Page 9: ...3 Figure 1 2 Remove the printer cover by lifting carefully W Removing the packing tube Figure 1 3 Remove the protective tube from the carriage rail...

Page 10: ...the carriage rail n Installing the ribbon cartridge This printer uses a neat easy to change ribbon cartridge with automatic threading To fit or change the ribbon cartridge I Ggure 1 4 Press the cartr...

Page 11: ...cartridge down until the two holder springs snap shut to hold the cartridge firmly in place See Figure l 4 Check that the cartridge fits so that the drive pins engage the cartridge teeth by turning th...

Page 12: ...6 MEMO...

Page 13: ...used with sprocket feed paper POWER CORD This cord connects the printer to its power source usually a wall outlet It s located at the left rear of the printer PRINT HEAD This is the device that does t...

Page 14: ...ont and rear views of the prmter H Controls and indicators Now let s go over the controls and indicators of the printer starting with the control panel on the right There are three in dicators and thr...

Page 15: ...Line key while holding this key you can advance the paper to the top of the next page or a new form ON LINE KEY and INDICATOR Glows green when the printer is ready to receive data from your computer...

Page 16: ...hen you turn on the power After a second you will hear a beep and the ON LINE indicator will glow If you want to change the character press the ON LINE key press the NLQ key once again to make your ch...

Page 17: ...the paper is held against the platen The release lever has four posi tions the top setting is used for inserting paper the next is for single sheets the third is for sprocket feed paper and the bot to...

Page 18: ...nst the platen according to the setting of the release lever The bail is opened when the release lever is in the top position closed when the lever is in the second or third positions and opened by th...

Page 19: ...urn on the power switch The Power indicator will blink because there is no paper 6 Now set the release lever to the auto feed setting the top position The printer will advance the paper automatically...

Page 20: ...ckward This allows the two sprocket units to move freely right and left so you can align them with the holes in the paper 6 Feed the end of the paper into the slot next to the platen cover plate 7 Fit...

Page 21: ...ocket covers 9 Set the release lever to the auto feed setting The printer will advance the paper automatically 10 When the paper stops set the release lever for sprocket feed paper again 11 Install th...

Page 22: ...t away from you will narrow the gap There are four positions you can feel the lever clicking into the various notches The first step shown is the one most corn monly used for single sheets of paper Tr...

Page 23: ...r or sprocket paper either one 3 While holding down one of the following keys turn on the power switch Paper Feed key Self test 1 long On Line key Self test 2 short Self test 1 IStandard mode I flS PI...

Page 24: ...ce Interface cable Figure 2 12 Connect the cable like this 1 Make sure that both your computer and printer are turned off 2 Connect the printer end of the interface cable to the con nector socket at t...

Page 25: ...phasized text Mixing print modes To show you how to control your printer from a program we have chosen BASIC because it is easy to learn and easy to use Also more personal computer users program in BA...

Page 26: ...ring For example we would use LPRINT Hello to output Hello to the printer We ll see later how to LPRINT more than just character strings We started with Microsoft BASIC because it is the most wide ly...

Page 27: ...st call it A Appendix B shows all of the ASCII codes BASIC uses the CHR function to represent ASCII characters and many functions To print the letter A we would enter LPRINT CHR 65 To make the printer...

Page 28: ...l ASCII value the hexadecimal ASCII value and the CTRL value For example the ASCII code that causes the printer to advance the paper one line is decimal 10 This code may be referred to by any of the f...

Page 29: ...aders of this manual will be running such a wide variety of applications on so many different computers we can t show the exact way of sending codes to the printer for each one of them Instead as we i...

Page 30: ...ully at your printer s self test you probably noticed that it can print in italics But that s not all Your printer can underline characters print superscripts and subscripts and perhaps most exciting...

Page 31: ...only contains NLQ characters This is because we set the printer to the Panel mode at power on so the printer ignored the control codes to set or cancel NLQ characters This is a very useful way to pri...

Page 32: ...ine 20 turns italic on with ESC 4 and line 40 turns italic off with ESC 5 n Underlining Not only can your printer print all styles of printing in both roman and italic but it can underline them too Th...

Page 33: ...perscripts and subscripts Your printer can print in two different heights of characters The smaller characters are called superscripts and subscripts and are half the height of normal characters Super...

Page 34: ...ur printer is set for 10 characters per inch which is called pica and is the same as the pica pitch on most typewriters This works out to 80 characters per line You can also print 12 character per inc...

Page 35: ...rogram to see how it works 10 Demo of expanded print 20 LPRINT Demonstration of 30 LPRINT CHR 14 40 LPRINT EXPANDED 50 LPRINT CHR 20 60 LPRINT printing 70 LPRINT Notice that I 80 LPRINT CHR l4 90 LPRI...

Page 36: ...PRINT turned off Now the results look like this When you turn on expanded print with ESC W 1 it stays on until you turn it off with ESC W 0 Table 3 6 Expanded print commands n Condensed print Each of...

Page 37: ...this program to see how the print pitches expanded print and condensed print can be combined 10 Demo of various print pitches 20 LPRINT CHR 15 30 LPRINT CHR 27 M 40 LPRINT This line is CONDENSED ELIT...

Page 38: ...s actual width A typewriter and most printers on the other hand give every character the same amount of space no matter how wide it is Pica pitch for example gives a w and an i l 10 of an inch each Lo...

Page 39: ...prints a line with proportional pica pitch Finally line 80 resets the proportional printing and line 90 prints a line in nor mal pica pitch MAKING WORDS STAND OUT Your printer has good print density w...

Page 40: ...MPHASIZED printing 1 l 1 j c I j r II 3 i Ei INCJ I lw l 11 y Ii I 1 t I l 1 q Line 20 turns on boldface with ES C G and line 30 prints a line of text In line 40 emphasized is turned on with ESC E Lin...

Page 41: ...e stored in one eight bit byte If you look at each bit in this byte you ll find that each one represents a printing style variation Adding the binary values of the selected bits gives the value of n f...

Page 42: ...one to use For example suppose you turn on both Elite and Emphasized modes These cannot combine so the printer must make a choice in this case the printer chooses Elite Summary notes 1 Pica is the def...

Page 43: ...LINES AND LINE SPACING n Starting a new line Up until now the only time we have thought about printing on a new line is when we didn t want it to happen We learned that putting a semicolon at the end...

Page 44: ...feed If you find that your printer double spaces when it should single space then you probably need to turn DIP switch l 3 on n Reverse line feeds Your printer can move the paper up or down The uniqu...

Page 45: ...rent the printer makes it easy to set the line spacing to whatever you want Try this program to see how easy it is to change the line spac ing 10 Demo of line spacing 20 FOR I 1 TO 20 30 IF I 13 THEN...

Page 46: ...and in IBM mode only defines the line spacing as n 72 of an inch the ES0 2 command changes the line spacing to the amount defined by the previous ES0 A So you need to change the following lines to the...

Page 47: ...ch ESC A CHR n Set line spacing to n 216 inch ESC 3 CHR n One time line feed of n 216 inch ESC J CHR n One time reverse line feed ofn 216 inch ESC i CHR n n Moving down the page without a carriage ret...

Page 48: ...s for one line only without moving the printhead The rest of the lines printed with the normal line spacing Notice that both line 30 and line 50 end with semicolons This prevents the normal line feed...

Page 49: ...the next sheet Try it by changing lines 40 and 50 to this 40 Form feed 50 LPRINT CHR 12 Before you run the program turn your printer off and adjust the paper so that the top of the sheet is even with...

Page 50: ...ngth You may have some computer forms that are not 11 inches high That s no problem because you can tell your printer how high the forms are that you are using There are two commands for doing this sh...

Page 51: ...line happens to fall right on the perforation The printer has a solution to this predicament This printer can keep track of the position on the page and advance the paper so that you won t print too...

Page 52: ...vance to the top of the next page Now add the following lines to your program Don t forget the semicolons or you won t get quite the same results that we did 20 Leave 6 blank lines at the bottom of pa...

Page 53: ...47 _ 0 0 0 0 0 I ___ T7 0 0 0 0 0 0 0 0 0 4 4...

Page 54: ...90 NEXT I 100 LPRINT 110 RETURN The first thing that this program does is to branch to the subroutine that starts in line 70 This subroutine prints 80 X s in a row The first time that the subroutine...

Page 55: ...te printing between the margins HORIZONTAL AND VERTICAL TABS Suppose you need to move across the page to a certain posi tion several times in a document It s not much fun to type in space after space...

Page 56: ...l tabs must be by characters the positions you want tabs set our program are setting in columns 14 and The final ends the of tabs fact any that is greater than provious one stop setting This means you...

Page 57: ...nl CHR n2 The first command in Table 4 8 moves the print head n col umns to the right It has the same effect as sending n spaces to the printer The absolute horizontal tab command moves the print hea...

Page 58: ...I lO CHR O 80 LPRINT Tab 90 NEXT I 100 LPRINT CHR 27 xO 110 END Relative Horizontal Tab Relative Horizontal Tab Relative Horizontal Tab W Vertical tabs Vertical tabs have the same kinds of uses that h...

Page 59: ...FIRST TAB 50 LPRINT CHR ll SECOND TAB 60 LPRINT CHR ll THIRD TAB 70 LPRINT CHR ll FOURTH TAB Now let s set some vertical tabs of our own Add these lines to the program 20 LPRINT CHR 27 B CHR lO CHR l...

Page 60: ...ab position on the next page There s a one time vertical tab command that works just like the one time horizontal tab command Try this program to see how these commands work 10 Demo of print positions...

Page 61: ...rm that can accommodate verious types of responses The second occurs when you create a multipage form or report with different vertical tabs on each page Table 4 10 Vertical tab channel commands Funct...

Page 62: ...LPRINT TOP OF FORM 80 LPRINT CHRS 27 CHR I 90 LPRINT CHR ll 100 LPRINT 1ST TAB OF CHANNEL I 110 LPRINT CHR ll 120 LPRINT 2ND TAB OF CHANNEL 1 130 LPRINT CHR 12 140 NEXT I 150 LPRINT CHR 27 160 END Wh...

Page 63: ...red between the margins or right aligned right justified These are selected by the following commands Table 4 11 Alignment commands Function Control code Left justified printing ESC a CHR O Centered p...

Page 64: ...MEMO...

Page 65: ...rinter n Now hear this You may have heard the printer s bell if you have ever run out of paper And you may have wondered why it s called a bell when it beeps instead of ringing It s a long story that...

Page 66: ...lls you how to create your own characters and it won t erase a macro if you have one stored in the printer s RAM this chapter will tell you how to create a macro In addition if you set the Panel mode...

Page 67: ...normal zero ESC h 0 Immed iat nrint nn au y L II ESC i 1 Immediate print off ESC i n Addn dot spaces betweencharacters1 ESC CHR 32 CHR n Table 5 l Some miscellaneous commands n Backspace delete and c...

Page 68: ...e 70 prevents a line feed from causing that line to print before the printer receives the CHR 24 code The text in line 90 prints as it normally would because it is after CHR 24 n Printing zeroes There...

Page 69: ...racters into its buffer while it waits for a carriage return code In this program the RETURN key doesn t send a carriage return code To end this program and print the contents of the buffer press RETU...

Page 70: ...the space be tween each character n Uni directional printing Uni directional printing means printing in one direction only Your printer normally prints when theprint head ismoving in both directions B...

Page 71: ...the line spacing to 7 72 of an inch so that the characters that we print will touch top to bottom Lines 30 50 print 10 vertical line characters Then line 70 sets uni directional printing and the verti...

Page 72: ...re by now familiar with your printer has a whole different set of characters that are for special uses These characters include block graphics for drawing forms and graphs and special sym bols for mat...

Page 73: ...ers instead of the special symbols then your computer is only using seven bits You can get the correct printout by changing line 160 to this 160 LPRINT I CHR 27 CBR I CHR 27 aw 9 A notefor the IBM PC...

Page 74: ......

Page 75: ...32 CHR 32 CHR 179 60 LPRINT CHR l79 CHR 32 CHR 5 CHR 32 CHR 5 CHR 32 CHR 179 70 LPRINT CHR l79 CHR 32 CHR 32 CHR 32 cHR 32 CHR 53 CHR 179 80 LPRINT CH R 192 CHR l96 CHRs 196 CHR 196 CHR 196 CHR l96 CH...

Page 76: ...select the international character sets are given in Table 5 4 Table 5 4 International character set commands The characters that change are shown beneath their ASCII code in Table 5 5 Table 5 5 Inte...

Page 77: ...cters in high order control code area 20 LPRINT CHR 27 6 30 FOR I 128 TO 159 40 LPRINT CHR I 50 NEXT I 60 LPRINT CJ lR 27 7 70 END i 6 c L That s where the italic international characters have been st...

Page 78: ...should get like this Table 5 6 Control code area commands Function Control code Printable code area expansion ESC 6 Control code area expansion ESC 7 Select undefined codes as characters ESC I 1 Cance...

Page 79: ...er half enlarged print ESC h CHR 4J Quad high lower half enlarged mint ESC h CHR 5 Quad high upper half enlarged mint ESC h CHR G r I Cancel enlarged print I ESC h CHR O Try this program to see the bi...

Page 80: ...CHR 2 130 LPRINT QUAD 140 LPRINT CHR 27 h CHR O 150 LPRINT CHR 27 J CHR 63 160 LPRINT SIZED PRINTING LPRINT LPRINT 170 END When you run this program you will get this n The macro control code The las...

Page 81: ...ter what style it may be to start with The following program will define a macro to do this 10 LPRINT CHR 27 Start macro 20 LPRINT CHR 27 h CHR O Big character off 30 LPRINT CHR 27 CHR O Select normal...

Page 82: ...ND n Reading a hex dump The BASIC in some computers changes ASCII codes before they send them to the printer If you run into problem because of this try this hex dump to check the ASCII codes First tu...

Page 83: ...ice that your printer receives decimal code 13 hex OD together with hex OA which is really decimal 10 In addition your printer does not receive decimal code 26 hex 1A Your printer prints 16 hex number...

Page 84: ...78 MEMO...

Page 85: ...int a company logo Some understanding of dot matrix technology will be useful DOT MATRIX PRINTING Dot matrix printers are named because each character is form ed from a group of dots The print head co...

Page 86: ...age each of the pins prints a row of dots DESIGNING YOUR OWN CHARACTERS Standard characters are permanently stored in the printer s ROM Read Only Memory but characters you design are downloaded and st...

Page 87: ...fine any position between ASCII 32 and 127 LL Figure 6 2 Dots can be inside boxes or straddle the vertical lines of the grid Photocopy the grid in Figure 6 3 to help design your new characters We will...

Page 88: ...tart column End column 16 M Descender l 126 Slarl l 16 End Total Figure 6 3 Use this grid or one similar to it to define your own draft characters m m m m m m m m m m m 128 64 32 16 ASCII Code Descend...

Page 89: ...escape code CHR 27 the 8 is the ampersand CHR 38 followed by CHR O and nl and n2 specify the ASCII codes you want the new characters to occupy nl specifies the beginning of the range of ASCII codes to...

Page 90: ...SC n Where n is either 1 CHR 49 to select or 0 CHR 48 to cancel If you want your new characters to be included in a standard character set you may copy the standard set stored in ROM into the download...

Page 91: ...MM 60 LPRINT CHR MM 70 NEXT M 80 NEXT N 90 LPRINT 100 DATA 139 2 5 8 241 0 0 241 8 5 2 0 110 DATA 139 124 0 66 4 64 36 16 2 16 12 0 120 DATA 139 46 16 2 60 0 45 0 48 0 48 0 130 LPRINT CHR 27 D CHR ll...

Page 92: ...e add additional information Being able to specify the width of the character allows you to specify the precise area inside the grid that the character will occupy so that narrow characters will look...

Page 93: ...s is the same as for draft characters except that you must design the character with the two passes of the print head in mind Use the grid in Figure 6 6 to help plot the data Due to the two pass proce...

Page 94: ...lumn MO Descender 1128 Start 16 1 Enc rota1 2 8 6 24 5 5 1st 9 244 f3 8 2 2nd 6 16 216 9 4 8 274 d 16 4 Ggure 6 7 Add the values of the dots in the boxes first and then add the values on the lines The...

Page 95: ...DATA 120 4 0 4 0 96 4 0 4 8 0 150 DATA 139 46 16 2 60 0 48 0 48 0 48 0 160 DATA 92 32 4 60 0 48 0 48 0 48 0 170 LPRINT CHR 27 D CHR 1l CHR O 180 LPRINT CHR 27 h CHR l 190 LPRINT U S EXPORTS 200 LPRINT...

Page 96: ...to the procedures for characters except that the printed width can range from one to 1920 dots Selection of the appropriate line spacing will allow rows of dots to link seamlessly and in this way you...

Page 97: ...1536 to 1791 X 1792 to 1920 ml m2 and so on are specified as before that is any desired combination of pins will be fired by just one number Because the top eight pins are used in the dot graphics mo...

Page 98: ...T graphics 90 dots inch I ESCj CHR iGj nl n2ml m2 I You will notice that the higher the density of the graphic mode the more points you will need to plot Higher density modes also take longer to print...

Page 99: ...K L Y or Z and nl is one of the numbers used with the ESC com mand 0 to 6 There are several instances in which you may use this sequence The first occurs if you have written a program to be printed in...

Page 100: ...cial g pin graphics mode it won t however work with 7 bit interface systems In this mode the printer takes 2 bytes to fire all 9 pins as shown in Figure 6 8 0 Ij 0 0 E 128 64 32 16 First byte 8 4 2 1...

Reviews: