background image

 

29 

40) QR code print 

:<<ESC q S E M>> 

 

      ESC + ”q” + S + E + M + DATA [+ ”,” + M + DATA +……] + NUL 

 

HEX CODE    <1B>h + <71>h + S + E + M + DATA [+ <2C>h + M + DATA +….] + <00>h 

 

   About parameter  

1.  S: module size 

* Assign 1 module size of QR code by printer’s dot numbers.   
* There are 5 sizes which can be assigned, 1, 2, 3, 4, 8 dots 
* If invalid size is assigned, the printer assigns it as 4 dots 

2.  E: Correction level 

 

 

        * Selects error correction level to be used for restoring QR symbol. 

 

 

        * Following values can be assigned. 

 

 

    * If invalid value is assigned, the printer determines it to be L. 

Correction level 

Restore. capability 

      L 

7% 

      M 

15% 

      Q 

25% 

      H 

30% 

3.  M: Input data mode 

 

 

    * Assign input data mode 

 

 

        * Following modes can be assigned 

 

 

        * If invalid mode is assigned, data is ignored until valid 

 

 

    Mode is assigned. 

Input data mode 

“N” Numeric 

mode 

“A” 

Alpha numeric mode 

“B” 

8 bit byte mode 

“K” Kanji 

mode 

* If multiple modes should be input, each mode data (M + data) needs to be 
separated by “ , ”. 
* If you want to input “ , ” and NULL in the data of 8 bit byte mode, input “ ! ” 
<21>h+”,” and “ ! ”<21> h + NULL. 
* “ ! ” itself is input as “ ! ” + ” ! ” 
* Kanji data should be input by Shift JIS code. 

 

 

    Restrictions 

 

 

Available QR codes are from version 1 to version 14 of model 1 symbols. 

 

 

If input data exceeds the area to be printed, QR code is not printed. 

 

 

 

Summary of Contents for NP-345

Page 1: ...2002 01 24 1st edition Revision 1 00 2002 04 10 2nd edition Revision 1 10 2002 08 07 3rd edition Revision 1 20 2002 09 27 4th edition Specifications stated here are subject to change without notice T...

Page 2: ...Features 8 Windows 2000 Delete schedule for May 1 Features Add notes 2 Packing status Add appended good paper and option adaptor kit 3 Basic specifications Add near end sensor Change weight to 1950g...

Page 3: ...width enlargement to width height enlargement 40 Double width enlarge print setting with auto reset Quadruple print setting with auto reset Change note 43 NV bit image registration Change note 44 Blac...

Page 4: ...hing hard or give impact The heat element may be damaged 6 Set the power of printer off before connecting or removing connecters 7 When printing in high speed under low temperature and high humidity e...

Page 5: ...ace Centronics 7 3 2 Serial interface RS 232C 8 3 3 USB interface V1 1 8 3 4 Connector connections 9 3 5 Connector signals table 9 4 Functions 4 1 Function setting 11 4 2 Errors 12 4 3 Buffer full pri...

Page 6: ...gh print quality and reliable performance 1 The mechanical sections such as paper inlet and paper guide in need of special know how are designed by the long experience and technology of auto paper sup...

Page 7: ...4 NP 345 has Serial USB Parallel interface versions 1 3 Packing status The printer is packed as Item Model Name Quantity Remarks NP 345 P Centronics if requested NP 345 R RS232C Printer NP 345 U 1 USB...

Page 8: ...sional Second dimensional 1 Parallel if requested 2 Serial 3 USB 1 Paper width W x L 2 Maximum sheets 3 Recommended Thermal line dot 576 dots max 8 dots mm 72mm max 70mm sec ASCII full digits print 48...

Page 9: ...tion Print area start 9 1 0 5mm 22 0 0 2mm min 5 3 0 2mm min F 10 3 0 2mm min E E D 148mm 1dot 2dot Edot MAX 0 125mm B C D Print area end 2 2 mm This changes depending on papers Cut position Black mar...

Page 10: ...ad life Average resistance change ratio less than 15 excluding dust and foreign objects Pulse More than 100 million pulses for recommended paper Wear distance More than 50Km for recommended paper 2 Op...

Page 11: ...Note when mounting the printer a 4 5 diameter hole Available to use machine screw flat clip plate spring clip plate b M4 tap hole screw inner length less than 3 0 mm 87 113 5 20 25 67 5 281 93 8 187 8...

Page 12: ...Y Signal to indicate printer busy status and it inputs new data at LOW PT ERROR Signal to become LOW at printer s alarm status All control circuit stops NT PE Output signal at no paper status PT SLCT...

Page 13: ...ts of Start bit 1 bit fixed Data bit 8 bits user optional Parity bit no parity user optional Stop bit More than 1 bit 4 Signal RS 232C Mark Theory 1 3V 12V Space Theory 0 3V 12V 5 Reception data RD si...

Page 14: ...diameter the voltage drops to cause error by wrong voltage sensing To avoid this type of error make sure to use proper size of cable The size recommended is less than AWG 18 If such a cable is not av...

Page 15: ...ector B jack Host side connector B plug Pin No Signal Input output Function Remarks 1 VBUS Input Power line Non twisted power cable 2 D In output Data line Twisted pair signal cable 3 D In output Data...

Page 16: ...S 7 Near end Enable Disable On S 8 Print density High Standard Off S 9 Off S 10 Off 1 Rewrite the Flash ROM as 1 Set the DIP SW below 2 Change CN8 1 pin LF to L or set PWR on holding Feed SW on operat...

Page 17: ...paper Return normal at 60 C close Return the printer slide If any error stated above is detected except communication error and paper near end all operations stop and printer outputs ERROR signal For...

Page 18: ...d z 2 fixed partition select may decrease print quality 2 Automatic partition drive Switch between 1 partition and 2 partitions according to the total dots line printed 1 partition 2 partitions NP 345...

Page 19: ...NUL Set horizontal tab position 21 16 ESC E n Bold print set reset 22 17 ESC G n Double strike print set reset 22 18 ESC J n Print and smallest pitch line feed 22 19 ESC R n Select international char...

Page 20: ...Code 0A h Prints data stored in the input buffer and executes line feed according to data of feed pitch 4 Page feed FF This command is effective only in Windows mode Code OC h Prints data in the print...

Page 21: ...download bit image set cannot be used at the same time Only LSB b0 is valid for n value LSB b0 has the following meanings b0 Function 0 Resets download character 1 Sets download character Default val...

Page 22: ...17 Reference In the case of Font A P1 00 h P4 00 h P7 00 h P10 00 h P2 00 h P5 00 h P8 0F h P11 72 h P3 08 h P6 F8 h P9 08 h P12 00 h P1 24dots 12dots P2 P3 P4 P5 P6 P7 P34 P35 P36 MS LSB...

Page 23: ...18 Reference In the case of Font B P1 40 h P4 7F h P7 41 h P10 41 h P2 04 h P5 FC h P8 04 h P11 04 h P3 00 h P6 00 h P9 00 h P12 00 h P1 17dots P2 P4 P5 P7 P25 P26 MSB 9dots LSB MSB LSB P27 P6 P3...

Page 24: ...data Standard Vertical direction Horizontal direction Max dots m hex Bit image mode Dot quantity Dot density Dot density NP 345 00 8 dot single density 8 67DPI 101DPI 288 01 8 dot double density 8 67...

Page 25: ...ip between bit image data and printed dots 8 dots bit image DATA single double 24 dots bit image DATA single double D1 D2 D3 MSB LSB D1 D2 D3 1dot D1 D4 D7 MSB LSB D4 D5 D6 1dot D2 D3 D5 D6 D9 D8 D1 D...

Page 26: ...tialization ESC Code 1B h 40 h Clears the data stored in the print buffer and resets each setting to default values It does not clear the data stored in the internal receive buffer Rewrites the DIP sw...

Page 27: ...bold print result in the same on this printer The default value of n is 00 h 18 Print and smallest pitch line feed ESC J n Code 1B h 4A h n 00 n FF h Prints the data in the print line buffer and feeds...

Page 28: ...g n Hex character code table 00 Non Japan character code table 01 Japan character code table The default value of n is S2 2 for DIP SW 23 Printer status transmission ESC v Code 1B h 76 h Sends current...

Page 29: ...Windows type Code 1B h 24 h n1 n2 00 n1 FF h 00 n2 01 h Print start position is assigned by dots in 1 203rd of inch from the beginning of line Divide the value of dot by 256 place quotient to n2 and r...

Page 30: ...er numbers are fixed in the barcode symbology the input character numbers should match to the print character numbers If horizontal data exceed one line the exceeded data cannot be printed 29 Barcode...

Page 31: ...s are obtained by n1 x 8 and vertical dot numbers by n2 x 8 Dn is bit image data Once download bit image is defined it is valid until it s redefined download character is defined external characters a...

Page 32: ...rinter initialization can be included in the Macro definition During the Macro definition printing can proceed Once Macro is defined the contents become effective until software is reset power is set...

Page 33: ...ault value of n is 00 h 38 Print position alignment ESC a n Code 1B h 61 h n 00 n 02 h Description Aligns all data to be printed on the assigned position in a line n values are assigned to n Hex Posit...

Page 34: ...o be L E Correction level Restore capability 0 L 7 1 M 15 2 Q 25 3 H 30 3 M Input data mode Assign input data mode Following modes can be assigned If invalid mode is assigned data is ignored until val...

Page 35: ...82 68 46 860 652 540 364 253 191 157 105 154 116 95 63 106 80 66 44 65 49 40 27 6 L M Q H 136 106 86 58 1084 844 684 460 321 249 201 133 194 151 122 81 134 104 84 56 82 64 51 34 7 L M Q H 170 132 108...

Page 36: ...tion GS T n Code 1D h 54 h n Description Register the predetermined bit image print data It is possible to register from 0 to 2 different kinds of patterns 3 patterns In each pattern up to the maximum...

Page 37: ...ative position It does not include the space between the lines Reverse print has a priority over underline specified If a character is reversed the character is not underlined However the underline se...

Page 38: ...288 dots 48 Print density set GS n Code 1D h 7E h n 41 n 87 h Description Sets print density in the range between 65 135 of the standard value S2 8 Off n ranges from 41h 65 to 87h 135 However make sur...

Page 39: ...te position setting 41 16 ESC m n1 n2 Dn Bit image mode set 41 17 GS T n NV bit image pattern registration 43 18 ESC F n NV bit image double strike setting 43 19 GS b n1 nx1 nx2 nx3 ny1 ny2 ny3 n4 Dn...

Page 40: ...it direction 5 Sets 5 for print edit direction For print edit direction layout refer to the drawings below and the next page The default value of n is 0 Once print edit direction is changed the next p...

Page 41: ...nt edit direction 4 1st line Print edit direction 4 2nd line Print edit direction 4 3rd line Print Edit Direction 1 1st line 1 2nd line 1 3rd line X Y direction Print edit direction 2 1st line Print e...

Page 42: ...fied by x and y axis mm The upper left corner is x y 0 0 The upper left end of the next print edit character is positioned at the axis specified x axis value is specified by nx1 nx2 and nx3 Example If...

Page 43: ...38 Print edit direction 1 4 148mm 0 0 mm Paper feed direction Print edit direction 2 5 148mm mm 0 0 Paper feed direction mm 72m Print edit character position mm 72m Print edit character position...

Page 44: ...the reception input buffer is not cleared The next print edit position will be at the start position of line of the page 0 6 Print edit page clear ESC I Code 1B h 49 h Clears the print data stored in...

Page 45: ...enlargement for the next print edit characters 1 n2 4 Sets the width enlargement value by n1 value same manner with section 10 above Sets the height enlargement value by n2 value same manner with sect...

Page 46: ...bit image by following the bit image mode specified by m Divide the print edit dot width by 256 quotient is n2 and remainder is n1 If the bit image data Dn is input beyond the dot width and line the e...

Page 47: ...ata and dots to be printed 8 dot bit image Printed data Single density Double density 24 dot bit image Printed data Single density Double density D1 D2 D3 MSB LSB D1 D2 D3 1dot D1 D4 D7 MSB LSB D4 D5...

Page 48: ...set off The default value of n is 0 19 Barcode print edit GS b n1 nx1 nx2 nx3 ny1 ny2 ny3 n4 Dn LF Code 1D h 62 h n1 nx1 nx2 nx3 ny1 ny2 ny3 n4 Dn 0A h Selects barcode structure and print edit 0 n1 6...

Page 49: ...4 70 n1 is the same with the parameter of HRI character print edit setting n2 is the same with parameter of Barcode width size setting and n3n4 the same with parameter of Barcode height setting 24 Bla...

Page 50: ...ode 1B h 53 h n Switched between the line mode and page mode Clear the data in the page buffer Clear the each setting and defined line mode Except NV bit image pattern Black mark position margin setti...

Page 51: ...S A SP indicates space Printer operation cannot be guaranteed if the blank control code codes below 1F h is transmitted to printer This code table is for simplified symbols and does not present actual...

Page 52: ...47 6 2 International character code table This code table is for simplified symbols and does not present actual print result There may be a different case between code table and print result...

Reviews: