Megatron TP UP-NH User Manual Download Page 9

 

24                                                                                                                                                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 & 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  -  

 

 

 

Decimal        :  

27     45  n 

 

 

 

Hexadecimal:  

1B    2D  n 

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

27     55   

 

 

 

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       

 

 

 

 

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        :  

27   

99    n   

 

 

 

 

Hexadecimal:  

1B  

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 Form 1 

Support user defined characters for 101 DPI horizontal and 68 DPI vertical. 
Compatible with TPuP-T printer. 
 

ESC & 

 

 

                                Define User Defined Characters

 

Format 

ASCII           :  

ESC  &  m  n1  n2  ...  n6        

 

 

 

 

Decimal        :  

27   

38  m  n1  n2  ...  n6   

 

   Hexadecimal: 

 1B 

 26 

n1 

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 & commands use same m value, only the last one is  
effective.  The maximum number of user-defined characters is 32.  Also  

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: