background image

Содержание NP-1O

Страница 1: ...NP IO USER S MANUAL NOT INTENDED FOR SALE PN 80820191...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 6: ...Appendix F Technical Specifications 165 Appendix G The Parallel Interface 169 Functions of the Connector Signals Index 173...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 12: ...6 MEMO...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 53: ...47 _ 0 0 0 0 0 I ___ T7 0 0 0 0 0 0 0 0 0 4 4...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 64: ...MEMO...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 74: ......

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 84: ...78 MEMO...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: