background image

 

                             27                                                                        28 

CODE 128 supports Code A, B and C, and conversion of  
them. 

The example of printing CODE 128 is as below: 
[Example] Print “UPPH32S  OK” by using CODE 128 Code  

A, the ASCII code sequence and decimal datat sequence are as 
below: 

GS K 8  STARTA ‘UPPH32S OK’,NUL 
29 107 8 168 85 80 80 72 51 50 81 32 79 75 00 

CODE 128 does not need input stop character.

 

The detail explanation of CODE 128 barcode system is in 

Appendix 1.  

GS w                    Set barcode horizontal width

 

Format:        ASCII:  GS   w     n 
                Decimal:  29    119   n 
         Hexadecimal:  1D    77    n 

Explanation: 

Set horizontal width of the barcode stripe to be printed by 

using n. 

2

n

The width of the barcode stripe specified by n is shown as 

below table: 

2-cell barcode stripe width 

Narrow stripe(mm) 

Wide stripe(mm) 

2 0.250 

0.625 

3 0.375 

1.000 

CODE39, ITF, and CODE128 are 2-cell barcode system. 

 
3.

1

0 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 on using the paper with pre-

printed black mark. 

The printer will detect the black mark on the paper while 

paper feeding. When the black mark is detected the printer will 
feed the black mark to the paper tear bar. But if no black mark 
is detected on feeding paper 150mm long, the printer will stop 
the detecting and feeding, the red LED will flash to indicate no 
black mark is found out. 

After power on, printer defaultsthe black mark has been at 

the paper tear bar. The content to be printed should be between 
two black marks in sequence. 
 

Notice for black mark printing: 

The black mark should be printed on the printing side of the 

paper. The position of the black mark is the paper tearing line. 

The position and size of the black mark printed are shown as 

below picture. 

 
 

 
 

Summary of Contents for UP-PH

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: