background image

 

24                                                                                                                                                25 

 

4. 

 

Pull the paper out through paper out slot on upper cover plate and then close 
the plate like figure 2-7 below. 

 

Figure 2-7 put upper cover plate back to the printer 

 

2-3  

Power On and OFF  

This printer provides auto power cut off function to save energy. 
 

2.3.1  Connecting of  Power  

After connecting the power supply, there are two methods of  power connecting  
namely: 1. by push button;  2. by interface. 
 
 

1.  By Push Button. 

 

There are two push buttons on the control panel namely SEL & LF. Press SEL 

button,  power   indicator will be in red to indicate the printer is on power.. 
 
 

2.  By Interface 

 

- Using Parallel Interface.  The interface signal INIT is negative pulse signal and 

will remain for at            least 3ms to ensure power on.  Power Indicator turns in red 
to signal  the printer is on power. Wait another 600ms to initialize printer before 
sending data.  
 

- Using  Serial Interface.  The interface signal DTR is EIA standard. It is logical 

level from “1” to “0 ” and remain at least 3ms to ensure power connection.  Power 
indicator turns in red to signal the   printer 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=PEEK (9) *256+PEEK (8) +2  

: Get base address of  

     LPT1. 

 300 

OUT 

prtr, 

       : 

Initialize 

printer 

by 

 

     negative signal through  
     INIT. 

 

400 IF (INP (prtr-1) AND  &H98) 

      <>&H98THEN 400   

 

 

 

 

 

: Loop if check the printer  

    is BUSY. 

 500 .          : 

Normal 

printing 

 

     procedure. 

 

 

 

 

 

 

 

 

 

 

 

 

 

prtr-1  status register of parallel interface  

 

BIT3:  0, printer error;  1, printer normal 

 

BIT4:  0, printer off line; 1, printer on line 

 

BIT7:  0, printer busy;  1, printer not busy 

 
 

prtr 

control register of parallel interface 

 

BIT2:  0, initialize printer;   

1, normal setting 

 

BIT3:  0, make printer off line;  1, normal setting 

 
 
 
 
 
 
 
4. 

 

Example of  Using Serial Interface (for PC) 

 
 

Basic Program 

 

 

  

  

      Explanation 

 

100 baseaddress = &H2f8           

: Set base address of serial port.  

 

 

 

 

 

 

 

 

 

            : &H3F8 for COM1 and &H2F8  

                                                                  for COM2. 
 

200 OUT basea4, &H1     : DTR (data terminal ready) set  

                                                                  high. 
 

300 IF (INP (base6) AND 

      &HB0) <> &HB0 THEN 300.   

: Loop if check printer is not  

 READY.  

 400 .        : 

Execute 

normal 

printing 

 

 procedure 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

base4:  Control register of modem of the PC serial port  

  COM1 or COM2. 

 

BIT0:   

 

 

DTR (data terminal ready) set 1 for valid. 

 

basea6  Status register of modem of the PC serial port  

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: