Home
Star Micronics RS232 User's Manual
Contents
1. decimal 8 9 S E 8 E L 1L a 128 144 160 176 192 208 224 240 119 E B 129 145 161 177 193 209 225 241 2 0 g T gt 130 146 162 178 194 210 226 242 3 a 0 IL T lt 131 147 163 179 195 211 227 243 132 148 164 180 196 212 228 244 a 0 N F J 5 133 149 165 1 181 197 213 229 245 A U IT 6 134 150 166 182 F 198 214 230 246 0 T 7 135 151 167 183 199 tt 215 231 247 8 i i 3 n 9 136 152 168 184 200 216 232 248 9 0 0 3 Ir 4 137 153 169 H 185 201 217 233 249 138 154 170 186 202 218 234 250 1 5 B 139 155 171 187 203 219 235 251 m 140 156 172 188 204 220 236 252 p i 2 141 157 173 189 205 221 237 253 A P 4 1L 142 158 174 190 1 206 222 238 254 0 1 SP 143 159 175 191 207 223 239 255 68 ESC POS Mode Page 4 PC863 Canadian French D E F B Hexa decimal 240 241 92 1 76 7T 1 1 i 242 244 227 1 21 194 178 79 1 E 144 160 147 E 132 148 A gt 4 245 229 42 1 239 223 207 175 159 143 F 69 ESC POS Mode Page 5 PC865
2. decimal 8 9 B S 8 E L 1L 128 144 160 176 192 208 224 240 1 L T p 129 145 161 177 193 209 225 241 2 E 0 T gt 130 146 162 178 194 210 226 242 3 a 0 x lt 131 147 163 179 195 211 227 243 4 8 0 E gt 132 148 164 180 196 212 228 244 a 0 N F J 5 133 149 165 1 181 197 213 229 245 a 0 8 IT 6 134 150 166 182 F 198 214 230 246 C 0 n T 7 135 151 167 183 199 tt 215 231 247 8 y i 1 n 136 152 168 184 200 216 232 248 9 0 J Ir 4 137 153 169 1 185 201 21 233 249 uw 138 154 170 186 202 218 234 250 i ir 6 139 155 171 187 203 l 219 235 251 J 140 156 172 188 204 220 236 252 i 2 141 157 173 189 205 221 237 253 4 JL E 1421 5e 206 222 254 j 1 L 143 159 175 191 207 223 239 255 62 Star Mode International Character Set Ne e ca 4 2 5 gt el 20 D a 20 N O C O eC e el D 7 8 raw 8 8 wa 2 2 2 gt 25 gt D 5 lt lt lt lt lt lt lt lt w
3. Pin no Signal name Direction Function 1 STROBE IN Strobe pulse for dataread Usually HIGH goes LOW to trigger data read 2 9 DATA 1 8 IN Parallel data lines for eight bitdata HIGH is 1 LOW 15 0 10 ACK OUT Printer outputs this pulse for approxi mately 9 5 to indicate that data read is completed Printer becomes ready to receive new data at the moment the ACK pulse ends 11 BUSY OUT DC level signal indicating printer s cur rent status LOW indicates that printer is ready to receive the next data HIGH indicates that printer is unable to receive 12 PAPER OUT OUT DC level signal indicating whether printer has paper The signal stays LOW while paper is present it goes HIGH to indicate that paper has run out 13 SELECTED OUT DC level signal stays HIGH while printer is online 14 15 N C Not used 16 SIGNAL GND Signal ground 17 CHASSIS GND Printer frame ground 18 5V Outputs 5V Max 50mA 19 30 TWISTED Return pins for various signals Each pin is PAIRRETURN connected to the corresponding signal line by twisted pair line 31 RESET IN LOW level causes printer to reset its control circuitry and return to its initial state 32 ERROR OUT Goes LOW to indicate that printer is unable to print 33 EXT GND Ground terminal for external connection 34 35 N C Not used 36 Fixed HIGH at printer side 15 lt lt
4. Control codes Hexadecimal Function Page codes lt ESC gt R n 52 Select international character set 25 Select slash zero 25 lt ESC gt 1 2F 01 SESC 182000 Select normal zero 25 lt ESC gt lt 0 gt 1B 2F 00 ESC b n2 n3 n4 1B 62 nl n2 n3 n4 Select bar code printing 26 RS dl 7 ESC 1B 4D Select 12 dot pitch printing 30 lt ESC gt 1B 70 Select 14 dot pitch printing 30 ESC 1B 50 Select 15 dot pitch printing 30 lt ESC gt Select 16 dot pitch printing 30 lt ESC gt SP IB20n Set character spacing 30 SO OE Sets the printing magnified double in 31 character width lt DC4 gt 14 Resets the printing magnified in 31 character width lt ESC gt W 57 Sets the magnification rate in character width 31 lt ESC gt lt SO gt 1B Sets the printing magnified double in 31 character height lt ESC gt lt DC4 gt 1B 14 Resets the printing magnified in character 3 height ESC h n 68 Sets the magnification rate in character height 32 lt ESC gt i n1 n2 69 n1 n2 Sets the magnification rates in character 32 width and height 188081 Select underlining 32 lt ESC gt 1 1B 2D 01 82040 Cancel underlining 32 lt ESC gt lt 0 gt 1B 2D 00 set 189830 Select upperl
5. MSB LSB MSB LSB 1 d2 3 d4 5 0 46 7 38 9 10 41110 10101010 112 41310 e 111 5 416 7 18 419 20 421 22 23 eee 24 25 26 47 28 429 430 31 6 e eje eje d 33 031 035 100 0 0 0 006 437 10 05 3 41 442 443 d44 d45 d46 47 448 Dat B Dat B k decimal 6 E decimal dl 00000000 00 d2 00000000 00 d3 00011111 44 11111000 F8 45 00111111 46 11111100 47 01110111 77 48 01110111 49 11111000 F8 410 00011111 411 11111000 F8 412 00011111 413 11111000 F8 414 00011111 415 00001111 OF 416 11110000 417 00011111 418 11111000 F8 419 00011111 420 11111000 F8 d21 00111110 3E d22 01111100 7 423 00111000 38 424 00011100 1C d25 011111001 79 d26 10011110 9E d27 01110011 73 428 11001110 429 01110011 73 430 11001110 431 11111001 F9 432 10011111 9F d33 11111000 F8 d34 00011111 1F 435 11111110 436 01111111 TF 437 11111111 FF d38 111
6. Perte ederet 19 7 2 Recoverable Errors Power Lamp Flashing On Line Lamp move ooo orden 19 7 3 Fatal Error Power Lamp Flashing On Line Lamp Flashing oe ederet nens 20 7 4 Type of buzzer sound only Star mode 50ms Pi 100ms 20 8 CONTROL CODBS STAR MODEB rte retener e rhe 21 8 1 Star Mode Command Summary 21 8 2 Command 25 9 CONTROL CODES ESC POS MODE 57 10 CHARACTER CODE 59 11 AUTOMATIC CUTTER ierit lasqa de 73 1 OUTLINE The TSP200 series is ideal for printing text bar code and graphics The TSP200 series has the following features 1 extremely quiet and fast printing maximum 50 mm sec using the direct line thermal printing method 2 support many bar code types UPC A UPC E JAN EAN 8 JAN EAN 13 CODE 39 IFT 2 OF5 CODE 128 CODE 93 NW 7 3 dual interfaces RS232C Parallel 4 memory switches that enable wide selection of printer default settings The printer has two different software modes which can be selected using the DIP switch Factory setting Star Mode Star Mode DIP switch 1 7 ON This mode is compatible with Star Receipt printers such as the SP300 and SP200 series ESC POS Mode DIP switch 1 7 OFF This mode is compatible with
7. 6 PERIPHERAL UNIT DRIVE CIRCUIT A drive circuit for driving peripheral units such as cash drawers is featured on the main logic board of this printer A modular connector for driving peripheral units is featured on the output side on the drive circuit When using this circuit connect the cable for the peripheral unit Cables must be prepared by the user Use cables which meet the following specifications 1 Use the modular plug as shown in Figure 6 1 2 Separate ground wire is required for Europe only 3 Ifthe printer is to be used in Europe the noise filter should be attached to the cable as shown in Figure 6 2 CAUTION DO NOT connect any other plug to the peripheral unit connector Modular plug MOLEX 90075 0007 AMP641337 or JAPAN BURNDY B 66 4 Shield Wire lead O Separated Ground wire connected to shield Europe only Figure 6 1 Cable specifications for peripheral unit 16 Fastener One loop Ferrite core Screw M3x4 Separate ground wire Peripheral unit drive circuit connector Figure 6 2 Separate ground wire and noise filter are required for Europe 17 Drive circuit The recommended drive circuit is shown Drive output 24V max 1 0 A With shield 2 Em T TRI 3 M GND 24V lt 7824 7 T I R3 TR2 1 22 A 1 4W 5 o T M GND Peripheral un
8. The cutter operates in response to data commands To enable cutter operation set Memory Switch 2 8 to indicate that the cutter is installed 2 NEVER place fingers or metal objects in the cutter area 3 If ajam occurs in the cutter area switch off the power use tweezers to remove the jammed paper then switch the power back on The printer will return the blade to the home position 4 Never clean the cutter blade with alcohol or any other solvent as this may remove the blade s lubrication and shorten the blade life 73 MEMO P1996 11 Sit ELECTRONIC PRODUCTS DIVISION STAR MICRONICS CO LTD 536 Nanatsushinnya Shimizu Shizuoka 424 Japan Tel 0543 47 0112 Fax 0543 48 5271 OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA INC 70 D Ethel Road West Piscataway NJ 08854 U S A Tel 908 572 9512 Fax 908 572 5095 STAR MICRONICS DEUTSCHLAND GMBH WesterbachstraBe 59 D 60489 Frankfurt Germany Tel 069 789990 Fax 069 781006 STAR MICRONICS U K LTD Star House Peregrine Business Park Gomm Road High Wycombe Bucks HP13 7DL U K Tel 01494 471111 Fax 01494 473333 Printed in Japan 80872025
9. 07 n2 Define drive pulse width for peripheral 51 device 1 lt gt 07 Control peripheral device 1 51 lt FS gt 1C Control peripheral device 1 immediately 51 lt gt 19 Control peripheral device 2 immediately 51 lt SUB gt 1A Control peripheral device 2 immediately 51 Commands to Control Auto Cutter Control codes Function Page codes lt ESC gt d 0 1 64 30 lt ESC gt d 0 1B 64 00 Full cut command to the auto cutter 52 lt ESC gt 1 1B 64 31 Partial disais 52 lt ESC gt d lt I gt 1B 6401 artial cut command to the auto cutter 93 _ STAR MODE AGOW Other Commands Control codes Hexadecimal Function Page codes lt gt 18 Cancel last line amp Initialize printer 53 lt DC3 gt 13 Deselect printer 53 11 Set select mode 53 lt RS gt 1E Beep the buzzer 53 lt ESC gt n2 n3 n4 IB 23 N2C nl 2 3 n4 Set memory switch 54 lt LF gt lt NUL gt 0A 00 lt ESC gt 1B 40 Initialize printer 55 05 Enquiry 55 lt ESC gt lt LF gt lt NUL gt 1B 0A 00 Reset printer hardware 56 24 8 2 Command Specification Commands to Select Characters NITE Select international character set CODE lt ESC gt R n HX 52 m Selects an international character set according to the value of n as shown below n Character set
10. Ds Ds D bite First since the volume of data is 30 n 1 If the data m m30 is converted to hexadecimal it appears as shown below Hexa Hexa Hexa Data Binary Data Binary Data Binary decimal decimal decimal ml 00000001 01 m41 00111110 m21 00111110 m2 00011110 IE 1 22 00000010 02 22 01110 2E m3 100111110 13 00000010 02 23 00101110 2E m4 101011111 5F 14 00111110 m24 00111110 m5 00011111 IF m45 00111110 25 00101111 2F 01011110 5E 16 00101111 2F 26 00101111 2F m7 00011110 IE 17 00101111 2F 2 00111110 00111111 5 00111110 26 00111110 m9 00101111 2 9 00101110 2 29 1000000101 02 10 00111110 20 00101110 2 m30 00000010 02 Printing Sample 42 Print high density graphics CODE lt ESC gt 4 nl n2 ml m2 1B 4C nl n2 ml m2 Prints high density dot graphics The graphics image is 24 dots high and n1 n2 256 dots wide Maximum width is 576 dots ml m2 are the dot data each a 1 byte value from 0 to 255 repres
11. ITT One time n 4 mm backfeed CODE lt ESC gt n HEX IB 6A m Feeds the paper back n 4mm once only The value of n is 1 to 255 Space setting for one line is not changed This command can also feed the paper back to the page before the current page In this case the position of the line on the previous page is determined by the page length control One time n 8 mm feed CODE lt gt TP n HEX 1B 49 Performs a line feed n 8mm once only The value of n is 1 to 255 Space setting for lines is not changed AUC Set vertical tab stops CODE lt ESC gt B n2 0 IB 42 m n2 00 Cancels all current vertical tab stops and sets new vertical tab stops at lines n 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 setin terms of the current line spacing and do not move if the line spacing is changed later 39 STAR MODE AGOW RUNGE Set horizontal tab stops CODE lt ESC gt D nl 2 lt 0 gt IB 44 n n2 00 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 ta
12. Set memory switch CODE lt ESC gt N nin2n3n4 lt LF gt lt NUL gt IB 23 2C nin2n3n4 00 Set the 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 52 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 Memory switch number 0 1 2 3 4 n1n2n3n4 Mode settings For details see below 1 N 0 N nl Always 0 n2 Always 0 n3 Always 0 Default O Available Parameter Setting 0 4 Star ESC POS n4 FF command Form Feed Paper Feed Cut amp Back 2 N 1 nl Always 0 n2 Always 0 Default Available Parameter Setting 0 1 Star ESC POS n3 Zero style Normal zero Slashed zero n4 International character See below set n4 Country n4 Country n4 Country n4 Country 0 USA 3 UK 6 Italy 9 Norway 1 France 4 Denmark 1 Spain 1 A Denmark 2 2 Germany 5 Sweden Japan B Spain 2 n4 Country C Latin America 54 3 N 2 n3 Always 0 Default O Available Parameter Setting 0 1 Star ESC POS ESC 4 command C
13. Switch Contents 2 1 Print Density 22 p I 2 3 Serial I F No 6 Pin Reset Signal Enabled Disabled 2 4 Serial I F No 8 Pin Reset Signal Enabled Disabled Print Density Light Standard Somewhat Heavy Heavy 3 DISPLAY PANEL AND FUNCTIONS 3 1 LED LED Function POWER Lights up when the printer is turned on Blinks when an error occurs Refer to 7 ERRORS ON LINE Lights up when the printer is on line goes off when the printer is off line or error occurs Refer to 7 ERRORS 3 2 Switches Switch Function ON LINE Switches between on line and off line FEED Feeds the paper while pressed 3 3 Switch Operation Combined Switch Operation 1 2 lt SELF PRINTING gt FEED POWER Turn the power on while holding the FEED switch depressed Self printing will be performed VER NO Memory switch settings DIP switch settings and character order will be printed out Hexadecimal dump mode ON LINE POWER Turn the power on while holding the ON LINE switch depressed Each of the signals sent from the computer to the printer will be printed out in hexadecimal code This function allows you to check if a control code sent to the printer by the program being used is correct or not The last line is not printed if its data is less than one full line However if the ON LINE switch is pr
14. m2 m4 m6 ms 10 12 14 16 18 20 22 m24 m26 m28 m30 m32 m34 m36 m38 m40 m42 m44 m46 m48 Ignored 4 bits 48 Data Binary 21 Data Binary ml 00011000 18 m2 00000000 00 m3 00111000 38 m4 00000000 00 m5 01111000 78 m6 00000000 00 m7 00011000 18 00000000 00 9 00011000 18 10 00000000 00 11 00011000 18 12 01100000 60 13 00011000 18 14 11000000 0 15 00011001 19 16 10000000 80 17 00011011 1B 18 00000000 00 19 00000110 06 20 00000000 00 21 00001100 0C m22 00000000 00 m23 00011011 1B m24 11000000 25 00110111 37 m26 11100000 27 01100110 66 28 01100000 60 29 00000000 00 30 01100000 60 31 00000000 00 32 11000000 0 33 00000001 01 34 10000000 80 35 00000011 03 36 00000000 00 37 00000111 07 m38 11100000 EO m39 00000111 07 40 11100000 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 ESC gt 8 lt l gt lt 0 gt n HX IB 26 01 00 n lt 5 gt 42 O n HEX 26 30 n Deletes the download character which was assig
15. 3 SP SP SP SP SP SP SP SP 131 147 163 179 195 211 227 243 4 SP SP SP SP SP SP SP SP 132 148 164 180 196 212 228 244 5 SP SP 5 5 5 5 5 5 133 149 165 181 197 213 229 245 6 5 5 5 5 5 5 5 5 134 150 166 182 198 214 230 246 5 5 5 5 5 5 5 5 135 151 167 183 199 215 231 247 8 SP SP SP SP SP SP SP SP 136 152 168 184 200 216 232 248 9 SP SP SP SP SP SP SP SP 137 153 169 185 201 217 233 249 A SP SP SP SP SP SP SP SP 138 154 170 186 202 218 234 250 B SP SP SP SP SP SP SP SP 139 155 171 187 203 219 235 251 C SP SP SP SP SP SP SP SP 140 156 172 188 204 220 236 252 D SP SP SP SP SP SP SP SP 141 157 173 189 205 221 237 253 E SP SP SP SP SP SP SP SP 142 158 174 190 206 222 238 254 F SP SP SP SP SP SP SP SP 143 159 175 191 207 223 239 255 an ESC POS Mode International Character Set 35 36 64 91 92 93 94 96 1123 12411251126 U S A France 8 Germany 814181 10101 a o R England ESO br 9228 Denmark 1 E 0 Sweden 1 0 Italy 815101211 161710 10 611 Spain 1410 Xl 7 Norway 0 1 0 Denmark 2 0 p sa 11 AUTOMATIC CUTTER The TSP242 comes equipped with a guillotine type automatic paper cutter
16. 5 Approx 250 ms J LI LJ Approx 2 Sec UOU AOU L Approx 2 Sec gt lt ro Approx Approx 500 ms 500 ms Approx 125 ms Approx 125 ms Recovery Conditions Insert paper and press on line switch Insert paper and close cover Lower head and press on line switch Lower head and close cover Press on line switch and printing will continue Both lamps light when printing and power lamp flashes and on line lamp lights when on line Same as no paper Close cover and press on line switch Close cover If the blade is at the home position press the on line switch for printing to continue If the blade is not at the home position it is not a recover able error Command 19 7 3 Fatal Error Power Lamp Flashing On Line Lamp Flashing The unit will have to be repaired 7 4 Type of buzzer sound only Star mode P 50ms Pi 100ms Online Offline P 2 No Paper PPPP PPPP 3 Head Up PiPiPi Near End PP PP 5 Cover Open PPPP Cutter Error Pi PPP PPiPiP PPPPPi PiPiPiPiPi PiPiPiPiPi 7 Buzzer by command 20 8 CONTROL CODES STAR MODE 8 1 Star Mode Command Summary The details of each command are shown in the following sections Commands to Select Characters
17. bs b bi bo b7 bs b4 bs b bi bo _ _ _ 5 4 22420204 b7 bs bs b4 bs b2 bi bo b7 bs bs bs b bi bo b7 bs bs bs b2 bi bo _ _ dat _ _ _ _ _ ds _ 8 4 e 22144824 b7 be bs b4 bs b2 bi bo b7 bs bs bs b bi bo b7 bs bs bs b bi bo _ _ _ _ 47 S ETE E R b7 bs bs bs b2 bi bo b7 bs bs bs b bi bo b7 bs bs bs b2 bi bo lon dad oe 2 48 ba 2 46 L b7 bs bs b4 bs b2 bi 60 b7 bs bs bs b bi bo b7 bs bs bs b bi bo _ _ deo a de a b7 bs bs b4 bs b2 bi b7 be bs bs b bi bo b7 be bs bs b2 bi bo _ _ _ _ _ e cde l b7 bs b4 bs b2 bi b7 be bs bs b bi bo b7 bs bs bs b2 bi bo _ ds _ _ _ _ _ 2 7 82 ee b7 bs bs b4 bs b2 bi 60 b7 bs bs bs b bi bo b7 bs bs bs b2 bi bo _ _ doit _ _ _ _ 8 L 9 b7 be bs b4 bs b2 bi bo b7 bs bs bs b bi bo b7 be bs bs b bi bo _ _ dio __ 5 b7 bs bs b4 bs b2 bi bo b7 be bs bs b bi bo b7 be bs bs b2 bi bo 20 dus o dime e e _ _ b7 be bs b4 bs b2 bi bo b7 be bs bs b bi bo b7 be bs bs b bi bo _ _ _ _ 47 84 e Lc b7 bs bs b4 bs b2 bi 66 b7 bs bs bs b bi bo b7 be bs bs b2 bi bo 20 diea e b7 bs bs b4 bs b2 bi b7 be bs bs b bi bo b7 be bs bs b bi bo
18. n 6An One time n 4 mm backfeed 39 lt ESC gt T 49 One time n 8 mm feed 39 ESC n2 lt 0 gt 1 42 n2 00 Set vertical tab stops 39 ESC D n2 lt 0 gt IB 44 n1 n2 00 Set horizontal tab stops 40 2 Commands to Print Dot Graphics Control codes ESC n 0 m2 ESC L n2 Hexadecimal codes 4B n 00 ml m2 1B 4C nl n2 m1 m2 Function Print normal density graphics Page 41 mae z i Print high density graphics 43 lt ESC gt lt 0 gt 41 1B 6B n 0041 Print fine density graphics 44 lt ESC gt X n n2 m1 18 58 n2dl Print fine density graphics 47 Commands to Print Download Characters Control codes Hexadecimal Function Page codes lt gt 47 1 1 1B 2601 01n Define download character 48 lt ESC gt amp 1 1 263131 ml m2 m48 m2 48 se eee Delete a download character 49 lt ESC gt amp 1 0 IB 26 31 30n Enable download character set 49 lt ESC gt 1 1B 2501 m a0 Disable download character set 50 lt ESC gt 0 1B 25 00 Commands to Control Peripheral Devices Control codes Function Page codes lt ESC gt BEL n1 n2
19. 25H 5BH FC 25H 5 GS IDH 25H SDH RS 25H US 9 25H 5 DEL 7 5 25H 35H STAR MODE 8 0 1 Rah LS Select 12 dot pitch printing CODE lt ESC gt M HEX 1B 4D Prints 12 dot pitch characters without an extra space Select 14 dot pitch printing CODE lt ESC gt p HEX 70 Prints 12 dot pitch characters with 2 dot spacing between charac ters RUNGE Select 15 dot pitch printing CODE lt ESC gt EC 50 Prints 12 dot pitch characters with 3 dot spacing between charac ters Select 16 dot pitch printing CODE lt ESC gt HEX 1B Prints 12 dot pitch characters with 4 dot spacing between charac ters Set the character spacing CODE SP n HX 20 Sets the space between characters to n dots where n is a number from 0 to 15 When the value of is 0 to 9 0 00H to 9 09H or 0 30 to 9 39H can be set When the value of is 10 to 15 10 0AH to 15 0 or 41 to F 46H can be set 30 Sets the printing magnified double in character width CODE lt SO gt HEX OE Prints the subsequent data including a character spacing set by lt ESC gt lt SP gt n magnified double in character width HIE Resets the printing magnified in character width CODE lt DC4 gt HEX 14 Resets the printing magnified in ch
20. Jot eru v e Ql Hg e r uw LE GE lt H E Eso EE HE 9 gt E g lt 5 5 gt 8 lt 4 2 s c 1 D E 21 nc 63 ESC POS Mode D p 3 3 0 lt NUL gt DLE SP 0 0 16 32 48 64 80 96 112 1 lt XON gt 1 q 1 17 33 49 65 81 97 113 2 2 r 2 18 34 50 66 82 98 114 lt XOFF gt 3 5 3 3 19 35 51 67 83 99 115 4 4 4 20 36 52 68 84 100 116 5 lt ENQ gt 5 u 5 21 37 53 69 85 101 117 6 amp 6 V 6 22 38 54 70 86 102 118 7 W 7 7 23 39 55 71 87 103 119 8 8 X 8 24 40 56 72 88 104 120 9 lt HT gt 9 y 9 25 41 57 73 89 105 121 qr Z A 10 26 42 58 74 90 106 122 B SC 11 27 43 59 75 91 107 123 FP lt 12 28 44 60 76 92 108 124 D lt GS gt 13 29 45 61 17 93 109 125 gt E 14 30 46 62 78 94 110 126 SP 15 31 47 63 79 95 111 127 64 ESC P
21. 243 4 5 i 4 F L I 132 148 164 180 196 212 228 244 5 a N Q 4 1 133 149 165 181 197 213 229 245 6 0 i n L I 134 150 166 182 198 214 230 246 7 f 1 E gt 135 151 167 183 199 215 231 247 8 o m 136 152 168 184 200 216 232 248 137 153 169 185 201 217 233 249 N 0 A TL L 138 154 170 186 202 218 234 250 B I 0 139 155 171 187 203 219 235 251 T Y 5 0 1 II 140 156 172 188 204 220 236 252 1 0 8 _ D 141 157 173 189 205 221 237 253 A 1 142 158 174 190 206 222 238 254 F x 143 159 175 191 207 223 239 255 60 Star Mode Character table katakana 44 46 40 242 43 2 241 2 2 24 2 25 5 5 12 TRI ISI 181127 18 a a a N a iD e 5 D N N lt N N N N o e 2 T lt A a a es 5 a e e 5 1 2 2 226 227 229 230 37 239 222 211 212 213 214 ETE 193 209 178 210 196 197 198 05 181 179 177 162 A 147 163 166 181 133 9 5 decimal 61 Star Mode Character table IBM Hexa
22. Memory SW 4 4 1 0 From when the power BUSY BUSY is turned on or I F reset until communication possible Test printing Cover open Paper feed by paper feed switch Stop due to no paper During waiting for switch input in macro execution 7 Other errors BUSY 8 Receiving buffer full BUSY BUSY Printer Status 2 XON XOFF Communication mode Indicates when printer can receive data from host This is space except for the following 1 After reset until communication possible 2 During test printing Signal name Direction Function Star mode Data terminal ready signal When the printer is ready to receive data this signal changes to SPACE Signal ground Signal line that indicates whether the host can receive data Space Host can receive data Mark Host cannot receive data Does not confirm the status of this signal in XON XOFF communication or STAR mode This signal line can be used as an external reset signal by setting the DIP switches A pulse width of 1 ms or more mark state activates reset Same as DTR signal This signal line can be used as an external reset signal by setting the DIP switches A pulse width of 1 ms or more space state activates reset In the Star mode the printer will enter the mark state during the following errors no paper head up cutter error In ESC POS mode this is normal
23. _ _ dint e b7 bs bs b4 bs b2 bi b7 be bs bs b2 bi bo b7 bs bs bs b2 bi bo _ _ dina _ _ _ e e _ _ _ b7 be bs b4 bs b2 bi bo b7 bs bs bs b bi bo b7 bs bs bs b bi bo _ _ dia _ _ b7 bs bs b4 bs b2 bi b7 bs bs bs b bi bo b7 bs bs bs b2 bi bo 20 e i b7 be bs b4 bs b2 bi bo b7 be bs bs b bi bo b7 bs bs bs b bi bo _ _ dist _ _ 4 e 22490204 b7 bs bs b4 bs b2 bi 66 b7 be bs bs b2 bi bo b7 be bs bs b2 bi bo _ _ dea _ e L d4m _ _ b7 bs bs b4 bs b gt 2 bi bo b7 bs bs bs b bi bo b7 be bs bs b bi bo _ _ don 0 _ door _ s u e b7 bs bs b4 bs b2 bi bo b7 bs bs bs b2 bi bo b7 bs bs bs b2 bi bo _ _ a 11 0 2 b7 be bs b4 bs b2 bi bo b7 bs bs bs b bi bo b7 bs bs bs b bi bo 1 e dan 4 b7 bs bs b4 bs b2 bi 66 bs bs bs b bi bo b7 bs bs bs 62 bi bo _ _ dant _ _ _ e 02048021 b7 bs b4 bs b2 bi bo b7 be bs bs b bi bo b7 bs bs bs b2 bi bo 45 STAR MODE 15 EXAMPLE Printing Sample
24. lines at the current line spacing where n is between 0 and 127 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 NINE Cancel bottom margin CODE lt ESC gt O HX IB ar Cancels the bottom margin 35 STAR MODE AGOW YVLS Set left margin CODE lt ESC gt I HEX IB 6C m 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 ANNAN Sct right margin CODE lt ESC gt Q n HX IB 5 m 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 column is beyond the right edge of the printing area Setting is invalid if the printing area for one line would be 36mm or less 36 Commands to Move the Print Position Line feed lt LF gt HX Prints the current line and feeds the paper to the next line Carriage return CR HEX Prints the current line and feeds the paper to the next line This command is ignored when CR code is invalid Feed paper n lines CODE lt ESC gt a n HEX IB 61 nm Prints the current line and feeds the paper n lin
25. the last 256 bytes of data it sets DTR back to SPACE to indicate that it is ready to receive more data Data buffer full Nearly full Nearly empty Empty remaining DTR MARK SPACE 16 bytes when the buffer size is set to 45 bytes 10 Error Condition Upon detecting an error the printer immediately sets DTR to MARK and goes offline If the error was caused by a paper out condition you can clear it by loading new paper and then pressing the ON LINE switch Star mode or closing the cover ESC POS mode When paper is out sd j gt OFF LINE ON LINE DTR Press the ON LINE switch after loading paper Star mode PAPER OUT signal Power ON T 4 5 2 mode This mode is accessed when DIP switch 1 6 is set to OFF X OFF X OFF X ON X OFF X OFF X ON X OFF X OFF X ON TXD pa L pa Printing lt PAPER OUT lt TJT signal ON ON LINE indicator OFF Power ON Paper out Load paper and press the ON LINE switch Star mode Immediately after power on provided that no error occurs the printer informs the host that it is ready to receive data by outputting the X ON signal control code value 11H over the TXD line If necessary the printer repeats the signal every three seconds until the host begins sending
26. w 1D 77 Set lateral size of bar code 58 10 CHARACTER CODE TABLES Star Mode dae 1 2 3 4 5 ecimal 0 lt NUL gt SP 0 P 0 16 32 48 64 80 96 112 1 lt DC1 gt 1 0 1 17 33 49 65 81 97 113 2 lt DC2 gt 2 B R 2 18 34 50 66 82 98 114 3 lt DC3 gt 3 C 5 3 19 35 51 67 83 99 115 4 lt DC4 gt 4 D T 4 20 36 52 68 84 100 116 5 lt ENQ gt 5 E U 5 21 37 53 69 85 101 117 6 amp 6 F 6 22 38 54 70 86 102 118 lt BEL gt 7 W 7 23 39 55 71 87 103 119 8 8 H 8 24 40 56 12 88 104 120 9 lt HT gt 9 M 9 25 41 5 13 89 105 121 A 508 Z 10 26 42 58 74 90 106 122 B T lt ESC gt 1 27 43 59 75 91 107 123 FF L 12 28 44 60 76 92 108 124 CR M 13 29 45 61 17 93 109 125 0 lt RS gt gt N S E 14 30 46 62 78 94 110 126 F SI 0 15 31 47 63 79 95 111 127 59 Star Mode Character table Normal Hexa decimal 8 9 B 0 4 a T 128 144 160 176 192 208 224 240 1 0 T 129 145 161 177 193 209 225 241 2 0 0 3 130 146 162 178 194 210 226 242 3 5 C 131 147 163 179 195 21 227
27. 00101111 2 010111101 5 16 00101111 2 26 00101111 2 00011110 IE 171 00101111 2 27 00111110 00111111 18 00111110 28 00111110 m9 00101111 2F 19100101110 2E m29 00000010 02 10 00111110 20 00101110 2 30 00000010 02 2 m3 m4 m5 7 Horizontal density is three times that of the bit image for lt ESC gt k Compare the print samples Printing Sample Print fine density bit image CODE lt ESC gt 7 n 0 dl dk 2 n 24 HX 6B n 00 dl dk k n 24 Prints a bit image using horizontal dot and 1 vertical dot for 1 dot of input data n is designated by the number of data bytes in the horizontal direction and n must be within the range 1 to 72 The data is ignored if it is longer than 72 digits or goes beyond the right margin Relationship between the input data and actual printing is shown below 44 Relationship between image data and print dots Image data 7 b5 b4 b3 2 b1 Dot position deca ras 0 8 b7 bs bs b4 bs b2 bi b7 bs bs bs b bi bo b7 bs bs bs b2 bi bo _ _ 0 2011 e e e _ _ b7 be bs b4 bs b2 bi bo b7 bs bs
28. 11111 FF d39 11111111 FF d40 11111111 FF 441 00000000 00 442 00000000 00 443 00000000 00 444 00000000 00 445 00000000 00 446 00000000 00 447 00000000 00 448 00000000 00 46 Print fine density graphics CODE lt ESC gt X nl n2 41 4 nl n2 256 3 HEX 1B 5 n2 dl d n12 n2 256 3 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 1 lt nl n2 256 lt 576 MSB LSB MSB LSB MSB LSB 22 el eT pe 0 47 JdONW Rah LS Commands to Print Download Characters SITAM Define download character CODE lt 5 gt 47 lt I gt lt I gt n ml m m48 HEX 1B 26 01 01 ml m2 m48 CODE 5 amp quo 2 n ml m2 m48 HX 1B 26 31 31 n ml m2 m48 Defines one new character and stores it in RAM for later use n 18 the character code of the character defined and must be between 32 and 127 Ifthe maximum of 32 external characters have already been stored the oldest stored external character are deleted so that new external character can be stored The character matrix is 12 dots wide and 24 dots high Relationship between the character pattern and the character data 1s shown below EXAMPLE MSB LSB MSB LSB
29. 5C Designate relative position ESCa IB 61 Align position ESC c4 IB 63 34 Select no valid paper detector at print stop ESC c5 IB 63 35 Enable disable panel switch ESCd 64 Print and paper feed lines ESCi IB 69 Partial cut one section remaining ESC p IB 70 Designate pulse generation ESCt IB 74 Select character code table 57 ESC POS 504 053 Control Code Hexadecimal Code Function ESC u IB 75 Transmission of peripheral equipment status ESC v IB 76 Transmission of paper detection status ESC IB 7B Designate cancel inverted printing GS ID 21 Designate character size GS ID 24 Designate absolute position of vertical direction of characters in page mode GS 1D 2A Define download bit image GS 1D 2F Print download bit image GS 1D 3A Start finish macro definition GS ID 42 Designate cancel reverse printing GSH ID 48 Select print position of HRI characters GSI 1D 49 Printer ID transmission GSL ID 4C Set left margin GSP ID 50 Set basic calculated pitch GSV ID 56 Paper cut GSW ID 57 Set print range GS ID 5 Designate the relative position of vertical characters when printing in the page mode GS ID 5E Execute macro GSa ID 61 Enable disable automatic status transmission GSf ID 66 Select HRI character font GSh ID 68 Set bar code height GSk 1D 6B Printing of bar code GSr 1D 72 Transmission of status GS
30. 9 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 STAR MODE AGOW 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 0 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 of kis 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 7 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 lt LF gt is used ina command some kinds of control code cannot be sent by the host PC The control code should be sent as the data
31. Nordic Hexa decimal 8 9 S E 8 E L 1L 128 144 160 176 192 208 224 240 1 L F p 129 145 161 177 193 209 225 241 2 E 0 T gt 130 146 162 178 194 210 226 242 3 a 0 LL T lt 131 147 163 179 195 211 227 243 NEL 132 148 164 180 196 212 228 244 a 0 N F J 5 133 149 165 1 181 197 213 229 245 a 0 8 IT 6 134 150 166 182 F 198 214 230 246 C 0 n T 7 135 151 167 183 199 H 215 231 247 8 y i 1 n 136 152 168 184 200 216 232 248 9 0 4 4 137 153 169 H 185 201 217 233 249 138 154 170 186 202 218 234 250 0 1 1 0 139 155 171 187 203 219 235 251 el P are 140 156 172 188 204 220 236 252 D i 0 i 2 141 157 173 189 205 221 237 253 A 4 JL E 58 f 190 206 22 F A f 1 1 SP 143 159 175 191 207 223 239 255 70 ESC POS Mode Page 255 Space Page ama 8 9 C D 0 SP SP SP SP SP SP SP SP 128 144 160 176 192 208 224 240 1 SP 5 5 5 5 5 5 5 129 145 161 177 193 209 225 241 2 SP SP SP SP SP SP SP SP 130 146 162 178 194 210 226 242
32. OS Mode Page 0 PC437 USA Standard Europe Hexa decimal 8 9 A B S E 8 H L 1L 7 128 144 160 176 192 208 224 240 1 n B 129 145 161 177 193 209 225 241 2 E 0 T 130 146 162 178 194 210 226 242 3 a 0 LL T lt 131 147 163 179 195 211 227 243 4 8 0 E 132 148 164 180 196 217 228 244 a 0 N F J 5 133 149 165 1 181 197 213 229 245 0 6 134 150 166 182 F 198 214 230 246 0 T 7 135 151 167 183 tt 215 231 247 8 y i 1 Tm 136 152 168 184 200 216 232 248 9 0 1 Ir 4 137 153 169 H 185 201 217 233 249 A 138 154 170 186 202 218 234 250 B ir 2 139 155 171 187 203 219 235 251 h 4 140 156 172 188 204 220 236 252 i 2 141 157 173 189 205 221 237 253 A R lt 4 JL 142 158 174 130 2 222 238 254 1 1 SP 143 159 175 191 207 223 239 255 065 ESC POS Mode Page 1 Katakana Hexa decimal EA 222 238 254 66 ESC POS Mode Page 2 PC850 Multilingual Hexa ama 8 A 0 aL 25 237 253 238 254 2672 ESC POS Mode Page 3 PC860 Portuguese Hexa
33. Thermal Printer TSP200 Series Programmer s Manual TABLE OF CONTENTS L OUTDPEINE ul E 1 2 MEMORY SWITCH AND DIP SWITCH m 2 2 1 Memory Switch ie ta ere 2 2 2 DIP Switch i ient er idee e 2 3 DISPLAY PANEL AND FUNCTIONS err 4 B 4 4 3 3 Switch Operation Combined Switch Operation 4 2 ir 5 4 1 Interface Specifications 5 4 2 Int rfac Circuit meer reete etos 6 4 2 1 5 232 Interface teneret ten nies 6 4 3 Connectors and Signal Names 7 4 3 1 RS 232C Interface tenebo eere ette ete 7 4 4 Interface 9 irure M 10 4 5 1 DER mod rer cd i Pn eee es 10 4 5 2 X ON X OFF mode eese 12 5 PARALLEL INTERFACE errata rte near enn 13 3 1 Interface Specifications eerte 13 5 2 Interface Timing ennt tione 13 5 3 Connectors and Signal Names 14 6 PERIPHERAL UNIT DRIVE CIRCUIT nr 16 TERRORS i Ree qn 19 7 1 Automatic Recovery Power Lamp Flashing On Line
34. aracter width set by lt SO gt ESC W n and 5 17 2 Sets the magnification rate in character width CODE lt 5 gt W n HX IB 57 Prints the subsequent data including a character spacing set by lt ESC gt lt SP gt n magnifiedin character width by a rate specified by the value of n n Character width n Character width 0 Unmagnify 3 Quadruple 1 Double 4 Quintuple 2 Triple 5 Sextuple The value of n can be set to 0 00 to 5 05H or 0 30 to 5 35 Sets the printing magnified double in character height CODE lt ESC gt 50 1B Prints the subsequent data magnified double in character height Resets the printing magnified in character height CODE lt ESC gt lt DC4 gt HEX IB 14 Resets the printing magnified in character height set by lt ESC gt lt SO gt lt 5 gt 7 and 5 17 2 31 STAR MODE Tea Sets the magnification rate in character height lt ESC gt h HEX__ IB 68 n Prints the subsequent data magnified in character height by a rate specified by the value of n n Character height n Character height 0 Unmagnify 3 Quadruple 1 Double 4 Quintuple 2 Triple 5 Sextuple The value of n can be set to 0 00 to 5 05H or 0 to 5 35 lt ESC gt i HX IB 69 AGOW Sets the magnification rates in character width and
35. as shown below When sending the following data express as a set of two characters Express 25H as 0 25H30H Add 40H after for the control codes Express the control code 7FH as 5 25H35H Add 1 4 31H 34H after for the function code Add 6 8 36H 38H after for the start code 28 3 2 character codes Control codes Special code 29 Xp CODE FORMAT CODE FORMAT NUL 00H 25H 40H 25H 0 25H 30H SOH A 25H 41H STX 02H B 25H 42H ETX 03H C 25H 43H Function codes EOT 04H D 25H 44H CODE FORMAT ENQ 05H E 25H 45H FNCI 961 25H ACK 06H F 25H 46H FNC2 2 25H 32H BEL 07H G 25H 47H FNC3 3 25H 33H BS 08H H 25H 48H FNC4 4 25H HT 09H 91 25H 49H OAH 9 25H 4AH VT OBH K 25H 4BH Start codes FF L 25H 4CH CODE FORMAT CR M 25H 4DH START A 906 25H 36H SO N 25H 4 START B 7 25H 37H SI OFH 25H 908 25H 38H DLE 10H P 25H 50H DOL IH op eeu xod SUM For CODE 128 only DC2 12H R 25H 52H DC3 13H S 25H 53H 14H T 25H 54H 15H U 25H 55H SYN 16H V 25H 56H ETB 17H W 25H 57H CAN 18H X 25H 58H EM 19H Y 25H 59H SUB AH Z 25H SAH ESC
36. b 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 40 Commands to Print Dot Graphics UNO Print normal density graphics CODE lt ESC gt n 0 ml m2 HEX IB B 00 ml m2 Prints normal density dot graphics The graphics image is 24 dots high and n x 3 dots wide Maximum width is 576 dots 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 Dots beyond the right margin are ignored Relationship between image data and print dots MSB Image data LSB 123 OOO 990000002000 002000 41 EXAMPLE We will create the design below using a bit image m2 m3 m4 m5 m6 m7 m8 m9 mio m11 fm12 m13 m14 m15 m16 m17 m18 m19 m20 m21 22 m23 m24 m25 m26 m27 m28 m29 030 Ds D e De e Ds e e
37. character spacing set by lt ESC gt lt SP gt n reversed The part to be skipped by the horizontal tab setting is not reversed Cancel highlight printing lt ESC gt 5 HX IB 35 Cancels highlight printing Inverted printing CODE lt SI gt HX OF Causes subsequent characters to be inverted Cancel inverted printing CODE HEX 12 Cancels inverted printing 33 STAR MODE AGOW YVLS UNM Select emphasized printing CODE ESC E HEX 1B 45 CODE lt ESC gt G HEX 18 47 Causes subsequent characters to be emphasized Cancel emphasized printing CODE lt ESC gt HEX IB 46 CODE lt ESC gt HEX IB 48 Cancels emphasized printing 34 Commands to Set the Page Format oct page length in lines CODE lt ESC gt n HEX 1 43 Sets the page length using the current line spacing where n 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 Default page length is 42 lines mem oct page length in inches CODE lt 5 gt C 05 n HEX 43 00 m Sets the page length to n x 24 mm where n is between 1 and 22 The current line becomes the top of the page Resets the bottom margin mea Set bottom margin CODE lt ESC gt N n HX 1B 4E m Sets the bottom margin to
38. enting 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 Dots beyond the right margin are ignored Relationship between image data and print dots MSB Image data LSB 43 AGOW YVLS EXAMPLE We will create the design below using a bit image al m2 m3 m4 m5 m6 m7 m8 m9 mi0f m11 m12 m13 4 m15 17 m18 m19 m20 m21 m22 m23 m24 m25 m26 m27 m28 m29 m30 Ds D7 e e Ds e eee Ds 000 0 e e e Ds D3 D2 Di First since the volume of data is 30 n 1 If the data m m30 is converted to hexadecimal it appears as shown below Hexa Hexa Hexa Data Binary Data Binary 1 Binary decimal 00000001 01 11 00111110 m21 00111110 00011110 IE 21 00000010 02 22 00101110 2E 00111110 13 00000010 02 23 00101110 2E 01011111 SF 1 41 00111110 24 00111110 00011111 IF 151 00111110 25
39. es where n is between 1 and 127 Form feed CODE lt FF gt HEX oc Feeds the paper to the top of the next page according to the page length set by lt ESC gt C n or lt ESC gt C lt 0 gt n when memory switch 1 2issettoO0 If memory switch 1 2 is setto 1 the paper is fed 18 mm cut fully and then feed back 18 mm The print position is at the left margin in both cases Horizontal tab CODE lt HT gt HX 0 Moves the print position to the next horizontal tab stop Ignored if there is no next horizontal tab stop on the current line 37 STAR MODE AGOW YVLS Vertical tab CODE VT HEX Prints the current line and feeds the paper to the next vertical tab stop and moves the print position to the left margin Performs paper feed if no vertical tabs are set or if the current line is at or below the last vertical tab stop Set line spacing to 4 mm CODE lt ESC gt z or lt 5 gt z IB 31 or 1B 7A 01 Sets the distance the paper advances in subsequent line feeds to 4 mm Set line spacing to 3 mm CODE lt ESC gt 0 HEX 1B 30 Sets the distance the paper advances in subsequent line feeds to 3mm One time n 4 mm feed CODE lt ESC gt J n HX IB 4A n Performs a line feed of n 4mm once only The value of n is 1 to 255 Space setting for lines is not changed 38
40. essed to set the off line mode the last line will be printed To turn off the mode it is necessary to turn off the printer completely 4 SERIAL INTERFACE 4 1 Interface Specifications Transmission type Asynchronous serial interface Baud rate bps 2400 4800 9600 or 19200 Selected by DIP switch Word format Start Dit i e 1 Data bits 7 or 8 Selected by DIP switch au a au quya uy Odd Even or None Selected by DIP switch Stop 1 Signal polarities 5 232 Mark Logic 1 3 to 15 Space Logic 0 43 to 15V Handshaking DTR or XON XOFF mode Selected by DIP switch Mark 1 Jelo A Start bit B Data bits C Vertical parity bit D Stop bit 4 2 Interface Circuit 4 2 1 RS 232C Interface Input RXD DSR Printer Host computer Output DTR FAULT TXD RTS Printer Host computer 75188 or equivalent 4 3 Connectors and Signal Names 4 3 1 RS 232C Interface Pin No Signal name Direction Function Frame ground IN Receiving data Transmission data ESC POS mode 1 DTR DSR communication mode Indicates if printer is busy or not Space Printer ready Mark Printer busy The conditions for busy will vary according to the memory switch settings
41. fter execution of command The value of n2 can be set to 1 01H to 4 04H or 1 31H to 4 34H n3 Mode of bar code UPC E UPC A JAN EAN 8 JAN EAN 13 CODE 128 CODE 93 1 Minimum module 2 dots 2 Minimum module 3 dots 3 Minimum module 4 dots 26 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 the value of 3 is UPC E UPC A JAN EAN 8 JAN EAN 13 CODE128 CODE93 1 01H to 3 03H or 17 31 to be set When the value of n3 is CODE39 NW 7 or ITF 1 01H to 9 09H or 1 31H to 9 9 can be set n4 Height of bar code 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 di dk Bar code data UPC E 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 K 12 or 13 The check digit at the 13th digit is automatically added and ignored even if it is specified CODE3
42. height 2 2 Prints the subsequent data in the size specified by n2 nl indicates the height magnification and n2 indicates the width magnification nl 2 0 1 2 3 4 5 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 Sextuple height or width size The values of nl n2 are 0 00 to 5 05H or to 5 35 Underlining CODE lt ESC gt HEX 1B 2D n When the value of n 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 n is 0 The value of n can be set to 0 00H or 0 30H or 1 01H or 31H 32 Upperining CODE lt ESC gt HX IB 5 n When the value of 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 0 30H or 1 01H or 1 31H AO Select highlight printing CODE lt ESC gt 4 HEX 1B 34 Prints the subsequent data including a
43. ining 33 ESC lt 1 gt 1B 5F 01 _ 0 1B 5F 30 im Cancel upperlining 33 ESC 0 1B 5F 00 STAR MODE AGOW YVLS Hexadecimal Control codes codes Function Page lt ESC gt 4 1B 34 Select highlight printing 33 lt ESC gt 5 1B 35 Cancel highlight printing 33 SD OF Inverted printing 33 lt DC2 gt 12 Cancel inverted printing 33 sper E IB Select emphasized printing 34 5 1 47 a 2 Cancel emphasized printing 34 Commands to Set the Page Format Control codes 2 Function Page lt gt n 43 Set page length in lines 35 lt ESC gt lt 0 gt 1B 43 00 Set page length in inches 35 ESC N n IB Set bottom margin 35 lt ESC gt O 4F Cancel bottom margin 35 lt ESC gt I n 6C n Set left margin 36 ESC Q IB51n Set right margin 36 Commands to Move the Print Position Control codes Hexadecimal Function Paee codes lt LF gt OA Line feed 37 lt CR gt 0 Carriage Return 37 lt ESC gt a n 61 Feed paper lines 37 lt FF gt 0C Form feed 37 HT 09 Horizontal tab 37 VT OB Vertical tab 38 po e 2 Set line spacing to 4 mm 38 lt ESC gt 0 1B 30 Set line spacing to 3 mm 38 lt ESC gt J One time n 4 mm feed 38 lt ESC gt j
44. it 2 5V Compulsion switch RI 6 pd TR3 R2 1 Frame ground NOTES 1 Peripheral units 1 and 2 cannot be driven simultaneously When driving a device continuously do not use drive duty above 20 2 Compulsion switch status is available as status data Resistance for coils L1 and L2 is not less than 24 ohms 4 Absolute maximum ratings for diodes D1 and D2 at Ta 25 C Average rectified current Io 1A Maximum forward surge current 60Hz 1 cycle sine wave Irsm 40A 5 Absolute maximum rating for transistors TR1 and TR2 at Ta 25 C Collector current Ic 2A gt 18 ERRORS The various types of errors can be identified by the buzzer s sound and the lit LEDs Buzzer The circled numbers refer to 7 4 Type of buzzer sound 7 1 Automatic Recovery Power Lamp Flashing On Line Lamp On Error Description Power Lamp Flashing Pattern Recovery Conditions Abnormal head temperature Approx 1 Sec Approx 1 Sec j Automatic recovery after head temperature lowers 7 2 Recoverable Errors Power Lamp Flashing On Line Lamp Off upper Star mode lower ESC POS mode Error Description No paper Head up Paper near end of roll Cover is open Error during paper cutting Power Lamp Flashing Pattern Approx 1 Sec Approx 1 Sec L 250
45. l cut command to the auto cutter CODE lt ESC gt d 0 lt ESC gt d 0 HEX IB 64 30 or 64 00 Cuts the paper fully when memory switch 2 is set to 0 If memory switch 2 C is set to 1 the paper is fed to 18 mm and cut fully When auto cutter is invalid this command is not valid Partial cut command to the auto cutter CODE lt ESC gt d or lt ESC gt d lt I gt HX IB 64 31 or IB 64 01 Cuts the paper partially when memory switch 2 C is set to 0 If memory switch 2 C is set to 1 the paper is fed to 18 mm and cut partially 52 Other Commands Mee Cancel last line amp Initialize printer CODE lt CAN gt HEX 1 18 Clears the line buffer and initializes the commands set already Does not affect the external equipment drive conditions set by the code lt 5 gt BEL n1 n2 This is the same during a mechanical error Line buffer means the print data expansion area Deselect printer CODE lt DC3 gt HEX 13 Deselects the printer The printer disregards all subsequent char acters and commands except lt DC1 gt which activates the printer Set select mode CODE HX IDH When the printer receives a lt DC1 gt code the deselect mode is canceled and data following this code is input to the buffer NINE the buzzer CODE lt RS gt IE Sounds a brief beep tone 53 STAR MODE AGOW
46. ly space 4 4 Interface Connections Refer to the host computer s interface specifications for details of how to connect the interface The following illustrations show typical connection configura tions RS 232C Printer side IBM PC side 25 pin F GND O 1 F GND RXD 2 TXD TXD 3 RXD DTR 4 RTS S GND 5 CTS DSR DSR RTS 7 S GND INIT 8 DCD FAULT 1 2 DTR Printer side IBM PC side 9 pin F GND em 1 DCD RXD 20 2 RXD TXD TXD DTR DTR S GND S GND DSR DSR RTS RTS INIT CTS FAULT 4 5 Data Protocol 4 5 1 DTR mode This mode is accessed when the DIP switch 1 6 is set to ON Signals are controlled using the DTR line as a BUSY flag RXD Data Data Data Buffer full 2 Buffer empty pi L T Printing I Power ON Immediately after power on provided that no error occurs the printer sets DTR to SPACE to indicate that it is ready to receive data When the host detects that DTR is in SPACE condition it begins sending text data over the RXD line When the printer s remaining buffer space falls to 256 bytes or less the printer sets DTR to MARK The host responds by halting the data transfer However note that the printer remains capable of receiving data until the buffer becomes full Available buffer space increases as the printer prints the buffered data When the printer has cleared all but
47. n Character set 0 U S A 7 Spain I 1 France 8 Japan 2 Germany 9 Norway 3 England 10 Denmark II 4 Denmark I 11 Spain II 5 Sweden 12 Latin America 6 Italy When the value of is 0 to 9 0 00H to 9 09H or 0 30H to 9 39 can be set When the value of is 10 to 12 10 0AH to 12 0CH or 41 to 43 can be set GITEN Select zero style CODE lt 5 gt P n HEX 2F m Causes subsequent zero characters to be printed with a slash when n is 1 and without a slash when 180 The value of n can be set to 0 00 or 0 30H or 1 01H or 31H 25 STAR MODE AGOW YVLS Select bar code printing CODE lt ESC gt b nl n2 n3 n4 di dk lt RS gt HEX 1B 62 nl n2 n3 n4 di T dk 1E Prints bar code according to the value of n as shown below nl Type of bar code 0 8 UPC E UPC A JAN EAN 8 JAN EAN 13 CODE 39 ITF CODE 128 CODE 93 NW 7 The value of n can be set to 0 00H or 8 08H or to 8 38H n2 Printing character below bar code or line feed 1 2 3 4 Character below bar code is not printed Line feed is performed after execution of command Character below bar code is printed Line feed is performed after execution of command Character below bar code is not printed Line feed is not performed after execution of command Character below bar code is printed Line feed is not performed a
48. ned the value n NITE Enable download character set CODE lt ESC gt 967 17 or lt 5 gt lt gt HEX IB 25 or 25 Ol Enables the download character set 49 STAR MODE AGOW YVLS Disable download character set CODE lt ESC gt 967 0 lt 5 gt HEX IB 25 30 or IB 25 00 Disables the selected download character set and returns to the built in ROM character set 50 Commands to Control Peripheral Devices Define drive pulse width for peripheral device 1 CODE lt ESC gt lt BEL gt n n2 HEX 07 m m Defines the drive pulse width for peripheral devices requiring other than standard 200 ms pulse time and delay time nl indicates the energizing time and 2 indicates the delay time using 10ms units Control peripheral device 1 lt BEL gt HX 07 Executes drive pulse for peripheral device 1 Control peripheral device 1 immediately CODE FS HX Executes drive pulse for peripheral device 1 immediately Mee Control peripheral device 2 immediately 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 immediately CODE lt SUB gt HX 1A Drives peripheral device 2 The drive pulse width and delay time are fixed at 200 ms 51 STAR MODE AGOW YVLS Commands to Control Auto Cutter dI Fu
49. text data over the RXD line When the printer s remaining buffer space falls to 256 bytes or less the printer begins to output X OFF signals DC3 value 13H over the TXD line The host responds by halting the data transfer Note that the printer remains capable of receiving data until the buffer becomes full Available buffer space increases as the printer prints the buffered data When the printer has cleared all but the last 256 bytes of data it again outputs the X ON signal Data buffer full Nearly full Nearly empty Empty 256 bytes remaining Printer outputs Pinter outputs X OFF X ON 16 bytes when the buffer size is set to 45 bytes 12 5 PARALLEL INTERFACE 5 1 Interface Specifications Interface Conforms with Centronics parallel interface standard Data transfer speed 1000 5000 CPS Synchronization External strobe pulse Handshaking Using ACK and BUSY Logic level TTL level compatible E tc 5 2 Interface Timing ACK DATA STROBE BUSY dl T At least 0 5ms 13 Signal Name Sample Circuit DATA 1 74LS equivalent DATA 8 gt 74LS equivalent STROBE 100 1000pF 1911 74LS equivalent lt 5 3 Connectors and Signal Names 18 1 Conforms to Amphenol connector 57 30360 36 Printer Side 19 Figure 5 1 Parallel Interface Connector 14
50. the printers supporting ESC POS command ESC POS is a trademark of Seiko Epson Corporation Forimprovement purposes the descriptions and specifications in this manual are subject to change without notice 2 MEMORY SWITCH AND DIP SWITCH Functional settings are made using the printer s EEPROM memory switches and the DIP switches 2 1 Memory Switch Each memory switch is a 16 bit word stored in EEPROM The printer is shipped with the factory setting which is made in accordance with its product type For the detailed functions and the settings of the Memory switches please refer to Chapter 8 The factory settings are shown in the table below Memory switch TSP212 TSP242 0 0000 0000 1 0000 0000 2 0000 0100 3 0000 0000 4 0000 0000 2 2 DIP Switch Be sure to turn off the power of the printer before changing the setting of the DIP switches Power off DIP switch ON 1 8 1 4 122 DIP switch 1 DIP switch 2 DIP switch array DIP switch 1 The factory settings of DIP switch 1 are all on Contents Baud Rate Data Length 8 bit 7 bit Parity Check Disabled Enabled Parity Selection Odd Even Handshake DTR XON XOFF Operating Mode Star ESC POS Interface RS232C Parallel Baud Rate 2400BPS 4800BPS 9600 5 19200 5 DIP Switch 2 Factory settings 2 1 and 2 2 are on 2 3 and 2 4 are off
51. ut Paper feed amp cut n2 Cutter Invalid Valid Q 5 212 TSP242 n4 Paper near end Invalid Valid Q 4 N23 nl Always 0 Default Q Available Parameter Setting 0 1 2 3 Star ESC POS n2 Character table Normal Katakana IBM n3 Print column 48 38 n4 CR code Invalid Invalid Same as Same as LF Line feed mm 4 3 4 3 5 N 4 nl Always 0 Default O Available Parameter Setting 0 1 Star ESC POS n2 Buffer size 4 Kbytes 45 bytes n3 Busy conditions See 4 3 1 RS 232C 4 Data receive error Print Ignore Initialize printer CODE lt ESC gt HEX 18 40 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 Enquiry lt gt HE 05 Causes the printer to transmit a status byte 55 STAR MODE AGOW YVLS Status byte b7 b6 55 b4 50 et at 0 TTS Ma Reset the printer hardware CODE lt ESC gt 527 lt LF gt lt NUL gt 1B 3F OA Resets the printer hardware HEX 00 56 Vertical Parity error 1 error Framing error error Mechanical error error Paper empty empty Buffer empty empty Buffer o
52. verflow overflow Compulsion switch High level Switch is set to ON 9 CONTROL CODES ESC POS MODE Control Code Hexadecimal Code Function HT 09 Horizontal tab LF 0A Print line feed BE 0C Page mode print and return DLE EOT 10 04 Real time transmission of status DLE ENQ 10 05 Real time request to printer CAN 18 Cancel print data in page mode ESC FF IB FF Print page mode data ESC SP IB 20 Set right space amount of character ESC IB 21 Universal print mode designation ESC IB 23 Set memory switch ESC 24 Designate absolute printing ESC 96 25 Designate cancel download character set ESC amp 26 Define download characters ESC 1B 2A Designate bit image mode ESC 2D Designate cancel underline ESC 2 IB 32 Set 1 6 inch line feed amount ESC3 IB 33 Set line feed amount ESC 1B 3D Select peripheral equipment ESC IB 3F Delete download characters ESC 1B 40 Initialize printer ESCD IB 44 Set horizontal tab position ESCE IB 45 Designate cancel emphasized print ESCG 1B 4 Designate cancel double print ESC J 4A Print and paper feed ESC L 1B 4C Select page mode ESCR IB 52 Select international characters ESC S IB 53 Select standard mode ESCT IB 54 Select character print direction in print mode ESC V 1B 56 Designate cancel 90 character rotation ESCW IB 57 Set print range in page mode ESC 1B
Download Pdf Manuals
Related Search
Related Contents
Optoma Technology TS526 User's Manual Anais da XVI Semana de Geografia da UEPG USER MANUAL MODEL 653-9 TWO-WIRE pH/ORP Hikvision Digital Technology DS-7608HI-ST digital video recorder Family Dollar HQ Power VDPL1003CW Hitachi 17" LCD Colour Monitor Triomatic - Neptus AS Copyright © All rights reserved.
Failed to retrieve file