background image

 

24                                                                                                                                                25 

 

3.7 

  Initialization 

Command    

 

ESC @ 

 

 

 

 

 

 

                                  Initialize Printer 

Format 

ASCII           :  

ESC @ 

 

 

 

Decimal        :  

27   64  

 

 

 

Hexadecimal:  

1B   40 

Explanation: 
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 

 

   Hexadecimal: 

1B 

 22 

Explanation: 

Hexadecimal Dump print mode is turned on if n = 1, and turned 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. 
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 0D 

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         

ESC & m n1 

Define User-defined 

 

  

n2..n6 

 Characters 

20 

27 37 

1B 25    

ESC % m n1 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 

27 37 

1B 25 

ESC % n (n<2)  Selection of self-defined 

                                                                      Character Sets 

22 

27 38 

1B 26 

ESC & s n m  

Define User-defined 

   

 

 

 [a[p]sxa]m-n+1 

Characters 

22 

27 39  

1B 27 

ESC 

m  n1 n1

  Print Curving Lines 

  

....nk 

nk

’ CR 

 

26 

27 45 

1B 2D 

ESC - n 

On/off Underline Printing 

19 

27 49 

1B 31 

ESC 1 n 

Set n’ dot line Spacing 

16 

27 54 

1B 36 

ESC 6 

Select Character set A 

19 

27 55 

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 

27 74 

1B 4A 

ESC J n 

Line Feed 

16 

27 75 

1B 4B 

ESC K n1 n2 

 

 

 

...data 

Bit Map Graph Printing 

23 

27 85 

1B 55 

ESC U n 

Character Width Enlarge 

18 

27 87 

1B 57 

ESC W n    

Character Width & Height  

  

 

Enlarge 

18 

27 86 

1B 56 

ESC V n 

Character Height Enlarge 

18 

27 99 

1B 63 

ESC c n 

On/Off  Inverse Printing 

20 

27 102 

1B 66 

ESC f m n 

Print Blank Characters or Lines 

17 

27 108 

1B 6C 

ESC I n 

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 

Summary of Contents for TP UP-NH

Page 1: ...arance 5 2 2 Loading Printing Paper 6 2 3 Power ON and OFF 8 2 3 1 Connecting of Power 8 2 3 2 Auto Power OFF 10 2 4 Indicator and Function Key 11 2 5 Connecting of Parallel Interface 11 2 6 Connectin...

Page 2: ...th 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 I...

Page 3: ...ter side Signal Level EIA 3V to 12V Parallel compatible with PC Printer port Handshaking BUSY or ACK protocol Connect Socket D Sub 25pin male in printer side Signal Level TTL 1 10 Power Supply DC9V 1A...

Page 4: ...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 fi...

Page 5: ...inter is on power Wait another 600ms to initialize printer before sending data 3 Example of Using Parallel Interface for PC Basic Formal Explanation 100 DEF SEG H40 Bottom of BIOS database 200 prtr PE...

Page 6: ...er port 1 The Pin Assignment of DB 25 is shown as follows PinN o Signal I O Description 1 STB In Strobe pulse to read data Reading occurs at falling edge 2 D0 In Data line D0 3 D1 In Data line D1 4 D2...

Page 7: ...he printer is busy and unable to receive data Space indicates that printer is ready to receive data 7 GND Printer Signal ground 20 DTR Host In SPACE status for not less than 3ms for control of printer...

Page 8: ...anation The printing position is advanced to the next horizontal tab HT command will not execute if the current print position exceeds the last horizontal tab ESC f Print Blank Characters or Lines For...

Page 9: ...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 be...

Page 10: ...26 s n m a p s x a m n 1 Explanation This command allows characters to be defined s 3 32 n m 126 0 a 12 for font A 0 a 9 for font B 0 p 255 s stands for number of bytes in vertical S 3 n stands for s...

Page 11: ...it Map Graph Format ASCII GS n Decimal 29 47 n Hexadecimal 1D 2F n Explanation This command print out the down load bit map graph set by command GS n for selection of bit map n 0 3 The relative graph...

Page 12: ...and Description Page No 0 00 NUL Nil 27 9 09 HT Horizontal Tab 17 10 0A LF Line Feed 15 13 0D CR Carriage Return 27 14 0E SO Select Double width Printing 19 20 14 DC4 Cancel Double width Printing 20 2...

Reviews: