background image

 

                               25                                                                       26 

Chinese code in double bytes and ASCII code in single byte. 

On printing Chinese character the printer accepts only standard 
code of each Chinese character according to GB-2312 standard. 
This code composed of two bytes: section code adds 
160(decimal) to get first byte, and bit code adds 160(decimal) 
to get second byte. For example, Chinese 

“啊”

 has a section 

and bit code: 1601, the standard code is B0A1H(hexadecimal). 
In personal computer Chinese text is stored usually in the 
standard codes. 

The range of valued Chinese standard code is as below: 

First byte           B0H-F7H 
Second byte       A1H-FEH 

 

FS .                      Exit Chinese printing mode 

Format:       ASCII:  FS    . 
               Decimal:  28    46  
        Hexadecimal:  1C    2E 

Explanation: 

Exit Chinese print mode, enter ASCII character print mode. 

The characters in only one byte can be accept.

 

 

3.9 Barcode Printing 
GS h                              Set barcode height 

Format:        ASCII:  GS    h      n 
                 Decimal:  29    104   n 
          Hexadecimal:  1D    68    n 

Explanation: 

Set the height of the barcode to be printed. 

1

n

2 5 5  

n   i s   t h e   n u m b e r   o f   t h e   v e r t i c a l   d o t s .  
D e f a u l t   n = 6 0 .  

 
 

GS k                            Print barcode stripe 

Format:       ASCII:  GS   k     m   [d]k   NUL 
               Decimal:  29    107  m   [d]k   0 
        Hexadecimal:  1D    6B   m   [d]k   00 

Explanation:  

 

m --- Select barcode system 

M

Barcode system 

4

CODE39 

5

ITF 

8

CODE128 

 [d]k--- Character to be printed as barcode. It should be 

matched with type of the character specified by barcode 
system, and the length of the characters should be fitted 
with the valid character number as below table. 

 NUL --- End of the command and print the barcode. 

Barcode 

system 

Barcode width 

Valid character 

number 

2 10 

CODE39 

3 6 

2 22 

ITF 

3 14 

2 15 

CODE128 

3 9 

As the barcode system with variable length, if the input 

character length is exceeded the width of the line, the printer 
will ignore the exceeded characters, and print out the shorted 
barcode completely in order to identify it correctly by barcode 
scanner.  

 CODE 39 and ITF do not generate the verifying character 

automatically. 

CODE 128 generates the verifying character automatically. 
CODE 39 generates start bit and stop bit automatically. 

Содержание UP-PH

Страница 1: ...P P P PH H H H Portable Thermal Portable Thermal Portable Thermal Portable Thermal Printer Printer Printer Printer User User User User s Manual s Manual s Manual s Manual Beta version Beta version Be...

Страница 2: ...eatures as following Structure for easy paper loading Rechargeable battery pack for quick replacing and portability IrDA infrared interface for easy interfacing and communication wireless Built in Chi...

Страница 3: ...ESC 2 Set 1 6 line space ESC 3 n Set n dot line space ESC Set bit map graphics ESC n Select user defined character ESC s n m a p sxa m n 1 Define user defined character ESC k n1 n1 nk nk CR Print cur...

Страница 4: ...g side close edge left or right with a height 5mm and width 15mm Reflectivity of black mark should be less than 10 and the others should be more than 90 1 10 Power Supply DC 6V 1500mAh rechargeable ba...

Страница 5: ...able battery is packed with TP UP PH printer It can be installed and locked on the bottom of the printer Slow charging is used by a DC12V 600mA adaptor packed When the plug of the adaptor is inserted...

Страница 6: ...ion 2 5 1 Serial Interface Connection TP UP PH portable printer provides a RS 232 serial port socket 6PIN RJ 11 modular jack 1 RJ 11 Pin Alignment Figure 2 4 RJ 11 Pin Alignment 2 Serial Port Signal D...

Страница 7: ...tors and Buttons Figure 2 7 Error indicator flash mode TP UP PH has two buttons ON and LF Their functions are following 1 Power on press button ON and release it until green indicator lights That mean...

Страница 8: ...10 Hexadecimal 0A Explanation Print content in line buffer and feed paper one line If line buffer is empty feed one line only ESC J Print and feed paper n dotline Format ASCII ESC J n Decimal 27 74 n...

Страница 9: ...Bit Function 0 1 0 Not defined 1 Not defined 2 Not defined 3 Not defined 4 Double height Off On 5 Double width Off On 6 Not defined 7 Not defined Default n 0 i e normal character size 3 5 User Defined...

Страница 10: ...printing mode m 0 1 32 or 33 n1 0 255 n2 0 1 d 0 255 k n1 256 n2 m 0 1 k n1 256 n2 3 m 32 33 The number of the horizontal dots is n1 256 n2 The maximunm number of the horizontal dots is shown as belo...

Страница 11: ...2 J NEXT J FOR J 0 TO 7 PRINT 1 CHR 2 J CHR 2 J CHR 2 J NEXT J NEXT I PRINT 1 CHR 10 NEXT K The printout after executed the program is shown as below GS Set download bit map graphic Format ASCII GS n1...

Страница 12: ...n1 nk nk CR Decimal 27 39 k n1 n1 nk nk 13 Hexadecimal 1B 27 k n1 n1 nk nk 0D Explanation The command is used to print curving graphics The value of k is the number of curves to be printed K 1 255 In...

Страница 13: ...ion n 0 disable the compensation function Default n 0 3 7 Other Control Commands ESC Initialize printer Format ASCII ESC Decimal 27 64 Hexadecimal 1B 40 Explanation The command is used to initialize t...

Страница 14: ...eight of the barcode to be printed 1 n 2 5 5 n i s t h e n u mb e r o f t h e v e r t i c a l d o t s D e fa u l t n 6 0 GS k Print barcode stripe Format ASCII GS k m d k NUL Decimal 29 107 m d k 0 He...

Страница 15: ...CODE128 are 2 cell barcode system 3 10 Black Mark Detecting GS FF Detect black mark and feed to next page top Format ASCII GS FF Decimal 29 12 Hexadecimal 1D 0C Explanation This command is valid only...

Страница 16: ...u Mu Must st st st remember don remember don remember don remember don t use sandpaper knife or t use sandpaper knife or t use sandpaper knife or t use sandpaper knife or screwdriver to scrape the pri...

Страница 17: ...After power off press and hold button ON more than 10 seconds until the both of red and green indicator light the printer enters into discharging state and cann t do any operations When the both of in...

Страница 18: ...acters in Code A There is no SHIFT character in Code C The character for selecting code set CODE A CODE B and CODE C The character can implement convertion between Code A B and C each other Function c...

Страница 19: ...52 U U 53 55 53 V V 54 56 54 W W 55 57 55 X X 56 58 56 Y Y 57 59 57 Z Z 58 5A 58 Code A Charc Code B Charc Code C Charc ASCII Location Charc Value 59 5B 59 60 5C 60 61 5D 61 62 5E 62 _ _ 63 5F 63 NUL...

Страница 20: ...7D 93 RS 94 7E 94 US DEL 95 7F 95 FNC3 FNC3 96 A1 96 FNC2 FNC2 97 A2 97 SHIF SHIF 98 A3 98 CODEC CODEC 99 A4 99 CODEB FNC4 CODEB A5 100 FNC4 CODEA CODEA A6 101 FNC1 FNC1 FNC1 A7 102 STARTA STARTA STAR...

Отзывы: