Home
Programmer`s Manual TSP700/800 Series - i
Contents
1. Mr cL Ec B COCO OF OOO OF OOO O O o OOF OOF OOF gt Ee E eroe 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 Codepage 857 Turkish Codepage 862 Hebrew Codepage 864 Arabic Codepage 737 Greek Codepage 851 Greek Codepage 869 Greek Codepage 928 Greek Codepage 772 Lithuanian Codepage 774 Lithuanian Codepage 874 Thai Codepage 1252 Windows Latin 1 Codepage 1250 Windows Latin 2 Codepage 1251 Windows Cyrillic 3840 IBM Russian Codepage 3841 Gost Codepage 3843 Polish Codepage 3844 CS2 Codepage 3845 Hungarian Codepage 3846 Turkish Codepage 384
2. 100 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 A 6 f 132 148 164 180 196 a 0 5 133 181 197 6 134 182 198 Ju 7 135 183 199 8 y 6 136 tee 200 9 137 185 201 138 186 202 B 139 187 203 1 140 188 204 ECCL 141 189 205 221 237 253 1 142 158 174 190 206 222 238 254 F A f 143 159 175 191 207 223 239 255 101 APPENDIX XIaNaddv STAR Page Mode Character type Boldface 38 9 C D E F 0 128
3. m oO mmm st Note Other characters are the same as those for Character table Normal 297 STAR Line Mode Code Page 3012 Latvian 2 Code Page 3011 Latvian 1 D gt S4 o FF ABA mM Be Alm foot L BoD es Oj 4 Fe ew Bu fst 4 OM lt QO 4 O OK EX E Re NAA OO Sw Q FA F4 FX FA BS MOS SM FEX Om om O n 4 MOANA Pal NN uo Alm DO 2 HOH O Ie rae M lt Bread L OO we oop 00 0 0 D d xd j D x wt lt 3 Note Other characters are the same as those for Character table Normal Code Page 3041 Maltese Code Page 3021 Bulgarian arn 042 25 xx gt 0g0 20 00wUxuuxx nucito 0 E 25 gt 2 pa O Q Bl f ZO too N HAR D vax f o eO 1 u lt
4. O 2 FHoOe KK SSM RS HO OTM OM OS HAO lt kon db 1 CM HH OC QD ob gt eo A Ol D O ox OD Oo D Ov A Hb oH Ao m amp HboUBHEBH 3iu0mosmsgt tk Ea 4 E EO RI SEI Forse Am or oO N S M RB a awn oO OS SM RS MOA P pm Code Page 3844 CS2 Code Page 3843 Polish XIGNAddV Mm orn RA bdb Ir ADAS 8 uc 4 L Boe s OCO NUUS 4 ees es Fa c SBSH OD 24 Hm OW ANN CO hw 8 wd AH 50 c cn ox lt MOA Ab ME wcrnHuboin eg gdcod os Ald pz uc m dec m aS lt OR BN NM EL We A d d dre d F amp O Ow CO cx f x om OA FA Note Other characters are the same as those for Character table Normal 95 STAR Line
5. 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 81 gt OF Inverted printing 14 lt DC2 gt 12 Cancel inverted printing 14 lt ESC gt 1B 45 Select emphasized printing 15 lt ESC gt 1B 46 Cancel emphasized printing 15 lt ESC gt lt GS gt 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 ESC gt N n 4En Set bottom margin 16 lt ESC gt 4F Cancel bottom margin 17 lt ESC gt n 6 Set left margin 17 lt ESC gt n 1B51n Set right margin 17 Commands to Move the Print Position Control codes Function Page lt LF gt 0A Line feed 18 CR 0 Carriage Return 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 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 feed 20 ESC n1 2 lt 0 gt 18 42n1 n2 00 Set vertical tab stops 20 ESC D n1 n2 lt 0 gt 1B 44 n1 n2 00 Set horizontal tab stops
6. 00 LPRINT CHR amp H1B RB25 0123456 CHR amp H00 78 3 CODE 93 1 Each mode and module width a Horizontal printing Item Mode 1 Mode 2 3 Module width 2 dots 3 dots 4 dots Width of 2 225 3 375 45 character mm Note The start and stop bars are not included b Vertical printing Item Mode 1 Mode 2 3 Module width 2 dots 3 dots 4 dots Width of jugi 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 FNC1 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 8 amp H00 LPRINT CHR amp H1B RB00 ABCDefg CHR amp HO0A CHRS amp H00 APPENDIX 79 XIaNaddv 4 UPC 5 JAN 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
7. Space between characters 00 to 63 dots 1142 can be left out When 4142 is left a space between characters is defined by ESC Default value is 00 b Up to 100 character strings can be defined If is missing printer goes into an error condition 49 AGOW Character rotation and character string rotation 1 Charcter rotation only no character string rotaion 1 2 180 1 3 270 Start position r2 0 09 r2 0 0 dere LU Ed 2 0 0 2 Charcter string rotation only no character rotaion Siar pesion 1 0 0 1 0 02 Start position 1 0 0 r1 0 0 2 0 0 r2 1 909 3 Charcter string rotation and character rotation Start position 1 3 270 r2 50 SITTRI Define bar code format ESC B nin2 xlx2x3x4 yly2y3y4 w b m hIh2h3h4 LF NUL HEX 1B 50 42 nin2 1 2 3 4 2C y1y2y3y4 2C w 2C b 2C m 2C 1827384 00 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 1
8. BHO D A d X OO Om om xf gels jd MOH Om n st WV o lt 0 Os m m 5 c st WV SD ant B Note Other characters are the same as those for Character table Normal STAR Line Mode Code Page 863 Code Page 865 Nordic Canadian French 8 9 AB CD EF vi o3 IZPOD 8 BYE Hd i kdo Md b ae ee 4 oum wm OD Ged ere Ree amp Rd 0D Biro FIA f H 4 C 3 D ud 4d xd OO a m e mox 89 ABCDEF lt suc d i e Noel Md deu dec sti Soren r Oo d Wk oR RH D ou HDS 6 oun x WV 0 DAA OQ RE Code Page 866 Cyrillic Russian 8 9 AB CD EF WO Qon o omo s ou REOR Q OF me Fo ARO SK z bug dc wea Re SST m n HOM MSN SNS MB Hm 2 4 Am Re L BH BH OS ED d Em Ji Hom 9 a lt e
9. 109 XIaNaddav DP8340 Mode JAPAN decimal 0 16 33 e so 112 1 1 A Q a q 1 17 33 _ 49 65 97 113 gt 1662 2 B R b ir 2 18 so 6 82 98 114 C S 67 rs rs raf 3 19 51 39 ut 20 36 52 68 841 100 5 90 5 ell E U e u s 37 53 65 101 117 amp 6 F V f 6 sd 6 22 38 sa 70 86 102 7 BEL 7 G g 7 23 39 55 71 87 103 Cw H x 8 24 ao 56 72 104 __ 9 I Y i 9 2 57 73 89 105 iF sus 7 8 9 122 esc K T 27 43 s9 75 123 C D ET 15 47 79 127 SP Space XIGNAddV SP Space 111 XIaNaddv DP8340 Mode International Character Set Hexadecimal 23 24 40 USA 112 Ferre EE SEAI ELECTRONIC PRODUCTS DIVISION OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS CO LTD STAR MICRONICS AMERICA INC 536 Nanatsushinnya Shimizu Shizuoka 1150 King Georges Post Road Edison NJ 08837 3729 U S A 424 0066 Japan Tel 732 623 5555 Fax 732 623 5590 Tel 0543 47 0112
10. TWN CE Y A 2 8 d tur P e e uW OH SO D lt H APPENDIX Note Other characters are the same as those for Character table Normal 92 STAR Line Mode Code Page 772 Lithuanian Code Page 774 Lithuanian WHAM 2 Ro noa uc Al oO wm FON R Olja Fe lappa vw Fs COO R WSS rm lt D OO o VR CV O 5 3 gt 3 3 d X MD lt lt lt Vo RO ER gt FF oT wm O Fe 1 t Pp eS fs lt 0 RR lt MAK Hox MSS ET E El ABN D ewe lt r FA Fi Bd MOS SMO lt Note Other characters are the same as those for Character table Normal XIGNAddV 93 STAR Line Mode Code Page 874 Thai Code Page 1250 Windows Latin 2 8 9 ABCDEF VOC C 00 O0 DO Fk 49 400 20 4 O 00 O0 0 OH 90 10 gt gt 0Q 2 2 1
11. 208 e 145 161 177 193 209 225 241 0 146 162 178 194 210 226 242 147 163 179 243 0 148 164 180 244 5 149 165 181 245 150 166 182 246 151 167 183 247 152 168 184 248 5 153 feo 27 fesa 249 3 154 170 186 202 218 234 250 155 171 187 203 219 235 251 156 172 188 204 220 236 252 D 141 157 173 189 205 221 237 253 P 142 158 174 190 206 222 238 254 F 143 159 175 191 207 223 239 255 102 STAR Page Mode International Character Set France Germany England Denmark 1 Te Sweden Spain 1 Norway Denmark 2 Fem 2 Latin America 103 APPENDIX XIaNaddav A3 3 DP8340 Mode U S A amp Europe 0 un 1 XIGNAddV N lt lt 2 lt z i in i i io i e N N N N N N N N ae i S So 14 A lt wn a o o a N e N N e e e e ud
12. be bs b4 bs bi b7 be bs bs b bi bo _ _ dent _ ________ 0 __ b7 be bs bs b2 bi bo b7 be bs bs bi bo b7 be bs b4 bs b2 bi bo eL d b7 be bs b2 bi bo b7 be bs bs b2 bi bo b7 be bs bs b bi bo _ _ dima _ dioz dm b7 be bs b2 bi bo b7 be bs bs b2 bi bo b7 be bs bs b bi bo _ _ dma _ _ _ dus _ el b7 be bs b4 bs b2 bi bo b7 bs bs b2 bi bo b7 be bs bs b2 bi bo 222 _ __ ____ dme e i b7 be bs b4 b2 bi bo b7 be bs bs b2 bi bo b7 be bs b4 bs b2 bi bo ___ _ _ _ 32 eL de b7 be bs b4 bs b2 bi bo b be bs bs b2 bi bo b7 be bs bs bi bo __ _ __ ____ ___ e C d b7 be bs b4 b2 bi bo b7 be bs bs b2 bi bo b7 be bs bs bi bo _ _ _ __ _____ e di b7 be bs b4 bs b2 bi bo b7 be bs bs b2 bi bo b7 bs bs b bi bo dma o dm b7 be bs b2 bi bo b7 be bs bs b2 bi bo b7 be bs b4 bs b2 bi bo _ _ domo e C di b7 be bs b4 b2 bi bo b7 be bs bs b2 bi bo b7 be bs bs b bi bo _ _ dima _ __ ____ dia d 67 be bs b4 bs b2 bi bo b7 bs bs bi bo b7 bs bs b2 bi bo _ _ _ _ e d __ 67 be bs bs b2 bi bs bs b2 bi bo b7 be bs bs b bi bo ____ _ do Qa b7 be bs bs b2 bi bo
13. GN X AC YON ON it 38 XD VOOR SH lt 8 9 AB CDEF OGZz ruWwisfgButu aur aren 0 8 8 cf QUY de C on X GC 0T W A 4 0 lt Code Page 1252 Windows Latin 1 Code Page 1251 Windows Cyrillic 8 9 ABCDEF YO C O O O 10 O Dy OD 99 XU WU XU BOD An wi in azooowonoxegdre rr ac lt lt lt mom OI A SM BHOH M 1 EWA 8B N gt 38D wW lt 89 AB CDEF GoL SYR OaOrnASxM AIT STO BANS Tz lt oH 0L AMM 008 wyf I0 m Sx ac ek 38 cB V 2 SH APPENDIX Note Other characters are the same as those for Character table Normal 94 STAR Line Mode Code Page 3841 Gost Code Page 3840 IBM Russian Bl gt SM MQ BM Os RM bf SN B El m om oo A
14. Ro wean 8 5 5 0 Fe e oc QOO E TF FA BK ARK lt Mt OS WM RE MOR QA a vot 5 xX Ed F4 FER E ON SM RSMO lt 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 98 STAR Line Mode International Character Set The character codes shown in the table are hexadecimal 23 24 40 58 SB 5 5 SE 60 7B 7C 7D 7E 1 X 7 8 8 X ZA 68 X 7 5 8 X 7 5 0 X 7 8 n EX 2 YU i N 7 X 7 4 X 5 4 9 X Z R EX ZEOA Bail 2 U ga N i X 7 X 7 2 5 U A 8 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 XIGNAddV 99 XIaNaddav A3 2 STAR Page Mode
15. 0 dl dk n x 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 Print area 104mm TSP800 1n 104 72mm TSP700 1zn 52 5mm TSP700 1s 80mm TSP700 1zn 50 8mm TSP700 1 E IA N Dot position Relationship between image data and print dots Image data b7 b6 b5 b4 53 62 61 di d2 dn b7 be bs b4 bs b2 b bo b7 be bs b4 bs b2 bi bo b7 be bs b4 bs b2 bi bo ds _ _ el X b7 be bs bs b2 bi bo b7 be bs b4 bs bi bo b7 be bs bs b bi bo Loo dant fem 0 b7 be bs b2 bi bo b7 be bs bs b2 bi bo b7 6 bs bs b2 bi bo _____ _ _ eL d __ 67 be bs b4 bs b2 bi bo b7 bs bs bi bo b7 be bs bs b bi bo Loo dant e bod b7 be bs bs b2 bi 67 be bs bs b2 bi bo b7 be bs b4 bs b2 bi bo fd e dm b7 be bs bs b2 bi be bs b4 bs bi bo b7 be bs bs b bi bo _ _ dont _ ________ de ___ ___9 _____ b7 be bs b4 bs b2 bi bo b7 bs bs bi bo b7 be bs bs b bi bo _ ________ e 8 b7 be bs bs b2 bi
16. 13 125 325 3375 35 3 625 3 75 3 875 character Increase 0 125 mm per 1 dot d1d2 10 then 1 or 2 or 3 0 125 x 10 mm 259 Print Data Settings Set character string data CODE lt ESC gt R C ala2 an lt LF gt lt NUL gt 1B 52 43 2 3Bala2 an OA 00 This command sets character strings defined by the lt ESC gt nin2 Two digit reference number of character string whose print position and type are previously defined with lt ESC gt 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 must be sent c This command along with the Print Label command lt ESC gt allows reprinting of labels where only the character string data changes d If is missing printer goes into an error condition PAGE MODE 53 AGOW Set bar code data CODE lt ESC gt R B nin2 ala2 an LF NUL HEX 1B 52 42 2 ala2 an OA 00 REMARKS 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 ESC gt PB ala2 an Bar code data to be encoded and printed Note a Start and st
17. RC nin2 al an 1B 52 43 n1n2 ala2 an Set character string data 53 LF lt NUL gt 0A 00 ESC RB nin2 al an 1 52 42 1 2 3 1 2 Set bar code data 54 LF lt NUL gt 0A 00 lt ESC gt n 1 2 3 4 1 51 n 1 2 3 4 2C Store dot graphic data into image 55 y1y2y3y4 hIh2h3h4 1 2 3 4 2C hIh2h3h4 2 memory wlw2w3 In12n13 wlw2w3 2C n1 In12n13 n nlk lt LF gt nmInm2 n nlk lt LF gt nmInm2 mk LF lt NUL gt Amk 00 lt ESC gt n 1 2 3 4 1 48 n 1 2 3 4 2C Copy BMP file to printer 56 yly2y3y4 BMP file data y1y2y3y42C BMP file data gt lt LF gt NUL 2C 0A 00 ESC G 2 n3n4 lt ESC gt 1B 47 2 2 n3n4 1B 30 Call download character 57 0 lt ESC gt n xlx2x3x4 1B n 1 2 3 4 2 Store logo data into image 57 yly2y3y4 dld2d3 LF yly2y3y4 2C 414243 0 lt NUL gt 00 lt ESC gt X lt LF gt lt NUL gt 1B 58 0A 00 Clear image data 57 45 PAGE MODE AGOW Other commands Control codes Hexadecimal codes Function Pages lt ESC gt lt LF gt lt NUL gt 1B 49 0A 00 Print Label 58 ESC W 51525354 IB 57 51525354 2C Print Label 58 1121314 LF NUL h1h2h3h4 00 lt 5 gt d nin2 lt LF gt 1B42dnIn20A Enable cutter 59 lt NUL gt 00 lt
18. oak wn 900000000 2945 AGOW EXAMPLE We will create the design below using a bit image ml m2 m3 m4 ms m6 m7 m8 m9 miofm11 m12 m13 m14 m15 m16 m17 m18 m19 m20 m21 m22 m23 m24 m25 m26 m27 m28 m29 m30 Ds D7 Ds e ej0 0 0 0 0 0 0 0 0 0 Ds D4 ej0 0 0 0 0 0 0 0 0 ej0 0 0 0 0 0 0 0 0 0 0 0 0 0 Ds D2 bile First since the volume of data is 30 n 1E n If the data m m30 is converted to hexadecimal it appears as shown below Hexa Hexa Hexa Data Binary Binary Binary ml 00000001 01 11 00111110 211 00111110 m2 00011110 1E 12 00000010 02 22 00101110 2E m3 00111110 13 00000010 02 23 00101110 2E m4 01011111 SF 14 00111110 24 00111110 00011111 IF 5 100111110 251 00101111 2F 01011110 5E 16 00101111 2F 26 00101111 2F m7 00011110 IE 17 00101111 2F 27 0
19. t Ww sor 9 m i EJO D o 4 Aon APPENDIX Note Other characters are the same as those for Character table Normal 90 STAR Line Mode Code Page 855 Code Page 857 Turkish Cyrillic Bulgarian C DEF A B 9 RM ao ron B PH N 1 99 lt ae oo FT TH ODC ZI VA cO DDH OD O I O 9 XU 4U XU lt lt CDEF A B 9 RAAOOrFFAD EX OO OO TEMP lt Boe CCL Low Code Page 864 Arabic Code Page 862 Hebrew XIGNAddV 8 9 ABCDEF DT 4 9 T 4 Nw X 9 44401 3 E a Q2 72323 aa Bil CDEF A B 9 AL Bor 4 KE MH 2 4 1 oq qc Tn DDC DAL MAMESFT BL BH MARR re oe
20. m30 Ds De e Ds 0 0 0 eje D4 D3 ej 00 090 0 09 0 0 0 0 0 0 0 D2 Di First since the volume of data is 30 n 1E n If the data m m30 is converted to hexadecimal it appears as shown below Hexa Hexa 5 Data Binary Data Binary la Data Binary decimal 00000001 01 1 00111110 21 00111110 m2 100011110 1E 21000000101 02 22 00101110 2E m3 100111110 31000000101 02 123100101110 2E m4 01011111 5F 14100111110 724100111110 m5 00011111 IF 15100111110 25 001011111 2F 01011110 5E 16 00101111 2F 26 001011111 2F m7 00011110 1E 171 00101111 2F 27 00111110 00111111 18100111110 728100111110 m9 1001011 2 19100101110 2E 291000000101 02 10 00111110 201 00101110 2E 00000010 02 Horizontal density is three times that of the bitimagefor lt ESC gt k Compare the print samples Printing Sample Print fine density bit image CODE lt ESC gt
21. 29 Hex 13 00101011B 2B Hex 14 00101101B 2D Hex 15 00101111B 2F Hex Header 2 2nd byte Bit Contents 0 0 0 1 2 Version No of the Automatic status 3 4 Always 0 5 Version No of the Automatic status 7 Always 0 63 PAGE MODE AGOW Version No n Header 2 1 00000010B 02 Hex 2 00000100B 04 Hex 3 00000110B 06 Hex 4 00001000B 08 Hex 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 ON Line 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 64 Printer status 3 5th byte
22. Memory switch number 1 only n1n2n3n4 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 59 Default Parameter Setting 0 ni Always 0 Reset printer CODE lt ESC gt 1B AGOW lt LF gt lt NUL gt OA 00 n2 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 1 7 Spain 1 A Denmark 2 2 Germany 5 Sweden 8 Japan B Spain 2 n4 Country C Latin America 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 60 Request status CODE ENQ HX 05 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 b7 b6 b5 b4 b3 b2 bl Constantly C set at 0 2 Vertical Parity error 1 error uM rami
23. lt NEA Note Other characters are the same as those for Character table Normal 91 STAR Line Mode Code Page 737 Greek Code Page 851 Greek HD S Rm gt mun gt EK AP WOR UY Ps Alona vc En GF MAS t Mo r e Ho SEW o om gt Bon BS KOH oA Dj Oo d OP UUR Qo ce e BE tM SO CH QOO FH VIA a oa eq OD SD 0 0 gt gt 23 a e domm xml Ses Fe gt PSs BS e gt oO A DARN OG e Bo Nm GA oan SO Qv OA Code Page 928 Greek Code Page 869 Greek ml E OG Yb PrP oe BPP SF K DP A mu Wd ES DA O e op B ocu Ed oe hd lt gt 0 x Bon CO neo e 44 T ceo De 0 D OO C B Beuor AlrF gt Ss OO oft 4 Il T lt lt E 12
24. 1 2 3 4 Print area 0001 to 2000 0 1 mm to 200 mm PAGE MODE 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 considered ABCD 40 mm ABCD EFG EFG 50 mm 247 AGOW Define ruled line format 5 7 8 nin2 1 2 3 4 1 2 3 4 5 6 7 8 5 7 8 CODE lt ESC gt Lnin2 2 3 4 yly2y3y4 x5x6x7x8 lt LF gt lt NUL gt HEX 1 4Cnin2 2 3 4 2C y1y2y3y4 2C x5x6x7x8 2C y53y6y7y82C d2Cw 00 REMARKS This command defines ruled line format Line number 00 to 63 Position of the starting point in the X direction 0000 to 1040 x 0 1 mm Position of the starting point in the Y direction 0000 to 2000 x 0 1 mm 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 Note Line direction 4 0 Horizontal line d 1 Vertical line When d 0 then y y2y3y4 5 7 8 When d 1 then x x2x3x4 5 7 8 Line width 1 to 9 dots a This command is used to define lines for label fra
25. 1B 2D 30 69 lt gt lt 0 gt 1B 2D 00 Underline release SI OF Inverted print instruction 70 lt DC2 gt 12 Inverted print release 70 ESC 1B 45 Emphasized print instruction 70 lt ESC gt 1B 46 Emphasized print release 70 lt ESC gt 4 1B 34 Highlighted character print instruction 70 lt ESC gt 5 1B 35 Highlighted character print release 70 lt ESC gt n 52 International Character set selection 71 lt ESC gt 1 1 n line feed instruction 71 lt gt 1B43n Sets page length in lines 71 lt ESC gt n 1 4 Set bottom margin in lines 72 lt ESC gt 4F Cancel bottom margin 72 lt FF gt 0C Form feed 72 lt ESC gt 1B 40 Printer initialization instruction 72 lt ESC gt BEL n1 n2 1B 07 n1 n2 Set peripheral unit drive pulse duration 72 BEL 07 Trigger peripheral unit drive 1 73 FS 1C Trigger peripheral unit drive 1 73 SUB 1A Trigger peripheral unit drive 2 73 lt ENQ gt 05 Enquiry 73 CAN 18 Clears print buffer 73 68 4 2 Command Specification CODE LF 0A u FUNCTION Print and line feed instruction 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 CR 0D u FUNCTION Print and line feed instruction OUTLINE Same function as of LF code However when the DIP
26. 20 lt ESC gt lt GS gt A n2 1B 1D 41 n1 n2 Absolute position setting 21 lt ESC gt GS R n1 n2 18 1D 52 n1 n2 Relative position setting 21 lt ESC gt lt GS gt a n 1B ID61n Alignment 22 e LINE MODE AGOW 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 lt ESC gt ni n2 1B 4C nl n2 ml 25 ml m2 7 Print high density graphics lt ESC gt n lt 0 gt 41 1B 6B n 00 41 Print fine density graphics 26 lt gt X n1 2 41 1B 58 n1 2 41 Print fine density graphics 29 ESC FS n 1B 1C 7I n Deti Toga dit 30 x11 x12 yl yI2d Kk1 x11 x12 980 lt ESC gt lt FS gt p n IB 1C 70n m Print logo image 32 Commands to Print Download Characters Control codes Function Page codes lt ESC gt amp 1 1 1B 2601017 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 1B 25 31 34 lt gt 99 lt 1 gt 1B 25 01 Enable download character set lt ESC gt 0 1B 25 30 34 lt gt lt 0 gt 1B 25 00
27. 20 H 21 H 22 H 0 H DH 2 H 3 H A H 5 H 6 H 7 8H 9 H A H B H CH 4D H E H F H FF H 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 Codepage 3843 Polish Codepage 3844 CS2 Codepage 3845 Hungarian Codepgae 3846 Turkish Codepage 3847 Brazil ABNT Codepage 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 AGOW Commands to Set the Page Format Set page length in lines CODE lt ESC gt C n HEX 43 REMARKS Sets page length using the current line spacing where 7 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 IB 43 00 REMARKS Sets the page length ton 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 bottom margin Invalid when start position detect is ON Set botto
28. 69 TSP800 55 TSP800 33 35 48 53 27 28 38 42 E TSP700 TSP700 n4 Line feed mm 4 3 4 3 CR code Invalid Invalid Valid Valid Character table See the table 1 Nest page 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 TSP700 only 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 406dots 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 38 Table 1 MSW3 E MSW3 D MSW3 C MSW3 B MSW3 A MSW3 9 MSW3 8 Character Table 0 gt T
29. Bit Contents 1 0 0 1 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 0 Invalid 2 Near end Near end 3 Paper empty Empty 4 Always 0 5 Invalid 6 Invalid 7 Always 0 Printer status 5 7th byte Bit Contents 1 0 0 Invalid 2 Invalid 3 Invalid 4 Always 0 5 Invalid 6 Invalid 7 Always 0 65 PAGE MODE AGOW Set status transmission condition CODE lt 5 gt RS HEX 1B 1E 61 n REMARKS This command sets the status transmission condition 0 or lt 0 gt ASB is invalid 1 lt 1 gt ASB is valid Select international character set CODE lt ESC gt nln lt LF gt lt NUL gt HEX 1B 4E 2 00 REMARKS This command defines temporary change of the international character set For permanent change of the international character set change memory switch settings by using lt ESC gt 1 2 Country 1 2 Country 1 2 Country 112 Country 00 U S A 03 06 09 01 France 04 Denmark 1 07 Spain 1 10 Denmark 2 02 Germany 05 Sweden 08 Ja
30. 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 Function Page codes ESC 1B 64n Cut command to the auto cutter 36 Other Commands Control codes Function Page codes CAN 18 Cancel last line amp Initialize printer 37 lt ESC gt N n1 n2 n3 1B 23 N2C nl n2 n3 n4 Set memory switch 37 lt LF gt lt NUL gt 0A 00 lt ESC gt 1B 40 Initialize printer 40 lt ENQ gt 05 Request status 40 lt EOT gt 04 Request status 41 lt ESC gt lt gt lt 5 gt 1B 06 01 Request status 41 ESC RS n IE 61 n Set status transmission condition 44 lt ESC gt LE lt NUL gt 1B 0A 00 Reset printer hardware 44 LINE AGOW 2 2 Command Specification Commands to Select Characters Select international character set CODE lt ESC gt R n HEX 1B 52 n REMARKS Selects an international character set according to the value of n as shown below n Character set n Character
31. FS HX 1 Executes drive pulse for peripheral device 1 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 lt SUB gt Drives peripheral device 2 The drive pulse width and delay time are fixed at 200 ms 35 AGOW Commands to Control Auto Cutter Cut command to the auto cutter CODE ESC n HEX 1B 64 n REMARKS 0 or lt 0 gt Cuts the paper fully immediately 1 or lt 1 gt Cuts the paper leaving one point uncut immedi ately 2 or lt 2 gt 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 3 or lt 3 gt 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 36 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
32. Fax 0543 48 5013 STAR MICRONICS U K LTD Please access the following URL Star House Peregrine Business Park Gomm Road http www star micronics co jp service High Wycombe Bucks HP13 7DL U K frame_sp_spr_e htm Tel 01494 471111 Fax 01494 473333 for the lastest revision of the manual 2001 04 30 Printed in Japan 80872096
33. Mode Code Page 3846 Turkish Code Page 3845 Hungarian ff oor a ik Na E Re SEH SE lt xo O do uc D be 1 XH Rd ODO Q D x d HM OO 0 Bt d xd OM D Dt on s OS lt p O A Fh N VE B N see ENb 8 5 a x Hm eC 1 oru EROR AT lt do cO D Gd dm di On VR OW OO RD PP OP DX gt D d xd d xd OOD D cn O a3 PB Code Page 3848 Code Page 3847 Brazil ABNT Brazil ABICOMP 8 9 AB CD A 6 a 6 A EB C 0 U EY H 8 9 ABCDEF D d o 9 g 1 o a 4 4 b Y ft b 1 p APPENDIX Note Other characters are the same as those for Character table Normal 96 STAR Line Mode Code Page 2001 Lithuanian KBL Code Page 1001 Arabic 8 9 ABCD gt o
34. N N N N N N N N N N N N N N J a r B a le t o cool o e e 4 4 M N N a N N N N N N N N N N N N N a x 8 jJ R Teo lt co o e lt a a a a a a a e e e e e e e N N N N N N N O 5 5 fet 45 pr 5 8 en o lt wn lt Dom OQ IW lt lt lt o i i Lan q b co 8 o e 2 N N e e e e e e Lon a 3 o _ l g 5 st T SP Space 105 DP8340 Mode IBM Character Set 1 aah oft a as o o ale ata tahaa wo wo NI INI IN IN IN IN IN IN INI APPENDIX SP Space 106 XIQN3ddV 107 XIaNaddv DP8340 Mode IBM Character Set 2 decimal nr q ENSE E rad Ww 39 10 119 5 XIQN3ddV oo N Modem EEEEEELL
35. Z 25H ESC BH 25H 5 FC 25H 5 GS 25H 5DH RS 25H 5 US _ 25H DEL 7FH 5 25H 35H Select 12 dot pitch printing CODE lt ESC gt M HEX Prints 12 dot pitch characters without an extra space Select 14 dot pitch printing CODE lt ESC gt HEX 70 Prints 12 dot pitch characters with 2 dot spacing between charac ters Select 15 dot pitch printing CODE lt 5 gt HX 50 Prints 12 dot pitch characters with 3 dot spacing between charac ters Select 16 dot pitch printing CODE lt 5 gt HEX 1B 3A Prints 12 dot pitch characters with 4 dot spacing between charac ters Set the character spacing CODE ESC SP n HEX 20 m Sets the space between characters to n dots where n is a number from 0 to 15 When the value of n is 0 to 9 0 00H to 9 09H or 0 30H to 9 39H can be set When the value of n is 10 to 15 10 0AH to 15 41 to F 46H can be set LINE MODE Sets the printing magnified double in character width CODE lt SO gt HEX OE 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 se
36. code lt ESC gt BEL n n2 This is the same during a mechanical error Set memory switch CODE lt ESC gt N nin2n3n4 lt LF gt lt NUL gt HX IB 23 2C nin2n3n4 0 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 3 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 nl Always 0 2 Start position delect 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 7 Spain 1 A Denmark 2 2 Germany 5 Sweden 8 Japan B Spain 2 n4 Country C Latin America D Korea E Ireland F Legal 37 LINE MODE AGOW 2 Use N 3 for folloing settings nl Character table n2 Character table n3 Print column n4 Lane feed CR code Setting 0 1 2 3 nl n2 n3 Print colum
37. direction 0 degree LPRINT CHR amp H1B PB10 0050 0100 1 6 0 0100 CHR amp H0A CHRS amp H00 LPRINT CHR amp H1B RB10 246801357956 CHR amp H0A CHRS amp H00 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 mm 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 3 125mm 45mm 65mm character 2 REQUIREMENTS 25 15 sent as data 0 25H 35H Control codes to and 7FH are sent as data followed by 40H to 5FH and 35 H For example control code 7FH is sent as data 5 25H 35H Function codes are sent as data followed by 1 to4 31H to34H The start code is sent as data followed by 6 to 8 36H to 38H Although CODE 128 datarequires START CODE the printer automatically adds START CODE Please omit START CODE when sending data to the printer APPENDIX 81 XIaNaddv 3 2 character set codes Control codes Special code Code HEX Format HEX Code HEX Format HEX NUL 00H 25H 40H 25H 960 25H 30H SOH 01H A 25H 41H STX 02H B 2
38. m26 11100000 EO m27 01100110 66 m28 01100000 60 m29 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 a download character lt 5 gt 4 lt I gt 05 n 1B 26 01 00 n Deletes the download character which was assigned the value n Enable download character set lt ESC gt 60 1 or 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 1B 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 1B 07 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 Control peripheral device 1 BEL 07 Executes drive pulse for peripheral device 1 LINE MODE Control peripheral device 1
39. n3 n4 1B 62 n2 n3 Select bar code printing 7 dl RS dl lt ESC gt 1B 4D Select 12 dot pitch printing 11 ESC 1B 70 Select 14 dot pitch printing 11 lt ESC gt 1B 50 Select 15 dot pitch printing 11 ESC 1B3A Select 16 dot pitch printing 11 ESC SP n 1B20n Set character spacing 11 SO OE 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 n 68 Sets the magnification rate in character height 13 lt ESC gt i n1 n2 69 nl n2 Sets the magnification rates in character 13 width and height lt ESC gt 1 1B 2D 31 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 gt _ 1 1B 5F 01 lt ESC gt _ 0 1B 5F 30 NC 14 Cancel upperlining lt ESC gt 0 1B 5F 00 Hexadecimal
40. not printed Commands to Print Download Characters Define download character CODE lt 5 gt amp lt l gt lt I gt n ml m2 m48 HX IB 26 01 01 n ml m2 48 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 AGOW FUNCTION CODE HEX REMARKS FUNCTION CODE j FUNCTION CODE HEX REMARKS Data Binary echt Data Binary 1 ml 00011000 18 m2 00000000 00 m3 00111000 38 m4 00000000 00 m5 01111000 78 m 00000000 00 m7 00011000 18 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 1B 18 00000000 00 19 00000110 06 m20 00000000 00 m21 00001100 0C m22 00000000 00 m23 00011011 1B m24 11000000 25 00110111 37
41. 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 290 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 15 the n2 256 dot position from the left margin position Settings that exceed the print area are ignored Relative position setting CODE lt ESC gt GS nl n2 HEX 1D 52 m Sets the relative position based on the current position for starting the next printing 0znl n2 255 The start of the next printing 15 the n2 256 dot position from the current position LINE MODE 1 Settings that exceed the printing area are ignored 2 Whensetin 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 ESC gt GS a n HEX 1B ID 6l n Initial Value n 0 REMARKS Lines up all print data in one line to the specified position Alignmen
42. 000 00 d3 00011111 1F d4 11111000 F8 d5 00111111 3F d6 11111100 FC d7 01110111 77 48 01110111 EE d9 11111000 F8 410 00011111 1 411 11111000 F8 412 00011111 1 413 11111000 F8 914 00011111 1F 415 00001111 OF 916 11110000 FO 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 d27 01110011 73 d28 11001110 CE d29 01110011 73 d30 11001110 CE d31 11111001 F9 d32 10011111 9F d33 11111000 F8 d34 00011111 1F d35 11111110 FE d36 01111111 437 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 D8 Print fine density graphics CODE lt ESC gt X nl n2 dl d 1 2 256 3 HX IB 5 n m2 1 4 nl n2x256 x3 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 TSP800 1Sn n2x256 5832 72mm TSP700 1s n 2 256 576 52 5mm TSP700 12 n n2 256 s 420 80mm 5 700 1 nl n2x256x 640 50 8mm TSP700 1S nl n2 x 256 s 406 LINE MODE d1 d2 d3 MSB 158 MSB 15 MSB LSB Paton or ee Jes or eee e
43. 0111110 00111111 181 00111110 28 00111110 m9 00101111 2 19100101110 2E 29100000010 02 10100111110 201 00101110 2E 30 00000010 02 Printing Sample 04 Print high density graphics gt n n m m CODE ESC gt L 1 2 1 2 HEX 1B 4C nl n2 ml m2 2 Prints high density dot graphics The graphics image is 24 dots high and n1 n2 x 256 dots wide ml m2 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 104mm 800 1S n n2x 256 832 72mm TSP700 18 n 02 256 576 52 5mm TSP700 1S n n2 256 420 80mm 5 700 1S n 2 256 640 50 8mm TSP700 1S n2 x 256 406 Dots beyond the right margin are ignored LINE MODE Relationship between image data and print dots MSB Image data LSB s je mmo oar wn 2 95 AGOW EXAMPLE We will create the design below using a bit image m2 m3 m4 m5 m6 m7 m8 m9 m1 2 m13 m14 m15 m16 m17 m18 m19 m20 m21 m22 m23 24 25 26 m27 m28 m29
44. 176 177 147 148 149 150 151 152 153 154 155 156 157 158 159 IO 15 lma 162 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 187 ol 188 189 190 191 86 1 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 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 STAR Line Mode Character table Code page 437 unde 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 87 APPENDIX XIaNaddav STAR Line Mode Character table Hexa decimal 132 133 Note Other charac
45. 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 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 80 EXAMPLE Bar code string number 10 starting position of bar code X Y 5mm 10 mm use Mode 1 of EAN 13 Bar code height 10 mm data 246801357956 bar code rotation
46. 3 CODE 128 NW 7 UPC E m Bar code rotation direction 0 to 3 clockwise 0 1 2 3 0 degree 190 degrees 180 degrees 270 degrees hIh2h3h4 Bar code height 0000 to 1999 x 0 1 mm PAGE MODE Note a When a bar code is rotated its dimensions may not conform to ANSI specifications Make sure that the printed bar code is compatible with the scanner or scanners to be utilized b Up to 32 bar codes can be defined c If or is missing printer goes into an error condition 51 Bar code rotation Start position Start position 1 0 m 2 MM mg 180 270 m 0 0 Define character pitch U 5 lt 5 gt 4142 lt LF gt lt NUL gt 59 did2 00 e REMARKS 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 Whenchanging the inter character space a 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 did2 00 dot 01 dot 02 dots 03 dots 04 dots 05 dots 06 dots 07 dots Small size 1 1125 125 1 375 1 5 1 25 1 75 1 875 character Standard size 2 2125 225 2375 2 5 2 625 2 75 2 875 character Boldface
47. 5H 42H Function codes ETX 03H 25 Code HEX Format HEX EOT 04H D 25H 44H 901 25H 31H ENQ 05H 25H 45H FNC2 902 25H 32H ACK 06H 25H 46H FNC3 903 25H 33H BEL 07H G 25H 47H FNC4 904 25H 34H BS 08H 9H 25H 48H HT 09H 25H 49H Start codes LF OAH 25H 4AH Code HEX Format HEX VT OBH 25 START 6 25H 36H FF PL 25H 4CH START B 7 25H 37H CR 25H 4DH START C 908 25H 38H SO YN 25H 4EH SI OFH O 25H 4FH DLE 10H P 25H 50H DCI 11H 0 25H 51H DC2 12H 25H 52H DC3 13H S 25H 53H DC4 14H 25 54 15 25H 55H SYN 16H 25 56 17H TOW 25H 57H CAN 18H 25H 58H EM 19H 25H 59H SUB 1AH 7 25 5 ESC 1BH 25H 5BH FS ICH 25 5 GS 1DH 25H 5DH RS 1EH 25 5 US 1FH 25H 5 DEL 7 905 25H 35H EXAMPLE Barcode 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 HO00 LPRINT CHR amp H1B RB00 1213477657 M CHR amp H0A CHR amp HO00 82 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 b
48. 7 Brazil ABNT Codepage 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 39 LINE AGOW Initialize printer CODE lt ESC gt HEX 40 REMARKS Reinitializes the printer Clears the print buffer and returns settings to their power up values Does not clear the input buffer downloaded characters or condi tions for peripheral devices Request status CODE lt ENQ gt 05 REMARKS Causes the printer to transmit a status byte Status byte 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 40 Request Status CODE lt EOT gt HEX 04 Causes the printer to transmit a status byte Status byte Constantly set at 0 Near end sensor 1 Near end Paper empty 1 empty Near end sensor 1 Near end Constantly set at 0 Constantly set at 0 Meee Request status CODE lt ESC gt lt ACK gt lt SOH gt HX Ol REMARKS Causes the printer to transmit a status byte Header 1 1st byte Bit Con
49. ESC gt nin2n3n4 lt LF gt 1B 23 N 2C nIn2n3n4 Set Memory Switch 59 lt NUL gt 00 lt ESC gt 7 LF lt NUL gt 1B 3F 0A 00 Reset printer 60 lt ENQ gt 05 Request status 61 lt EOT gt 04 Request status 62 lt ESC gt lt ACK gt lt SOH gt 1B 06 01 Request status 62 ESC RS n 1B IE 61 n Set status transmission condition 66 ESC 1 2 LF NUL 1B 4E n1n2 00 Select international character set 66 lt ESC gt 2 dl d48 1B 46 nIn2 dl d48 Register download character 67 lt LF gt lt NUL gt 0A 00 lt ESC gt Z LF lt NUL gt 1B n 0A 00 Select zero style 67 46 3 2 Command Specification Format Definition Clear format CODE lt ESC gt lt LF gt lt NUL gt HEX IB 43 0A 00 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 lt ESC gt L lt ESC gt PC ESC lt ESC gt lt ESC gt ESC2 RB lt ESC gt Q lt ESC gt lt gt lt ESC gt Define print area CODE lt ESC gt D nlin2n3n4 lt LF gt lt NUL gt HEX 18 44 nin2n3n4d OA 00 This command defines the print area page length according to the value of n1n2n3n4 in 1 10 mm unit
50. Execute test print GS 1D 2F Print download bit image GS 1D 3A Start finish macro definition GSB 1D 42 Designate cancel reverse printing GSE 1 45 Select print speed and head energizing 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 GS 1D SE Execute macro GS a 1D 61 Enable disable automatic status transmission Gs b 1D 62 Smoothing setting cancel GS f 1D 66 Select HRI character font GSh 1D 68 Set bar code height GSk 1D 6B Printing of bar code GSr 1D 72 Transmission of status GS v0 1D 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 1B 1D 74 Select character code table ESC GS 1B 1D 23 Set memory switch 295 XIaNaddv 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
51. O O X0 gt FP ON Pe x AB Oa OAK it uw icm SaaS lt EMA r EL eon MNS MR OS Re AQ DN on D ew 6 2 gt HAR SRO 1 lt oW 0t ADH FQ O m rm 89 ABCDEF oW ei gt 251 gt xwv WE Od O 4 WHAAA 9 4 DB ee YY J 4 054 9m TNS A 4 55 FAQ 79 4 4 4 gt 9 ADA A amp M Q e s 00 ex fi f Code Page 3002 Estonian 2 Code Page 3001 Estonian 1 XIGNAddV BBB 9 3 gt 5 BCG dowd x GD BOD ce in x uw O X CO 4Q 4 AR tam eu A lt R n oad vr et an Q O t t FQ OO m UR FM ANNP HO HP gt 5 Al an He re c lt S FRM a S RB D 00D WS X OO D OD O
52. R 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 ESC C LF lt NUL gt 1B 43 0A 00 Clear format 47 lt ESC gt D nin2n3n4 lt LF gt 1B 44 nIn2n3n4 Define print area 47 lt NUL gt 00 ESC L 2 x1x2x3x4 1B nIn2 x1x2x3x4 2 Define ruled line format 48 1 2 3 4 x5x6x7x8 1 2 3 4 2C x5x6x7x8 2C 7 w lt LF gt 2C d 2C w 00 NUL ESC nIn2 lt LF gt lt NUL gt 1B 45 2 00 Cancel ruled line format 48 ESC PC nIn2 x1x2x3x4 50 43 nIn2 x1x2x3x4 Define character string format 49 1 2 3 4 w h 2C y1y2y3y4 2C w2C h2C c rlr2 did2 LF NUL 2C 2 2 4142 00 lt ESC gt PB nIn2 xIx2x3x4 50 42 2 3B x1x2x3x4 Define bar code format 51 yly2y3y4 w b 2C y1y2y3y42C w2Cb2C m m hlh2h3h4 LF NUL 2C Alh2h3h4 00 ESC Y 4142 LF lt gt 1B 59 4142 00 Define character pitch 52 Print Data Settings Control codes Hexadecimal codes Function Pages ESC
53. Tee oso os Tee o0 ROI 29 AGOW CODE HEX REMARKS Note Define logo data ESC FS n xll x12 yl y12 d k1 I xnl xn2 ynl yn2 d kn n 1B 71 nl xl1 x12 y11 y12 d k1 1 xnl xn2 ynl 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 Parameter and data are specified according to the number specified by n xnl xn2 lz xnl 2 256 1023 Horizontal size of logo image is specified as xn xn2 x 256 x 8 dots ynl yn2 lz ynl 2 256 288 Vertical size of the logo image is specified as yn yn2 x 256 x 8 dots d kn kn xnl xn2 x 256 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 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 completed before termination are effective Whenthe processing ofthis co
54. Thermal Printer TSP700 Series TSP800 Series Programmer s Manual SEAI Notice All 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 Rec STAR LINE 2 1 Command Summary 2 2 Command Specification esee STAR PAGE MODE TSP800 Only 3 1 Command 3 2 Command DP8340 MODE TSP800 4 1 Command Summary 4 2 Command Specification esee ESC POS MODE Command Summary TSP700 Only A3 1 STAR Line A3 2 STAR Page mode TSP800 Only A3 3 DP8340 mode TSP800 Only 1 OUTLINE 1 1 TSP700 Series The details of
55. acters CODE ESC 1 46 FUNCTION Release from emphasized print instruction 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 instruction is released by the code ESC 5 3QON 0 ESC 5 1 35 FUNCTION Release from highlighted character print instruction The highlighted character print instruction is released by this code 70 CODE ESCRn 1 52 n FUNCTION International character set selection OUTLINE Selects an international character set according to the value of n as shown bolow n Character set n Character set 0 U S A 8 Japan 1 France 9 Norway 2 Germany 10 Denmark I 3 England 11 Spain 4 Denmark I 12 Latin America 5 Sweden 13 Korea 6 Italy 14 Ireland 7 Spain 64 Legal CODE ESCan 1 61 u n FUNCTION n line feed After printing the data in the current line n lines are fed by this code The value of n ranges from 1 to 127 CODE ESCCn 1B u 43 n FUNCTION Sets page length in lines 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 ze DP8340 MODE CODE ESCNn 1 4 FUNCTION Sets bottom margin in lines OUTLINE Upon receivi
56. 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 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 LED 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 84 Character code tables Appendix 3 STAR Line Mode 1 A3 Character table Normal 81 ves bod N e N N y a ex co 10 s 10 4 7 26 0 he ee XIGNAddV eo q 8 Note The 7F H code is a space when neither normal nor katakana 85 XIaNaddv STAR Line Mode Character table Normal Hexa decimal 0 A 8 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 d 9 144 145 146 161
57. ars and wide bars are different in each character Normal character number of narrow element 5 number of wide element 2 0to9 Wide character number of 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 1 Mode 2 3 Mode 4 Mode 5 6 7 Mode 8 9 2 dots 3 dots 4 dots 2 dots 3 dots 4 dots 2 dots 3 dots 4 dots elements agnor wide dots 9 dots 12 dots 5 dots 8 dots 10 dots 4 dots 6 dots 8 dots element Ratio 1 3 1 3 1311275 1 2 1 2 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 55 25 3 75 5 each character Wide mm 3 5 5 25 7 3 125 5 125 6 25 2 75 4125 5 55 b Vertical direction print Item Mode 1 2 Mode 3 Mode 4 Mode 5 Mode 6 7 Mode 8 Mode 9 Length of Norma mm 3 5 5 6 5 3 25 4 75 6 3 4 25 5 5 each character Wide mm 4 5 75 7 5 3 625 5 625 675 325 4 625 6 82 APPENDIX XIaNaddv 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
58. b7 be bs b4 bs bi bo b7 be bs bs b bi bo Gua _ _ _ dns _ e b7 be bs bs b2 bi bo b7 be bs bs bi bo b7 be bs bs b bi bo _ _ _ e 67 be bs bs b2 bi bo b7 bs bs bi bo b7 be bs bs b bi bo _ _ 232 d b7 be bs b4 b2 bi bo b7 be bs bs b2 bi bo b7 be bs bs b2 bi bo LINE MODE Printing Sample MSB LSB MSB LSB dl 2 d5 6 47 8 110 e e 12 eje eje 15 16 17 e o 00 000 06 0 06 18 19 20 21 0000 22 23 ojojo ojojo 24 25 26 27 ojojo 28 2 e e e 0 eje 2 13 35 36 13 9 e eoo eoo oo 41 42 43 44 45 46 47 48 Data Binary Pip iE Data Binary cs d 00000000 00 d2 00000
59. 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 Width of narrow elements and length of two characters a Horizontal printing Item Mode 1 Mode 2 Mode 3 Mode 4 Mode 5 6 Mode 7 Mode 8 Mode 9 2 dots 4 dots 6 dots 2 dots 4 dots 6 dots 2 dots 3 dots 4 dots elements 5 dots 10 dots 115 dots 4 dots 8 dots 12 dots 6 dots 9 dots 12 dots element Ratio 1 2 5 1 2 511 2 5 1 2 122 1 2 1 3 1 3 1 3 Length of 4 8 12 35 7 105 45 675 9 character mm b Vertical printing Item Mode 2 Mode 3 Mode 4 Mode 5 Mode 6 7 Mode 8 Mode 9 4 625 8 625 12 625 4 125 7 625 111 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 0 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 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
60. 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 Item 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 Width ofide dots 9 dots 12 dots 5 dots 8 dots 10 dots 4 dots 6 dots 8 dots elements Ratio 1 3 1 3 225 15 20 1 2 4 152 22 4 22 Inter character 2 dots 3 dots 4 dots 2 dots 3 dots 4 dots 2 dots 3 dots 4 dots space Lengthor onie 4 6 8 3 625 5625 725 325 4 875 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 2 Mode 3 Mode 4 Mode 5 Mode 6 7 Mode 8 Mode 9 4 625 6 625 8 625 4 25 6 25 7 875 3 875 5 5 7 125 character mm 76 2 REQUIREMENTS a The Start code and the Stop code o
61. e Print out result OR mode ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK OVERWRITE mode ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJK ABCDEFGHIJ K ABCDEFGHIJ K 1 2 3 4 Print start position in the X direction 1 2 3 4 Print start position in the Y direction 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 56 Call download character CODE lt ESC gt nin2 3 4 lt ESC gt 0 HEX 1B 47 nin2 2C n3n4 30 This command calls download character nIn2 n3n4 Reference numbers of defined download characters 00 to 31 Note Only standard size characters 16 24 dots can be defined as download characters TNE Store logo data into image memory CODE lt gt n xlIx2x3x4 yly2y3y4 414243 lt LF gt lt NUL gt HEX IB 51 n 2 3 4 2 yly2y3y4 2 414243 0A 00 This command stores logo data into image memory n 7 mode 66 99 Overwrite mode PAGE MODE 1 2 3 4 Print start position in the X direction 0000 to 1040 x 0 1mm yly2y3y4 Print
62. e part to be skipped by the horizontal tab setting is not high lighted Cancel highlight printing CODE lt ESC gt 5 HEX 1B 35 REMARKS Cancels highlight printing Inverted printing CODE lt 81 gt 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 E HEX 45 Causes subsequent characters to be emphasized Cancel emphasized printing CODE lt ESC gt HEX 46 Cancels emphasized printing SITTRI Select character code table CODE ESC GS t n HEX 1B 1D 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 0B H 0OH 0D H OE H OF H 10 H 1DH 12H 13H 14H Character Table Normal CodePage437 Katakana CodePage437 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 Codepage 857 Turkish Codepage 862 Hebrew Codepage 864 Arabic Codepage 737 Greek Codepage 851 Greek Codepage 869 Greek Codepage 928 Greek Codepage 772 Lithuanian Codepage 774 Lithuanian 15 n Hex 5 H
63. 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 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 R n 52 Select international character set 6 oss MM eee Select slash zero lt ESC gt 1 1B 2F 01 lt ESC gt 0 2 30 6 Select normal zero lt ESC gt 0 1B 2F 00 lt ESC gt b n2
64. elow When sending the following data express as a set of two characters F LINE MODE AGOW Express 25H as 900 25H30H Add 40H after for the control codes Express the control code 7 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 Xe OX CODE FORMAT CODE FORMAT NUL 00H 25H 40H 25H 0 25H 30H SOH 01H 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 ACK 06H F 25H 46H FNC2 2 25H 32H BEL 07H G 25H 47H FNC3 3 25H 33H BS 08H 25H 48H FNC4 4 25H 34H HT 09H 25H 49H LF OAH 9 25H 4AH VT OBH 25H 4BH Start codes FF 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 OFH 25H 4FH START 908 25H 38H DLE 10H P 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 56H ETB 17H W 25H 57H CAN 18H X 25H 58H EM 19H Y 25H 59H SUB AH
65. er to the next line This command is ignored when CR code is invalid AGOW Feed paper n lines CODE lt ESC gt a HEX 1B 61 n REMARKS Prints the current line and feeds the paper n lines where 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 memory switch 1 8 is set to 0 and according to the sensor output when the memory switch is set to 1 The print position is at the left margin in both cases Horizontal tab CODE lt HT gt HEX 09 REMARKS Moves the print position to the next horizontal tab stop Ignored if there is no next horizontal tab stop on the current line 18 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 I or lt 5 gt z lt 1 gt HEX IB 31 or 1B 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 1B 30 Sets the distance the paper advances in sub
66. f 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 symbol 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 15 0 508 mm or smaller 1 2 the width of narrow elements is 0 508 mm or greater c 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 1596 of the bar code length whichever is greater For non hand scanners the minimum is 0 8 inch 20 3 mm or 2546 of the bar code length whichever is greater e 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 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 APPENDIX LPRINT 6 1 11 0100 0100 2 1 0 01007 6 00 LPRINT CHR amp H1B RB11 ABCDEFG CHR amp HOA CHR amp H00 UL XIaNaddv 2 Interleaved 2 of 5 ITF This code
67. m 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 2 lt LF gt lt NUL gt HEX 1B 45 nin2 00 REMARKS This command cancels the line previously defined by lt ESC gt L nin2 nin2 Line number 00 to 63 48 Nee Define character string format CODE lt ESC gt nlin2 1 2 3 4 yly2y3y4 w h 7172 9142 LF NUL HX 1 2C 4142 50 43 nin2 3B 1 2 3 4 2C yly2y3y4 w 2C h 2C 2C rlr 2C 0A 00 This command defines start position and type of character string nin2 1 2 3 4 1 2 3 4 w h rl 72 4142 Note Character string number 00 to 99 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 Character width magnification 1 to 6 Character height magnification 1 to 6 Character type 1to 4 1 Small size character 8x16 dots 2 Standard size character 16x24 dots 3 Reserved 4 Boldface character 24x32 dots Character rotation direction 0 to 3 0 1 2 3 0 degree 90 degrees 180 degrees 270 degrees PAGE MODE Character string rotation direction 0 to 3 0 1 2 3 0 degree 90 degrees 180 degrees 270 degrees
68. m 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 0 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 O HX IB Cancels the bottom margin Invalid when start position detect is ON Set left margin CODE lt ESC gt I n HEX 6C 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 n HX 1B Sets the right margin at column n where n is between 1 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 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 Carriage return CR Prints the current line and feeds the pap
69. mmand is completed orterminated 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 30 xn xnl xn2 256 yn yn2 x 256 yn2 x 256 bytes yn2 x 256 x 8dot xnl xn2 x 256 x 8dot Data MSB d 11 d 21 d 01 d 12 d 22 d n2 LSB d x1 d x2 d xn 31 LINE MODE AGOW Print logo image CODE lt ESC gt lt FS gt p n m HEX 70 REMARKS Prints the logo image n using the mode specified by 1 255 Logo image number defined by the command lt ESC gt FS q 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 ofthe logo image exceeds the horizontal print area the exceeded data is
70. ng 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 61 AGOW Request status CODE lt EOT gt HEX 04 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 b t0 ZEN county set at 0 Constantly y at 1 Csat at 0 Near end sensor 1 Near end Paper empty 1 empty Coa at 0 oy at 0 Coa at 0 Request status CODE lt ESC gt lt gt SOH HEX 1B 06 01 REMARKS When the printer receives this command the printer sends back a status byte for the current printer condition to the host 62 Header 1 1st byte Bit Contents 0 0 1 1 2 Number of printer status byte 3 4 Always 0 5 Number of printer status byte 6 Always 0 7 Always 0 Number of transmit byte n Header 1 73 15 7 00001111B Hex 8 00100001B 21 Hex 9 00100011B 23 Hex 10 00100101B 25 Hex 11 00100111B 27 Hex 12 00101001B
71. ng 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 ESCO 1B u 4F u Cancels bottom margin Upon input of this code bottom margin setting 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 All printing conditions except ESC BEL ni nz the line buffer and data buffer are set to the power on default condition CODE ESC BEL ni n2 1 07 u n2 FUNCTION Sets peripheral unit drive 1 pulse duration 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 15115 127 1 lt m lt 127 Default value ni n2 20 92 JON 0 ON Drive Pulse OFF 10Xn1 ms 10 2 ms Delay Pulse Duration um Printing V4 Operation Printing and paper feed disabled 2 Executed by BEL code FS code after printing CODE BEL 07 FUNCTION Trigger peripheral unit drive 1 OUTLINE Causes a peripheral drive pulse to be generated This code is normally stored in the buffer and is performed as itis received from the data queue CODE FS 1C u FUNCTION Trigger peripheral unit drive 1 Causes a peripheral drive pulse to be genera
72. op 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 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 54 Store dot graphic data into image memory CODE lt ESC gt Q n 1 2 3 4 yly2y3y4 h1h2h3h4 wlw2w3 nlini2nl3n nIk LF aminm2 nmk amp LF lt NUL gt HEX 1B 51 n xlx2x3x4 2 yly2y3y4 2C hlIh2h3h4 2C wlw2w3 2 11 12 13 1 LF nmInm2 nmk 0A 00 This command stores graphic data into image memory n 77 OR mode 4 Overwrite mode 1 2 3 4 Print start position in the X direction 0000 to 1040 x 0 1 mm y1y2y3y4 Print start position in the Y direction 0000 to 2000 x 0 1 mm h1h2h3h4 Defines the length Y direction of the graphic area 0001 to 1600 dots wIw2w3 Defines the width X direction of the graphic area 001 to 104 dots 11 11
73. ose Open 6 Invalid 7 Always 0 Printer status 4 4th byte Bit Contents 0 1 0 0 Invalid 2 Mechanical error No error Error 3 Auto cutter error No error Error 4 Always 0 5 Un recoverable error No error Error 6 Print stop due to high temperature print head Printing Stop 7 Always 0 Printer status 43 5th byte Bit Contents 0 1 0 0 Invalid 2 Invalid 3 Invalid 4 Always 0 5 Invalid 6 Buffer overflow No error Error 7 Always 0 LINE MODE AGOW CODE HEX REMARKS CODE HEX REMARKS Printer status 4 6th byte Bit Contents 0 1 0 0 1 Invalid 2 Near end 3 Paper empty Empty 4 Always 0 5 Invalid 6 Invalid 7 Always 0 Printer status 5 7th byte Bit Contents 0 1 0 0 1 Invalid 2 Invalid 3 Invalid 4 Always 0 5 Invalid 6 Invalid 7 Always 0 Set status transmission condition lt ESC gt RS 1B 6 n Status transmission condition is set according to the value of n n 0 ASB is invalid n 1 ASB is valid Reset the printer hardware lt ESC gt 7 lt LF gt lt NUL gt 1B 00 Resets the printer hardware 44 3 STA
74. pan 11 Spain 2 1 2 Country 12 Latin America 66 Register download character CODE lt ESC gt nin2 dl d48 lt LF gt lt NUL gt HEX 1B 46 2 3Bdl d48 OA 00 This command defines one download character 1112 Download character reference number 00 to 31 dl d48 Character bit map data Note Only standard size character 16 W x 24 H dots can be defined as download characters MSB LSB MSB LSB di 00000000 00000000 92 OOOOOOOO 00000000 d4 95 0000000 d6 d 00000000 00000000 97 de 00000000 00000000 dio 945 00000000 446 447 00000000 00000000 48 Select zero style lt ESC gt Z n lt LF gt lt NUL gt 18 5A n 00 This command selects zero style normal zero slashed zero n 0 Select normal zero 1 Select slashed zero PAGE MODE 67 3QON 0 4 DP8340 MODE TSP800 ONLY 4 1 Command Summary Control codes Function Page codes lt LF gt 0A Print and line feed instruction 69 CR 0 Print and line feed instruction 69 Same as LF SO OE Expanded character instruction 69 lt DC4 gt 14 Expanded character release 69 pu ec z Underline isrtruction 9 lt ESC gt 0
75. pecified 8 CODE39 The value of k is optional and the maximum value also differs according to the modes 21 digits maximum in mode 7 The start stop code is automatically added ITF The value of k is optional and the maximum value also differs according to the modes 40 digits maximum in mode 4 If the data is number of an odd digits O 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 51 digits maximum in mode 1 The check character is automatically added CODE93 The value ofk is optional and the maximum value also differs according to the modes and the types of character 30 digits maximum in mode 1 The check characters C and K are automatically added NW T The value of k is optional and the maximum value also differs according to the modes and the types of character number 29 digits maximum in mode 7 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 control code cannot be sent by the host PC The control code should be sent as the data as shown b
76. recovers from the error condition 51525354 Print start position in the Y direction unit 0 1 mm hIh2h3h4 Print length from the print start position unit 0 1 mmy 58 Enable cutter CODE lt ESC gt nln lt LF gt lt NUL gt HEX 42 nin2 0 00 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 a reverse feed from the normal cut position nin2 Indicates the value to move in 1 10 mmunit 00 to 50 Note a If these 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 PAGE MODE TNO Set Memory Switch CODE ESC N nin2n3n4 LF lt NUL gt HX IB 23 2C nin2n3nd 0A 00 Setthe memory switch In order to enable changed memory switch settings turn the printer OFF and ON again or send printer reset command lt 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
77. represents data in the Istline 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 Note a This command can be used any number of times b Size of graphic data is set in 1 mm units byte units 8 bits bytes 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 or is missing printer goes into an error condition 55 PAGE MODE AGOW Copy BMP file to printer CODE lt ESC gt H n 1 2 3 4 yly2y3y4 file data lt LF gt lt NUL gt HEX 1B 48 n 1 2 3 4 2 yly2y3y4 2C BMP file data 2C 0A 00 REMARKS 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 BMP 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 fil
78. ripheral equipment ESC 7 1 Delete download characters ESC 40 Initialize printer ESCD 1B 44 Set horizontal tab position ESCE 1B 45 Designate cancel emphasized print ESCG 1B 47 Designate cancel double print ESC J 1B 4A Print and paper feed ESC L 1B Select page mode ESC M 1B 4D Select character ESC 52 Select international character set ESCS 1B 53 Select standard mode ESCT 1B 54 Select character print direction in page mode ESCV 1B 56 Designate cancel 90 character rotation ESCW 1B 57 Set print range in page mode ESC 1B 5C Designate relative position ESC a 1B 61 Align position ESC c3 IB 63 33 Select no paper detector for output of no paper signal ESC c 4 1B 63 34 Select no valid paper detector at print stop ESC 5 1B 63 35 Enable disable panel switch ESCd 1B 64 Print and paper feed n lines 74 Control Code Hexadecimal Code Function ESC p 1 70 Designate pulse generation ESCt 74 Select character code table ESC 7B Designate cancel inverted printing FS 21 IC 67 31 Write to user NV memory FSg2 IC 67 32 Read from user NV memory FSp 1C 70 Print NV bit image FSqn IC 71 Define NV bit image GS 1 2 Designate character size GS 1D 24 Designate absolute position of vertical direction of characters in page mode GS 1D 2A Define download bit image GS 1D 28 41
79. sequent line feeds to 3mm One time n 4 mm feed CODE lt ESC gt 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 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 n2 0 HEX 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 0 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 ofthe current line spacing and do not move if the line spacing is changed later Invalid when start position detect is valid Set horizontal tab stops CODE lt ESC gt D nl n2 0 HEX 44 nl n2 00 REMARKS Cancels all current horizontal tab stops and sets new tab stops at columns 74 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 The tab stops must be specified in ascending order any violation of ascending order terminates the
80. 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 __ lt 5 gt 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 m 5 ITF 6 CODE 128 9 7 CODE 93 gt 8 NW 7 2 The value of n can set to 1 00H 8 08H or 1 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 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 mod
81. start position in the Y direction 0000 to 2000 x 0 1mm dld2d3 Logo registration number 001 to 255 Note data is registered in Line mode Clear image data CODE lt ESC gt X lt LF gt lt NUL gt HX 1B 58 0A 00 REMARKS When the printer receives this command the defined image data are cleared The following commands will be cleared by lt ESC gt X ESC lt 5 gt lt 5 gt Q lt ESC gt lt gt AGOW Other commands Print Label CODE lt ESC gt lt LF gt lt NUL gt HEX 1B 49 0A 00 REMARKS 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 mmm Print Label CODE lt ESC gt W 51525354 hlh2h3h4 lt LF gt lt NUL gt HEX 1B 57 51525354 2C hlIh2h3h4 OA 00 REMARKS 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
82. switch 1 3 is ON the CR code becomes invalid FCODE 50 FUNCTION Expanded character instruction 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 DC4 14 u FUNCTION Release from expanded characters 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 01 1 20 31 FUNCTION Underline mode selection All data received after this code is underlined until a 5 0 1s received ESC 0 1 2D s 00 or 1 20 FUNCTION Release from underline mode The underline mode selection is released by this code 69 DP8340 MODE CODE SI 0F u FUNCTION Inverted print instruction 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 u FUNCTION Release from inverted print instruction 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 char
83. t by SO ESC 2 W n and lt 5 gt 47 2 Sets the magnification rate in character width CODE lt ESC gt W n HEX 1B 57 n REMARKS Prints the subsequent data including a character spacing set by lt ESC gt lt SP gt 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 set to 0 00H to 5 05H or 0 30H 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 12 Mele 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 to 5 35 Sets the magnification rates in character width and height CODE lt ESC gt 4 ni n2 HEX 69 nin Prints the subsequent data in the size specified b
84. t positions are shown below n Alignment Position 0 Left 1 Center 2 Right The value of n can be set to 0 OOH to 2 02H or 0 30H to 2 32H ABC ABCD ESC GS a 0 ABCDE ABC ESC GS al 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 xD c Commands to Print Dot Graphics Print normal density graphics CODE lt ESC gt n lt gt ml m2 HEX 1B 4B n 00 m2 Prints normal density dot graphics The graphics image is 24 dots high and n x 3 dots wide ml m2 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 104mm TSP800 1S n2 x 257 277 72mm TSP700 1 n n2 257 192 52 5mm TSP700 12 n n2 257 140 80mm 5 700 1x 02 257 213 50 8mm TSP700 12 n n2 257 135 Dots beyond the right margin are ignored LINE Relationship between image data and print dots MSB Image data LSB DOT Position D8 D7 D6 D5 D4 D3 D2 D1 M
85. ted immediately CODE SUB 1 FUNCTION Trigger peripheral unit drive 2 Causes a peripheral drive pulse to be generated The drive pulse width and delay time are fixed at 200 ms CODE ENQ 05 FUNCTION Enquiry 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 u FUNCTION Clears print buffer Upon input of this code the data buffer and line buffer is cleared ea DP8340 MODE 504 283 5 ESC POS Mode Command Summary TSP700 ONLY Control Code Hexadecimal Code Function HT 09 Horizontal tab LF 0A Print line feed CR 00 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 FF Print page mode data ESC SP 20 Set right space amount of character ESC 21 Select print mode ESC 24 Designate absolute printing ESC 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 ESC3 1B 33 Set line feed amount ESC 1B 3D Select pe
86. tents 0 0 1 1 2 Number of printer status byte 3 4 Always 0 5 Number of printer status byte 6 Always 0 7 Always 0 2 LINE MODE Number of transmit byte n Header 1 7 15 7 00001111B 0F Hex 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 gt Version No of the Automatic status 7 Always 0 Version No n Header 2 1 00000010B 02 Hex 2 00000100B 04 Hex 3 00000110B 06 Hex 4 00001000B 08 Hex 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 42 Printer status 1 3rd byte Bit Contents 0 1 0 0 1 lt gt command Unexecuted Executed 2 Compulsion switch Open Close 3 ONLine OFF Line ON Line OFF Line 4 Always 0 5 Coveropen Cl
87. ters are the same as those for Character table Normal Katakana 88 XIGNAddV Code Page 852 Latin 2 89 STAR Line Mode Code Page 858 Multi lingual Put gt gt 1 o OAD 5 4 3 o qc OQ cR hme o A smn Hilbouirnmre gngocos suc vA Awe HH tke ea 2 Eg 4 2 Emm 0 Co onm gt lt PN B oc NO o ew OD eH ODN Lr ID Xe YAR OW od a PAYA W 58 amp O O CO GO AN 25 sO d xd ad d ORO UR Os B 5 3 WV b G FQ 3 rnm Fu d Ho db x we Pa AL ME 00 5 S EN b 8 m WAR QHH AH N Aj a Ea 4 CEN Nl I eee Oj 2 adl lt Fa or eA ow os ave 9 ose ea DOOR RH Kd oo 4 XD BHA
88. ule 3 dots 3 Minimum module 4 dots AGOW 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 k 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 specified JAN EAN 8 k 7 or 8 The check digit at the 8th digit is automatically added and ignored even if it is specified JAN EAN 13 12 or 13 The check digit at the 13th digit is automatically added and ignored even if it is s
89. y n2 nl indicates the height magnification and n2 indicates the width magnification nl n2 0 Normal 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 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 1 31H 43 AGOW Upperlining CODE lt ESC gt n HEX 1B SF n REMARKS When the value of n is 1 overlines 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 ESC 4 HEX 34 REMARKS Prints the subsequent data including a character spacing set by lt ESC gt lt SP gt n highlighted Th
Download Pdf Manuals
Related Search
Related Contents
SCENE PILOT.cdr LCD TELEVISION - Blake Television & Video Rentals "取扱説明書" EP−ROMイレーサ取扱説明書 Copyright © All rights reserved.
Failed to retrieve file