NX-10 USER’S MANUAL NOT INTENDED FOR SALE PN 80820128
lj 3 Removing the printer cover is easy. Lift up the back of the cover to disengage the two tabs at the front and then lift it
93 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, 16 12 120 DA%
94 Note that we didn’t have to re-enter the download characters, since they were already sent to the printer with the first pro- gr
95 character width is five dots (so you could not, for instance, specify a starting column of 6 and an ending column of 8, even th
96 Because the NLQ characters can use as many as 16 dots ver- tically and 11 dots horizontally, you plan your designs on a dif- fe
97 ASCII Code: ($0 Descender: 2. Start column: End column: MO = Descender* 128 + (Start * 16 ) + End Figure 6- 13. Add the values of
140 DATA 139, 46, 16, 2, 60, 0, 48, 0, 48, o, 48, o 150 DATA 92, 32, 4, 60, 0, 48, 0, 48, 0, 48, 0 When you want to print the defined c
99 240 LPRINT CHR$(61); 250 NEXT I 260 LPRINT 270 LPRINT "CHEMICALS";CHR$(g); 280 FOR I=.4 TO 8.7 STEP .4 290 LPRINT CHR$(60)
100 MEMO - -
CHAPTER 7 DOT GRAPHICS Subjects we’ll cover in Chapter 7 include- . This printer’s bit image graphics capabilities; l Printing a pre-def
So when do you use graphics and when do you use download characters? Practically anything you can do with graphics you can do wit
Figure 1-3. Remove the protective tube from the carriage rail. Up to this point, we’ve been clearing the decks for action, so to sp
largest number we can send in one byte (that’s what the BASIC CHR$( ) function sends: one byte) is 255. And with the normal densit
1 J Figure 7- 1. Starting with the most significant bit at the top, each pin of the print head is assigned a value which is a pow
105 mathematical function (a sine wave) to create a design. Later in this chapter we’ll show something more complex. The mathematical
106 PRINTING A DESIGN OR LOGO Since you control the firing of every pin, you can print nearly anything with your printer that can
107 In the program below, we’ve taken the logo graphics informa- tion and put it into BASIC DATA statements. The program itself is
340 ' Row 2 350 DATA 0, 60,255,255,255,255,255,143, 15 360 DATA 370 DATA 400 410 DATA 31, 31, 15, 7, 3, o, o, o, ;, ; DATA 0, 0, 0,
109 20 LINE.8$=CHR$(27)+CHR$(65)+CHR$(8)+CHR$(27)+ CHR$(5Oj 40 LINE.l2$=CHR$(27>+CHR$(65)+CHR$(l2)tCHR$(27)t CHEI$(50) PLOTTING WITH YOUR PRINTE
80 LX=~O : LY=20 90 LXFAC=72/LX : LYFAC=~'~'/LY 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320
660 RANG=ANG%*6 28/360 670 X2=RAD"COS(iANG)tlO : Y2=RADSSIN(RANG)tlO 680 GOSUB 250 690 NEXT ANG% 700 RETURN If you are using with t
112 to calculate starting and ending points for a line (in our circle the “lines” are very short - sometimes the starting and ending
c_ / . 5 Warning: The print head gets hot during operation, so let it cool off before you touch it. Figure 1-4. Press the cartridge
I 113 600 ’ 610 ) Subroutine to plot a sine wave 620 ) 630 x1=0 : Yl=lo : x2=20 : Y2=10 640 GOSUB 250 650 x1=10 : Y~=O : x2=10 : Y2=20
114 Table 7-2 Dot graphics commands Function Normal densitv (60 dots/inch) 1 (ESC)“*“CI I Control code HR$(O) nl n2 ml m2 . . . Double den
I. Double density graphics Double density/double speed , 115
So if quadruple density looks so great, why not use it all the time? Let’s try an experiment on your printer which will show jus
119 - puting time as double density, it prints at the same speed as nor- mal density graphics. Amazing, you say? Well, it is - unt
120 , graphics densities. These commands, which are shown in Table 7-3, can be used interchangeably with the corresponding (ESC) “*” c
121 n g-pin graphics mode In the early part of this chapter, we said that the bottom pin of the print head is not normally used i
122 MEMO
6 Print head Figure 1-5. All you have to do is to slide the print head carriage manually to your right or left, then the ribbon s
., CHAPTER 2 GETTING TO KNOW YOUR PRINTER Subjects we’ll cover in Chapter 2 include - l Parts of the printer - what they’re for and how t
r ’ I Tractor feed unit nterf \ Power cord ’ Power switch Figure 2- 1. Front and rear views of the printer TRACTOR FEED UNIT - The dri
I . _ . w. L-. . . w.. . . . LI dI 9 I. PLATEN - This is the rubber cylinder that carries paper to the print head. INTERFACE CONNECTOR
10 n Extra functions There are eleven more functions that are not directly specified on the control panel. You can use six of them b
11 you’ll be using often. This lever controls the pressure of the paper against the platen. It has four settings: g - The top sett
19 OK? Let’s start. 1. Move the sprockets on the tractor feed unit all the way to the ends. 2. Slide the sheet guide all the way
Federal Communications Commission Radio Frequency Interference Statement Thw rquipment generates and uses radio frequency energy and if
L Figure 2-5. . . . . . . . . *. l’rop up the paper guide by inserting me guise stana in the notches provided for it. 1 1 ‘igure 2-6
14 9. Now set the release lever to the auto-feed setting-the top position. The printer will advance the paper automatically. 10. When
I I . ‘,,, ,’ 15 5. Flip the clamp levers backward. This allows the two sprocket units to move freely right and left so you can al
ADJUSTING THE PRINT HEAD The distance between the print head and the platen must-be adjusted to accommodate papers of different thic
*_ . 17 1. Make sure both your computer and printer are turned off. 2. Connect one end of the interface cable to the connector sock
18 n Self-tests Your printer has two built-in programs that print out sample lines of letters, numbers, and other characters-to show
n Hex dump Can you guess what a “hex dump” is? No, it’s not where witches throw away useless spells. A hex dump is an advanced ab
1. Plug in the printer (don’t turn it on yet). 2. While holding both the Mode and Bold keys, turn on the power switch. Right marg
Mode key - Left margin set Paper Feed key - Right margin set 3. While holding the two keys, the print head moves across the page
I Table of Contents Chapter 1 Setting Up Your Printer Where shall we put it? What have we here? Removing the printer cover Removing the
CHAPTER 3 BASIC PRINTING Subjects we’ll cover in Chapter 3 include- * Listing BASIC programs on the printer; l How a program prints thin
; 24 language, perhaps recalling the rigors of high-school Latin. Others are unnerved by anything having to do with computers. Well d
25 output to the screen. Other computers, notably the Commodore C-64, require you to open the printer as a numbered device then to d
would enter LPRINT CHR$(65). To make the printer’s bell sound, we would LPRINT CHR$(7). In general, we print a character by enterin
27 line feed -the name of the code UJ’) -its abbreviation ASCII 10 -its decimal value ASCII &HOA -its hexadecimal value (the &H
28 This command that turns on expanded printing. (ESC), as we mentioned earlier, is the escape code (which is ASCII code 27). A lette
29 But for the final printout, try NLQ. The program below shows how. 10 1 Demo 20 LPRINT 30 LPRINT 40 LPRINT 50 LPRINT of NLQ character s
f Demo of italic and :; LPRINT CHR$(27)*"4"* 30 LPRINT "This li;e ii 40 LPRINT CHR$( 27);"5y 50 LPRINT "This lin
31 In this program underline is turned on in line 20 with (ESC) “ -“l, and then off in line 40 with (ESC) “-“O. There’s a new li
32 Here line 30 turns on superscripts with (ESC) “SO. It’s turn- ed off in line 50 with (ESC) “T”. Then between printing text, sub
23 Chapter 3 Basic Printing Some basics of BASIC A new language! First steps ASCII codes and the CHR$ function Control codes The escap
33 Line 20 turns on elite pitch with (ESC) “M”. Line 30 prints a line at 12 characters per inch. The (ESC) “P” in line 40 reset
34 Now the results look like this: When you turn on expanded print with (ESC) “W”l it stays on until you turn it off with (ESC)
Table 3-7 Condensed print commands Function Control code Condensed ON CHR$(15) 01 (ESC) CHR$(15) Condensed OFF CHR$(18) By combining expande
This line is CONDENSED ELITE pitch, This line is CONDENSED PICA pitch. This line is NORMRL ELITE pitch. l-l-1 :i, vii :I. :i n e :i,
When you run this program you should get this: This line is NORMAL ELITE printing. This line is F’ROF’ORTIONAL ELITE. “r1.7j.:~ :/.j
38 - Try them now with this little program: f boldface and emphasized 2': ~PEE EHR$(~~) ;"G"; 30 LPRINT "This iine is
39 more efficiently. You have at your disposal a unique command that lets you choose any valid combination of print modes and pitch
To better understand the way the print modes work, consider that each mode except pica (pica is the default) has a separate switch
CHAPTER 4 FORMATTING TEXT Subjects we’ll cover in Chapter 4 include- * The carriage return and line feed; l The amount of space between
42 Line feed is more complicated. Each time the printer receives a CHR$(lO) it both advances the paper one line and returns the prin
Chapter 5 Special Features of the Printer Now hear this 61 Resetting the printer Putting your printer to sleep Printing the bottom of
43 NEW 10 20 2 2: 70 ( Demo of line spacing FOR I=1 TO 25 IF 1=13 THEN 60 LPRINT CHR$(27);"A";CHR$(I); LPRINT "THIS LINE SP
Line 40 changes the line spacing. The command (ESC)“A” CHR$(n) changes the line spacing to n/72 of an inch. The loop that is start
45 The program works just the same as before, but the line spac- ing are just one-third what they were. This is because (ESC j“3”
46 NEW 10 ' Demo of' one-time line feeds 20 LPRINT "LINE NUMBER 1." ;; LPRINT "LINE NUMBER 2."; ' One-time l
47 PAGE CONTROL Now that we have seen how to control line spacing, we can go on to page control - positioning the printing on the
ed, for example, to print text in a multi-column magazine for- mat; print the first column, then reverse form feed back to.the top
49 advance the paper to the top of the next form. Line 50 then prints its message. After you have run this program, turn off the
10 ' Demo of top and bottom margins 60 LPRINT CHR$(12); :' form feed 70 FOR I=1 TO 150 80 LPRINT "THIS IS LINE";1 90 NEXT I 110
THIS IS LINE 1 THIS IS ILINE 2 THIS IS LINE : THIS IS ILINE 4 THIS I5 LINE 5 THIS IS ILINE 6 THIS IS LINE 7 THIS IS LINE R THI
SETTING LEFT AND RIGHT MARGINS The left and right margins of this printer work just like a typewriter - once they are set all th
., .,. . Chapter 7 Dot Graphics Comparing dot graphics with download 101 characters Using the dot graphics commands Specifying the numbe
53 When you want to reset the margins to the default values, you have two choices. You can either turn the printer off and back
15 LPRINT CHR$(27);"D";CHR$(7);CHR$(l4);CHR$(21); CHR$(O) (ESC)“D” is the command to begin setting horizontal tabs. It must be f
,. 55 The aboslute horizontal tab command moves the print head to a specified position on the page. The position that you want the
80 LPRINT 90 END W Vertical tabs Vertical tabs have the same kinds of uses that horizontal tabs do - they just work in the other dir
j . 1-I-i I HC) TAM I wx.m-1-i-4 -rAb.
., Add one more line to the program to demonstrate one more feature of vertical tabs. 80 LPRINT CHR$(ll);"FIFTH TAB." Now whe
10 1 Demo of vertical tab channels 20 LPRINT CHR$(27>;"b';CHR$(l>;CHR$(lO);CHR$(2O); CHR$(O) ; 30 CLHPRHl~oT)CHR$(27);"b&quo
f-w In this program we set tabs at 10 and 20 in channel 1 in line 20. In line 30 we set tabs 15 and 25 in channel 2, and in
CHAPTER 5 SPECIAL FEATURES OF THE PRINTER Subjects we’ll cover in Chapter 5 include- * Printer’s bell; l Master reset; l Uni-directional
62 sound the bell for a quarter of a second. This can be used to re- mind an operator to change the paper or to make another adju
- ..” Appendix D Function Codes Commands to control print style Font style controls Font pitch controls 165 Special print modes Controlli
stop the printer. This will allow you to print to the end of the sheet, and even beyond if you are not careful. The codes to c
60 LPRINT "WORK" 70 LPRINT "CANCEL LINE"; 80 LPRINT CHR$( 24); 90 LPRINT "DOES NOT WORK" Here is what this progra
65 You can turn immediate-print mode on with (ESC) “i” 1. But before looking at it, let’s review the normal operation of the print
This line is added 10 spaces. This line is added 8 spaces. This line is added 6 spaces. This line is added 4 spaces. This line is a
67 Here is what you will get. The top line is printed bi-directional- ly, and the bottom is printed uni-directionally. You will have
Table 5-3 Eighth bit controls Function Control code Turn the eighth bit ON (ESC) “>” Turn the eighth bit OFF (ESC) “=” ~ec~~~~;t~ bit
I :- ; ::> 69 Figure 5- 1. Character set #2
70 Figure 5-l shows what this program will print. If your chart doesn’t 1001 like this because it has regular letters and numbers i
71 If you have a 7-bit interface, add the following lines to the pro- gram given above: 15 LPRINT CHR$(27);">"; 95 LPRINT C
72 Table 5-4 International character set commands I Countrv The characters that change are shown beneath their ASCII code in Table 5-5.
CHAPTER 1 SETTING UP YOUR PRINTER Subjects we’ll cover in Chapter 1 include- . Choosing a suitable place for your printer; l Unpacking y
73 command to “normalize” the high-order control codes is (ESC) “6”. Try this program with the DIP switch 1-6 on. 10 ’ Demo of char
74 130 NEXT I 140 LPRINT CHR$(144);CHR$(145); 150 FOR I=149 TO 159 160 LPRINT CiSS(I); 170 NEXT I 180 LPRINT CH?.$(27);"10" 190 END When yo
I ;. ” 75 10 ' Demo of BIG characters 20 LPRINT "THIS IS I'; 30 LPRINT CHR$(27);"h";CHR$(l); 40 LPRINT "DOUBLE"; 50
When you run this program, you will get like this: n The optional sheet feeder The automatic sheet feeder is a handy option that fe
77 which refers to an instruction that “calls,” or uses a group of nor- mal instructions. In computer programming macro-instructions (whi
78 tional pitch, condensed print, expanded print, boldface, em- phasized, and the underlining. Line 40 cancels the superscripts and th
79 If your system passes the codes directly to the printer without changing them, you will get like this. (You can print out the
80 dumps the characters to the paper. To debug a program quickly, just use the hex dump capabili- ty. Appendix B will help you tran
CHAPTER 6 CREATING YOUR OWN CHARACTERS Subjects we’ll cover in Chapter 6 include - l Designing and printing your own characters; l Desi
see, the capital letters use the top seven wires of the printhead, and the descenders (such as the lower case “p” shown) use the
2 WHAT HAVE WE HERE? Now let’s take a look at what’s in the carton. Open it up and check each item in the box against Figure l
83 character sets, and the NLQ characters. But there is another area of memory in this printer reserved for user-defzked characters.
download character. You can see how we’ve laid it out in Figure 6-5. Later in this chapter we’ll use this character to create a sm
I . . 85 One bit in the download character definition command is to be treated as a descender or not. We’ll get to the command in du
1 m m, m, m, m. m. m m, m. m m 64 32 16 4 2 1 Tolal ASCII Code WRONG! Descender Start column End column M, = Descender l 128 + (Slat1
87 So add up the values of the dots in each column using this system. In Figure 6-8 we’ve shown our grid with the sums of the co
also access the character from a BASIC program with the CHR$ function. There are no rules or restrictions on the use of numbers. T
I 1. : : 89 n Download character definition command You’ve read through a long explanation of download characters and we haven’t even
L 0 000 1011 = ll(decimal) Descender Starting Ending date print column print column Figure 6-10. The attribute byte-(M) for our flask
I PRINTING DOWNLOAD CHARACTERS You’ve now defined and sent three characters to your printer. But how do you know that? If you try p
92 Nope! Just three characters in the download set. This is incon- venient for a couple of reasons. First, every time you wanted to
Comentarios a estos manuales