background image

 

12 

 

(1) Power on: press button ON and release it until green indicator lights. 

That means power is ON; 

(2)  Power off:  Power off  automatically  for 60 seconds no operations. 

Press button ON  and keep more than 5 seconds, then release the button, the 
printer will power off.   

(3) Self Test: when power off, press and hold button LF, and then press 

button ON, both indicators light, then release button LF and button ON, printer 
will print out self-test list; 

(4)  Paper feed: when power on, press button LF and paper feed until 

release the button; 

(5) Battery discharging: when power off, press button ON more than 10 

seconds, both indicators light, printer enters battery discharging status, and no 
normal operations can be made. When the battery discharged to empty, printer 
power off automatically.   
 
 
 
 
 
 
 
 

 

Figure 2-8 Indicators and Buttons 

 

 

 

 

 

 

 

 

 

ON Button     
Power on indicator 

Charging indicato

LF Button     
Status indicator

 

 

13 

 

Chapter 3 Printing Control Commands 

 

3.1 Summary

  

TP UP-PN portable thermal printer provides  a set of print control 

commands includes: byte control commands

ESC control commands

FS 

control commands

GS control  commands. The commands provide the 

functions described as following: 

(1) Defining the format 
(2) Enlarge character printing 
(3) Printing dot matrix graphics 
(4) Selecting character set 
(5) User-defined characters 
(6) Printing Chinese 
(7) Others 

The format of each printing commands is illustrated below: 
Printing Command 

 

 

 

 

 

 

 

 

Function 

Format:   ASCII 

:   

the sequence in standard ASCII characters 

Decimal 

the sequence in decimal numbers 

Hexadecimal 

the sequence in hexadecimal numbers 

Explanation: description of the command. 
Example:  Some examples are listed to illustrate the command for better 
understanding. 
 

3.2 Paper Feeding Commands 

LF     

 

 

 

 

 

 

 

 

Print and Line Feed   

Format: 

ASCII 

LF 

 

 

Decimal 

10 

 

Hexadecimal 

0A 

Explanation: 

Print data of current line in buffer and feed one line. Only feed one line if 

data buffer is empty. 

 

 

 

Summary of Contents for UP-PN24S

Page 1: ...TP UP PN Portable Dot Matrix Printer User sManual The contents of this manual are subject to change without notice...

Page 2: ...s 13 3 1 Summary 13 3 2 Paper Feeding Commands 13 3 3 Formatting Commands 15 3 4 Character Setting Commands 21 3 5 User Defined Character Commands 26 3 6 Printing Graphics Commands 28 3 7 Initializati...

Page 3: ...ort EPSON M 190 series printer head The main models are shown in the follow table Model Character per line 5 7 Character dimension mm Print speed line s Fast feeding paper speed Print density dot line...

Page 4: ...2 Serial port Baud rate 9600bps Handshaking RTS CTS Data format 8 bit data none parity 1 bit stop Connector 6 pin RJ 11 modular jack Signal level EIA level 3 15V IrDA infrared port Communication dista...

Page 5: ...ed Full charging needs 14 hours Fast charging need take off the battery and put it on the optional quick charger CX 101 option Full charging needs only 4 hours For the first use of the printer we reco...

Page 6: ...u can press down the right end of the cassette only after lay the left end down to the axle deep enough Now check the ribbon if or not it is tight and keeps on the inside of the cassette Turn the knob...

Page 7: ...eless To communicate the IrDA infrared transmitter and receiver of the host should aim at the infrared window of the printer Communication parameters are following as Baud rate 9600bps Data bit 8 Pari...

Page 8: ...ng indicator LF Button Status indicator Chapter 3 Printing Control Commands 3 1 Summary TP UP PN portable thermal printer provides a set of print control commands includes byte control commands ESC co...

Page 9: ...map graphics Normally set n 3 at text printing mode Default value is n 3 Example n dot line Observe the effect of the command by following BASIC program 10 FOR I 1 TO 10 STEP 2 20 PRINT 1 CHR 27 1 CHR...

Page 10: ...l its values must be limited to the range of page length set by ESC C command The character NUL added at last indicates the end of the command All the vertical tab position can be canceled by ESC B NU...

Page 11: ...printout of running this program in TP UP PN is as follows HT Horizontal tab Format ASCII HT Decimal 9 Hexadecimal 09 Explanation Printing continues to the position of next horizontal tab set by ESC D...

Page 12: ...that is no left margin The position is absolutely set by this command so it is not affected by ESC U and ESC W character enlarge commands For instance to set left margin into 6 you can send following...

Page 13: ...Enlarge width height Format ASCII ESC W n Decimal 27 87 n Hexadecimal 1B 57 n Explanation The printing width and height will be n times bigger than normal one The value of n should range among 1 to 4...

Page 14: ...ng the command Carriage Return or DC4 commands can terminate SO command However normal and width enlarging characters can be mixed in the same line DC4 Cancel double width printing Format ASCII DC4 De...

Page 15: ...n1 m2 n2 mk nk 0 Hexadecimal 1B 25 m1 n1 m2 n2 mk nk 00 Explanation This command can replace the character n of current fonts with user defined character m the user defined character m will be printed...

Page 16: ...below Each character is composed of the 7X8 dot matrix in which dot columns are 7 There is one dot column space between two continual characters So there are total 15 dot columns and then n1 15 n2 0...

Page 17: ...X The printout of running above program in TP UP PN printer is as below Paper feeding direction 3 7 Initialization Command ESC Initialize printer Format ASCII ESC Decimal 27 64 Hexadecimal 1B 40 Expla...

Page 18: ...the current line printing and start Chinese character printing next line FS Exit Chinese printing Mode Format ASCII FS Decimal 28 46 Hexadecimal 1C 2E Explanation This command is used to exit Chinese...

Page 19: ...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 The reflectivity of th...

Page 20: ...apacity of the battery strongly recommend charging after discharging sufficiently 1 Discharging on printer After power off press and hold button ON more than 10 seconds until the both of red and green...

Page 21: ...within 0o C 40o C Charging the battery usually in the temperature exceed the range will lower the capability of the battery Overcharge the battery from time to time may be underutilized resulting ins...

Page 22: ...e leakage and lower the capacity if charge the battery in the temperature too high 2 Never short circuiting the cells use the correct polarity when charging or it may cause the deformation leakage eve...

Page 23: ...tery q Overall dimension 153 L 116 D 65 H q Weight About 530g excluding the paper roll q Working condition Temperature 0 50o C relative humidity 10 80 Appendix 2 Printing Control Commands Decimal Hexa...

Page 24: ...27 87 1B 57 ESC W n Enlarge in width height 27 99 1B 63 ESC c n Inverse printing 27 102 1B 66 ESC fm n Print blank character or blank line 27 105 1B 69 ESC i n Turn reverse printing on off 27 108 1B 6...

Page 25: ...Character code table 2...

Reviews: