Megatron TP UP-NH User Manual Download Page 11

 

24                                                                                                                                                25 

 

k = (n1 + 256 x n2) x 3 (m = 32,33) 
- The number of horizontal dots of the graphics is n1 + 256 x n2. 
- The width of  bit map data should be within the line width,  excess parts will be 
ignored. 
- d presents bit map data, and k presents number of bit map data. 

„

 

m for the setting of bit map. The definition of m is shown as below: 

m mode 

 vertical 

horizontal   

 

 

 

dot  

dot density  dot density 

max dot 

8 dot single 

density 

68 DPI 

101 DPI 

192 

8 dot double 

density 

68 DPI 

203 DPI 

384 

32 

24 dot single 

density 

24 

203 DPI 

101 DPI 

192 

33 

24 dot double 

density 

24 

203 DPI 

203 DPI   

384 

 

GS *   

 

 

 

                       Define Down-load Bit Map Graph  

Format 

ASCII           :  

GS  

*  n1  n2  [d] k.        

 

 

 

 

Decimal        :  

29   

42  n1  n2  [d] k     

 

 

 

Hexadecimal:  

1D  

2A n1  n2  [d] k         

Explanation: 
This command sets a down-load bit map graph. 
n1 = 1 - 48, n2 = 1 - 255, n1 x n2 < 9600, k = n1 x n2 x 8. 
- d presents bit map data. 
- The horizontal size of this graph is n1 x 8 dots and vertical is n2 x 8 dots 
- This setting will be lost while resetting or return back to start position. 
Bit Map format is showing as follows: 

 

 
GS /   

 

 

 

                       Print Down-load Bit 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 sizes are listed as follows: 

n

graph size 

density in vertical 

density in horizontal 

0

normal  

203 DPI   

203 DPI 

1

double width 

203 DPI 

101 DPI 

2

double height 

101 DPI   

203 DPI 

3

double height & width 

101 DPI 

101 DPI 

 

 
ESC 

   

 

 

 

                                              Print Curving Lines  

Format 

ASCII           :  

ESC 

 m 

n1 

n1

 ...  nk  nk

  CR 

 

      

Decimal        :  

29   

39  m  n1  n1

 ...  nk  nk

  CR    

   Hexadecimal: 

 1B 

 27 

n1 

n1

 ...  nk  nk

  CR      

 Explanation: 
This command is designed to print curving graphic lines along with the paper feed 
direction.  (vertically).  The value m is the number of lines to be printed, and should 
be within the range of 1 to 384. In a horizontal line, there are m dots of m curving 
line.  The value n1, n1

, n2, n2

 ... 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, n1

, n2, n2

, ..., 

nk, nk

.’. 

 

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: