Thermal PrinterTSP200 SeriesProgrammer’s Manual
– 6 –75188 or equivalentPrinter Host computerPrinter Host computer4-2. Interface Circuit4-2-1. RS-232C InterfaceInput (RXD, DSR)Output (DTR, FAULT, TX
– 7 –4-3. Connectors and Signal NamesSERIAL51691. From when the poweris turned on or I/F resetuntil communicationpossible2. Test printing3. Cover open
– 8 –Pin No.Signal nameDirectionFunctionStar modeData terminal ready signal.When the printer is ready to receive data, thissignal changes to “SPACE”.5
– 9 –4-4. Interface ConnectionsRefer to the host computer’s interface specifications for details of how to connectthe interface. The following illustr
– 10 –4-5. Data Protocol4-5-1. DTR modeThis mode is accessed when the DIP switch 1-6 is set to ON.Signals are controlled using the DTR line as a BUSY
– 11 – Error ConditionUpon detecting an error, the printer immediately sets DTR to “MARK” and goesoffline. If the error was caused by a paper-out co
– 12 –4-5-2. X-ON/X-OFF modeThis mode is accessed when DIP switch 1-6 is set to OFF.Immediately after power on (provided that no error occurs), the pr
– 13 –5. PARALLEL INTERFACE5-1. Interface SpecificationsInterface: Conforms with Centronics parallel interface standardData transfer speed: 1000 ~ 500
– 14 –InputSignal Name Sample Circuit5-3. Connectors and Signal NamesFigure 5-1. Parallel Interface ConnectorOutputDATA 1DATA 8STROBEBUSYACK~4.7kW74L
– 15 –Pin no Signal nameDirectionFunction1 STROBE IN Strobe pulse for data read. Usually HIGH;goes LOW to trigger data read.2-9 DATA 1~8 IN Parallel
– 16 –A drive circuit for driving peripheral units (such as cash drawers) is featured onthe main logic board of this printer. A modular connector for
– 17 –Figure 6-2. Separate ground wire and noise filter are required for Europe.FastenerOne loopFerrite coreSeparate ground wirePeripheral unit drivec
– 18 – Drive circuitThe recommended drive circuit is shown.NOTES:1. Peripheral units #1 and #2 cannot be driven simultaneously.When driving a device
– 19 –7. ERRORSError DescriptionAbnormal headtemperaturePower Lamp Flashing Pattern Recovery ConditionsAutomatic recovery after headtemperature lowers
– 20 –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: 50
– 21 –STAR MODE8. CONTROL CODES/STAR MODE8-1. Star Mode Command SummaryThe details of each command are shown in the following sections.Commands to Sel
– 22 –STAR MODEControl codesHexadecimalFunction Pagecodes<ESC> “4” 1B 34 Select highlight printing 33<ESC> “5” 1B 35 Cancel highlight prin
– 23 –STAR MODECommands to Print Dot GraphicsControl codesHexadecimalFunction Pagecodes<ESC> “K” n <0> 1B 4B n 00 m1 m2Print normal densit
– 24 –STAR MODEOther CommandsControl codesHexadecimalFunction Pagecodes<CAN> 18 Cancel last line & Initialize printer 53<DC3> 13 Desel
– 25 –STAR MODE8-2. Command SpecificationCommands to Select CharactersFUNCTIONSelect international character setCODE <ESC> “R” nHEX1B 52 nREMARK
TABLE OF CONTENTS1. OUTLINE ...12. MEMORY SWITCH AND DIP SW
– 26 –STAR MODEFUNCTIONSelect bar code printingCODE<ESC> “b” n1 n2 n3 n4 di ... dk <RS>HEX1B 62 n1 n2 n3 n4 di ... dk 1EREMARKSPrints bar
– 27 –STAR MODECODE 39, NW-7, ITFCODE 39, NW-7 ITF1 Narrow : wide 2:6 dots 2:5 dots2 Narrow : wide 3:9 dots 4:10 dots3 Narrow : wide 4:12 dots 6:15 do
– 28 –STAR MODEITF: The value of k is optional, and the maximumvalue also differs according to the modes (40digits maximum in mode 4).If the data is n
– 29 –STAR MODEControl codesCODE FORMATNUL 00H %@ 25H 40HSOH 01H %A 25H 41HSTX 02H %B 25H 42HETX 03H %C 25H 43HEOT 04H %D 25H 44HENQ 05H %E 25H 45HACK
– 30 –STAR MODEFUNCTIONSelect 12-dot pitch printingCODE<ESC> “M”HEX1B 4DREMARKSPrints 12-dot pitch characters without an extra space.FUNCTIONSel
– 31 –STAR MODEFUNCTIONSets the printing magnified double in character width.CODE<SO>HEX0EREMARKSPrints the subsequent data including a characte
– 32 –STAR MODEFUNCTIONSets the magnification rate in character height.CODE<ESC> “h” nHEX1B 68 nREMARKSPrints the subsequent data magnified in c
– 33 –STAR MODEFUNCTIONUpperliningCODE<ESC> “_” nHEX1B 5F nREMARKSWhen the value of n is 1, overlines the subsequent data includinga character s
– 34 –STAR MODEFUNCTIONSelect emphasized printingCODE<ESC> “E”HEX1B 45CODE<ESC> “G”HEX1B 47REMARKSCauses subsequent characters to be empha
– 35 –STAR MODECommands to Set the Page FormatFUNCTIONSet page length in linesCODE <ESC> “C” nHEX1B 43 nREMARKSSets the page length using the cu
– 36 –STAR MODEFUNCTIONSet left marginCODE<ESC> “l” nHEX1B 6C nREMARKSSets the left margin at column n (where n is between 0 and 255) atthe curr
– 37 –STAR MODECommands to Move the Print PositionFUNCTIONLine feedCODE <LF>HEX0AREMARKSPrints the current line and feeds the paper to the next
– 38 –STAR MODEFUNCTIONVertical tabCODE<VT>HEX0BREMARKSPrints the current line and feeds the paper to the next vertical tabstop and moves the pr
– 39 –STAR MODEFUNCTIONOne time n/4 mm backfeedCODE<ESC> “j” nHEX1B 6A nREMARKSFeeds the paper back n/4mm once only.The value of n is 1 to 255.S
– 40 –STAR MODEFUNCTIONSet horizontal tab stopsCODE<ESC> “D” n1 n2 ... <0>HEX1B 44 n1 n2 ... 00REMARKSCancels all current horizontal tab s
– 41 –STAR MODECommands to Print Dot GraphicsFUNCTIONPrint normal density graphicsCODE <ESC> “K” n <0> m1 m2 ...HEX1B 4B n 00 m1 m2 ...REM
– 42 –STAR MODEEXAMPLE We will create the design below using a bit image.First, since the volume of data is 30, n1 = (1E)H. If the data m1 ~m30 is con
– 43 –STAR MODEFUNCTIONPrint high density graphicsCODE<ESC> “L” n1 n2 m1 m2 ...HEX1B 4C n1 n2 m1 m2 ...REMARKSPrints high density dot graphics.
– 44 –STAR MODEEXAMPLEWe will create the design below using a bit image.First, since the volume of data is 30, n1 = (1E)H. If the data m1 ~m30 is conv
– 45 –STAR MODERelationship between image data and print dotsDot positiond1b7 b6 b5 b4 b3 b2 b1 b0dn+1b7 b6 b5 b4 b3 b2 b1 b0d2n+1b7 b6 b5 b4 b3 b2 b1
– 1 –The TSP200 series is ideal for printing text, bar code and graphics.The TSP200 series has the following features:1. extremely quiet and fast prin
– 46 –STAR MODEEXAMPLEHexa-decimalBinaryDataHexa-decimalBinaryDatad1 00000000 00d3 00011111 1Fd5 00111111 3Fd7 01110111 77d9 11111000 F8d11 11111000 F
– 47 –STAR MODEMSBDotPositionLSBb7 b6 b5 b4 b3 b2 b1 b0d1•••MSB LSBb7 b6 b5 b4 b3 b2 b1 b0d2•••MSB LSBb7 b6 b5 b4 b3 b2 b1 b0d3•••12345678910111213141
– 48 –STAR MODECommands to Print Download CharactersFUNCTIONDefine download characterCODE <ESC> “&” <1> <1> nm1m2... m48HEX1B 26
– 49 –STAR MODEHexa-decimalBinaryDataHexa-decimalBinaryDatam1 00011000 18m3 00111000 38m5 01111000 78m7 00011000 18m9 00011000 18m11 00011000 18m13 00
– 50 –STAR MODEFUNCTIONDisable download character setCODE<ESC> “%” “0” or <ESC> “%” <0>HEX1B 25 30 or 1B 25 00REMARKSDisables the se
– 51 –STAR MODECommands to Control Peripheral DevicesFUNCTIONDefine drive pulse width for peripheral device #1CODE <ESC><BEL> n1 n2HEX1B 0
– 52 –STAR MODECommands to Control Auto CutterFUNCTIONFull-cut command to the auto cutterCODE <ESC> “d” “0” or <ESC> “d” <0>HEX1B 64
– 53 –STAR MODEOther CommandsFUNCTIONCancel last line & Initialize printerCODE <CAN>HEX18REMARKSClears the line buffer, and initializes the
– 54 –STAR MODEParametern4SettingFF command4Paper Feed,Cut & BackStar ESC/POS–(Default)0Form Feed : AvailableFUNCTIONSet memory switchCODE<ESC&
– 55 –STAR MODE3) N=2n3 :Always “0”Parametern1n2n4SettingESC d commandCutterPaper near end1Paper feed& cutValid(TSP242)ValidESC/POS––Star(Default)
– 2 –2. MEMORY SWITCH AND DIP SWITCHFunctional settings are made using the printer’s EEPROM memory switches andthe DIP switches.2-1. Memory SwitchEach
– 56 –STAR MODEb7 b6 b5 b4 b3 b2 b1 b00Constantlyset at “0” Vertical Parity error1 : errorFraming error1 : errorMechanical error1 : errorPaper empty1
– 57 –ESC/POS9. CONTROL CODES/ESC/POS MODEControl Code Hexadecimal Code FunctionHT 09 Horizontal tabLF 0A Print line feedFF 0C Page mode print and ret
– 58 –ESC/POSControl Code Hexadecimal Code FunctionESC u 1B 75 Transmission of peripheral equipment statusESC v 1B 76 Transmission of paper detection
– 59 –10. CHARACTER CODE TABLESStar Mode0123456789ABCDEF01234567<NUL> SP 0 @ P ` p0 163248648096112<DC1> !1AQaq1 173349658197113<DC2>
– 60 –89ABCDEFÄéùa128 144 160 176 192 208 224 240Öèu â129 145 161 177 193 209 225 241Üe û °130 146 162 178 194 210 226 242ßêç°C131 147 163 179 195 211
– 61 –Star Mode(Character table: katakana)
– 62 –Star Mode(Character table: IBM)0123456789ABCDEF89ABCDEFÇ Éá α≡128 144 160 176 192 208 224 240üæí β±129 145 161 177 193 209 225 241é Æó Γ≥130 146
– 63 –Star ModeInternational Character Set35 36 64 91 92 93 94 96 123 124 125 126U. S. A. #$@[\]ˆ`{|}~France #$à°ç§ˆ`éùè¨Germany #$§ÄÖ܈`äöüßEngland £
– 64 –ESC/POS Mode0123456789ABCDEF01234567<NUL> <DLE> SP 0 @ P ` p0 163248648096112<XON> !1AQaq1 173349658197113”2BRbr2 183450668298
– 65 –ESC/POS ModePage 0 (PC437: USA, Standard Europe)0123456789ABCDEF89ABCDEFÇÉá α≡128 144 160 176 192 208 224 240üæí β±129 145 161 177 193 209 225 2
– 3 –DIP switch #1The factory settings of DIP switch 1 are all on.Switch Contents ON OFF1-1 Baud Rate1-21-3 Data Length 8 bit 7 bit1-4 Parity Check Di
– 66 –ESC/POS ModePage 1(Katakana)
– 67 –ESC/POS ModePage 2 (PC850: Multilingual)
– 68 –ESC/POS ModePage 3 (PC860: Portuguese)0123456789ABCDEF89ABCDEFÇÉá α≡128 144 160 176 192 208 224 240üÀí β±129 145 161 177 193 209 225 241éÈó Γ≥13
– 69 –ESC/POS ModePage 4 (PC863: Canadian-French)
– 70 –ESC/POS ModePage 5 (PC865: Nordic)0123456789ABCDEF89ABCDEFÇÉá α≡128 144 160 176 192 208 224 240üæí β±129 145 161 177 193 209 225 241é Æó Γ≥130 1
– 71 –ESC/POS ModePage 255 (Space Page)0123456789ABCDEF89ABCDEFSP SP SP SP SP SP SP SP128 144 160 176 192 208 224 240SP SP SP SP SP SP SP SP129 145 16
– 72 –ESC/POS ModeInternational Character Set35 36 64 91 92 93 94 96 123 124 125 126U. S. A. #$@[ \ ]ˆ`{ | }~France #$à°ç§ˆ`éùè¨Germany #$§ÄÖ܈`äöüßEn
– 73 –11. AUTOMATIC CUTTERThe TSP242 comes equipped with a guillotine-type automatic paper cutter.1 The cutter operates in response to data commands.
P1996.11MEMO
– 4 –3-1. LEDLED FunctionPOWER Lights up when the printer is turned on.Blinks when an error occurs (Refer to 7. ERRORS.)ON LINE Lights up when the pri
Printed in Japan, 80872025ELECTRONIC PRODUCTS DIVISIONSTAR MICRONICS CO., LTD.536 Nanatsushinnya, Shimizu, Shizuoka, 424 JapanTel: 0543-47-0112, Fax:
– 5 –4. SERIAL INTERFACE4-1. Interface SpecificationsTransmission type.....Asynchronous serial interfaceBaud rate (bps) ......
Comments to this Manuals