Star Micronics RS232 User Manual

Browse online or download User Manual for Print & Scan Star Micronics RS232. Star Micronics RS232 User's Manual

  • Download
  • Add to my manuals
  • Print

Summary of Contents

Page 1 - Programmer’s Manual

Thermal PrinterTSP200 SeriesProgrammer’s Manual

Page 2

– 6 –75188 or equivalentPrinter Host computerPrinter Host computer4-2. Interface Circuit4-2-1. RS-232C InterfaceInput (RXD, DSR)Output (DTR, FAULT, TX

Page 3 - TABLE OF CONTENTS

– 7 –4-3. Connectors and Signal NamesSERIAL51691. From when the poweris turned on or I/F resetuntil communicationpossible2. Test printing3. Cover open

Page 4

– 8 –Pin No.Signal nameDirectionFunctionStar modeData terminal ready signal.When the printer is ready to receive data, thissignal changes to “SPACE”.5

Page 5 - 1. OUTLINE

– 9 –4-4. Interface ConnectionsRefer to the host computer’s interface specifications for details of how to connectthe interface. The following illustr

Page 6 - 2-2. DIP Switch

– 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

Page 7 - DIP Switch #2

– 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

Page 8 - 3-2. Switches

– 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

Page 9 - 4. SERIAL INTERFACE

– 13 –5. PARALLEL INTERFACE5-1. Interface SpecificationsInterface: Conforms with Centronics parallel interface standardData transfer speed: 1000 ~ 500

Page 10 - 4-2. Interface Circuit

– 14 –InputSignal Name Sample Circuit5-3. Connectors and Signal NamesFigure 5-1. Parallel Interface ConnectorOutputDATA 1DATA 8STROBEBUSYACK~4.7kW74L

Page 11

– 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

Page 13 - 4-4. Interface Connections

– 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

Page 14 - 4-5. Data Protocol

– 17 –Figure 6-2. Separate ground wire and noise filter are required for Europe.FastenerOne loopFerrite coreSeparate ground wirePeripheral unit drivec

Page 15 - ■ Error Condition

– 18 – Drive circuitThe recommended drive circuit is shown.NOTES:1. Peripheral units #1 and #2 cannot be driven simultaneously.When driving a device

Page 16

– 19 –7. ERRORSError DescriptionAbnormal headtemperaturePower Lamp Flashing Pattern Recovery ConditionsAutomatic recovery after headtemperature lowers

Page 17 - 5. PARALLEL INTERFACE

– 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

Page 18 - 74LS-equivalent

– 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

Page 19

– 22 –STAR MODEControl codesHexadecimalFunction Pagecodes<ESC> “4” 1B 34 Select highlight printing 33<ESC> “5” 1B 35 Cancel highlight prin

Page 20

– 23 –STAR MODECommands to Print Dot GraphicsControl codesHexadecimalFunction Pagecodes<ESC> “K” n <0> 1B 4B n 00 m1 m2Print normal densit

Page 21

– 24 –STAR MODEOther CommandsControl codesHexadecimalFunction Pagecodes<CAN> 18 Cancel last line & Initialize printer 53<DC3> 13 Desel

Page 22

– 25 –STAR MODE8-2. Command SpecificationCommands to Select CharactersFUNCTIONSelect international character setCODE <ESC> “R” nHEX1B 52 nREMARK

Page 23 - 7. ERRORS

TABLE OF CONTENTS1. OUTLINE ...12. MEMORY SWITCH AND DIP SW

Page 24 - Flashing)

– 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

Page 25 - 8. CONTROL CODES/STAR MODE

– 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

Page 26 - STAR MODE

– 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

Page 27

– 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

Page 28 - Other Commands

– 30 –STAR MODEFUNCTIONSelect 12-dot pitch printingCODE<ESC> “M”HEX1B 4DREMARKSPrints 12-dot pitch characters without an extra space.FUNCTIONSel

Page 29 - 8-2. Command Specification

– 31 –STAR MODEFUNCTIONSets the printing magnified double in character width.CODE<SO>HEX0EREMARKSPrints the subsequent data including a characte

Page 30 - FUNCTION

– 32 –STAR MODEFUNCTIONSets the magnification rate in character height.CODE<ESC> “h” nHEX1B 68 nREMARKSPrints the subsequent data magnified in c

Page 31

– 33 –STAR MODEFUNCTIONUpperliningCODE<ESC> “_” nHEX1B 5F nREMARKSWhen the value of n is 1, overlines the subsequent data includinga character s

Page 32

– 34 –STAR MODEFUNCTIONSelect emphasized printingCODE<ESC> “E”HEX1B 45CODE<ESC> “G”HEX1B 47REMARKSCauses subsequent characters to be empha

Page 33 - 3) 2-character codes

– 35 –STAR MODECommands to Set the Page FormatFUNCTIONSet page length in linesCODE <ESC> “C” nHEX1B 43 nREMARKSSets the page length using the cu

Page 35

– 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

Page 36

– 37 –STAR MODECommands to Move the Print PositionFUNCTIONLine feedCODE <LF>HEX0AREMARKSPrints the current line and feeds the paper to the next

Page 37

– 38 –STAR MODEFUNCTIONVertical tabCODE<VT>HEX0BREMARKSPrints the current line and feeds the paper to the next vertical tabstop and moves the pr

Page 38

– 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

Page 39

– 40 –STAR MODEFUNCTIONSet horizontal tab stopsCODE<ESC> “D” n1 n2 ... <0>HEX1B 44 n1 n2 ... 00REMARKSCancels all current horizontal tab s

Page 40

– 41 –STAR MODECommands to Print Dot GraphicsFUNCTIONPrint normal density graphicsCODE <ESC> “K” n <0> m1 m2 ...HEX1B 4B n 00 m1 m2 ...REM

Page 41

– 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

Page 42

– 43 –STAR MODEFUNCTIONPrint high density graphicsCODE<ESC> “L” n1 n2 m1 m2 ...HEX1B 4C n1 n2 m1 m2 ...REMARKSPrints high density dot graphics.

Page 43

– 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

Page 44

– 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

Page 45

– 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

Page 46

– 46 –STAR MODEEXAMPLEHexa-decimalBinaryDataHexa-decimalBinaryDatad1 00000000 00d3 00011111 1Fd5 00111111 3Fd7 01110111 77d9 11111000 F8d11 11111000 F

Page 47

– 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

Page 48

– 48 –STAR MODECommands to Print Download CharactersFUNCTIONDefine download characterCODE <ESC> “&” <1> <1> nm1m2... m48HEX1B 26

Page 49 - Dot position

– 49 –STAR MODEHexa-decimalBinaryDataHexa-decimalBinaryDatam1 00011000 18m3 00111000 38m5 01111000 78m7 00011000 18m9 00011000 18m11 00011000 18m13 00

Page 50 - Printing Sample

– 50 –STAR MODEFUNCTIONDisable download character setCODE<ESC> “%” “0” or <ESC> “%” <0>HEX1B 25 30 or 1B 25 00REMARKSDisables the se

Page 51

– 51 –STAR MODECommands to Control Peripheral DevicesFUNCTIONDefine drive pulse width for peripheral device #1CODE <ESC><BEL> n1 n2HEX1B 0

Page 52

– 52 –STAR MODECommands to Control Auto CutterFUNCTIONFull-cut command to the auto cutterCODE <ESC> “d” “0” or <ESC> “d” <0>HEX1B 64

Page 53

– 53 –STAR MODEOther CommandsFUNCTIONCancel last line & Initialize printerCODE <CAN>HEX18REMARKSClears the line buffer, and initializes the

Page 54

– 54 –STAR MODEParametern4SettingFF command4Paper Feed,Cut & BackStar ESC/POS–(Default)0Form Feed : AvailableFUNCTIONSet memory switchCODE<ESC&

Page 55

– 55 –STAR MODE3) N=2n3 :Always “0”Parametern1n2n4SettingESC d commandCutterPaper near end1Paper feed& cutValid(TSP242)ValidESC/POS––Star(Default)

Page 56

– 2 –2. MEMORY SWITCH AND DIP SWITCHFunctional settings are made using the printer’s EEPROM memory switches andthe DIP switches.2-1. Memory SwitchEach

Page 57

– 56 –STAR MODEb7 b6 b5 b4 b3 b2 b1 b00Constantlyset at “0” Vertical Parity error1 : errorFraming error1 : errorMechanical error1 : errorPaper empty1

Page 58

– 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

Page 59 - CODE <ENQ>

– 58 –ESC/POSControl Code Hexadecimal Code FunctionESC u 1B 75 Transmission of peripheral equipment statusESC v 1B 76 Transmission of paper detection

Page 60

– 59 –10. CHARACTER CODE TABLESStar Mode0123456789ABCDEF01234567<NUL> SP 0 @ P ` p0 163248648096112<DC1> !1AQaq1 173349658197113<DC2>

Page 61 - 9. CONTROL CODES/ESC/POS MODE

– 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

Page 62

– 61 –Star Mode(Character table: katakana)

Page 63 - 10. CHARACTER CODE TABLES

– 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

Page 64 - Star Mode

– 63 –Star ModeInternational Character Set35 36 64 91 92 93 94 96 123 124 125 126U. S. A. #$@[\]ˆ`{|}~France #$à°ç§ˆ`éùè¨Germany #$§ÄÖ܈`äöüßEngland £

Page 65

– 64 –ESC/POS Mode0123456789ABCDEF01234567<NUL> <DLE> SP 0 @ P ` p0 163248648096112<XON> !1AQaq1 173349658197113”2BRbr2 183450668298

Page 66

– 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

Page 67

– 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

Page 68 - ESC/POS Mode

– 66 –ESC/POS ModePage 1(Katakana)

Page 69

– 67 –ESC/POS ModePage 2 (PC850: Multilingual)

Page 70

– 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

Page 71

– 69 –ESC/POS ModePage 4 (PC863: Canadian-French)

Page 72

– 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

Page 73

– 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

Page 74

– 72 –ESC/POS ModeInternational Character Set35 36 64 91 92 93 94 96 123 124 125 126U. S. A. #$@[ \ ]ˆ`{ | }~France #$à°ç§ˆ`éùè¨Germany #$§ÄÖ܈`äöüßEn

Page 75

– 73 –11. AUTOMATIC CUTTERThe TSP242 comes equipped with a guillotine-type automatic paper cutter.1 The cutter operates in response to data commands.

Page 76

P1996.11MEMO

Page 78 - P1996.11

– 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

Page 79

Printed in Japan, 80872025ELECTRONIC PRODUCTS DIVISIONSTAR MICRONICS CO., LTD.536 Nanatsushinnya, Shimizu, Shizuoka, 424 JapanTel: 0543-47-0112, Fax:

Page 80 - Printed in Japan, 80872025

– 5 –4. SERIAL INTERFACE4-1. Interface SpecificationsTransmission type.....Asynchronous serial interfaceBaud rate (bps) ......

Comments to this Manuals

No comments