DD ~1~ ° ~ ~3D ~ ~3~3D ~ ~~ ~~ MICRO PRINTER USER'S MANUAL ßa~~
The contents of this manual are subject to change without notice .
WEM MICRO PRINTER USER'S MANUAL (May 1999)
The met 1. 2. NOTICE FOR THE PRINTER USED IN EUROPE cable of the interface (parallel port or serial port) for printers must be prepared by the user and must be the following specifications : Use the shielded cable for the connection to the printer . Use the noise filter on the cable and the cable should be turned as shown in following Figure . Noise filter ( Ferrite-ring enclosed to printer package ) Figure : The noise älter is r quired for the connection to the parallel port or serial port .
The Notice For Watch-Dog Function in DPN-833/8233/8333 Printer The Watch-Dog function has been added in DPN-833, DPN-8233 and DPN-8333 p rinters . lt will improve the anti-interference of the printers greatly . When the printer is in abnormal state due to some interference such as ESD, Burst or RF in long time exceeding the period of the watch-dog timer, the printer will be restarted automatically as well as the printer resets while power on .
Chapter 4 Printing Commands CONTENTS Introduction 1 Chapter 1 Features and Specifications 1 1 .1 Features 1 .2 Nomenclature 2 1 .3 Specifications 2 Chapter 2 Installation 2 .1 Model Checking 2 .2 Accessories Examination 2 .3 Install Ribbon Cassette 4 .1 Summary 19 4 .2 Paper Feeding Commands 20 4 .3 Formatting Commands 21 4 .4 Character Setting Commands 26 4 .5 User-Defined Characters Commands 31 4 .6 Printing Graphics Commands 33 36 4 .7 Initialization Command 4 5 5 2 .
Appendix E Serial Interface and Operation 49 Appendix F Option List 511 Appendix G Printer Outline 51 Warning ! The power supply of DPN-833/8233/8333 series printer is only DC +5V .
Introduction DPN-833/8233/8333 is a new series of fast speed, general purpose Impact dot matrix microprinter . All members of this series are small in size , light in weight , attractive in appearance and easy in operation . The special features ofthis series are fast Speed and high reliability . This is the advantages of new hardware and software design . An 8-pin shuttle impact print head is adopted . Also Fast Paper Feed Function - twice the speed of printirg is added .
1 .2 Nomenclature Connector : Model numbers are given according to the following system . Signal Level : DPN - 8000 - 0~ -990 I Mechanism Model: 33- M-160 series 233- NI-180 series 333- M-190 series Line Width : 24,40,42 Characters Interface: PAR- Parallel x'24- Serial 1 .3 . Specifications Print Characters : 448 defined characters in ROM, includes IBM* Character Set N 2 .
Power Connector: DC Jack type, on the back of printer, central pin diameter 2 .35mm . DC Plug outer diameter 5 .5mm, inner hole diameter 2 .5mm . Dimension : Weight : Operating Environment : Temperature Humidity - 0 ° C to +40 ° C 5 to 80% RH 165mm (w) x 14hmn (D) x 65mm (H) 350 grams ,without paper roll Main Parameters of DPN-833/8233/8333 Micro rinters MODEL Char /Line Char Size (5x7) DPN-833-24-V .24 24 Speed Fast Paper Feed Dots/Line Life Time mm(WxH) (lines/sec .) Speed (1ines/sec .
Chapter 2 . Installation 2 .1 Model Checking The appearance of DPN-833/8233/8333 series printer is shown in Figure 2-1 . Check the mode) number on the label of the printer . Read all instructions about this model in the manual . PAPER OUT SLOT INTERFACLcCONNCCTOR DC PU W I ii LACK Figure2-l . Appearance of DPN-833/8233 8333 series printer SEI .
2 .2 Accessories Examination .A paper roll and a ribbon cassette have been loaded inside the printer before packing. A user's manual is included. The user may select optional accessories according to their needs (see Appendix F) . 1 . Push forward the removable Cover Plate with both thumbs . (Note the arrow on Cover Plate. See Figure 2-2 and Figure 2-3 .) Then take off Cover Plate carefully . 2 .
2 . Hold the left end of the ribbon cassette with your left hand . Hold right end in right hand . Right thumb is on top and forefmger below (Figure 2-4) . Lift the right end ofthe cassette with the right forefinger. Then lift the left end . The ribbon cassette will comeoffeasily . Caution- Neverliftleftendfirst. This may damage ribbon and printer head . 3 . Take a new ribbon . Hold the cassette as in step 2 . Put the left end on the axle ofthe gear on the left end of the printer head .
If it is difficult to push the left end down, raise it again . Hold the cassette with right hand . Press the gear on the cassette with left thumb . Then rotate slightly as indicated. See arrow on the cassette cover (Figure 2-6) . Figure 2 -6 Turn the gear as indicated by the arrow Secure the cassette on the printer head . The procedure may be repeated several times until it is easyto push the left end of the cassette onto the axle of the gear .
aometimes, tne cassette is put m correctly but part ot the ribbon rides up over the printer head as shown in Figure 2-8 . w . Put on tne removable Lover Plate . Place the Plate on the Guide Slot. Push into place gently as in Figure 2-9 . Figure 2-8 Part ofthe ribbon rides up over the printer head This may be caused by two reasons . 1 . The paper has been loaded before the ribbon . Remove paper and try again . 2 . The ribbon has been used for long time . Replace with new cassette. -8- Figure 2-9.
2.4 Loading Paper The paper roll may be placed inside the printer case When The paper roll is placed inside , the end should be underneath as Figure 2-11 caution Donl load as Figure 2-12 There are two ways to store the paper Roll : Place the Paper Roll inside of the printer case , as ex-factory , Load paper as fol lows : 1 . The removable Cover Plate must be taken off 2 . Cut the paper roll as shown in Figure 2-10 . \/ Figure 2-11 Correct paper roll loading - End is underneath Figure 2-10.
Figure '-1? Wrong paper roll loading
3 . Power an 5 b' power supply . 4 . The SEL (select) Button is an ON/OFF toggle . press to the SLL. indicator off Then press 1-f-' (Line Feed ) butlon , Ihn printer head begins to nm Feed in paper . The paper entern the printer head and coroes out fiom the top of the printer head . To stop paper feeding release LF button . Pay attention to the polarity of the power supply . The central pin ofthe power jack on the printer is positive . The sptingplate in the side ofthe jack is negative .
Chapter 3. Operation Pin 3 .1 Parallel Interface Connection When a DPN-833/8233/8333 microprinter is linked with a PC, laptop,or other equipment with a standard parallel or serial interface, a standard cable can be used .
Signal level is TTL standard . The signal timing chart of parallel interface is shown in Figure 3-3 . BUSY 3 .2 Serial Interface Connection The cable mentioned in Section 3 .1 also can be used to link printer with computers or equipment with standard RS232C interface. The 25 hole connector an the back of the DPN-833/82 ,3833 3 senes printer is shown in Figure 3-A ACK i 13 I \\ DATA . t~ STB . . . . . . . . . . . - VApprox . 5 us Approx . 5 p s 05Ns (MIN .) 0-5µs (MIN .) 05µs (MIN .
Signal level is compatible with EIA Standard . Pln No. 3 Signal Source TxD Host Printer receives data from host computer RxD Printer Printer trasmits data when uses the handshaking of X-ON/X-OFF Pnr[ter Signal sets "MARK" state to indicate the printer is BUSY and can not accept data, and "SPACE" state to indicate the printer is ready and can accept data .
DIP SWITCH ON ∎ •U ooo 000000 2 3 • BPS 150 The format ofserial interface is asynchronous as shown in Figure 3-8 . Start Bit (0) 1 bit 6 6 Parity Bit Date Bits 1 bit 7/8 bits Stop Bit (1) 1 bit ON o •U aoa ∎70700 1 2 x • 5 6 i7Z77a 0 •0 070 7 J 6 6 300 600 • OM 07x777 ∎7770 1 x 6 se oN ∎ .7777 07770 1200 • 2 2 • 2400 6 6 ON 7 •0 000 ∎72777 1 0 ~ . s s 4800 7~~000 9600 1 2 3 • Figure 3-8 . Asynchronous transmitting format START bit and STOP bit are one bit Signals.
The signal polarity of serial RS-232C is : Mark = Logic "1" (EIA low level . -3V to -27V) Space = Logic "0" (EIA high level . +3V to +27V) There are two kinds of Handshaking to be selected . First is the Flag Control . The other is the X-ONIX-OFF p rotocol . l t is selected with K4 as in Figure 3-10 . The K4 is set to OFF ex-factory . DIP SWITCH HANDSHAKING 1DD •E 0 000000 FUG X111030 000 UDO XON/XOFF Figure 3-10. Handshaking selection Two kinds of Handshaking are listed in Figure 3-11 .
3 .3 Indicators and Switches Operation printer prints out Self-Test sample . There are two indicators and two button switches on the panel of the printer. The power indicator is labelled "P." . The other is the "SEL" indicator . A button switch is labelled "SEL" for selecting On/Off Line . Aother is labelled "LF" for paper Line Feeding. (See Figure 3-12 .) (2) With Power On and printer Off-Line, press and holdLFand thenpress SEL . Release both buttonstogether .
3 . Paper Feed Mode When print procedure is interrupted, SEL off, the printer enters Off-Line mode .If paper has tobe replaced press LF button Printer will feed paper without printing then release LF, printer will stop paper feed . Press SEL, printer re-enters On -Line mode . 3.4 Self-Test Self- Test cheeks condition of printer . lf the printer prints out the Self-Test sample correctly lt is working normally . Eventually faults are not caused by the printer but by the interface on host computer.
Chapter 4 . Printing Commands 4 .1 Summary DPN-833/8233/8333 provides up to 40 printing commands These command special functions (1) Defme formatting . (2) En large or condense of characters . (3) Print image graphics . (4) Select font . (5) Define special characters . (6) Other. Some of these commands consist of a one byte control code. Some are ESC code sequences . The latter sequences start with "ESC" code, followed by other alphanumeric characters .
Theseprintingcommandsareintroducedbelowaccording to the type of function they perform . 4 .2 Paper Feeding Commands LF Line Feed Format: ASCII : LF Decimal : 10 Hexadecimal : OA n n n Explanation: The line spacing is set to n dot-lins for future Line Feed commands. Perform Dot-Line Feed Format: ASCII : ESC J n Decimal : 27 74 n Hexadecimal : 1B 4A n Explanation: Immediate Line Feed for n dot lins without Caniage Retum. The value of n can be any number in the range 1 - 255 .
30 LPRINT "LINE SPACING" ;CHR$(l0) ; 'print string and Line Feed 40 NEXT I A printout of above program on DPN-8333-24 : ESC C Set page length in lines Format : ASCII : ESC C n Decimal : 27 67 n Hexadecimal : 1 B 43 n L I NE '='.PA I Flies L I NE 4 .3 Formatting Commands r'HL_ I NG LIRE _P HI=ING LIRE '=;F'i~l_ I GaG L I NE = PHl_ I f 4G Explanation : The page length is set ton lins . The value of n should be within the range 0 to 25 5 . If n=0, the page length will be 256 line .
a page and the first line of the next page . Example: To set the bottom margin to 3 lines, send the following sequence : ASCII : ESC N ETX Decimal :27 78 3 Hexadecimal : 1B 4E 03 BASIC program : LPRINT CHR$(27);" N' ;CHR$(3); ESC 0 Cancel bottom margin Format : ASCII : ESC 0 Decimal :27 79 Hexadecimal : IB 4F ESC B Set vertical tabs Format : ASCII : ESC B n, n 2 n 3 .. . Decimal : 27 66 n, n z n 3 . . . Hexadecimal : I B 42 n, n ; n3 . . .
BASIC program : 10 LPRINT CHR$(27) ;"B";CHR$(2)CHR$(5)CHR$(8)CHR$(0); 'ESC B commands 20 LPRINT CHR$(11), `VT command 30 LPRINT "VTAB1"; `print string 40 LPRINT CHR$(11) ; `VT command 50 LPRINT "VTAB2" ; `print string 60 LPRINT CHR$(l 1) ; `VT command 70 LPRINT "VTAB3' ; `print string Printout: VT Vertical tab Format: ASCII : VT Decimal : 11 Hexadecimal : OB Explanation : Feed paper to next vertical tab set by ESC B command .
All horizontal tab settings can be cleared by using this command in the format ESC D NUL . HT command executes horizontal tab .
Explanation: Explanation : If m=0, command ESC f NUL n will print n blank characters. The value n should be within the line width ofthe printer (See Section 1 .3) . The value n should be within the line width ofthe printer (See Section 1 .3) . If m=1, command ESC f SOH n will print n blank lines . The value n should be within the range 0 to 255 . The command sets an absolute position and is not affected by character enlarge command ESC U or ESC W . Example .
Printout on DPN-8333-24 ESC 1 Set left margin 121 ,17 4567 21W11 C91'234 1 4567 • tTJ12?45 '90112--7 45--, 7 ~:,9 r Format : ASCII : ESC 1 n Decimal : 27 108 n Hexadecimal : 1 B 6C n 4.4 Character Setting Commands Explanation : ESC U The value n should be within the line width ofthe printer (See Section 1 .3). Default value n=0 . This means no left margin .
40 NEXT I 50 LPRINT CHRS(13) ; Printout : 'CR command DFHC' P t-N Cm F` i--a Note : ESC U will not function unless preceded by ESC W SOH (n=1, see ESC W in this section), i .e. Set height and width to normal size before enlarging width ESC U .
ESC W Format : ASCII : ESC W Decimal : 27 87 Hexadecimal : 1B 57 Enlarge width & height Turn underline on/off ESC Format : ASCII : ESC Decimal : 27 45 Hexadecimal: 1B 2D n n n n n n Explanation : Explanation : Characters or graphics following this command are printed at n times normal width and height . The value n should be in the range 1 to 4 . Default value n=1, i .e . normal width and height. Underlining is tumed on if n = 1 and tumed off if n = 0 .
ESC + Tum overscore on/off Format : ASCII : ESC + Decimal : 27 43 Hexadecimal : I B 2B n n n ESC 6 Select Font 1 Format : ASCII : ESC 6 decimal : 27 54 Hexadecimal : I B 36 Explanation: Explanation : Overscoring is tumed an if n=1 and tumed off if n=0 . All characters are overscored including spaces . Characters following this command are printed usingthe Font 1 (See Appendix B).
SO Select double-width printing for one line Double-width printing is cancelled if it has been set using SO . This command does not cancel enlarge width printing selected using ESC U or ESC W . Format : ASCII : SO decimal : 14 Hexadecimal : OE ESC i Explanation . Format : ASCII : ESC i n Decimal : 27 105 n Hexadecimal : 1 B 69 n Characters following this command on the same line ir the print buffer are printed at twice their normal width .
ESC c Forthat : ASCII : ESC c Decimal : 27 99 Hexadecimal : 1B 63 Tum inverse printing on/off n n n Explanation : Inverse printing ( NMOU SQIB a(1 ) is tumed On if n - 1 ,O f if n=O Inverse printing is usual in wall-mounted printer ESC c does not support the inverse printing ot' Graphics Default Value n=0, is selected at power an or an ESC !1 . This cornmand allows a character to be defined The value m is the code of this user-defined character, and rangen from 32 to 255 . The values n t , n 2, . . .
ESC % Replace with user-defined characters Format: ASCII : ESC % m, n 1 Decimal : 27 37 m, n, Hexadecimal : 1 B 25 m, n, m2 n2 . . . mk n k NUL m2 n2 ... mk nk 0 m2 n2 . . . m k n k 00 Explanation : This command is used to replace Font characters with user-defined characters. m 1 , m2, . . ., ml, are codes of user-defined characters . n 1 , n 2, . . ., nk are codes of the characters in the current font - the replaced characters . The values m and n should be in the range 32 to 255 .
40 LPRINT CHRS(&H40);CHR$(&HFF) ;CHRS(&HFF) ; 50 LPRINT CHR$(27) ;"% ;CHR$(65);CHR$(65) ;CHRS(0) ; `ESC % 60 LPRINT CHRS(65) 'print defined character 70 LPRINT CHR$(13) ; 80 LPRINT CHR$(27) ;":" ; 'FSC : command 'reinstate char . in Font 1 90 LPRINT CHR$(65) Printout on DPN-83 33-2a 4 .6 Printing Graphics Commands Bit Image printing nt nt nt This command prints graphics with W X 8 dot matrix . The width of such graphics is W dots, and the height is L dots .
07, 18, 20, 40, 40, 98, 90, 91, 91, 9E,40,40, 20, 18, 07, 00, C0,30,08,04,04,72,92,12,12,32,04,04,08,30, CO,00 . 07H a 1l heb Lsa .esa W nnnnnN~~∎∎nnnnnn nnn~~nnnnn~~nnnn nn.nnnnnnnnn on •n nn . • . • • o nL•n•nnnn •n nn .nnnunOO •n n ∎nnnnnnnn •n nnnZE ∎nnnnnnnn •n nnnZZ ∎nnnnnn~~onaao •n ∎nnnn3ZnnnnnnnZ2 ∎nnnnUnnnnnnnDUn n~nnn~nnn .nnLIUnn onn~OOOOOOnnn •o nn • . . . .onn •o o •n nn ooo • • a nnnn • • n noo nnnnn...UUnnnnnn nnnnnnnnnnnnnnnn COH oa.
Example : ESC ` Format : ASCII : ESC ` m n, Decimal : 27 39 m n, Hexadecimal : 1B 27 m n Print curving graph lines n2 . . . n2' . ' n2 . . . nk nk nk CR 13 OD Explanation : This command is designed to print curving graph lines along the paper feed (vertically) . The value m is the number of lines and should be within the range 1 to the maximum number ofthe dots per line (See Section 1 .3). In a horizontal dot line, there are m intersections of m curving graph lines . The value n t , n 2, . . .
4 .7 Initialization Command ESC @ Initialize printer Format: ASCII : ESC @ Decimal :27 64 Hexadecimal : IB 40 Explanation : Reset printer to : • clear print buffer • restore default values • select Font 1 • de-select user-defined characters 4.
Explanation : When a Carriage Return is sent to the printer, any data in the buffer is printed and paper is fed one line . CAN Explanation : The previous character in the buffer is deleted unless that character has already been printed. This command will not remove control codes .
ESC " Tum Hexadecimal Dump printing on/off Forthat : ASCII : ESC " Decimal : 27 34 Hexadecimal : 1 B 22 n n n Explanation : Hexadecimal Dump print mode is tumed on if n=1, and tumed off if n=0 . If you execute programs or list program in Hexadecimal Dump print mode, all data sent from the host computer will be printed out in hexadecimal . Example : W henthe following 4 data are sent from the host computer after the command ESC " .
Chapter 5 . Printing Examples Example Programs below illList rate BASIC programs willen for the DPN-8333 printer with different interfaces 5 .
Printout : Ql li iTAT I i iN eFOD3CT CODE JHIT F'F'ICE U'33 ) 1-Lt I1-50 50 + -----------------------PW/ 02 120 115 111 PW -'1O1 ::c• _t4 :1 PW1ÜJ1 64 63-. r1 70 FIM 1E+ Frol?' 11 5~ 51 ='t•1 21 Z 17 1 c• 15 z14 -i_i 1 - .5 '? . -----------------------5.2 Serial-Port Printer Example 2 . DPN-8333-24-V .24 printer is connected with the RS -232 C serial port of PC The Flag Control is selected by setting K4 to ON. Also 9600 band rate , 8-bit data and Non- Parity are selected . (See Section 3 .2 .
270 RETURN 280 DATA" ","1-10","I1-50","50 +" 290 DATA "PW2302" "120" "115" "111 " 300 DATA 7W2101" "81" 310 DATA "PW 101","64","63","61" 320 DATA "PW 102" "75" "72" "70" 330 DATA "PW21 1 ","53","52","51" 340 DATA "PW212" "17" T'," 15" 350 DATA "PW301 ","9 .5","9 .3","9 .1" The printout of this program is same as Example 1 . Example 3 . DPN-8333-24-V 24 printer is connected with the RS-232C serial port on P C . The XON / XOFF protocol is selected by setting K4 to OFF ( sec DIP switch setting in section 3 .
Chapter 6 . Operating Note 1 . Do not dismantle printer head . 2. Do not leave power on when not in use for a long period . 3. Switch off if printer works abnormally . 4. Power supply must match requirement. See Section 2 .5 . 5. Do not lubricate the printer head. 6. Fluff and dust from paper are harmfitl to printer head . Check and clear the head when replacing paper roll . 7. When replacing ribbon, do not press the cassette too heavily. Otherwise the plastic wheel on the head may be damaged . 8.
Appendix A .
Appendix B . Character Code Tables There are two character code tables or sets in the printer . Code Range from 20H (Hexadecimal)to FFH (Hexadecimal) . Code 0011 to 1 FH are control codes (See Appendix C .). ESC 6 command is used to select Font 1 (Character code table 1), and ESC 7 to select Font 2 (Character code table 2) . Font 1 : 0 1 2 3 4 5 6 7 8 9 ABC D E F 2 ! # $ % & , ( ) * + .- .
Font 2 : 0 1 2 3 4 5 6 7 8 9 ABC D E F 2 3 -==or, ;, tjtnt5fhnas x.ii i1 ~ .2t9 S 6 7 i G l E h 1 3 7 '1 ~L V 0 7 4 2 9 i 7 f x x b a 3 F A E :Y 3 $ YC ITi 9 A anrZt1Fa5 '~*c< >x 1 X H u 8 c :J a f l a ' : •: 1 1i\rLJ1-i t•I ~rn11 4W 11b113lr1A6 15 nv~ P?W rpei'PQ rL .J-1xx c D E F ~, r'~LTE4F I%,-' •< > 1 .".r1J93 . ..
Appendix C . Printing Command Codes Decimal Hex. Symbol Format Function Page 0 9 10 11 12 13 14 20 24 27 34 27 37 27 38 2739 27 43 2745 27 49 27 54 27 55 27 58 NUL HT LF VT FF CR SO DC4 CAN ESC " n ESC % m, n, . . . NUL ESC & m n, . . . n b ESC`mn, . . .
Appendix C . Printing Command Codes - Continued Decimal Hex . Symbol Format Function 27 64 27 66 2767 27 68 27 74 27 75 27 78 27 79 2781 27 85 27 86 27 87 27 99 27 102 27 105 27 108 127 ESC @ ESC B n, n, . . . NUL ESC C n ESC D n, n2 . . . NUL ESC J n ESC K n, n 2 .data .
Appendix D. Parallel Interface and Operation 2. Parallel Interface Operation 1 . Parallel Interface Signals ßn No Signal In/Out t STB IN 2 DATA1 IN 3 DATA2 IN 4 DATA3 IN 5 DATA4 IN 8 DATAS IN DATA6 IN 8 DATA? IN 8 DATA8 IN 10 A K pole. In Sbobe read lote in O U Acknnwledge pose - LOW' indcete. the' date h .. been r eived ond thel dw printer ie ready to accept 11001 date .
Appendix E. Serial Interface and Operation 2 . Serial Interface Operation 1 . Serial Interface Signals Pin. No 2 3 Signal Source TxD RxD Host Description Printer receives data from host computer Printer Printer trasmits data when uses the handshaking of X-ON/X-OFF 5 CTS Printer Signal sets "MARK" state to indicate the printer is BUSY and can not accept data, and "SPACE" state to indicate the printer is ready and can accept data .
Appendix F. Option List 1 . Power Supply DSV-2333 Input - AC 230V 2 . Cable For IBM PC, withtwo standard 25 pin D type connectors, a male and a female, on two ends of this cable, and with 25 wire connection . 3 . Ribbon cassettle EPSON ERC-22 or ERC-09 (ERC-22 only for DPN-8233 and DPN-8333 ) 4. Paper Roll Plain paper Width57 .5+/-0 5mm Thickness0 .
Appendix G Printer Outline unit : mm N 1 0 [In
,
∎ ∎ ti∎ mmr es 1 ∎ ∎ ∎ Z 9p Z r ∎ - i - ' ∎∎ '