Home
Programmer`s Manual TSP600/700/800 Series
Contents
1. 101 APPENDIX XIaNaddv STAR Page Mode Character type Small size or standard decimal 160 176 192 208 224 240 161 177 193 162 178 194 163 179 195 4 0 f 132 148 164 180 196 a 0 5 133 181 197 6 134 182 198 C Ju 7 135 183 199 8 y 6 136 fiee 200 9 137 185 201 138 186 202 B 139 187 203 1 140 188 204 ai ECCE 141 189 205 221 237 253 1 142 158 174 190 206 222 238 254 f 143 159 175 191 207 223 239 255 102 STAR Page Mode Character type Boldface ee sg 9 A B C D
2. APPENDIX SP Space 12 DP8340 Mode International Character Set Hexadecimal 23 24 40 USA Ferre EE re iD APPENDIX 13 ELECTRONIC PRODUCTS DIVISION STAR MICRONICS CO LTD 536 Nanatsushinnya Shimizu Shizuoka 424 0066 Japan Tel 0543 47 0112 Fax 0543 48 5013 Please access the following URL http www star micronics co jp service frame_sp_spr_e htm for the lastest revision of the manual OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA INC 1150 King Georges Post Road Edison NJ 08837 3729 U S A Tel 732 623 5555 Fax 732 623 5590 http www starmicronics com STAR MICRONICS U K LTD Star House Peregrine Business Park Gomm Road High Wycombe Bucks HP13 7DL U K Tel 01494 471111 Fax 01494 473333 http www starmicronics co uk 2001 10 12 Printed in Japan 80872097
3. Version No n Header 2 1 00000010B 02 Hex 2 00000100B 04 Hex 3 00000110B 06 Hex 4 00001000 08 5 00001010B 0A Hex 6 00001100B 0C Hex 7 00001110B 0E Hex 8 00100000B 20 Hex 9 00100010B 22 Hex 10 00100100B 24 Hex 16 01000000B 40 Hex 30 01101100B 6C Hex 31 01101110B 6E Hex Printer status 1 3rd byte Bit Contents 0 1 0 Always 0 1 ETB command Unexecuted Executed 2 Compulsion switch Open Close 3 ONLine OFF Line ON Line OFF Line 4 Always 0 5 Coveropen Close Open 6 OFF Line due to ON Line switch pushed OFF Line 7 Always 0 Printer status 2 4th byte Bit Contents 0 1 0 Always 0 Invalid 2 Mechanical error Error 3 Auto cutter error Error 4 Always 0 5 Unrecoverable error Error 6 Print stop due to high temperature print head Stop 7 Always 0 65 PAGE MODE AGOW Printer status 3 5th byte Bit Contents 1 0 Always 0 Invalid 2 Invalid 3 Invalid 4 Always 0 5 Invalid 6 Buffer overflow Overflow 7 Always 0 Printer status 4 6th byte Bit Contents 1 0 Always 0 Invalid 2 Near end Near end 3 Paperempty Empty 4 Always 0 5 Invalid 6 Invalid 7 Always 0 Pr
4. iO O O lt GQ O Q NE sul HAM Q c wae b r G O suc 5 f Fe 1 tees dcm I E Hr FA Zm ARK lt duo m F WM REM OR QA 4 O gt gt m Ed Ed lt m G lt Fa P F4 FER E OS SM i m o qq w lt MOANM Other characters are the same as those for Code Page 437 Note Other characters are the same as Note those for Character table Nor mal 99 STAR Line Mode International Character Set The character codes shown in the table are hexadecimal 23 24 40 58 5A SB SC 5D SE 60 7B 7C 7D 7E 1 X 7 8 4 X Z X Z X Z E X Z n EX 2 i N X 7 X 5 4 9 X Z R EX Z 0 U g Z ga i X Z X Z X 2 2 S X 7 Conuntry U S A FRANCE GERMANY ENGLAND DENMARK 1 SWEDEN ITALY SPAIN 1 JAPAN NORWAY DENMARK 2 SPAIN 2 JATIN AMERICA KOREA TRELAND LEGAL APPENDIX 100 A3 2 STAR Page Mode
5. H OAD 5 T Q c qc EZ gt PA o m b F 8 vA AR GNE E o H Aj a tke E 2 eet Emm 88 Co ols j m gy m r r lt lt Bo B NO O w OD D Oo lt OW oon ad x PHYA x W amp o PA O O XD lt uj o CO GO c Se sO d udo ad d OD SD ORO FP Os lt PF O B 5 CO c t WV XO b lt FQ O a B nm Fu d H x s Pa AL ME s O 3 DOH S b 22 F 8 m WA QHxH aH MN Aj a l Ea 4 L CEN Q I eee uu iS seo Oj 2 lt Fa or r a lt ow os ave r va 9 ose O r RE oo G 3 m O 9 d x E A oD BHO oon A d X OO 0 lt gels M OH o lt Q o lt 0 Os lt O m O 2 c st WV SD r lt O Note Other characters are the same as those
6. Parameter Setting 0 1 1 Always 0 2 Start position detect OFF ON n3 Zero style Normal zero Slashed zero n4 International character set See below n4 Country n4 Country n4 Country n4 Country 0 USA 3 UK 6 9 Norway 1 France 4 Denmark 1 7 Spain 1 A Denmark 2 2 Germany 5 Sweden 8 Japan Spain 2 n4 Country Latin America Reset printer CODE lt ESC gt lt LF gt lt NUL gt HEX IB OA 00 Resets the printer and prints self test This command will also set memory switch conditions without the need to turn the printer power OFF and ON again LPRINT CHR amp H1B CHR amp HOA CHR amp HO00 61 PAGE MODE AGOW Request status HEX CODE lt ENQ gt 05 REMARKS When the printer receives this command the printer sends back a status byte for the current printer condition immediately to the host Note Printer conditions are reported by the following status bytes Status byte gt b6 o setat 0 Vertical Parity error 1 error Framing error 1 error Mechanical error 1 error Paper empty 1 empty Buffer empty 1 empty Buffer overflow 1 overflow Compulsion switch High level Switch is set to ON Request status CODE lt EOT gt HEX 04 When the printer rece
7. BR x lt SSM RS m O c lt W D B OD OS e ere v HAO lt 39 d td m HH gt Oh gt Oe eo A O D n m Oo gt F E P Oo oW lt m O A a Hb oH Ao m amp B KE ADADAN te E 4 m m E F I RI H SEI Forse rz or oO N S M RB mM OF a awn oO m OS SM RS P co CO lt d O O m m Code Page 3844 52 Code Page 3843 Polish 2 o an Fi orn RA b b 8 uc ou NUN Q a 4 Fa r a c lt SH OD 24 Hm OW ANN O DP im oH Oo Ds OD wd AH cx DORADA m O Ab ME N Huboin eg gdcod os 5 u Ald E uc m Te dec H m lt INN We d d dre 9 d FOO CO cx FJA f c x om lt FA O AG m APPENDIX Note Other characters are the same as those for Character table Normal 9
8. 0 1B 5F 00 Hexadecimal Control codes cod s Function Page lt ESC gt 4 1B 34 Select highlight printing 14 lt ESC gt 5 1B 35 Cancel highlight printing 14 lt S gt Inverted printing 14 lt DC2 gt 12 Cancel inverted printing 14 lt ESC gt E 1B 45 Select emphasized printing 15 lt ESC gt 1B 46 Cancel emphasized printing 15 lt ESC gt lt GS gt t n 1D 74n Select character code table 15 Commands to Set the Page Format Control codes Hexadecimal Function Page codes lt ESC gt C n 43 Set page length in lines 16 ESC 0 n 1B 4300n Set page length in inches 16 lt gt n 4En Set bottom margin 16 lt ESC gt 4F Cancel bottom margin 17 ESC I n 6C n Set left margin 17 lt ESC gt n 1 51 Set right margin 17 Commands to Move the Print Position Control codes es Function Page lt LF gt 0 Line feed 18 CR 0 Carriage Return same LF 18 lt ESC gt 1B 61 Feed paper n lines 18 FF 0C Form feed 18 HT 09 Horizontal tab 18 VT OB Vertical tab 19 n ks ae Set line spacing to 4 mm 19 lt ESC gt 0 1B 30 Set line spacing to 3 mm 19 lt ESC gt J 4An One time n 4 mm feed 19 lt ESC gt T 1B 49n One time n 8 mm fe
9. A3 3 DP8340 mode TSP800 Only 1 OUTLINE 1 1 TSP600 700 Series The details of each command are shown in the following sections The printer has two different software modes STAR Line mode and ESC POS mode which can be selected using the DIP switch Factory setting STAR Line mode DIP Switch 1 1 1 Mode Selection ON STAR Line mode OFF ESC POS mode For the detailed functions and settings of the DIP switches please refer to the User s Manual 1 2 TSPS00 Series The details of each command are shown in the following sections The printer has three different software modes STAR Line mode STAR Pege mode DP8340 mode and ESC POS mode which can be selected using the DIP switch Factory setting STAR Line mode DIP Switch 1 1 1 1 2 Mode Selection ON 5 Line mode OFF ON STAR Page mode ON OFF DP8340 mode For the detailed functions and settings of the DIP switches please refer to the User s Manual 3N 2 STAR LINE MODE 2 1 Command Summary The details of each command are shown in the following sections Commands to Select Characters Hexadecimal Control codes Function Page codes lt ESC gt n 52 Select international character set 6 Do Select slash zero lt ESC gt 1
10. Item Mode 1 Mode 2 Mode 3 Mode 4 Mode 5 Mode 6 7 Mode 8 Mode 9 2 dots 3 dots 4 dots 2 dots 3 dots 4 dots 2 dots 3 dots 4 dots elements wide dots 9 dots 12 dots 5 dots 8 dots 10 dots 4 dots 6 dots 8 dots elements Ratio 1 3 1 3 T 3 1 25 1 2 77 1 2 1 2 12 1372 Inter character 2 dots 3 dots 4 dots 2 dots 3 dots 4 dots 2 dots 3 dots 4 dots space Length of one 4 6 8 3 625 5 625 7 25 325 4875 6 5 character mm b Vertical printing In vertical printing one dotis added to each white bar which is horizontally printed This is because the width of black bars is made wider due to the change of printing characteristics caused by heating ofthe printing head As a result the number of dots for white bars and for black bars are different even when white and black bars have the same narrow element width Length of each element is as shown below Item Mode 1 2 Mode 3 Mode 4 Mode 5 Mode 6 7 Mode 8 Mode 9 Length of one 4 625 6 625 8 625 425 6 25 7 875 3 875 5 5 7 125 character mm zT APPENDIX XIaNaddv 2 REQUIREMENTS a The Start code and the Stop code of CODE 39 are automatically added b The position defined by the control command locates the bar code symbols It is necessary to provide space for a quiet zone for bar code symb
11. Invalid 2 Invalid 3 Invalid 4 Always 0 5 Invalid 6 Buffer overflow No error Error 7 Always 0 44 Printer status 4 6th byte Bit Contents 0 1 0 Always 0 Invalid 2 Near end Not near end Near end 3 Paper empty Not empty Empty 4 Always 0 5 Invalid 6 Invalid 7 Always 0 Printer status 5 7th byte Bit Contents 0 1 0 Always 0 Invalid 2 Invalid 3 Invalid 4 Always 0 5 Invalid 6 Invalid 7 Always 0 NITET oct status transmission condition CODE lt ESC gt RS n REX E 61 n Status transmission condition is set according to the value of n n 0 ASBis invalid n 1 ASB is valid Reset the printer hardware CODE lt 5 gt lt LF gt lt NUL gt HEX 3F 00 REMARKS Resets the printer hardware 2 452 LINE MODE AGOW 3 STAR PAGE MODE TSP800 ONLY 3 1 Command Summary The printer has the following control commands Each control code starts with lt ESC gt code and ends with lt LF gt lt NUL gt codes except for the Request status command lt ENQ gt and the Call Download Character command lt 5 gt Format Definition Control codes Hexadecimal codes Function Pages
12. 1 Select sensor adjustment mode with DIP switch setting 2 Turn the power ON while holding FEED switch pushed POWER LED will lights then release FEED switch immediately 3 With the paper roll uninstalled turn fully VR1 counterclockwise If ERROR LED lights adjustment is not necessary If not adjust VR1 until both POWER ERROR LEDs light 4 Install the paper roll and confirm that only POWER LED lights 5 Turn the power OFF 6 Select standard mode with DIP switch setting 85 APPENDIX Character code tables Appendix 3 STAR Line Mode 1 A3 Character table Normal 12 bod N eo y T ex co 10 M kuka APPENDIX Note The 7 code is a space when neither normal nor katakana 86 STAR Line Mode Character table Normal Hexa decimal 0 O N CO O O 8 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 d 9 144 145 146 161 176 177 147 148 149 150 151 152 153 154 155 156 157 158 159 IO 1 lma 1 62 163 164 165 166 167 168 169 ol 178 lt gt 179 180 181 182 183 184 185 170 171 172 173 174 175 186 1
13. 07 Executes drive pulse for peripheral device 1 LINE MODE Control peripheral device 1 FS HEX 1 Executes drive pulse for peripheral device 1 MVNO Control peripheral device 2 CODE lt EM gt HEX 19 Drives peripheral device 2 The drive pulse width and delay time are fixed at 200 ms Control peripheral device 2 CODE SUB HX 1 REMARKS Drives peripheral device 2 The drive pulse width and delay time are fixed at 200 ms 35 Commands to Control Auto Cutter NITTRI BE Cut command to the auto cutter CODE ESC 4 HEX 1B 64 1 lt 1 gt AGOW 3N 3 or lt 3 gt REMARKS 0 0 2 or lt 2 gt TSP700 800 Cuts the paper fully immediately TSP600 700 800 Cuts the paper leaving one point uncut immedi ately TSP700 800 Cuts the paper fully after feeding the paper to the cutting position When print start position detect is ON feeds the paper to the next print start position first feeds the paper to the cutting position then cuts the paper fully TSP600 700 800 Cuts the paper fully after feeding the paper to the cutting position When print start position detect is ON feeds the paper to the next print start position first feeds the paper to the cutting position then cuts the paper leaving one point uncut Feed the tear bar position TSP600 only COD
14. 7 CODE 128 This code can represent 128 ASCII characters 1 Each mode and module width a Horizontal printing Note The start and stop bars are not included Item Mode 1 Mode 2 Mode 3 Module width 2 dots 3 dots 4 dots Width of one 2 75 4 125 mm 5 5 mm character b Vertical printing Item Mode 1 Mode 2 Mode 3 Module width 2 dots 3 dots 4 dots Width ot one 3 125mm 45mm 65mm character 2 REQUIREMENTS 25 is sent as data 0 25H 35H Control codes 00H to 1FH and 7FH are sent as data followed by 40H to 5FH and 35 For example control code 7FH is sent as data 5 25H 35H Function codes are sent as data followed by 1 to4 31H 34H The start code is sent as data followed by 6 to 8 36H to 38H Although CODE 128 data requires START CODE the printer automatically adds START CODE Please omit START CODE when sending data to the printer 85 3 2 character set codes Control codes Special code Code HEX Format HEX Code HEX Format HEX NUL 00H 25H 40H 25H 0 25 30 SOH 01H 25H 41H STX 02H B 25H 42H Function codes ETX 03H 25H 43H Code HEX Format HEX EOT 04H D 25H 44H FNCI 1 25H 31H ENQ 05H 25 45 2 2 25 32 06H 25 46 263 25H 33H BEL 07H G 25H 4
15. Note Only standard size character 16 W x 24 H dots can be defined as download characters MSB LSB MSB LSB d 00000000 00000000 92 00000000 d4 95 00000000 00000000 d d 00000000 47 49 00000000 dio d45 0 0000 00000000 046 447 00000000 048 Select zero style CODE lt ESC gt Z lt LF gt lt NUL gt HEX 1B 5A n OA 00 REMARKS This command selects zero style normal zero slashed zero n 0 Select normal zero n 1 Select slashed zero 68 4 DP8340 MODE TSP800 ONLY 4 1 Command Summary Control codes Hexadecimal Function Page codes lt LF gt 0A Print and line feed instruction 70 lt CR gt 0 Print and line feed instruction 70 Same as LF SO OE Expanded character instruction 70 lt DC4 gt 14 Expanded character release 70 bora A S Underline isrtruction 70 lt ESC gt 0 1B 2D 30 i 70 lt ESC gt lt 0 gt 1B 2D 00 Underline release lt 81 gt Inverted print instruction 71 lt DC2 gt 12 Inverted print release 71 lt ESC gt 1B 45 Emphasized print instruction 71 lt ESC gt F 1B 46 Emphasized print release 71 lt ESC gt 4 1B 34 Highlighted character print instruction 71 lt ESC gt 5 1B 35 Hig
16. 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 1 0 0 Codepage 857 Turkish 0 0 0 1 0 1 Codepage 862 Hebrew 0 0 0 1 1 0 Codepage 864 Arabic 0 0 0 1 1 1 Codepage 737 Greek 0 0 1 0 0 0 Codepage 851 Greek 0 0 1 0 0 1 Codepage 869 Greek 0 0 1 0 1 0 Codepage 928 Greek 0 0 1 0 1 1 Codepage 772 Lithuanian 0 0 1 1 0 0 Codepage 774 Lithuanian 0 0 1 1 0 1 Codepage 874 Thai 0 1 o 0 0 0 0 Codepage 1252 Windows Latin 1 0 1 0 0 0 0 1 Codepage 1250 Windows Latin 2 0 1 0 0 0 1 0 Codepage 1251 Windows Cyrillic 1 o0 0 o 0 0 0 Codepage 3840 IBM Russian 1 0 0 0 0 0 1 Codepage 3841 Gost 1 0 0 0 0 1 0 Codepage 3843 Polish 1 0 0 0 0 1 1 Codepage 3844 CS2 1 0 0 0 1 0 0 Codepage 3845 Hungarian 1 0 0 0 1 0 1 Codepage 3846 Turkish 1 0 0 0 1 1 0 Codepage 3847 Brazil ABNT 1 0 0 0 1 1 1 Codepage 3848 Brazil ABICOMP 1 0 0 1 0 0 0 Codepage 1001 Arabic 1 0 0 1 0 0 1 Codepage 2001 Lithuanian KBL 1 0 0 1 0 1 0 Codepage 3001 Estonian 1 1 0 0 1 0 1 1 Codepage 3002 Estonian 2 1 0 0 1 1 0 0 Codepage 3011 Latvian 1 1 0 0 1 1 0 1 Codepage 3012 Latvian 2 1 0 0 1 1 1 0 Codepage 3021 Bulgarian 1 0 0 1 1 1 1 Codepage 3041 Maltese 1 1 1 1 1 1 1 User setting Blank code page 40 Initialize printer CODE lt ESC gt EX 1B 4 Reinitializes the printer Clears the printbuffer and returns settings to their power up values Does no
17. 1B 2F 01 lt ESC gt 0 2 30 6 Select normal zero lt ESC gt 0 1B 2F 00 lt ESC gt b nl n2 n3 n4 1B 62 nl n2 n3 n4 Select bar code printing 7 dl RS dl 1E lt ESC gt M 1B 4D Select 12 dot pitch printing 11 ESC 1B 70 Select 14 dot pitch printing 11 lt ESC gt P 1B 50 Select 15 dot pitch printing 11 lt ESC gt Select 16 dot pitch printing 11 lt ESC gt SP 1 20 Set character spacing 11 SO Sets the printing magnified double in 12 character width lt DC4 gt 14 Resets the printing magnified in 12 character width lt ESC gt W 1B57n Sets the magnification rate in character width 12 lt ESC gt lt SO gt 1B Sets the printing magnified double in 12 character height lt ESC gt lt DC4 gt 1B 14 Resets the printing magnified in character 12 height lt ESC gt h 68 Sets the magnification rate in character height 13 lt ESC gt i n1 n2 1B 69 nl n2 Sets the magnification rates in character 13 width and height lt ESC gt 1 1B 2D 31 M 13 Select underlining lt ESC gt 1 1B 2D 01 lt ESC gt 0 1B 2D 30 a 13 Cancel underlining lt ESC gt 0 1B 2D 00 lt ESC gt _ 1 5 31 i 14 Select upperlining lt ESC gt 1 1B 5F 01 lt ESC gt _ 0 1B 5F 30 NC 14 Cancel upperlining lt ESC gt
18. 4 N ce e 4 N N N N N bz e G o Tat Te lt B eo a a e eo e e lt O tH 3 3 FR rR mi cc iO N a 5 lt Hess f 4 71 L a lt amp 8 vs 1 Q g a 59 ToO APPENDIX u o m a e e e e N N N N T gt t N N N N N i 8 JH fbt fk e Ju HE e e Es A 8 1 SP Space 106 DP8340 Mode IBM Character Set 1 XIGNAddV aah oft a as o o ale ata tahaa wo wo NI INI IN IN IN IN IN IN INI IA SP Space 107 XIaNaddv 147 163 179 Hexa K ripas 55 50 1 1 L 161 177 193 209 225 241 2 l T 162 178 194 26 ine 27 243 212 228 244 32 48 a amp 65 197 213 229 245 B H E E EU a al el fat al 2 214 230 IL 1 35 151 167 183 199 215 17 3 HER N gt 247 36 152 2 _ _ _ U 9 gt gt 137 153 201 233 9 CA gg EE N 138 154 170 186 202 N 18 234
19. LE lt gt 1B 4E n1n2 00 Select international character set 67 lt ESC gt 2 dl d48 1B 46 n1n2 dl d48 Register download character 68 LF lt NUL gt 0A 00 lt ESC gt Z LF NUL 1B5An0A 00 Select zero style 68 247 PAGE MODE AGOW 3 2 Command Specification Format Definition Clear format CODE lt ESC gt lt LF gt lt NUL gt HEX 1B 43 OA 00 REMARKS When the printer receives this command all defined format and image data are cleared The format defined by the following commands will be cleared lt ESC gt D lt ESC gt E lt ESC gt L lt ESC gt lt ESC gt lt ESC gt Y lt ESC gt RC lt ESC gt RB lt ESC gt Q lt ESC gt H lt gt lt gt TNO Define print area CODE lt ESC gt D nin2n3n4 lt LF gt lt NUL gt HEX 44 nin2n3n4d OA 00 REMARKS This command defines the print area page length according to the value of n1n2n3n4 in 1 10 mm unit 1 2 3 4 Print area 0001 to 2000 0 1 mm to 200 mm Note When a value greater than the size of the label is set two or more labels are assumed to be one label For example when 50 mm is set for a label whose pitch is 40 mm one print pattern is printed using two labels To avoid such a case approx 5 mm of each top and bottom margins should be consi
20. REMARKS This command defines cut position and enables cutter This command does not energize cutter Cutter will be operated only when receiving lt ESC gt I com mand d or indicates the direction of the cut position from the normal position indicates a forward feed and indicates reverse feed from the normal cut position nin2 Indicates the value to move in 1 10 mmunit 00 to 50 Note a Ifthese parameters d and n1n2 are omitted then the cut position is set at the default position b Default cut position or normal position is at the bottom edge of the print area 4 means that cutting operation is omitted one time In this case n n2 is not specified Set Memory Switch CODE lt ESC gt N nln2n3n4 LF lt NUL gt HEX 1B 23 N 2C nin2n3n4 00 REMARKS Set the memory switch In order to enable changed memory switch settings turn the printer OFF and ON again or send printer reset command lt ESC gt to the printer Changed memory switch settings are stored in EEPROM and these setting will be stored as long as the time when they are changed again N Memory switch number 1 only 11021304 Mode settings For details see below 1 Use N 1 to set printer conditions Parameters are as follows nl Always 0 n2 Start position detect n3 Zero style n4 International character set 60 Default
21. Width of narrow elements and length of two characters a Horizontal printing Item Mode 1 Mode 2 3 Mode 4 Mode 5 Mode 6 7 Mode 8 Mode 9 2 dots 4 dots 6 dots 2 dots 4 dots 6 dots 2 dots 3 dots 4 dots elements Wadi ot wide 5 dots 10 dots 15 dots 4 dots 8 dots 12 dots 6 dots 9 dots 12 dots element Ratio 1 2 514 32 5 1 2 1 2 1 2 1 2 1 3 1 3 1 3 Length of A ap hd 4 8 12 35 7 105 45 675 9 character mm b Vertical printing Item Mode 1 Mode 2 Mode 3 Mode 4 Mode 5 Mode 6 7 Mode 8 Mode 9 Length OLGO 4 625 8 625 12 625 4 125 7 625 11 125 5 125 7 375 9 625 character mm 2 REQUIREMENTS a When this code is used the start and stop patterns are automatically inserted b When the number of digits for bar code data is an odd number the printer automatically adds 07 in the highest digit position c Details conform to the AIM USS 12 5 ANSI and JIS X 0502 specifica tions EXAMPLB Barcode string number 25 starting position of bar code X Y 79 5 mm 10 mm use Mode 1 of ITF Bar code height 10 mm Data 0123456 bar code rotation direction 0 degree LPRINT 6 1 25 0050 0100 1 2 0 01007 00 LPRINT CHR amp H1B RB25 0123456 CHR amp H00 APPENDIX XIaNaddv 3 CODE 93 1 Each mode and module width
22. in the X direction and 0 125 mm units dot units in the Y direction c lt ESC gt X cancels data that was set using the command d If is missing printer goes into an error condition 56 Copy BMP file to printer CODE lt ESC gt n 1 2 3 4 yly2y3y4 BMP file data lt LF gt lt NUL gt 1B 48 n 1 2 3 4 2 yly2y3y4 2 BMP file data 2 0A 00 This command copies BMP file to the printer Image buffer BMP file can be scanned by scanner and edited by a program such as the PAINT BRUSH in the WINDOWS The printer can accept non compressed monochrome BMP file only file contains white pixel dots There are two mode in this command depending on how to handle these white pixels when there are black pixels already set in the area to be printed on 3B hex mode White pixels area of BMP file do not erase black pixels previously set gt 3A hex OVERWRITE White pixels area of BMP file erase overwrite black pixels previously set Data previously set BMP graphic file Print out result mode ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK OVERWRITE mode ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK 1 2 3 4 Print start position in the X direction yly2y3y4 Print start position in the Y d
23. lt ESC gt C LF lt NUL gt 1B 43 0A 00 Clear format 48 lt ESC gt D 1 2 3 4 lt LF gt 1B 44 nIn2n3n4 Define print area 48 lt NUL gt 00 lt ESC gt L 1 2 xIx2x3x4 1B 4C 2 3B x1x2x3x4 2 Define ruled line format 49 1 2 3 4 x5x6x7x8 1 2 3 4 2 x5x6x7x8 2C 5 6 7 8 d w lt LF gt y5y6y7y6 2C d 2 w 00 NUL ESC nIn2 LF lt gt 1B 45 2 00 Cancel ruled line format 49 ESC PC nIn2 xIx2x3x4 50 43 2 x1x2x3x4 Define character string format 50 yly2y3y4 h 2C y1y2y3y4 2C w2C h2C c c rlr2 did2 LF NUL 2C rir2 2 4142 00 lt ESC gt PB 2 xIx2x3x4 1 5042 nIn2 x1x2x3x4 Define bar code format 52 1 2 3 4 w b 2C yIy2y3y42Cw2C b2C m m hIh2h3h4 LF NUL 2 Alh2h3h4 00 ESC Y 4142 lt LF gt lt NUL gt 1B 59 41420 00 Define character pitch 53 Print Data Settings Control codes Hexadecimal codes Function Pages lt ESC gt RC 2 al an IBB5243n1n23B 1 2 Set character string data 54 LF lt NUL gt 0A 00 lt ESC gt RB nln2 1 1 52 42 1 2 1 2 Set bar code data 95 LF lt NUL gt 0A 00 lt ESC gt Q n 1 2 3 4 1 51 n 1 2 3 4 2C Store dot graphic data into image 56 y1y2y3y4 hIh2h3h4 1 2 3 4 2C hIh2h3h4 2C memory wlw2w3 n1 In12n13 wlw2w3 2C nl I
24. or eee e Tee o oso os Tee o0 ROI O co co 29 AGOW 3N CODE HEX REMARKS Note Define logo data ESC FS n xll x12 yl y12 d k1 I xnl xn2 yn2 d kn n 1B 71 x12 y11 y12 d 1 xnl xn2 yn2 d kn n Define the logo data specified by n 1515255 The number of logo images to define is specified xnl xn2 ynl yn2 d kn n Parameter and data are specified according to the number specified by n xnl xn2 lz xnl xn2 x 256 1023 Horizontal size of the logo image is specified as 1 xn2 x 256 x 8 dots ynl yn2 lz ynl 2 256 288 Vertical size of the logo image 15 specified as 1 yn2 x 256 x 8 dots d kn kn xnl xn2 x 256 x ynl yn2 x 256 x 8 Logo data is specified This command is specified at the beginning of the line This command cancels all logo images that have already been defined by this command The printer cannot redefine only one of several data definitions previously defined Is this case all data needs to be sent again Total defined data area is 480K bytes for TSP800 256K bytes for TSP600 700 If there is not enough empty area that was specified with the parameter or if any mistake in the parameter is turned out the processing of this command is terminated However the logo images whose definition had been c
25. xus le 157636 gg T 139 155 171 187 203 235 al m 3 IR 156 172 174 88 52 t2 221 237 253 206 a B 92 n N 207 3 5 108 DP8340 Mode IBM Character Set 2 decimal Ea nr q ENSE E rad s pa w 39 10 119 5 APPENDIX UL EE EEE us 110 APPENDIX DP8340 Mode JAPAN decimal 0 16 33 e so 112 1 1 q 1 y 33 9 113 0 2 2 B R b ir 2 18 so 6 82 9 114 S 67 F rs raf 3 19 51 39 ut 20 36 52 68 841 100 5 1 5 U e u s 3 53 65 101 u7 amp 6 F V f 6 2 6 22 38 sa 70 86 102 7 BEL 7 G g 7 23 39 55 71 871 103 Cw H X h 8 24 ao 56 72 881 104 __ 9 I Y i 9 2 57 73 s9 105 iF SUB 7 j 8 9 122 ESC 11 27 43 s9 75 123 C D ET 15 a 79 127 SP Space APPENDIX
26. 3 dots 4 dots Bar code width JAN EAN 8 13 375 mm 27 75 mm 36 125 mm JAN EAN 13 UPC 27 624 mm 39 5 mm 51 375 mm Note Rightand left guard bars are included white spaces are not included 2 REQUIREMENTS a JAN EAN 8 Must consist of a 7 or 8 numeric digits otherwise the command is ignored The check digit is automatically added using modules 10 3 weight When the calculated value and the value in the 8th digit differ the former value has precedence over the latter values b JAN EAN 13 Must consist of a 12 or 13 numeric digits otherwise the command is ignored The check digitis automatically added using modules 10 3 weight When the calculated value and the value in the 13th digit differ the former value has precedence over the latter values c UPC A Must consist of a 11 or 12 numeric digits otherwise the command is ignored The check digit is automatically added using modules 10 3 weight When the calculated value and the value in the 12th digit differ the former value has precedence over the latter values 81 APPENDIX XIaNaddv EXAMPLE Barcode string number 10 starting position of bar code X Y 5 mm 10 mm use Mode 1 of EAN 13 Barcode height 10 mm data 246801357956 bar code rotation direction 0 degree LPRINT CHR amp H1B PB 10 0050 0100 1 6 0 0100 CHR amp H0A CHRS amp H00 LPRINT CHR amp H1B RB10 246801357956 CHR amp H0A CHRS amp H00
27. 7 Spain 1 Denmark 2 2 Germany 5 Sweden 8 Japan Spain 2 n4 Country 1 TSP700 800 only C Latin America D Korea E Ireland F Legal 37 LINE MODE 2 Use N 3 for folloing settings nl Character table n2 Character table n3 Print column n4 Line feed CR code Setting 0 1 2 3 1 n2 n3 Print colum 69 TSP800 55 TSP800 33 35 48 53 27 28 38 42 TSP700 TSP700 Character table See the table 1 Nest page 33 48 27 38 TSP600 TSP600 lt n4 Line feed mm 4 3 4 3 CR code Invalid Invalid Valid Valid m Note In order to enable the changed memory switch setting turn the printer OFF and ON again or send the printer reset command lt 5 gt to the printer 3 Use N 4 for folloing settings a TSP700 Setting 0 1 2 3 nl Always 0 n2 Always 0 n3 Print colum See bolow ESC POS mode only n4 Print area See bolow n3 Print colum Print area Left margin Font A Font B 0 EPSON 72 mm 576dots 32 dots 42 colums 56 colums compatible 52 5 mm 420dots 24 dots 31 colums 41 colums 80 mm 640dots 40 dots 47 colums 63 colums 50 8 mm 406dots 24 dots 30 colums 40 colums 1 Max 72 mm 576dots 0 dot 48 colums 64 colums colum 52 5 mm 420dots 0 dot 35 colums 46 colums 80 mm 640dots 0 dot 53 colums 71 colums 50 8 mm 406do
28. ESC gt lt 1 gt 2501 Enable download character set lt ESC gt 0 1B 25 30 z 34 lt ESC gt lt 0 gt 1B 25 00 Disable download character set Commands to Control Peripheral Devices Control codes Hexadecimal Function Page codes lt ESC gt lt BEL gt n1 n2 1B 07 n1 n2 Define drive pulse width for peripheral 35 device lt BEL gt 07 Control peripheral device 1 35 lt FS gt 1C Control peripheral device 1 35 lt EM gt 19 Control peripheral device 2 35 lt SUB gt 1A Control peripheral device 2 35 Commands to Control Auto Cutter Control codes Hexadecimal Function Page codes lt gt d n 1B 64n Cut command to the auto cutter 36 ESC d 1B 64 74 Feed to the tear bar position TSP600 only 36 Other Commands Control codes Function Page codes CAN 18 Cancel last line amp Initialize printer 37 lt ESC gt lt GS gt mNnal 1B 1D23mNnl Set memory switch 37 n2 n3 n4 LF lt NUL gt n2n3n40A 00 lt ESC gt 1B 40 Initialize printer 41 lt ENQ gt 05 Request status 41 lt EOT gt 04 Request status 42 lt ESC gt lt gt lt 5 gt 1B 06 01 Request status 42 ESC RS n IE 61 n Set status transmission condition 45 lt ESC gt LE lt NUL gt 1B 0A 00 Reset printer hardware 45 LINE MODE AGOW 3N 2 2 Command Specification Command
29. GS a n HEX IB 1D 61 n REMARKS Lines up all print data in one line to the specified position Alignment positions are shown below n Alignment Position 0 1 Center 2 Right The value of n can be set to 0 00H to 2 02H or 0 30H to a 2 32 lt m ABC ABCD ESC GS a 0 ABCDE ABC ESC GS a 1 ABCD ABCDE ABC ABCDE 1 Enabled only when input at the beginning of the line 2 Aligns positions in the set printing width 3 Position alignment occurs for the data that is skipped using the following commands a Horizontal tab HT b Absolute position ESC GS A c Relative position ESC GS R OD Commands to Print Dot Graphics Print normal density graphics CODE lt ESC gt nl n2 dl dk k 1 n2 x 256 1B 4B nm m dl dk nI n2 x 256 Prints normal density dot graphics The graphics image is 24 dots high and n n2 x 256 x 3 dots wide dl d2 are the dot data each a 1 byte value from 0 to 255 representing 24 vertical dots with the most significant bit repre senting the top three and the least significant bit representing the bottom three Print area A 104mm TSP800 1 nl n2 x 256 277 9 72mm 5 600 700 nl n2 x 256 lt 192 52 5mm TSP700 id xnl n2 x 256 140 80mm 5 700 znl n2x256 2213 50 8mm TSP600 700 1 nl n2 x 256 2135 Dots beyond the right margin are ignored Relationsh
30. Qa b7 be bs b4 bs b2 bi bo b7 be bs b4 bs b2 bi bo b7 be bs b4 bs b bi bo _ Gua _ _ _ dns _ _ b7 be bs b4 bs b2 bi bo b7 bs bs bs b bi bo b7 bs b4 bs b bi bo _ _ _ dme e 67 be bs b4 bs b2 bi bo b7 bs bs bs b2 bi bo b7 be bs b4 bs b bi bo _ _ _ _ 232 e L a b7 be bs bs b2 bi bo b7 be bs bs b2 bi bo b be bs b4 bs b2 b bo LINE MODE ANI Printing Sample MSB LSB MSB LSB dl 2 4 45 6 8 110 e e 12 13 6 6 6 0 0 15 16 17 18 19 20 21 0000 22 23 eee eee 24 25 eeee eeee 26 27 jejeje ojojo 28 2 e e e 0 ele 2 13 35 ee eeee 36 37 e 3s 9 e eoo eoo oo 41 42 43 44 45 46 47 48 Data Binary Pip iE Data Binary cs d 00000000 00 d2 00000000 00 d3 000111
31. a Horizontal printing Item Mode 1 Mode 2 Mode 3 Module width 2 dots 3 dots 4 dots Width of Ed id 225 3375 45 character mm Note The start and stop bars are not included b Vertical printing Item Mode I Mode 2 Mode 3 Module width 2 dots 3 dots 4 dots 2 625 3 75 4 875 character mm 2 REQUIREMENTS a The start and stop patterns are automatically inserted b The check characters are automatically inserted 2 character set codes are same as CODE 128 Expect ENCI 4 and START A C EXAMPLE Bar code number 00 starting position of bar code X Y 40 mm 16 mm Mode 2 of CODE 93 Bar code rotation 0 degree Bar code height 10 mm Data ABCDefg LPRINT CHR amp H1B PB00 0400 0160 2 3 0 0100 CHR amp HO0A CHRS amp H00 LPRINT CHR amp H1B RB00 ABCDefg CHR amp HO0A CHRS amp H00 80 4 5JAN EAN 8 6 JAN EAN 13 These codes are common commodity codes mainly used for miscellaneous goods or groceries sold at supermarkets 1 Each mode and bar code width a Horizontal printing Item Mode 1 Mode 2 Mode 3 Module width 2 dots 3 dots 4 dots Bar code width JAN EAN 8 16 75 mm 25 125 mm 33 5 mm JAN EAN 13 UPC 23 75 mm 36 625 mm 47 5 mm Note Rightandleft guard bars are included white spaces are not included b Vertical printing Item Mode 1 Mode 2 Mode 3 Module width 2 dots
32. are automatically inserted f Start and stop characters of Interleaved 2 of 5 are automatically inserted g When the number of digits of Interleaved 2 of 5 is an odd number 0 is automatically inserted as the highest digit h If is missing printer goes into an error condition 55 PAGE MODE AGOW Store dot graphic data into image memory CODE lt ESC gt hlh2h3h4 LF nmlnm2 nmk amp LF lt NUL gt 51 n 1 2 3 4 2 yly2y3y4 2C HEX 1B n 1 2 3 4 y1y2y3y4 h1h2h3h4 wlw2w3 nll Note nmk Q n 1 2 3 4 yly2y3y4 Wlw2w3 nlini2nl3n nIk 1 2 3 4 2 wlIw2w3 2 11 12 13 1 lt gt 1 2 0A 00 REMARKS This command stores graphic data into image memory 5 mode 66 99 Overwrite mode Print start position in the X direction 0000 to 1040 x 0 1 mm Print start position in the Y direction 0000 to 2000 x 0 1 mm Defines the length Y direction of the graphic area 0001 to 1600 dots Defines the width X direction of the graphic area 001 to 104 dots n11 represents data in the Ist line Each line ends with lt LF gt Data X direction appears in the same way as bit image data n21 represents data in the 2nd line a This command can be used any number of times b Size of graphic data is setin 1 mm units byte units 8 bits bytes
33. feed is not performed after execution of command The value of n2 can be set to 1 01H to 4 04H or 1 31H to 4 34H n3 Mode of bar code UPC E UPC A JAN EAN 8 JAN EAN 13 CODE 128 CODE 93 1 Minimum module 2 dots 2 Minimum module 3 dots 3 Minimum module 4 dots AGOW 3N CODE 39 NW 7 ITF CODE 39 NW 7 ITF 1 Narrow wide 2 6 dots 2 5 dots 2 Narrow wide 3 9 dots 4 10 dots 3 Narrow wide 4 12 dots 6 15 dots 4 Narrow wide 2 5 dots 2 4 dots 5 Narrow wide 3 8 dots 4 8 dots 6 Narrow wide 4 10 dots 6 12 dots 7 Narrow wide 2 4 dots 2 6 dots 8 Narrow wide 3 6 dots 3 9 dots 9 Narrow wide 4 8 dots 4 12 dots When either of UPC E UPC A JAN EAN 8 JAN EAN 13 CODE128 or CODE93 is selected 1 01H to 3 03H or 1 31H to 3 33H can be set When either of CODE39 NW 7 or ITF is selected 1 01H to 9 09H or 1 31H to 9 9 can be set n4 Height of bar code di Can be up to 255 dots 31 9mm If the bar code height is larger than the line feed amount the line feed amount is automatically multiplied by an integer dk Bar code data UPC E 11 or 12 The check digit at the 12th digit is automatically added and ignored even if it is specified If the data cannot be abbreviated the command 1s ignored Data conversion to the abbreviation is auto matically executed UPC A k 11 or 12 The check digit at the 12th digit is automatically added and ignored even if it is sp
34. for Character table Normal APPENDIX STAR Line Mode Code Page 863 Code Page 865 Nordic Canadian French Fa Hh h AD o ee gt a a R b 8 5 Ala I E 4H CNN 2 b eee ee fe Rel STS r rv lt w w OD ab L Fr IN St a amp Rd ODO 0D 2 BH CO C B D ud d lt CO 0 cx i SO B lt m O B m o b 3 F G Gi 8 5 uc A 3 i E H s ee fest H Fa ms r rn lt o3 ono WL r S St A 4 4 49 O XA x 2 p Om xD d lt Ge OOD DM lt x in 0 r DAA lt m O Q RE Code Page 866 Cyrillic Russian XIGNAddV 8 9 AB CD E F MOO se 4 ee 20K POM HB EF a IK eo I Il Ji ea SEO r r m BH ONS SMR DI H 9 m i EJO D o 4 Aon a lt NANO t Ww OM lt m o Note Other characters are the same as those for Character table Normal 29f STAR Line Mode Code Page 855 Code Page 857 Turkish C
35. height or width size Double height or width size Triple height or width size Quadruple height or width size Quintuple height or width size 5 Sextuple height or width size The values of n n2 are 0 00 to 5 05H or 0 to 5 35H LINE MODE gt Underlining CODE lt ESC gt n HX 2D m When the value of is 1 underlines the subsequent data including a character spacing set by lt ESC gt lt SP gt n The part to be skipped by the horizontal tab setting and the block graphic characters are not underlined Resets the underline mode when the value of is 0 The value of n can be set to 0 00H or 0 30H or 1 01H or 31H AGOW 3NI1 Upperlining CODE lt ESC gt n HEX 1B SF n REMARKS When the value of 15 1 upperlines the subsequent data including a character spacing set by lt ESC gt lt SP gt n The part to be skipped by the horizontal tab setting and the block graphic characters are not upperlined Resets the upperline mode when the value of n is 0 The value of n can be set to 0 00H or or 1 01H or 31H Select highlight printing CODE lt ESC gt 4 HEX 34 REMARKS Prints the subsequent data including a character spacing set by lt ESC gt lt SP gt n highlighted The part to be skipped by the horizontal tab setting is not high lighted Cancel highlight printing CODE lt ESC
36. image 2 4 a7 aio 12 ara ars 1 ais a20 a21 422 423 424 425 426 a27 428 29 d30 Ds De e eeee Ds eje D4 D3 D2 Dile ee First since the volume of data is 30 n 1 If the data 41 430 is converted to hexadecimal it appears as shown below Data Binary d Data Binary Data Binary dl 00000001 01 1411 1001111101 d21 00111110 2 00011110 1E 4 2 00000010 02 422 001011101 2E 00111110 4 3 00000010 02 423 00101110 2E 4 01011111 5F 44 1001111101 424 001111101 3E 45 00011111 IF 4 5 100111110 425 00101111 2F 010111101 5E 4 6 00101111 2F 426 001011111 2F d7 00011110 1E 417 00101111 2F 427 001111101 3E d8 00111111 4 8 001111101 28 001111101 3E d9 00101111 2F 479 1001011101 2E 429 1000000101 02 410 00111110 420 1001011101 2E 430
37. oO D lt 9 OD O lt lt 8 lt O n m APPENDIX Note Other characters are the same as those for Character table Normal 98 STAR Line Mode Code Page 3012 Latvian 2 Code Page 3011 Latvian 1 D gt xQ te Z w m x H E ABA mM Be Alm foot bow mn R BoD es Oj Fe ew Bu SEH Om lt MD SSM RBM H QV r O EA gt OST AAO Sw lt q m F4 FX FA BS MONS SM z om O n i t 900 O amt Pal NN t gt w E q b gt O 8 uc Alm XO 2 mno O 4 Fe I q gp FETA Te lt Jo om ws o L r t oop O G 23 gt D d xd j lt D wot lt m O Note Other characters are the same as those for Character table Normal Code Page 3041 Maltese Code Page 3021 Bulgarian XIGNAddV 042 3 gt Z x gt Q t DO O O G tn q Q O nio E25 gt gt gt AN lt lt mQ C Q Bl fx r gt gt lt 4 9 t OQ O N HAR D vax
38. the defined image data are cleared The following commands will be cleared by lt ESC gt X lt ESC gt lt 5 gt RB lt ESC gt lt 5 gt lt gt 2582 Other commands Print Label CODE lt ESC gt lt LF gt lt NUL gt HEX IB 49 0 00 This command prints out one label according to the previously defined format and data When print start position detect is ON the paper will be fed to the next print start position after printing If unrecoverable error occurs during printing a series of these operation will be repeated after the printer recovers from the error condition Print Label CODE lt ESC gt W 51525354 hlh2h3h4 lt LF gt lt NUL gt HEX 1B 5751525354 2C hIh2h3h4 0 00 This command prints out the data within the defined print area Print area defined by lt ESC gt D is ignored When print start position detect is ON the paper will be fed to the next print start position after printing If unrecoverable error occurs during printing a series of these operation will be repeated after the printer recovers from the error condition 51525354 Print start position in the Y direction unit 0 1 mm 11121314 Print length from the print start position unit 0 1 mmy 59 AGOW Enable cutter CODE lt ESC gt B d 2 lt LF gt lt NUL gt HEX 1B 42 d nin2 OA 00
39. 00101110 2E d4 01011111 5F 4 4 1001111101 424 00111110 d5 00011111 IF d 5 00111110 425 00101111 2F 01011110 5E 46 00101111 2F 426 00101111 2F d7 00011110 1E d 7 00101111 2F 427 00111110 d8 00111111 418 00111110 428 00111110 d9 00101111 2F 479 1001011101 2E 429 00000010 02 410 1001111101 420 00101110 2E 4301000000101 02 Printing Sample DAS Print high density graphics CODE lt ESC gt L nl n2 dl dk nI n2 x 256 HEX IB nl n2 dl dk nI n2 x 256 REMARKS Prints high density dot graphics The graphics image is 24 dots high and n n2 x 256 dots wide dl d2 are the dot data each a 1 byte value from 0 to 255 representing 24 vertical dots with the most significant bit repre senting the top three and the least significant bit representing the bottom three The number of data bytes must be n n2 x 256 Print area LLI 104mm 800 enl 2 x256 2832 Q 72mm TSP600 700 1 lt n n2 256 576 gt 52 5mm TSP700 enl n2 256 2420 80mm 5 700 n2 x 256 640 S 50 8mm TSP600 700 sn n2 x256 lt 406 Dots beyond the right margin are ignored Relationship between image data and print dots MSB Image data LSB s oe os oe oar wn 2 95 AGOW 3N EXAMPLE We will create the design below using a bit
40. 1000000101 02 Horizontal density is three times that of the bitimagefor lt ESC gt k Compare the print samples Printing Sample SINGEN Print fine density bit image CODE lt ESC gt k n lt gt k nx 24 HEX IB 6B 00 dl dk k2nx24 Prints a bit image using 1 horizontal dot and 1 vertical dot for 1 dot of input data lt Print area gt 104mm TSP800 72mm TSP600 700 52 5mm TSP700 80mm TSP700 50 8mm TSP600 700 26 104 lsns 72 1 52 lsns 80 1 50 Dot position Relationship between image data and print dots Image data b7 b6 b5 b4 63 62 161160 di d2 dn b7 be bs b4 bs b2 b bo b7 be bs b4 bs b2 bi bo b7 bs bs b4 bs b2 bi bo __ ds _ _ el X b7 be bs b4 bs b2 bi bo b7 be bs b4 bs b2 bi bo b7 bs bs b4 bs b bi bo fem e b7 be bs bs b2 bi bo b7 be bs bs b2 bi bo b7 bs bs b4 bs b2 bi bo Loo ___ _ eL d __ 67 be bs b4 bs b2 bi bo b7 bs bs bs b bi bo b7 bs bs b4 bs b bi bo Loo daa ___ _ _ _ e C b7 bs bs b4 bs b2 bi 67 bs bs bs b2 bi bo b7 be bs b4 bs b2 bi bo ___ _ e de b7 be bs b4 bs b2 bi be bs b4 bs 2 bi bo b7 be bs b4 bs b bi bo _ _ dont _ de _ _ j e 0 b
41. 100111B 27 Hex 12 00101001B 29 Hex 13 00101011B 2B Hex 14 00101101B 2D Hex 15 00101111B 2F Hex Header 2 2nd byte Bit Contents 0 0 Always 0 1 2 Version No of the Automatic status 3 4 Always 0 Version No of the Automatic status 7 Always 0 Version No n Header 2 1 00000010 02 Hex 2 00000100B 04 Hex 3 00000110B 06 Hex 4 00001000 08 5 00001010 0A Hex 6 00001100B 0C Hex 7 00001110B 0E Hex 8 00100000B 20 Hex 9 00100010B 22 Hex 10 00100100B 24 Hex 16 01000000B 40 Hex 30 01101100B 6C Hex 3l 01101110B 6E Hex c3 LINE MODE AGOW 3N Printer status 1 3rd byte Bit Contents 0 1 0 Always 0 1 ETB command Unexecuted Executed 2 Compulsion switch Open Close 3 ON Line OFF Line ON Line OFF Line 4 Always 0 5 Cover open Close Open 6 Invalid 7 Always 0 Printer status 42 4th byte Bit Contents 0 1 0 Always 0 Invalid 2 Mechanical error No error Error 3 Auto cutter error No error Error 4 Always 0 5 Unrecoverable error No error Error 6 Print stop due to high temperature print head Printing Stop 7 Always 0 Printer status 3 5th byte Bit Contents 0 1 0 Always 0
42. 11 1 d4 11111000 F8 d5 00111111 3F d6 11111100 FC d7 01110111 77 48 01110111 d9 11111000 F8 410 00011111 1 411 11111000 F8 412 00011111 1 413 11111000 F8 414 00011111 1 415 00001111 0 416 11110000 417 00011111 1 418 11111000 8 419 00011111 1 420 11111000 F8 d21 00111110 3E d22 01111100 7C d23 00111000 38 d24 00011100 425 011111001 79 426 10011110 9 427 01110011 73 d28 11001110 CE d29 01110011 73 d30 11001110 CE d31 11111001 F9 d32 10011111 9F d33 11111000 F8 d34 00011111 1 435 11111110 436 01111111 TF d37 11111111 FF d38 11111111 FF d39 11111111 FF d40 11111111 FF d41 00000000 00 d42 00000000 00 d43 00000000 00 d44 00000000 00 d45 00000000 00 d46 00000000 00 d47 00000000 00 d48 00000000 00 D 8 Print fine density graphics CODE lt ESC gt X nl n2 dl dk 1 2 256 3 HEX IB 5 m m2 dl dk k nI4n2 25653 Prints a bit image of the input data using horizontal and vertical resolutions of 8 dots mm Data extending past the right margin is ignored The relationship between the input data and the actual printing is shown below Print area 104mm 800 1 nl 2 x 256 5832 72mm TSP600 700 1 nl n2 x 256 576 TT 52 5mm TSP700 nl n2x 256 420 5 80mm 5 700 1 lt nl n2 x 256 640 gt 50 8mm TSP600 700 1 nl n2 x 256 406 gt E d1 d2 d3 MSB 58 MSB LSB MSB LSB Paton or ee Jes
43. 2 0 09 r2 0 0 ss NE 2 0 0 Start position C 2 Charcter string rotation only no character Start position 1 0 0 1 0 0 r2 0 0 r2 1 909 3 Charcter string rotation and character rotation Ww gt 9 Start position lt 5 r1 2 180 r1 3 270 2 2 180 2 1 0 0 1 1 90 r2 0 0 r2 1 90 25 NVI Define bar code format CODE lt ESC gt B nin2 2 3 2 3 4 w b hlh2h3h4 lt LF gt lt NUL gt HEX 1B 50 42 nin2 xIx2x3x4 2C y1y2y3y4 2C w 2C b 2C m 2C hIh2h3h4 00 REMARKS This command defines start position and type of bar code string nin2 Bar code string number 00 to 31 1 2 3 4 Print start position in the X direction 0000 to 1040 x 0 1 mm 1 2 3 4 Print start position in the Y direction 0000 to 2000 x 0 1 mm w Mode See Appendix for details b Bar code type 1 to 9 CODE 39 INTERLEAVED 2 OF 5 ITF CODE 93 UPC A JAN EAN 8 JAN EAN 13 CODE 128 NW 7 m Bar code rotation direction 0 to 3 clockwise 0 1 2 3 0 degree 90 degrees 180 degrees 270 degrees h1h2h3h4 Bar code height 0000 to 1999 x 0 1 mm AGOW Note a When a bar code is rotated its dimensions may not conform to ANSI specifications Make sure that the printed bar code is compatibl
44. 56H ETB 17H W 25H 57H CAN 18H X 25H 58H EM 19H 25H 59H SUB Z 25H SAH ESC BH 25H SBH FC 1CH 25H 5 GS IDH 25H 5DH RS 25H SEH US _ 25H 5FH DEL 7FH 5 25H 35H Select 12 dot pitch printing CODE lt ESC gt M HEX 1B 4 REMARKS Prints 12 dot pitch characters without an extra space Select 14 dot pitch printing CODE lt ESC gt HK 70 Prints 12 dot pitch characters with 2 dot spacing between charac ters Select 15 dot pitch printing CODE lt ESC gt HX 5 Prints 12 dot pitch characters with 3 dot spacing between charac ters Select 16 dot pitch printing CODE lt ESC gt HEX 1B 3A Prints 12 dot pitch characters with 4 dot spacing between charac ters Set the character spacing CODE ESC SP n HX IB 20 nm REMARKS Sets the space between characters to n dots where n is a number from 0 to 15 LINE MODE 3N Sets the printing magnified double in character width CODE SO HEX REMARKS Prints the subsequent data including a character spacing set by lt ESC gt lt SP gt n magnified double in character width Resets the printing magnified in character width CODE lt DC4 gt HEX 14 REMARKS Resets the printing magnified in character width set by lt SO gt ESC 2 W n and lt 5 gt 47 2 Sets the magnification rate in character width
45. 6 STAR Line Mode Code Page 3846 Turkish Code Page 3845 Hungarian 8 9 AB CD EF al vi Ro b F G Ql 8 succ 3 ik E u H E q F 1 SEI Sao OO do 5 L F RK ox amp QO O 0 Q D n DP oO uv m vr do xd OO D Om 4 i O rco lt m O 8 9 A BC DEF Hl HA Q o gt e lt 8 E u 4 F I tees 41 FZ me Fa A lt B i d di Fr IN OG 8 O do PO DP wb OK d 1 R FIA f D lt xg OOO H co u D Qs lt FQ O A Code Page 3848 Code Page 3847 Brazil ABNT Brazil ABICOMP XIGNAddV 8 9 A B CD EF A 6 a 6 4 C U 4 oo EY H 8 9 ABCDEF D d 4 E g U 1 e o a 4 Y U i Y x t P 4 y b Y p Note Other characters are the same as those for Character table Normal 29 STAR Line Mode Code Page 2001 Lithuanian KBL Code Page 1001
46. 7 be bs b4 bs b2 bi bo b7 bs bs bs b bi bo b7 bs bs b4 bs b bi bo dm j dm2 _ _ j e b7 be bs b4 bs b2 bi be bs b4 bs b2 bi b7 be bs b4 bs b bi bo _ _ dent ___ _ e 0 __ b7 be bs b4 bs b2 bi bo b7 be bs bs b2 bi bo b7 be bs b4 bs b2 bi bo ___ _ eL d __ b7 bs bs bs b2 bi bo b7 bs bs bs b2 bi bo b7 bs bs b4 bs b bi bo __ doa _ _ dos e b7 be bs bs b2 bi bo b7 be bs bs b2 bi bo b7 be bs b4 bs b bi bo dunt _ _ _ O dia _ el b7 be bs b4 bs b2 bi bo b7 be bs bs b2 bi bo b7 be bs b4 bs b2 bi bo e i b7 be bs bs b2 bi bo b7 be bs bs b2 bi bo b7 be bs b4 bs b2 bi bo dia _ _ _ 32 eL de b7 be bs b4 bs b2 bi bo b be bs bs b2 bi bo b7 bs bs b4 bs b2 bi bo __ daa _ _ J e C d __ b7 be bs bs b2 bi bo b7 be bs bs b2 bi bo b7 bs bs b4 bs b2 bi bo dim2 _ _ J e di b7 be bs bs b2 bi bo b7 be bs bs b2 bi bo b7 bs b4 bs b bi bo dma o e dm b7 be bs bs b2 bi bo b7 be bs bs b2 bi bo b7 be bs b4 bs b2 bi bo _ dma _ domo e C di b7 be bs bs b2 bi bo b7 be bs bs b2 bi bo b7 be bs b4 bs b bi bo _ _ dima dim e d 67 be bs b4 bs b2 bi bo b7 bs bs bs b bi bo b7 bs bs b4 bs b2 bi bo _ _ _ _ do _ e d 67 be bs b4 bs b2 bi bo b7 bs bs bs b bi bo b7 be bs b4 bs b bi bo donu do eL
47. 7H FNC4 4 25 34 BS 08H 25 48 HT 09H 1 25 49 Start codes LF OAH 25 4 Code HEX Format HEX VT OBH PK 25H 4BH START A 6 25H 36H FF OCH PL 25H 4CH START B 7 25 37 CR M 25H 4DH START C 8 25H 38 H SO OEH PN 25H 4EH SI 25H 4FH DLE 10H 25 50 DCI 11H Q 25H 51H DC2 12H JR 25H 52H DC3 13H S 25H 53H DC4 14H T 25H 54H NAK 15H 0 25 55 5 16 V 25H 56 ETB 17 TW 25H 57H CAN 18H 25 58 19 25 59 SUB 1 PL 25H 5AH ESC 1BH 25H 5BH FS 1CH 25H 5CH GS 1DH 25H 5DH RS 1 25 5 US 1 25 5 DEL 5 25H 35H ac EXAMPLE code string number 00 starting position of bar code X Y 15 mm 5 mm use Mode 1 of CODE128 Bar code height 15 mm data 1213477657 and CR carriage return LPRINT CHR amp H1B PB00 0150 0050 1 7 0150 CHR amp H0A CHR amp H00 LPRINT 00 1213477657 CHR amp H0A CHR amp H00 83 XIaNaddv 8 NW 7 NW 7 bar code can represent numeric characters 0 to 9 and special characters such as with one of character from A to D as Start or Stop code in NW 7 1 Width of character in each mode Width of each bar code character varies since number of narrow bars and wide bars are different in each character Normal character number of narrow element 5 number of wide element 2 0to9 Wide character number o
48. 87 ol 188 o 189 190 191 87 192 195 196 197 198 199 200 201 202 203 204 205 206 207 ol 208 211 212 213 214 215 216 217 218 219 220 221 222 223 gG 4 224 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 APPENDIX XIaNaddv STAR Line Mode Character table Code page 437 ure dre 2 decimal 183 198 214 230 167 199 215 231 184 172 188 204 220 200 216 232 138 154 140 156 141 157 173 189 205 221 158 Note Other characters are the same as those for Character table Normal 174 190 206 88 STAR Line Mode Character table Katakana Hexa decimal 132 133 APPENDIX Note Other characters are the same as those for Character table Normal 89 Code Page 852 Latin 2 90 STAR Line Mode Code Page 858 Multi lingual Put gt gt 1
49. Arabic 89 A B C D EF gt gt D e X0 gt FP ON x O O FR Pe x B E AB qq OAK 3 I esta eO A Re 1 us ies H re eS r a gt M NS gt gt lt rf gt Es Ert C 2 gt HAR SRO e 1 lt iO t ADH m O m 8 9 A B C D E F MW gt lt 9 32 lt gt O lt V WE O d O 4 Am A gt 1379 4 h lt 4 4 9 q 9m 4 gt lt TNS XX ww ak n 9 4 4 79 9 4 q lt x A y 0 n 3 Q 0 O O O lt mQ O Q AR Code Page 3002 Estonian 2 Code Page 3001 Estonian 1 xo CO SO 25259 DMN gt BW lt lt BOD in O O x gt gt gt O w x x lt CO 4Q 4 AR HH 6 Ha Aw c eu A RMR KV lt Un oad vr c wu OR o lt m O m m 40 j w lt p 5 wa MMA e N ewe IS ae ra c lt G i eda S RB D gt O O GS lt S x
50. B CDEF OSSGLYUVOABUwE aren 0 o 8 ICF q U q qc P C GC gt G ic Q io C g ZZ gt m OM t 9 4 Q 5 4 q Q t Q Q cn o lt m O n m Code Page 1252 Windows Latin 1 Code Page 1251 Windows Cyrillic XIGNAddV 8 9 AB CDEF YO iC O O O O O BID IO D gt D gt 99 XU WU XU BOD An wi in ax Z O O O iO O x amp gt lt v lt lt lt lt A om e o8 0 5 Bw OI A OMmveriel Il EWA B N gt NOVY w lt m m 8 9 ABCDEF QOor ex xT72as donunmonsgu DLOmLnrmex szuaonnunmngtux lt oH 0L A gt TD H L Owe ovr We 2 1 ek D id HRS 38 cB V x C cn w lt m O m Note Other characters are the same as those for Character table Normal 95 STAR Line Mode Code Page 3841 Gost Code Page 3840 IBM Russian Bl O 4 gt m BM E m Z lt r RM bf SN B z m om oo A gt m E PMA O 2
51. CODE lt ESC gt W n HEX 1B 57 n REMARKS Prints the subsequent data including a character spacing set by ESC SP n magnified in character width by a rate specified by the value of n n Character width n Character width 0 Unmagnify 3 Quadruple 1 Double 4 Quintuple 2 Triple 5 Sextuple The value of n can be set to 0 00H to 5 05H or 0 to 5 35 Sets the printing magnified double in character height CODE ESC S0 HEX OE Prints the subsequent data magnified double in character height Resets the printing magnified in character height CODE lt ESC gt lt DC4 gt HEX 1B 14 REMARKS Resets the printing magnified in character height set by lt 5 gt lt 5 gt ESC h n and ESC 1 nIn2 195 Sets the magnification rate in character height CODE lt ESC gt h n HX m Prints the subsequent data magnified in character height by a rate specified by the value of n n Character height n Character height 0 Unmagnify 3 Quadruple 1 Double 4 Quintuple 2 Triple 5 Sextuple The value of n can be set to 0 00 to 5 05H or 0 30H to 5 35 Sets the magnification rates in character width and height CODE lt ESC gt 4 nln2 HEX IB 69 nin Prints the subsequent data in the size specified by nl n2 nl indicates the height magnification and n2 indicates the width magnification nl n2 0 Normal
52. E ESC HEX 1B 64 Sp 74 REMARKS Feeds the paper to the tear bar position 26 Other Commands Cancel last line amp Initialize printer CODE CAN HEX 18 Clears the line buffer and initializes the commands set already Does not affect the external equipment drive conditions set by the code lt ESC gt BEL n n2 This is the same during a mechanical error Set memory switch CODE lt ESC gt lt GS gt mNnln2n3n4 LP lt NUL gt HEX 1B 1 23 1 2 n2 n3 n4 0A 00 Setthe memory switch In order to enable changed memory switch setting turn the printer OFF and ON again or send printer reset command lt ESC gt to the printer Changed memory switch settings are stored in EEPROM and these setting will be stored as long as the time when they are changed again N Memory switch number 1 or 4 n1n2n3n4 Mode settings For details see below 1 Use N 1 to set printer conditions Parameters are follows nl Always 0 n2 Start position detect n3 Zero style n4 International character set Default Parammeter Setting 0 1 1 Always 0 2 Start position delect 1 OFF ON n3 Zero style Normal zero Slashed zero n4 International character set See below n4 Country n4 Country n4 Country n4 Country 0 USA 3 UK 6 Itary 9 Norway France 4 Denmark 1
53. E F 0 E 128 208 e 145 161 177 193 209 225 241 0 146 162 178 194 210 226 242 _ 147 163 179 243 148 164 180 244 0 149 165 181 245 150 166 246 151 167 183 247 152 168 184 248 5 153 27 fesa 249 7 154 170 186 202 218 234 250 155 171 187 203 219 235 251 156 172 188 204 220 236 252 D i 141 157 173 189 205 221 237 253 E _ 142 158 174 190 206 222 238 254 F 143 159 175 191 207 223 239 255 103 APPENDIX XIaNaddv STAR Page Mode International Character Set France Germany England Denmark 1 Te Sweden Spain 1 4 Japan Norway Denmark 2 2 Latin America 104 A3 3 DP8340 Mode U S A amp Europe 0 un 1 APPENDIX e wo ue N N e 2 B N N N J 1 206 o e e wo o lt lt lt lt N N N N N N e N L I I i Ta lt B 8 8 N e N e N e e N N N N N N N N um E
54. IB 30 Sets the distance the paper advances in subsequent line feeds to 3mm One time n 4 mm feed CODE lt ESC gt J n HX IB 4A nm Performs a line feed of n 4mm once only The value of n is 1 to 255 Space setting for lines is not changed 19 LINE MODE AGOW 3NI1 One time n 8 mm feed CODE lt ESC gt T n HEX 1B 49 n REMARKS Performs a line feed n 8mm once only The value of is 1 to 255 Space setting for lines is not changed Set vertical tab stops CODE lt ESC gt B nl n2 0 HEX IB 42 nl n2 00 REMARKS Cancels all current vertical tab stops and sets new vertical tab stops at lines n1 n2 etc where n1 n2 etc are numbers between 1 and 255 A maximum of 16 vertical tab stops can be set The tab stops must be specified in ascending order any violation of ascending order terminates the tab stop list Standard termina tion is by the 0 control code The vertical tab stops are set in terms of the current line spacing and do not move if the line spacing is changed later Invalid when start position detect is valid lt 5 gt B 0 cancels all vertical tab Set horizontal tab stops CODE lt ESC gt D nl n2 0 HEX IB 44 nl n2 00 REMARKS Cancels all current horizontal tab stops and sets new tab stops at columns n1 n2 etc at the current character pitch where n1 n2 etc are numbers between 1 and 255 A maximum of 16 horizontal tab stops can be set
55. ON Enquiry OUTLINE When this code is received the printer outputs status data If it is input after text data input in the STX ETX mode the printer outputs status data and the check byte CODE CAN 18 FUNCTION Clears print buffer OUTLINE Upon input of this code the data buffer and line buffer is cleared z74 5 ESC POS Mode Command Summary Control Code Hexadecimal Code Function HT 09 Horizontal tab LF 0A Print line feed CR 0 Carriage return FF 0C Page mode print and return DLE EOT 10 04 Real time transmission of status DLE ENQ 10 05 Real time request to printer DLE DC4 10 14 Generate pulse at real time CAN 18 Cancel print data in page mode ESC FF 1 FF Print page mode data ESC SP 1 20 Set right space amount of character ESC 1B 21 Select print mode ESC 24 Designate absolute printing ESC 96 1B 25 Designate cancel download character set ESC amp 1B 26 Define download characters ESC 1B 2A Designate bit image mode ESC 1B 2D Designate cancel underline ESC 2 32 Set 1 6 inch line feed amount ESC 3 1B 33 Set line feed amount 1B 3D Select peripheral equipment ESC 1B Delete download characters ESC e 40 Initialize printer ESCD 1B 44 Set horizontal tab position ESCE 1B 45 Designate cancel emphasized print ESCG 1B 47 Designate cancel double
56. The tab stops must be specified in ascending order any violation of ascending order terminates the tab stop list Standard termina tion is by the 0 control code The horizontal tab stops are set in terms of the current character pitch and do not move if the character pitch is changed later lt 5 gt D 0 cancels all horizontal tab 20 Absolute position setting CODE lt 5 gt GS A nl n2 HX IB ID 41 m nm Sets the absolute position based on the left margin position for starting the next printing 0znl n2 255 The start of the next printing is the n7 n2 x256 dot position from the left margin position Settings that exceed the print area are ignored Relative position setting CODE lt 5 gt GS nl n2 HEX ID 52 m m Sets the relative position based on the current position for starting the next printing 0znl n2 255 The start of the next printing is the n7 n2 256 dot position from the current position LINE MODE 1 Settings that exceed the printing area are ignored 2 When set in the right direction from the current position with regard to the character direction this specifies positive inte gers and when set in the left direction this specifies negative integers 3 Negative integers are shown with the compliment 65536 For example if moving N pitches in the left direction nl n2 256 65536 N zx Alignment CODE lt 5 gt
57. Thermal Printer TSP600 Series TSP700 Series TSP800 Series Programmer s Manual SEAI rights reserved Reproduction of any part of this manual in any form whatsoever without STAR s express permission is forbidden The contents of this manual are subject to change without notice Allefforts have been made to ensure the accuracy ofthe contents of this manual at the time of going to press However should any errors be detected STAR would greatly appreciate being informed of them The above notwithstanding STAR can assume no responsibility for any errors in this manual Copyright 2000 Star Micronics Co LTD Appendix 1 How to set various bar codes Appendix 2 Sensor adjustment mode Appendix 3 Character code tables TABLE OF CONTENTS OUTLINE 2 a ae ei Gea GA STAR LINE 2 1 Command Summary 2 2 Command Specification eee STAR PAGE MODE TSP800 Only 3 1 Command Summary eere 3 2 Command Specification eene DP8340 MODE TSP800 Only 4 1 Command Summary 1 4 2 Command Specification ESC POS MODE Command Summary A3 1 STAR Line mode A3 2 STAR Page mode TSP800 Only
58. control code cannot be sent by the host PC The control code should be sent as the data as shown below When sending the following data express as a set of two characters LINE MODE AGOW 3N Express 25H as 0 25H30H Add 40H SFH after for the control codes Express the control code 7FH as 5 25H35H Add 1 4 31H 34H after for the function code Add 6 8 36H 38H after for the start code 3 2 character codes Control codes Special code 10 CODE FORMAT CODE FORMAT NUL 00H 25H 40H 25H 0 25H 30H SOH 01H A 25H 41H STX 02H B 25H 42H ETX 03H C 25H 43H Function codes EOT 04H D 25H 44H CODE FORMAT ENQ 05H E 25H 45H FNCI 1 25H 06 25 46 2 2 25H 32H BEL 07H G 25H 47H FNC3 3 25H 33H BS 08H 25H 48H FNC4 4 25H 34H HT 09H 71 25H 49H LF OAH 25H 4AH VT OBH K 25H 4BH Start codes FF OCH L 25H 4CH CODE FORMAT CR M 25H 4DH START A 96 25H 36H SO OEH N 25H 4EH START B 7 25H 37H SI 25H 4FH START C 908 25H 38H DLE 10H 25H 50H DEt For CODE 128 only DC2 12H R 25H 52H DC3 13H S 25H 53H DC4 14H T 25H 54H NAK 15H U 25H 55H SYN 16H 25H
59. cters OUTLINE The expanded character instruction is released by the DC4 code and the succeeding data is printed as regular width characters ESC 1 1B u QD u 0D 1 QD 31 FUNCTION Underline mode selection OUTLINE All data received after this code is underlined until a ESC 0 Is received ESC 0 1B s 2D s 00 or 1 20 30 FUNCTION Release from underline mode OUTLINE The underline mode selection is released by this code 70 CODE SI 0F u FUNCTION Inverted print instruction OUTLINE This function causes the printing to be inverted This code must be received at the beginning of a line If this code is received anywhere other than at the beginning of a line it is disregarded Accordingly normal characters and inverted characters can not be mixed on the same line CODE DC2 12 FUNCTION Release from inverted print instruction OUTLINE The inverted print instruction is released by this code This code must be received at the beginning of a line CODE ESCE 1 45 FUNCTION Emphasized print mode instruction OUTLINE Data following this command is printed with emphasized characters CODE ESC 1B 46 u FUNCTION Release from emphasized print instruction OUTLINE Emphasized print is released CODE ESC 4 1 34 FUNCTION Highlighted character print instruction OUTLINE This command causes subsequent data to be printed with highlighted characters The instructio
60. dered ABCD 40 mm ABCD EFG EFG 50 mm 48 Define ruled line format CODE lt ESC gt Lnin2 2 3 4 yly2y3y4 x5x6x7x8 y3y6y7y8 d LF lt NUL gt HEX IB 4CnIn2 xlx2x3x4 2C y1y2y3y4 2 5 6 7 8 2C y53y6y7y82C d2C w OA 00 This command defines ruled line format nin2 Line number 00 to 63 1 2 3 4 Position of the starting point in the X direction 0000 to 1040 x 0 1 mm 1 2 3 4 Position of the starting point in the Y direction 0000 to 2000 x 0 1 mm x5x6x7x8 Position of the ending point in the X direction 0000 to 1040 x 0 1 mm Position of the ending point in the Y direction 0000 to 2000 x 0 1 mm These four parameters work in 1 10 mm unit and should be given with four digit numbers d Line direction 4 0 Horizontal line d 1 Vertical line When d 0 then y y2y3y4 y5y6y7y6 When d 1 then x x2x3x4 x5x6x7x PAGE MODE w Line width 1 to 9 dots Note a This command is used to define lines for label fram ing b Up to 64 lines can be defined c Lines must be vertical or horizontal no diagonal line d The width of one dot is about 0 125 mm and so four dots make 0 5 mm width Cancel ruled line format CODE lt ESC gt E nin2 lt LF gt lt NUL gt HEX IB 45 nin2 0A 00 This command cancels the line previously defined by lt ESC gt L nin2 nin2 Line number 00 to 63 49 AGOW Define character stri
61. e with the scanner or scanners to be utilized b Up to 32 bar codes can be defined c If is missing printer goes into an error condition 259 Bar code rotation MM Start position Start position m 180 270 m 0 0 TTS Gill Define character pitch CODE lt ESC gt Y 1 2 lt LF gt lt NUL gt HEX IB 59 4142 0 00 This command defines dot space between characters dld2 Indicates dot space 00 to 63 Note a The command is used to define dot space between characters b When changing the inter character space new value must be placed in front of the lt ESC gt PC com mand c Default value is 00 d Pitch for each kind of character is as shown below e Up to 64 dot space can be defined default unit mm dld2 00 dot 01 dot 02 dots 03 dots 04 dots 05 dots 06 dots 07 dots Small size 1 1425 125 1375 1 5 1 625 1 75 1 875 character Standard size 5 2125 225 2 375 2 5 2 625 2 75 2 875 character Boldface 3 125 325 3 375 3 5 3 625 3 75 3 875 character Increase 0 125 mm per 1 dot d1d2 10 then 1 2 or 3 0 125 x 10 mm 53 Print Data Settings Set character string data CODE lt ESC gt C 2 ala2 an lt LF gt lt NUL gt HEX 1B 52 43 nin2 1 2 OA 00 REMARKS This command sets character strin
62. ecified JAN EAN 8 7 or 8 The check digit at the 8th digit is automatically added and ignored even if it is specified JAN EAN 13 k 12 or 13 The check digit at the 13th digit is automatically added and ignored even if it is specified 8 CODE39 The value of is optional and the maximum value also differs according to the modes The start stop code is automatically added ITF The value of k is optional and the maximum value also differs according to the modes If the data is number of an odd digits is automatically added at the beginning of the data CODE 128 The value of k is optional and the maximum value also differs according to the modes and the types of character number The check character is automatically added CODE93 The value of kis optional and the maximum value also differs according to the modes and the types of character The check characters C and K are automatically added 7 The value of is optional and the maximum value also differs according to the modes and the types of character number The start stop code is also contained in the data it is not automatically added The bar code printing start position is at the upper end of the current line If the bar code is positioned beyond the right margin neither the bar code nor the character below the bar code will be printed Data of CODE 128 and CODE 93 When LF is used in a command some kinds of
63. ed 20 ESC nl n2 lt 0 gt 1B 42n1 n2 00 Set vertical tab stops 20 ESC D n1 n2 lt 0 gt 1B 44 n1 n2 00 Set horizontal tab stops 20 lt ESC gt lt GS gt A n1 n2 1B ID 41 nl n2 Absolute position setting 21 lt ESC gt GS R n1 n2 1B 1D 52 nl n2 Relative position setting 21 lt ESC gt lt GS gt a n 1B ID61n Alignment 22 e LINE MODE AGOW 3N Commands to Print Dot Graphics Control codes Hexadecimal Function Page codes lt ESC gt K n lt 0 gt 1B 4B n 00 m1 m2 23 Print normal density graphics m2 T lt ESC gt L n1 n2 1B 4C n1 n2 ml 25 ml m2 M Print high density graphics lt gt lt 0 gt 41 1B 6B n 0041 Print fine density graphics 26 lt gt 1 241 1 58 1 241 _ Print fine density graphics 29 lt ESC gt FS q n 1C 7I n 30 x1 x12 yl yI2d Kk1 xl x12 yI2d k l ne 980 lt ESC gt lt FS gt p n IB 1C 70n m Print logo image 32 Commands to Print Download Characters Control codes exadecimal Function Page codes lt ESC gt amp 1 1 1B 26 0101 Define download character 33 nml m2 m48 m2 m48 lt ESC gt amp 1 lt 0 gt 1B260100n Delete a download character 34 lt ESC gt 1 1 2531 34 lt
64. ek fol HD S gt x gt mun oe De X lt AP WOR G b UY Ps Alona vc En GF MAS t Mo r e H SEW Wb R lt m D O gt lt Bon BS KOH x Dj O 0 0 d 2 OP UUR 4D om e Ro c xt lt m QOO FH VIA a Q o eq OD SD lt m a domm H xml gun cmn lt un O R b UQ b gt x gt e gt oO A foc oo DARN OG e Bo Nm oan SO t Qv lt m OA FE Code Page 928 Greek Code Page 869 Greek XIGNAddV ml E G Q b F oe lt gt BPP OP Fl iP G eT oe X lt j gt O A mu O gt lt m q S gt Ha c Poo Smo m OR PO C3 lt r MO lt lt D OO m X lt T gt u O E gt i Ss Gmm mo F Se x lt r II G 0 mn LL TWN T Y A oO gt gt 8 Cina I OH c i SO r O9 l
65. ergizing time GSH 1D 48 Select print position of HRI characters GSI 1D 49 Printer ID transmission GSL 1D 4C Set left margin GSP 1D 50 Set basic calculated pitch GSV 1D 56 Paper cut GSW ID 57 Set print range GS 1D 5C Designate the relative position of vertical characters when printing in the page mode GSA ID 5E Execute macro GSa ID 61 Enable disable automatic status transmission Gsb ID 62 Smoothing setting cancel GS f ID 66 Select HRI character font GS h ID 68 Set bar code height GS k 1D 6B Printing of bar code GSr 1D 72 Transmission of status GS v0 ID 76 00 Print raster bit image GS w 1D 77 Set lateral size of bar code ESC GS 1B 1D 3D Write to space code page ESC GS t 1B 1D 74 Select character code table ESC GS 1B 1D 23 Set memory switch 76 Appendix 1 How to set various bar codes Refer to the industry standards reference material for the features and applica tions of each bar code symbology This section of this document covers the proper commands to select the bar code symbology required 1 CODE 39 CODE 39 can represent numeric characters from 0 to 9 and alphabetical characters A to Z Width of each bar of bar code depends on the mode The number of dots for each element of the bar code in each mode is shown as below The number of dots depends on whether the print direction is horizontal or vertical 1 Length of each element in each mode a Horizontal printing
66. f narrow element 4 number of wide element 3 AtoD Length of each bar code character includes a space between characters a Horizontal direction print Item Mode 2 Mode 3 4 Mode 5 Mode 6 Mode 7 Mode 8 Mode 9 Width oi naro 2 dots 3 dots 4 dots 2 dots 3 dots 4 dots 2 dots 3 dots 4 dots elements 6 dots 9 dots 12 dots 5 dots 8 dots 10 dots 4 dots 6 dots 8 dots element Ratio 1 3 1 3 123 1 2511 27 1 281 1 2 12 2 1 2 pacerbetween 2 dots 3 dots 4 dots 2 dots 3 dots 4 dots 2 dots 3 dots 4 dots characters Lengthof Normal mm 3 4 5 6 2 75 4 25 5 5 2 5 3 75 5 each character Wide mm 3 5 5 25 7 3 125 5 125 625 2 75 4125 5 5 b Vertical direction print Item Mode 2 Mode 3 Mode 4 Mode 5 Mode 6 Mode 7 Mode 8 Mode 9 Length of Nomma mm 3 5 5 6 5 325 4 75 6 3 4 25 5 5 each character Wide mm 4 5 75 7 5 3 625 5 625 6 75 325 4 625 6 84 Appendix 2 Sensor adjustment mode 1 No paper Black mark sensor adjustment Operation procedure 1 Select sensor adjustment mode with DIP switch setting 2 Turn the power ON 3 With the paper roll installed turn and adjust VR2 until both POWER ERROR LEDs light 4 Turn the power OFF 5 Select standard mode with DIP switch setting 2 Near end sensor adjustment Operation Procedure
67. gs defined by the lt ESC gt 8 y 1 2 Two digit reference number of character string whose print position and type are previously defined with lt ESC gt PC ala2 an Character string data up to 100 characters Note a The same reference numbers used by the format definition command lt ESC gt is used b To print data the Print Label command lt ESC gt T must be sent c This command along with the Print Label command ESC allows reprinting of labels where only the character string data changes d If is missing printer goes into an error condition AGOW 54 TV Set bar code data CODE lt ESC gt HEX 1B R B nin2 ala2 am LF NUL 52 42 nin2 3B ala2 an 0A 00 This command defines the bar code data to be printed nin2 Two digits reference number of defined bar code whose print position and type are previously defined with lt gt ala2 an Bar code data to be encoded and printed Note a Start and stop characters of CODE 39 is automatically inserted b Check word of JAN EAN or UPC is automatically calculated and inserted c When data length does not meet the specifications of JAN EAN or UPC data length is ignored d CODE 128 conforms to EAN 128 the start code check word and stop code of CODE 128 are auto matically inserted e Start stop and check characters of CODE 93
68. gt 5 HEX 1B 35 REMARKS Cancels highlight printing Inverted printing CODE SI HEX OF REMARKS Causes subsequent characters to be inverted Cancel inverted printing CODE lt DC2 gt HEX Cancels inverted printing 14 Select emphasized printing CODE lt ESC gt HEX 1B 45 Causes subsequent characters to be emphasized Cancel emphasized printing CODE lt ESC gt F HEX 1B 46 Cancels emphasized printing Select character code table CODE lt ESC gt GS t n HEX 1B ID 74n LINE MODE Selects code page according to the value of n as shown below n Hex 00 H 0DH 02 H 03 H 04H 05 H 06 H 07 H 08 H 09 H OA H OB H 0OH 0D H OE H OF H 10 H 12 13H 14H Character Table Normal CodePage437 USA Std Europe Katakana CodePage437 USA Std Europe Code Code Code Code Code Code Cod Cod Cod Cod Cod Code Code age 858 Multilingual age 852 Latin 2 age 860 Portuguese age 861 Icelandic age 863 Canadian French age 865 Nordic age 866 Cyrillic Russian age 855 Cyrillic Bulgarian page 857 Turkish age 862 Hebrew page 864 Arabic age 737 Greek age 851 Greek page 869 Greek age 928 Greek age 772 Lithuanian age 774 Lithuanian gei 15
69. he logo image exceeds the horizontal print area the exceeded data is not printed p Commands to Print Download Characters Define download character CODE lt gt amp lt 1 gt lt I gt n ml m2 m48 HX IB 26 01 OI n ml m2 m48 Defines one new character and stores it in RAM for later use n is the character code of the character defined and must be between 32 and 127 The character matrix is 12 dots wide and 24 dots high Relationship between the character pattern and the character data is shown below MSB LSB MSB LSB m2 m4 mo ms 10 12 14 ml6 mls m20 m22 m24 m26 m28 m30 m32 m34 m36 m38 m40 m42 m44 m46 m48 Ignored 4 bits 33 LINE MODE AGOW 3N FUNCTION CODE HEX REMARKS FUNCTION CODE j FUNCTION CODE HEX REMARKS Data Binary Data Binary 1 ml 00011000 18 m2 00000000 00 m3 00111000 38 m4 00000000 00 m5 01111000 78 m 00000000 00 m7 00011000 18 ms 00000000 00 m9 00011000 18 10 00000000 00 mll 00011000 18 12 01100000 60 13 00011000 18 14 11000000 CO 15 00011001 19 16 10000000 80 17 00011011 1 18 00000000 00 19 00000110 06 m20 00000000 00 m21 00001100 0C m22 00000000 00
70. hlighted character print release 71 lt gt n 52 International Character set selection 72 lt ESC gt 1B 61 n line feed instruction 72 ESC n 43 Sets page length in lines 72 lt ESC gt 4En Set bottom margin in lines 73 lt ESC gt 4F Cancel bottom margin 73 FF 0C Form feed 73 lt ESC gt 1B 40 Printer initialization instruction 73 ESC BEL n1 n2 07 n1 n2 Set peripheral unit drive pulse duration 73 BEL 07 Trigger peripheral unit drive 1 74 FS 1C Trigger peripheral unit drive 1 74 SUB 1 Trigger peripheral unit drive 2 74 ENQ 05 Enquiry 74 lt gt 18 Clears print buffer 74 69 DP8340 MODE 3QON 0vE8dd 4 2 Command Specification CODE LF FUNCTION Print and line feed instruction OUTLINE The LF code causes the data in the line buffer to be printed followed by a single line feed When the line buffer is empty only the feed takes place CODE CR 0D u FUNCTION Print and line feed instruction OUTLINE Same function as of LF code However when the DIP switch 1 3 is ON the CR code becomes invalid 50 FUNCTION Expanded character instruction OUTLINE This code causes the printer to print expanded characters twice as wide as the regular ones This remains in effect until a DC4 code is received CODE DC4 14 FUNCTION Release from expanded chara
71. inter status 5 7th byte Bit Contents 1 0 Always 0 1 Invalid 2 Invalid 3 Invalid 4 Always 0 5 Invalid 6 Invalid 7 Always 0 66 oct status transmission condition CODE lt ESC gt RS HEX 1B 1E 41 61 This command sets the status transmission condition 0 or 0 lt gt ASB is invalid ASB is valid Select international character set CODE lt 5 gt nln lt LF gt lt NUL gt HEX character set For permanent change of the international character set change memory switch settings by using lt ESC gt 4E nin2 OA This command defines temporary change of the international 00 67 1 2 Country 1 2 Country 1 2 Country 1 2 Country 00 U S A 03 UK 06 Itary 09 Norway 01 France 04 Denmark 1 07 Spain 1 10 Denmark 2 02 Germany 05 Sweden 08 Japan 11 Spain 2 1 2 Country 12 Latin America PAGE MODE AGOW Register download character CODE lt ESC gt nin2 4 4465 lt LF gt lt NUL gt HEX 1B 46 nin2 3Bdl dd OA 00 REMARKS This command defines one download character 1 2 Download character reference number 00 to 31 dl d48 Character bit map data
72. ip between image data and print dots MSB Image data LSB DOT Position D8 D7 D6 D5 D4 D3 D2 D1 M OOO OOO OOO oak wn 900000000 2945 EXAMPLE We will create the design below using a bit image 2 asjas 6 7 d8 ao aro arr ar 14 dis at6 a17 420 21 22 423 424 425 426 428 929 a30 Ds D7 Ds e Ds D4 Ds D2 0 0 bile First since the volume of data is 30 n 1 If the data 41 430 is converted to hexadecimal it appears as shown below Data Binary oe Data Binary Data Binary s dl 00000001 01 477 1001111101 427 10011111091 9 d2 00011110 1E 4 2 00000010 02 422 00101110 2E m 00111110 413 1000000101 02 423 1
73. irection BMP file data Command accepts BMP non compressed mono chrome graphic file as binary file Note Printer will result in an error on the following condi tions a Error in command format structure b If either start position or image data is located out of print area c If a BMP file does not meet command specification Printer can only accept non compressed mono chrome BMP file 57 PAGE MODE AGOW Call download character CODE lt ESC gt G nin2 n3n4 lt ESC 0 HEX 1B 47 nin2 2C n3n4 30 5 This command calls download character nIn2 n3n4 Reference numbers of defined download characters 00 to 31 Note Only standard size characters 16 W x 24 dots can be defined as download characters Store logo data into image memory CODE lt gt n 1 2 3 4 yly2y3y4 414243 lt LF gt lt NUL gt HEX 51 n 2 3 4 2C yly2y3y4 2 dld2d3 0A 00 REMARKS This command stores logo data into image memory n gt mode 66 Overwrite mode XxIx2x3x4 Print start position in the X direction 0000 to 1040 x 0 1mm yly2y3y4 Print start position in the Y direction 0000 to 2000 x 0 1mm dld2d3 Logo registration number 001 to 255 Note Logo data is registered in Line mode Clear image data CODE lt 5 gt X lt LF gt lt NUL gt HX IB 58 OA 00 When the printer receives this command
74. ives this command the printer sends back a status byte for the current printer condition immediately to the host Note Printer conditions are reported by the following status bytes Status byte b7 b6 b5 b4 b3 b2 bl 0 EE Constantl e Constantly 3 setat 1 Gera PAGE MODE Near end sensor 1 Near end Paper empty 1 empty Sao Coad Request status CODE lt ESC gt ACK SOH HX 06 Ol When the printer receives this command the printer sends back a status byte for the current printer condition to the host 63 AGOW Header 1 1st byte Bit Contents 0 0 Always 1 1 2 Number of printer status byte 3 4 Always 0 5 Number of printer status byte 6 Always 0 7 Always 0 S 5 byte Header 1 7 00001111 8 00100001B 21 Hex 9 00100011B 23 Hex 10 00100101B 25 Hex 11 00100111B 27 Hex 12 00101001B 29 Hex 13 00101011B 2B Hex 14 00101101B 2D Hex 15 00101111B 2F Hex Header 2 2nd byte Bit Contents 0 0 Always 0 1 2 Version No of the Automatic status 3 4 Always 0 5 Version No of the Automatic status 7 Always 0 64
75. m23 00011011 1B m24 11000000 25 00110111 37 26 11100000 27 01100110 66 28 01100000 60 29 00000000 00 m30 01100000 60 31 00000000 00 m32 11000000 CO m33 00000001 01 m34 10000000 80 m35 00000011 03 36 00000000 00 37 00000111 07 38 11100000 0 39 00000111 07 40 11100000 0 41 00000000 00 42 00000000 00 43 00000000 00 44 00000000 00 45 00000000 00 46 00000000 00 47 00000000 00 48 00000000 00 Delete download character lt 5 gt 4 lt I gt 05 n 1B 26 01 00 Deletes the download character which was assigned the value n Enable download character set lt ESC gt 1 lt 5 gt lt gt 1B 25 31 or B 25 01 Enables the download character set Disable download character set lt ESC gt 0 lt 5 gt lt 0 gt 1 25 30 or 25 00 Disables the selected download character set and returns to the built in ROM character set 34 Commands to Control Peripheral Devices Define drive pulse width for peripheral device CODE lt ESC gt lt BEL gt n n2 HEX IB 07 m m Defines the drive pulse width for peripheral devices requiring other than standard 200 ms pulse time and delay time nl indicates the energizing time and n2 indicates the delay time using 10ms units The values of n1 n2 are 1 to 127 Control peripheral device 1 BEL HE
76. n Hex 5 H 20 H 21 H 22 H 0 H DH 2 H 3 H A H 5 H 6 H 7 8 H 9 H A H B H CH D H EH Character Table Codepage 874 Thai Codepage 1252 Windows Latin 1 Codepage 1250 Windows Latin 2 Codepage 1251 Windows Cyrillic Codepage 3840 IBM Russian Codepage 3841 Gost age 3843 Polish page 3844 CS2 age 3845 Hungarian gae 3846 Turkish age 3847 Brazil ABNT page 3848 Brazil ABICOMP Codepage 1001 Arabic Codepage 2001 Lithuanian KBL Codepage 3001 Estonian 1 Codepage 3002 Estonian 2 Codepage 3011 Latvian 1 Codepage 3012 Latvian 2 Codepage 3021 Bulgarian Codepage 3041 Maltese User Setting Blank Code Page Q amp Cod Cod Cod Cod amp OG oO oO oO Oo o 0 AGOW 3NI1 Commands to Set the Page Format Set page length in lines CODE lt ESC gt C n HEX IB 43 n REMARKS Sets the page length using the current line spacing where is between 1 and 127 Changing the line spacing later does not alter the physical page length The current line becomes the top of the page Resets the bottom margin Invalid when start position detect is ON Set page length in inches CODE lt ESC gt C 0 n HEX 43 00 REMARKS Sets the page length to n x 24 mm where is between 1 and 22 Changing the line spacing later does not alter the physical page length The current line becomes the top of the page Resets the b
77. n is released by the code ESC 5 CODE ESC 5 1 35 FUNCTION Release from highlighted character print instruction OUTLINE The highlighted character print instruction is released by this code eq DP8340 MODE CODE ESCRn 1B u 52 FUNCTION International character set selection OUTLINE Selects an international character set according to the value of n as shown bolow n Character set n 0 U S A 8 1 France 9 2 Germany 10 3 England 11 4 DenmarkI 12 5 Sweden 13 6 Italy 14 7 64 CODE ESC an 1B u 61 FUNCTION n line feed Character set Japan Norway Denmark II Spain II Latin America Korea Ireland Legal OUTLINE After printing the data in the current line n lines are fed by this code The value of n ranges from 1 to 127 Esc Cn 1 43 u n FUNCTION Sets page length in lines 3QON 0r 8dd OUTLINE This code sets the length of a page to n lines The value of n ranges from 1 to 127 On initialization the page length default condition will be 42 lines The line feed pitch is one sixth inch zm CODE ESCNn 1B u 4E u FUNCTION Sets bottom margin in lines OUTLINE Upon receiving this code the bottom margin is set to n lines 0 n lt 255 Default Value n 0 This section is automatically fed Page Length n lines bottom margin ESC 1B u 4F u Cancels bottom margin Upon input of this code bottom margin se
78. n12n13 1 lt LF gt nmInm2 Ik lt LF gt nmInm2 mk LF lt NUL gt 00 lt ESC gt H n 2 3 4 1B 48 n 1 2 3 4 2 Copy BMP file to printer 57 y1y2y3y4 BMP file data y1y2y3y4 2C BMP file data lt LF gt lt NUL gt 2C 0A 00 lt ESC gt G 1 2 n3n4 lt ESC gt 1B 47 1 2 2 n3n4 1B 30 Call download character 58 lt 5 gt n 2 3 4 n 1 2 3 4 2C Store logo data into image memory 58 yly2y3y4 dld2d3 LF 2 3 4 2C dld2d3 0 lt NUL gt 00 ESC X LF lt NUL gt 1B 58 0A 00 Clear image data 58 46 Other commands Control codes Hexadecimal codes Function Pages lt ESC gt lt LF gt lt NUL gt 1B 49 0A 00 Print Label 59 lt ESC gt W 51525354 IB 57 51525354 2C Print Label 59 1 2 3 4 lt LF gt lt NUL gt hih2h3h4 00 lt 5 gt d nin2 LF IB 42dnin20A Enable cutter 60 lt NUL gt 00 lt ESC gt nIn2n3n4 lt LF gt 1B 23 N 2C nIn2n3n4 Set Memory Switch 60 lt NUL gt 00 lt ESC gt lt LF gt lt NUL gt 1B 3F0A 00 Reset printer 61 lt ENQ gt 05 Request status 62 lt EOT gt 04 Request status 63 lt ESC gt lt ACK gt lt SOH gt 1B 0601 Request status 63 lt ESC gt RS n 1B 1 61 Set status transmission condition 67 lt gt nIn2
79. ng format CODE lt ESC gt C nlin2 xlx2x3x4 yly2y3y4 w 3 h i C rlr2 4142 lt LF gt lt NUL gt 1B 50 43 nin2 3B 1 2 3 4 2C yly2y3y4 2C 2 2 2C rir 2C dld2 0A 00 REMARKS This command defines start position and type of character string nin2 Character string number 00 to 99 1 2 3 4 Print start position in the X direction 0000 to 1040 x 0 1 mm 1 2 3 4 Print start position in the Y direction 0000 to 2000 x 0 1 mm w Character width magnification 1 to 6 h Character height magnification 1 to 6 Character type 10 4 1 Small size character 8x16 dots 2 Standard size character 16x24 dots 3 Reserved 4 Boldface character 24x32 dots rl Character rotation direction 0 to 3 0 1 2 3 0 degree 90 degrees 180 degrees 270 degrees r Character string rotation direction 0 to 3 0 1 2 3 0 degree 90 degrees 180 degrees 270 degrees dld2 Space between characters 00 to 63 dots Note 1142 can be left out When 4142 is left out a space between characters is defined by ESC Default value is 00 b Up to 100 character strings can be defined c If is missing printer goes into an error condition 50 Character rotation and character string rotation 1 Charcter rotation only no character string rotaion 1 2 180 1 3 270 Start position r
80. ol 3 ANSI and AIM specifications for reference only a Width of narrow elements Minimum 0 0075 inch 0 191 mm b Ratio of narrow element width to width element width 1 2 2 the width of narrow elements is 0 508 mm or smaller 1 2 the width of narrow elements is 0 508 mm or greater Inter element space Minimum is the same as the narrow element width Maximum is three times the narrow element width or 1 524 mm whichever is greater d Bar height For hand scanners the minimum is 0 25 inch 6 35 mm or 15 of the bar code length whichever is greater For non hand scanners the minimum is 0 8 inch 20 3 mm or 25 of the bar code length whichever is greater Quiet zone Minimum is ten times the narrow element width or 0 10 inch 2 54 mm whichever is greater For hand scanners the minimum is 0 25 inch 6 35 mm or greater EXAMPLE Bar code string number 11 starting position of bar code X Y 10 mm 10 mm use Mode 2 of CODE39 Bar code height 10mm data ABCDEFG bar code rotation direction 0 degree LPRINT CHR amp H1B PB11 0100 0100 2 1 0 0100 CHR amp H0A CHR amp H00 LPRINT CHR amp H1B RB11 ABCDEFG CHR amp H0A CHR amp H00 2 Interleaved 2 of 5 ITF This code can represent numeric characters from 0 to 9 This code can be used for an application that requires higher character density JIS and EAN specify that this code be used for printing on corrugated boxes 1
81. ompleted before termination are effective When the processing of this command 15 completed or terminated the printer will be initialized Form the beginning of processing of this command till the finish of hardware reset error process mechanical operations and status processes cannot be performed 20 xnl xn2 x 256 yn ynl yn2 x 256 ynl yn2 x 256 bytes yn2 x 256 x 8dot xnl xn2 x 256 x 8dot Data MSB d 11 d 21 d nl d 12 d 22 d n2 LSB d x1 d x2 d xn 31 LINE MODE AGOW 3N Print logo image CODE lt ESC gt lt FS gt p n m HEX 1B 70 n m REMARKS Prints the logo image n using the mode specified by 1515255 Logo image number defined by command lt ESC gt FS is specified m 3 0 3 m O0or 0 Normal m lor Double width m 2or 2 Double height m 3or 3 Quadruple double width double height Note If there is unprinted data in the line buffer this command will be executed after the data in the line buffer is printed out This command is not affected by print modes emphasized under line character size etc except inverted printing Print start position in the horizontal direction is the left margin position Horizontal print area follows the left and right margin settings Ifthe horizontal size oft
82. ottom margin Invalid when start position detect is ON Set bottom margin CODE lt ESC gt N n HEX 4E m Sets the bottom margin to n lines at the current line spacing where n is between and 255 Changing the line spacing later does not alter the bottom margin Bottom margin is reset when you change the page length Setting is invalid if the printing area on one page is 36 mm or less Invalid when start position detect is ON 216 Cancel bottom margin CODE lt ESC gt HX IB 4 Cancels the bottom margin Invalid when start position detect is ON Set left margin CODE lt ESC gt I n HEX 6 n Sets the left margin at column n where n is between 0 and 255 at the current character pitch The left margin does not move if the character pitch is changed later Setting is invalid if the printing area for one line would be 36mm or less LINE MODE Set right margin CODE lt ESC gt Q n HX 1B n Sets the right margin at column n where is between and 255 at the current character pitch The right margin does not move if the character pitch is changed later Setting is invalid if the printing area for one line would be 36mm or less AGOW 3N Commands to Move the Print Position CODE lt LF gt HEX 0A REMARKS Prints the current line and feeds the paper to the next line If there is no data to print only line feed is performed Ca
83. print ESC J 1B 4A Print and paper feed ESC L IB 4C Select page mode ESC M 1B 4D Select character ESCR 1 52 Select an international character set ESCS 1B 53 Select standard mode ESCT 54 Select character print direction in page mode ESC V 1B 56 Designate cancel 90 character rotation ESCW IB 57 Set print range in page mode ESC 1 5 Designate relative position ESCa 1B 61 Align position ESCc3 IB 63 33 Select no paper detector for output of no paper signal 5 4 63 34 Select no valid paper detector at print stop ESCc5 1B 63 35 Enable disable panel switch ESCd 64 Print and paper feed lines 25753 504 553 Control Code Hexadecimal Code Function ESCp 70 Designate pulse generation ESCt 74 Select character code table ESC 7B Designate cancel inverted printing FS gl 1 67 31 Write to user NV memory FS 22 67 32 Read from user NV memory FSp 1 70 Print NV bit image FS qn 71 Define NV bit image GS ID 2 Designate character size GS 1D 24 Designate absolute position of vertical direction of characters in page mode GS ID 2A Define download bit image GS A 1D 28 41 Execute test print GS 1D 2F Print download bit image GS 1D 3A Start finish macro definition GS 1 42 Designate cancel reverse printing GSE 10 45 Select print speed and head en
84. rriage return CR Prints the current line and feeds the paper to the next line This command is ignored when CR code is invalid Feed paper lines CODE lt ESC gt a HEX 1B 61 n REMARKS Prints the current line and feeds the paper lines where n is between 1 and 127 Form feed CODE FF HEX 0C REMARKS Feeds the paper to the top of the next page according to the page length set by lt gt or ESC2 C 0 n when print start position detect is ON and according to the sensor output when print start detect is OFF The print position is at the left margin in both cases Horizontal tab CODE HT EX 09 Moves the print position to the next horizontal tab stop Ignored if there is no next horizontal tab stop on the current line Vertical tab CODE VT HEX When start position detect is invalid feeds the paper to the next vertical tab stop and moves the print position to the left margin If no vertical tabs are set this command is ignored Performs a line feed if the current line is at or below the last vertical tab stop This command is ignored when start position detect is valid Set line spacing to 4 mm CODE lt 5 gt z or lt 5 gt z lt 1 gt HX IB 7A 31 or 1B 7A Ol Sets the distance the paper advances in subsequent line feeds to 4 mm Set line spacing to 3 mm CODE lt ESC gt 0 HX
85. s to Select Characters Select international character set CODE lt ESC gt n HEX 1B 52 n REMARKS Selects an international character set according to the value of as shown below n Character set n Character set 0 U S A 8 Japan 1 France 9 Norway 2 Germany 10 Denmark II 3 England 11 Spain II 4 Denmark I 12 Latin America 5 Sweden 13 Korea 6 Italy 14 Ireland 7 Spain I 64 Legal Select zero style COE _ ESC IB 2F n REMARKS Causes subsequent zero characters to be printed with a slash when n is 1 and without a slash when n is O The value of n can be set to 0 00H or or 1 01H or 1 31H Select bar code printing CODE lt ESC gt b nl n2 n di dk RS HEX 6 nml m2 n di dk IB Prints bar code according to the value of n1 as shown below nl Type of bar code 0 UPC E 1 UPC A 2 JAN EAN 8 3 JAN EAN 13 4 CODE 39 5 6 CODE 128 9 7 CODE 93 gt 8 NW 7 gt The value of n can be set to 0 00H 8 08H to 0 30H to 8 38H n2 Printing character below bar code or line feed 1 Character below bar code is not printed Line feed is performed after execution of command 2 Character below bar code is printed Line feed is performed after execution of command 3 Character below bar code is not printed Line feed is not performed after execution of command 4 Character below bar code is printed Line
86. t m O fu Note Other characters are the same as those for Character table Normal 93 STAR Line Mode Code Page 772 Lithuanian Code Page 774 Lithuanian WHAM 2 Ro noa W b 3 bt uc Al oO wm FON R Sw Olja 4 Fe lappa vw Fs ian COO R WSS rm Dou Q s D OO VR CV O G 3 gt O YD HAS Ov 3 d Q lt x lt MD lt w lt m O m A F A Q o wea B RO ER gt FF m lt a G oD O Fe 1 t Pp ou fs lt O RA lt Q O m F Hox MSS gt x O gt b4 El ABM D ew 9 r FA R4 ARR OS SM z co O lt m O m m Note Other characters are the same as those for Character table Normal APPENDIX 94 STAR Line Mode Code Page 874 Thai Code Page 1250 Windows Latin 2 8 9 ABCDEF VOC CCO O O O DOI D oe 0 X9 20 0 0 0 O0 0 o0 90 2 K lt lt toe C10 e o0 gt gt 0Q 8 My 2 2 q A GN N A t N ON 38 X V XD cn lt m O P m 8 9 A
87. t clear the input buffer downloaded characters or condi tions for peripheral devices Request status CODE lt ENQ gt 05 Causes the printer to transmit a status byte Status byte Geta 241 LINE MODE Vertical Parity error 1 error Framing error 1 error Mechanical error 1 error Paper empty 1 empty Buffer empty 1 empty Buffer overflow 1 overflow Compulsion switch High level Switch is set to ON AGOW 3N Menem Request Status CODE lt EOT gt HEX 04 REMARKS Causes the printer to transmit a status byte Status byte b7 b6 b5 b4 b3 b2 bl 0 0 0 0 0 0 EB ors at 0 mW Request status CODE lt ESC gt lt gt lt SOH gt HEX 1B REMARKS Causes the printer to transmit a status byte 06 01 Header 1 1st byte Constantly set at 0 constantly Cser at 0 Near end sensor 1 Near end Paper empty 1 empty Bit Contents Always 1 Number of printer status byte Always 0 Number of printer status byte Always 0 SD BR WY NM Always 0 42 Number of transmit byte n Header 4H 7 15 7 00001111B OF Hex 8 00100001B 21 Hex 9 00100011B 23 Hex 10 00100101B 25 Hex 11 00
88. ts 0 dot 33 colums 45 colums n4 Print area Roll paper width 0 72mm 576 dots 80 mm 52 5 mm 420 dots 58 mm 2 80mm 640 dots 82 5 mm 3 50 8 mm 406 dots 58 mm 33 b TSP600 Setting 0 1 2 3 ni Always 0 2 Always 0 n3 Print colum See bolow ESC POS mode only n4 Print area See bolow n3 Print colum Print area Left margin Font A Font B 0 EPSON 72 mm 576406 32 dots 42 colums 56 colums compatible 5 50 8 mm 406dots 24 dots 30 colums 40 colums 1 Max 72 mm 576dots 0 dot 48 colums 64 colums colum 5 50 8 mm 4061005 0 dot 33 colums 45 colums n4 Print area Roll paper width 0 72mm 576 dots 80 mm 1 2 5 3 50 8 mm 406 dots 58 mm 39 LINE MODE AGOW 3NI1 Table 1 MSW3 E MSW3 D MSW3 C MSW3 B MSW3 A MSW3 9 MSW3 8 Character Table 0 Normal CodePage 437 USA Std Europe Katakana CodePage 437 USA Std Europe Codepage 858 Multilingual Codepage 852 Latin 2 Codepage 860 Portuguese Codepage 861 Icelandic Codepage 863 Canadian French Codepage 865 Nordic Codepage 866 Cyrillic Russian Codepage 855 Cyrillic Bulgarian 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 1 1 0
89. tting is cleared FF 0C u Form feed The FF code prints the data in the current line and transports the paper to the start of the next page ESC 1 40 FUNCTION Printer initialization OUTLINE All printing conditions except ESC BEL n1 nz the line buffer and data buffer are set to the power on default condition CODE ESC BEL ni n2 1 07 n2 FUNCTION Sets peripheral unit drive 1 pulse duration OUTLINE This command sets the pulse duration for peripheral unit drive Paper Cutter Take Up Device cash drawer etc Pulse Duration 10 x ni ms Delay 10 x n2 ms 1 lt n lt 127 1 lt m lt 127 Default value 1 n2 20 eJ DP8340 MODE 3QON OvE8dd ON Drive Pulse OFF 10Xn ms Delay 10 1 ms Pulse Duration Printing Printing and paper feed disabled Operation A Executed by BEL code and FS code after printing CODE BEL 07 u FUNCTION Trigger peripheral unit drive 1 OUTLINE Causes a peripheral drive pulse to be generated This code is normally stored in the buffer andis performed as itis received from the data queue CODE FS 1C u FUNCTION Trigger peripheral unit drive 1 OUTLINE Causes a peripheral drive pulse to be generated immediately CODE SUB 1 FUNCTION Trigger peripheral unit drive 2 OUTLINE Causes a peripheral drive pulse to be generated The drive pulse width and delay time are fixed at 200 ms CODE ENQ 05 FUNCTI
90. yrillic Bulgarian CDEF A B 9 RM T ron B QO iq aq sm 74 1 99 lt lt r BH TH ODC ZI DVS MMH 8 kk O O O O 5 OD AHEM o O I O 9 00 Q O DO i a lt lt lt tH lt m O n m C DEF AB 9 SSB OM OD K Ql gt gt x gt mm a n Ce SEILTOOc 74 F I x I amex gt lt x X r 55 lt T T sI X Q LI L L v A frre C C gt gt 2 o Neate HN SH lt m O n m Code Page 864 Arabic Code Page 862 Hebrew 8 9 ABCDEF DT st 4 9 T 4 Nw X 4 NE Q 3 1939 8 T YA aa 9 gt BI F r tH c o lt m O n m C DEF A B 9 AM 0 gt s RH Bor OD F e m O 8 BWC E mmm 2 4 1 Tn O J iC 01 V A m D AA F KRIMI BLE tH ah x ri ED cn i lt MUA Aes APPENDIX Note Other characters are the same as those for Character table Normal 2195 2 STAR Line Mode Code Page 737 Greek Code Page 851 Gre
Download Pdf Manuals
Related Search
Related Contents
MX2 Manuel de l`utilisateur DA40-180 DIAMONDSTAR - Sabena Airline Training Center UWB RTLS for Construction Equipment Localization Copyright © All rights reserved.
Failed to retrieve file