Home
User's Manual
Contents
1. Pin Assignment of DB25 5 Printer Printer transmit data Printer transmit XON XOFF code to host while in use of handshaking of XON XOFF Printer There are two states of this signal Mark and Space Mark indicates that the printer is busy and unable to receive data Space indicates that printer is ready to receive data Signal ground Host In SPACE status for not less than 3ms for control of printer power 24 Chapter 3 Printing Commands 3 1 Summary TP UP NH provides ESC P commands 1 define format 2 enlarge characters 3 print bit map graphs 4 choice character sets 5 define user defined characters 6 others Each command is described in following format Printing command Function Format ASCII the standard ASCII characters sequence Decimal the decimal numbers sequence Hexadecimal the hexadecimal numbers sequence Explanation What the command does and how to use it 3 2 Paper Feed Commands LF Line Feed Format ASCII LF Decimal 10 Hexadecimal 0A Explanation Print data in buffer of the printer and feed one line forward Feed one line forward only if no data in buffer of the printer 25 ESC J n Dot Line Feed Format ASCII ESC J n Decimal E 27 74 n Hexadecimal 1B 4A n Explanation print data in buffer of the printer and feed n dot line forward The value of n is between 0 and 255 Line space will be automatically adjusted when using com
2. GS Define Down load Bit Map Graph 3 Forna ae a 42 2 i F 5 ESC Print Curving Lines Hexadecimal ID 2Anl n2 d k Format ASCII ESC m ol nl nk nk CR Explanation Decimal 229 39 m nl nl nk nk CR This command sets a down load bit map graph Hexadecimal 1B 27 m ni nl nk nk CR nl 1 48 n2 1 255 n1 x n2 lt 9600 k n1 x n2 x 8 Explanation d presents bit map data This command is designed to print curving graphic lines along with the paper feed The horizontal size of this graph is n1 x 8 dots and vertical is n2 x 8 dots direction vertically The value m is the number of lines to be printed and should This setting will be lost while resetting or return back to start position be within the range of 1 to 384 In a horizontal line there are m dots of m curving Bit Map format is showing as follows line The value nl nl n2 n nk nk represents the position of dot of m line The quantity of nk should be equal m and each nk should be fall on the largest dot in each line The last CR carriage return lets printer print this one horizontal dot line out and carriage return to next dot line So a set of horizontal dot lines will be printed out to form m curving graphic lines base on the data of n1 nl n2 n2 nk nk 24 25 3 7 Initialization Command ESC Initialize Printer Format ASCII ESC Decimal 27 64 Hexadecimal 1B 40 Explan
3. 2 3 2 Auto Power Off This printer provides auto power cut off function If no paper feed and printing function performed more than 10 seconds power will be automatically cut off 2 4 Indicator amp Function Key There are two indicators and two switch buttons on the panel of TP UP NH printer Power Indicator marked with P and Status indicator marked with SEL When SEL indicator in light or flash it means printer is wrong otherwise means printer is normal For power connection press SEL button for paper feed press LF button see figure 2 8 below aal Figure 2 8 1 Self test To start self test press and hold down LF button and SEL button as well while power on when power indicator light release both buttons then self test sample will be printed 2 Paper feed Press and hold down LF button to start paper feeding and release it to stop paper feeding 2 5 Connecting of Interface parallel port TP UP NH adopts DB 25 parallel port which is compatible with PC s printer port 24 1 The Pin Assignment of DB 25 is shown as follows 1 SB h Strobe pulse to read data Reading occurs at falling edge 2 bo m i 3 fbr in 4 D2 in ae ee 6 D4 m 7 os m 8 be m 9 D m 0 ACK Out Acknowledge pulse Printer is ready to accept data It takes no less than 10us to change from high level to low level High level signal indicates that the printer is Busy and can not receive data whil
4. Form 1 Support user defined characters for 101 DPI horizontal and 68 DPI vertical Compatible with TPuP T printer ESC amp Define User Defined Characters Format ASCII ESC amp m nl n2 n6 Decimal QT 38 m nl n2 n6 Hexadecimal 1B 26m nl n2 n6 Explanation This command allows a character to be defined The value m is the code of this user defined character and ranges from 32 to 255 The value n1 n2 n6 are codes for structure defined characters Character size is 6 x 8 dot matrix That means there are six codes each code define one row of character for 8 rows User defined characters are stored in printer RAM until power off It can print out according to 101 DPI horizontal and 68 DPI vertical If many ESC amp commands use same m value only the last one is effective The maximum number of user defined characters is 32 Also 25 see ESC and ESC commands ESC Replace with User Defined Characters Format ASCII ESC mini m2n2 mknk NUL Decimal 27 37 minl m2n2 mknk 0 Hexadecimal 1B 25 mlini m2n2 mknk 00 Explanation This command is used to replace font characters n with user defined characters m ml m2 mk are codes of user defined characters nl n2 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 The subscript k ranges from 1 to 32 The maximum number of replaced characters is 32 The NUL character is added
5. in printing quality and reliability It is suitable for printing receipt of cash register and data records of medical instruments 24 Chapter 1 Features and Specifications 1 1 Printing Features Printing Method Line direct thermal Paper Width 57 5 mm 0 5 mm Printing Density 8 dots mm 384dots line Printing Speed 12 5mm sec DC9V 1A Printing Width 48mm 1 2 Printing Paper Thermal Paper Roll Paper Width 57 5 mm 0 5mm OD 50 mm max Build in ID 10 mm min Thickness 53 64g Im 1 3 Printing Character IBM Character set 2 12 x 24 dots 1 50 mm w x 3 00 mm h 8 x 16 dots 1 00 mm w x 2 00 mm h 1 4 Data Buffer Size 10k bytes 1 5 Printing Commands ESC P Commands 1 6 Operation Printing out text in ANK graph and hexadecimal Self test Paper feed 1 7 Printer head Energy Compensation Function Temperature Control by test of build in thermal resistor 25 Voltage Control by test of voltage 1 8 Printer head Protection Function Stop warning for out of paper Stop warning for printer head over under the normal temperature 1 9 Interface Serial compatible with RS232 Baud Rate 1200 2400 4800 9600 selected by DIP switch built in Handshaking RTS CTS or XON XOFF protocol Data Structure 7 8 Data Bits and even odd or no Parity Bit Connect Socket D Sub 25pin femal in printer side Signal Level EIA 3V to 12V Parallel compatible with PC Printer port Han
6. printed by either followed LF command or the width of the graph exceeds the width of the line So this command allows to print both characters and graphics in same line m 0 1 32 33 nl 0 255 n2 0 3 d 0 255 k nl 256xn2 m 0 1 25 k nl 256 x n2 x 3 m 32 33 The number of horizontal dots of the graphics is nl 256 x n2 __ halg point The width of bit map data should be within the line width excess parts will be dl dnz high ignored Bea yee d presents bit map data and k presents number of bit map data pR ier ag E 1m for the setting of bit map The definition of m is shown as below ae ae m mode vertical horizontal mann iaae NG w KA 8 dot single KJ 68 DPI 101 DPI EEA density dzl doe 4 dntsn2 lt 8 1 8 dot double 68 DPI 203 DPI 384 density 32 24 dot single 24 203 DPI 101 DPI 192 j f density GS Print Downoad Bit Map Graph ____ 33 24 dot double 24 203 DPI 203 DPI 384 Format ASCH GS n density Decimal 29 47 n Hexadecimal 1D 2F n 8 dot mode 24 dot mode Ep langtan 2 This command print out the down load bit map graph set by command GS high eaol igh n for selection of bit map n 0 3 i The relative graph sizes are listed as follows dl d a3 do 5 48 N tow ssa gt E low O normat 203DPL 203 DPI BitMap Data BitMap Data a
7. to indicate the end of the commands Also refer ESC amp ESC commands ESC Reinstate the Font Characters Format ASCII ESC Decimal fo DT 58 Hexadecimal 1B 3A Explanation The command reinstates the original characters in the font replaced by user defined characters using ESC command User defined characters however are not deleted from the RAM in printer and may be brought back again with ESC 3 5 2 User Defined Characters Form 2 Support user defined high density characters for 203 DPI horizontal and vertical Compatible with printer using ESC POS commands ESC Select User Defined Characters Format ASCII ESC n Decimal i 27 37 n Hexadecimal 1B 25n Explanation This command can select cancel user defined characters n should be in the range 0 1 If n lt 00000001 gt B the user defined characters are selected If n lt 00000000 gt B the regular characters are selected Default setting is regular characters Using ESC amp command to define user defined characters ESC amp Define User Defined Characters Format ASCH ESC amp s n m a p sxa m n l Decimal 27 38s n m a p s xa m n 1 Hexadecimal 1B 26s n m a p sxa m n l 24 Explanation This command allows characters to be defined s 3 32 lt n lt m lt 126 0 lt a lt 12 for font A 0 lt a lt 9 for font B 0 lt p lt 255 s stands for number of bytes in vertical S 3 n stands for starting ASCII code of
8. user defined character m stands for ending ASCII code of user defined character When define only one character n m The maximum number of user defined characters is 50 and the maximum number of times for different user defined characters is 50 for each Font A amp Font B a stands for number of dots horizontal p stands for data of user defined characters there are s x a character codes for each character for defining m n 1 characters user defined characters are valid till re definition or return back to start position or power off 3 6 Graphics Printing Commands 3 6 1 Bit Image Graph Setting Form I Only support bit map 101 DPI horizontal and 68 DPI vertical ESC K Bit Image Graph Printing Format ASCII ESC K nl n2 data Decimal 27 75 nl n2 data Hexadecimal IB 4B n1 n2 data Explanation This command is designed to print nl x 8 bit image The width of this bit map is n1 n2 x 256 dots and the height is 8 dots Each column has 8 dots and can be presented by a byte 8 bits and bit 7 presents the highest dot in the column The data are the bytes of relative columns in the graphics sequential from left to right The number of bytes should be n1 n2 x 256 3 6 2 Bit Map Graph Setting Form II ESC Set Bit Map Format ASCII ESC m ol n d k Decimal p gt 2 De 42 m nl n2 d k Hexadecimal 1B 2Am nl n2 d k Explanation This command is for setting bit map by using m and n1 n2 The bit map graph can be
9. SC amp mnl Define User defined n2 n6 Characters 20 27 37 1B 25 ESC mnl n2 Replace with User Defined mk nk NUL Characters 21 27 42 1B 2A ESC Set Bit Map Graph 23 27 58 1B 3A ESC Reinstate the Font Characters 21 2737 1B 25 ESC n n lt 2 Selection of self defined Character Sets 22 27 38 1B 26 ESC amp snm Define User defined a p sxa m n 1 Characters 22 27 39 1B 27 ESC m nl nl Print Curving Lines nk nk CR 26 27 45 1B 2D ESC n On off Underline Printing 19 27 49 1B 31 ESC In Set n dot line Spacing 16 27 54 1B 36 ESC 6 Select Character set A 19 2755 1B 37 ESC 7 Select Character Set B 19 27 64 1B 40 ESC Initial the Printer 26 27 68 1B 44 ESC D Set Horizontal Tab 16 2774 1B 4A ESC Jn Line Feed 16 2775 1B 4B ESC K n1 n2 data Bit Map Graph Printing 23 27 85 1B 55 ESC Un Character Width Enlarge 18 27 87 1B 57 ESC Wn Character Width amp Height Enlarge 18 27 86 1B 56 ESC Vn Character Height Enlarge 18 27 99 1B 63 ESC cn On Off Inverse Printing 20 27 102 1B 66 ESC fmn Print Blank Characters or Lines 17 27 108 1B 6C ESCIn Set Left Margin 17 29 42 1D 2A GS n1 n2 d k Define Down load Bit Map Graph 24 29 47 1D 2F GS n Print Down load Bit Map graph 25 25
10. TP UP NH Line Thermal Printer User s Manual April 1998 Contents Introduction Chapter 1 Features and Specifications 1 1 Printing Features 1 2 Printing Paper 1 3 Printing Character 24 NNN N 1 4 Printing Buffer Size 1 5 Printing Commands 1 6 Operation Format 1 7 Printer head Energy Compensation Function 1 8 Printer head Protection Function 1 9 Interface 1 10 Power Supply 1 11 Power Supply Control 1 12 Dimension 1 13 Weight 1 14 Operation Environment Chapter 2 Installation and Operation 2 1 Appearance 2 2 Loading Printing Paper 2 3 Power ON and OFF 2 3 1 Connecting of Power 2 3 2 Auto Power OFF 2 4 Indicator and Function Key 2 5 Connecting of Parallel Interface 2 6 Connecting of Serial Interface Chapter 3 Printing Commands 3 1 Summary 3 2 Paper Feed Command 3 3 Format Setting Commands 3 4 Character Setting Commands 3 5 User defined Characters Commands 3 5 1 User defined Characters Form I 3 5 2 User defined Characters Form II 3 6 Graphics Printing Commands 3 6 1 Bit Map Graph Setting form I 3 6 2 Bit Map Graph Setting form II 3 7 Initialization Command 3 8 Data Control Command 3 9 Hexadecimal Printing Command Appendix 1 Index of Printing Command 25 BRR RWWWWWN WD DOnN N 11 11 13 15 15 15 16 20 20 22 23 23 26 27 27 28 Introduction TP UP NH is a new type of line direct thermal printer The special features of this printer are small in size light in weight low noisy and high
11. ation This command initialize printer in following aspects clear data in printing buffer reinstate default value select internal character font A clear user defined characters 3 8 Data Control Command CR Carriage Return Format ASCII CR Decimal 13 Hexadecimal OD Explanation When a Carriage Return is sent to the printer any data in the buffer is printed and paper is fed one line Same as LF command NUL Null Format ASCII NUL Decimal 0 Hexadecimal 00 Explanation NUL is used as the final code in some commands such as ESC B ESC D NUL command is ignored by printer when used alone 3 9 Hexadecimal Printing Command ESC Turn Hexadecimal Dump Printing on off Format ASCII ESC n Decimal 27 34 n Hexadecimal 1B 22 n Explanation 24 Hexadecimal Dump print mode is turned on if n 1 and turned off ifn 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 Printing in the Hexadecimal Dump mode is performed only when the printer is in the line buffer full state Appendix 1 Index of Printing Command Decimal Hexadecimal Command Description Page No 0 00 NUL Nil 27 9 09 HT Horizontal Tab 17 10 0A LF Line Feed 15 13 oD CR Carriage Return 27 14 0E SO Select Double width Printing 19 20 14 DC4 Cancel Double width Printing 20 27 34 1B 22 ESC n On off Hexadecimal Printing 27 27 38 1B 26 E
12. chanism and push the paper end forward out of the mechanism Turn on the power Power indicator flashing while press SEL button Hold the LF button paper will automatically move upwards to paper out slot on top of printer mechanism for certain length then release the button 25 4 Pull the paper out through paper out slot on upper cover plate and then close the plate like figure 2 7 below Figure 2 7 put upper cover plate back to the printer 2 3 Power On and OFF This printer provides auto power cut off function to save energy 2 3 1 Connecting of Power After connecting the power supply there are two methods of power connecting namely 1 by push button 2 by interface 1 By Push Button There are two push buttons on the control panel namely SEL amp LF Press SEL button power indicator will be in red to indicate the printer is on power 2 By Interface Using Parallel Interface The interface signal INIT is negative pulse signal and will remain for at least 3ms to ensure power on Power Indicator turns in red to signal the printer is on power Wait another 600ms to initialize printer before sending data Using Serial Interface The interface signal DTR is EIA standard It is logical level from 1 to 0 and remain at least 3ms to ensure power connection Power indicator turns in red to signal the printer is on power Wait another 600ms to initialize printer before sending data 3 Example of Using Parallel In
13. dshaking BUSY or ACK protocol Chapter 2 Installation and Operation Connect Socket D Sub 25pin male in printer side Signal Level TTL 2 1 Appearance 1 10 Power Supply REMOVABLE COVER PLATE POWER INDICATOR DC9V IA average printing current 2 6A non printing current 80mA Power Socket DC Jack type with center pin 2 0mm PAPPER OUT SLOT UPPER CASE 1 11 Power Supply Control Auto Power off Function Support Push Button and Interface Signal Control 1 12 Dimension oe SEL INDICATOR 160 w x 106 d x 42 h mm ary saa 1 13 Weight 350g including paper roll 1 14 Operation Environment Operating temperature 5 50 C Relative humidity 5 85 RH 24 25 INTERFACE CONNECTOR DC POWER JACK Figure 2 1 Appearance 2 2 Loading Printing Paper Paper roll can be put inside the case Loading paper as follows 1 push the removable upper cover plate forward till its off the printer like figure 2 2 below figure 2 3 is not correct Figure 2 2 24 Figure 2 3 2 Cut the paper end like figure 2 4 below for paper roll placed inside the case Insert the paper end deep down into paper in slot on rear of printer mechanism like figure 2 5 Figure 2 6 is not correct for paper roll hold outside the case Insert the paper end through paper in slot on the back of the printer first then repeat the action above Figure 2 4 Figure 2 5 Figure 2 6 3 Lift the lever of the print me
14. e low level is able to receive data 2 PE Out High level signal indicates that paper running out Low level signal indicates otherwise SLCT Selection pal up to 5V lh _ No conneetion ooo ooo EE m In Low level signal no less than 3ms for control of printer power a7 Noconection SS O Abn a SS gt P Grounding S O C a ajoja S wpm eo 2 The signal timing chart in parallel port is as follows BUSY ACK Approx 5us Approx us 0 5us MIN 5us MIN Figure 2 9 Signal lining chart of parallel port 2 6 Connecting of Interface serial port TP UP NH adopts serial port which is compatible with RS232C for DB 25 socket female type in printer side 1 DIP Switch Setting K1 K6 for setting of baud rate data bit stop bit and parity Default settings are all on off position users can change setting according to the following tables 25 Baud Rate BPS Parity Check 8 bit odd parity 8 bit even parity 8 bit non parity 7 bit odd parity 7 bit even parity 7 bit non parity DIP Switch Handshaking Default Setting ON XON XOFF OFF BEER 23456 RTS CTS Figure 2 10 DIP Switch Setting N OO ON 0 _ CO oo
15. erlining is turned on if n 1 all characters are underscored including spaces Underline is turned off if n 0 ESC 6 Select Font A Format ASCII ESC 6 Decimal 27 54 Hexadecimal 1B 36 Explanation Characters following this command are printed using the Font A There are two fonts available in the TP UP NH printer Font A is selected at power on or on ESC command ESC 7 Select Font B Format ASCII ESC 7 Decimal a 127 295 Hexadecimal 1B 37 Explanation Characters following this command are printed using the font B see ESC 6 SO Select Double width Printing Format ASCII SO 24 Decimal 14 Hexadecimal OE Explanation Characters following this command on the same line n the print buffer are printed at twice their normal width The command is canceled by a Carriage Return or using DC4 command DC4 Cancel Double width Printing Format ASCII DC4 Decimal 20 Hexadecimal 14 Explanation Double width printing is canceled if it has been set using SO This command does not cancel enlarge width printing selected using ESC U or ESC W ESC c Turn Inverse Printing on off Format ASCII ESC c n Decimal a 227 99 n Hexadecimal IB 63 n Explanation Inverse printing is turned on if n 1 inverse printing is turned off if n 0 Default value n 0 3 5 User Defined Characters Commands There two forms of user defined characters which can be recognized by printer automatically 3 5 1 User Defined Characters
16. he range between 0 to 255 ESCI Set Left Margin Format ASCII ESC I n Decimal 27 108 n Hexadecimal 1B 6C n Explanation This command sets start printing position as n character from left The value of n should be within the line width of the printer For character set A n 32 and character set B n 48 Default value n 0 This means no left margin The command sets an absolute position and is not affected by character enlarge command ESC U or ESC W 3 4 Character Setting Commands ESC U Enlarge Width Format ASCII ESCU n Decimal 27 85 n Hexadecimal IB 55 n Explanation Characters or graphics following this command are printed at n times normal width The value n should be in the range 1 2 Default value n 1 that means normal width ESC V Enlarge Height Format ASCII ESCV n Decimal 27 86 n Hexadecimal IB 56 n Explanation 25 Characters or graphics following this command are printed at n times normal height The value n should be within the range 1 2 Default value n 1 that means normal height ESC W Enlarge Width amp Height Format ASCII ESC W n Decimal 27 87 n Hexadecimal 1B 57 n 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 2 Default value n 1 that means normal width and height ESC Turn Underline on off Format ASCII ESC n Decimal 27 45 n Hexadecimal 1B 2D n Explanation Und
17. mands ESC V amp ESC W for enlarge characters ESC 1 Set n dot line spacing Format ASCII ESC 1 n Decimal 27 49 n Hexadecimal 1B 3In Explanation The line spacing is set to n dot lines for future Line Feed command The value of n is between 0 and 255 Default setting n 10 for text printing n 0 for bit map printing when using ESC K command 3 3 Format Setting Commands ESC D Set Horizontal Tabs Format ASCII ESC D nonln2 NUL Decimal 27 68 nin2 0 Hexadecimal 1B 44 ni n2 00 Explanation The tab positions are entered as n n2 and so on These ny n2 should be within the line width of the printer For character set A 12x24 dots the maximum value n 32 for character set B 8x16 dots the maximum value n 48 NUL character is added to indicate the end of command All settings can be cleared by using command ESC D NUL HT Horizontal Tab Format ASCII i HT Decimal 9 Hexadecimal 09 Explanation The printing position is advanced to the next horizontal tab 24 HT command will not execute if the current print position exceeds the last horizontal tab ESC f Print Blank Characters or Lines Format ASCII ESCf mn Decimal 27 102 mn Hexadecimal 1B 66 mn Explanation If m 0 command ESC f NUL will print n blank characters The value n should be within the line width of the printer see command ESC D in the chapter If m 1 command ESC f n will print n blank lines The value of n should be within t
18. terface for PC Basic Formal Explanation 100 DEF SEG amp H40 Bottom of BIOS database 200 prtr PEEK 9 256 PEEK 8 2 Get base address of LPT1 300 OUT prtr 8 Initialize printer by negative signal through INIT 24 400 IF INP prtr 1 AND amp H98 lt gt amp H98THEN 400 Loop if check the printer is BUSY 500 Normal printing procedure prtr 1 status register of parallel interface BIT3 O printer error 1 printer normal BIT4 0 printer off line 1 printer on line BIT7 0 printer busy 1 printer not busy prtr control register of parallel interface BIT2 0 initialize printer 1 normal setting BIT3 0 make printer off line 1 normal setting Example of Using Serial Interface for PC Basic Program Explanation 100 baseaddress amp H2f8 Set base address of serial port amp H3F8 for COM1 and amp H2F8 for COM2 200 OUT baseaddress 4 amp H1 DTR data terminal ready set high 300 IF INP baseaddress 6 AND amp HBO lt gt amp HBO THEN 300 Loop if check printer is not READY 400 Execute normal printing procedure baseaddress 4 Control register of modem of the PC serial port COMI or COM2 BITO DTR data terminal ready set 1 for valid baseaddress 6 Status register of modem of the PC serial port 25 COM1 BIT4 CTS allow for transmitting input high ok BITS DSR data ready input high ok BIT 7 RLSD receipt route signal testing input high ok
Download Pdf Manuals
Related Search
Related Contents
Samsung Wave II Projecteurs VPL-SW535 et VPL-SW535C* 製品試験依頼書兼登録申請書 改訂 - JAAMA 全国自動車用品工業会 0610取扱説明書 Canon i-SENSYS MF226dn HP ENVY 5530 Vosstronics TransImp 330U2 Copyright © All rights reserved.
Failed to retrieve file