Page 3 - TABLE OF CONTENTS
TABLE OF CONTENTS 1. OUTLINE .............................................................................................. 1 2. MEMORY SWITCH AND DIP SWITCH ........................................... 2 2-1. Memory Switch ............................................................................ ...
Page 6 - MEMORY SWITCH AND DIP SWITCH; Memory switch; DIP switch array
– 2 – 2. MEMORY SWITCH AND DIP SWITCH Functional settings are made using the printer’s EEPROM memory switches andthe 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 withits product type....
Page 8 - DISPLAY PANEL AND FUNCTIONS
– 4 – 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 printeris off line or error occurs (Refer to 7. ERRORS.) 3-2. Switches Switch Function ON LINE Switches between...
Page 9 - SERIAL
– 5 – 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 bit: ...................... 1Data bits: .................... 7 or 8 (S...
Page 11 - From when the power
– 7 – 4-3. Connectors and Signal Names SERIAL 5 1 6 9 1. From when the power is turned on or I/F resetuntil communicationpossible 2. Test printing3. Cover open4. Paper feed by paper feed switch 5. Stop due to no paper6 . D u r i n g w a i t i n g f o r switch input in macroexecution 7. Other errors8...
Page 14 - * 16 bytes when the buffer size is set to 45 bytes
– 10 – 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. Immediately after power on (provided that no error occurs), the printer sets DTRto “SPACE” to indicate that it is ready to receive data. When...
Page 15 - Error Condition
– 11 – ■ Error Condition Upon detecting an error, the printer immediately sets DTR to “MARK” and goesoffline. If the error was caused by a paper-out condition, you can clear it byloading new paper and then pressing the ON LINE switch (Star mode) or closingthe cover (ESC/POS mode). SERIAL RXD DTR OFF...
Page 17 - PARALLEL INTERFACE; Conforms with Centronics parallel interface standard; PARALLEL
– 13 – 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 5-2. Interface Timing T T T A C K D...
Page 19 - s to indicate that data read is
– 15 – Pin no Signal name Direction Function 1 STROBE IN Strobe pulse for data read. Usually HIGH;goes LOW to trigger data read. 2-9 DATA 1~8 IN Parallel data lines for eight-bit data. HIGHis “1”; LOW is “0”. 10 ACK OUT Printer outputs this pulse for approxi-mately 9 µ s to indicate that data read i...
Page 20 - PERIPHERAL UNIT DRIVE CIRCUIT
– 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 driving peripheralunits is featured on the output side on the drive circuit. When using this circuit,connect the cable for the peripheral unit. (Cabl...
Page 22 - Collector current Ic = 2A
– 18 – ■ Drive circuit The recommended drive circuit is shown. 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.3. Resistance for coils L1 and L2 is not le...
Page 25 - STAR MODE; The details of each command are shown in the following sections.; Commands to Select Characters
– 21 – STAR MODE 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 Control codes Hexadecimal Function Page codes <ESC> “R” n 1B 52 n Select international character set 25 <ESC> “/” “1” ...
Page 26 - Commands to Set the Page Format
– 22 – STAR MODE Control codes Hexadecimal Function Page codes <ESC> “4” 1B 34 Select highlight printing 33 <ESC> “5” 1B 35 Cancel highlight printing 33 <SI> 0F Inverted printing 33 <DC2> 12 Cancel inverted printing 33 <ESC> “E” 1B 45 Select emphasized printing 34 <E...
Page 27 - Commands to Print Dot Graphics
– 23 – STAR MODE Commands to Print Dot Graphics Control codes Hexadecimal Function Page codes <ESC> “K” n <0> 1B 4B n 00 m1 m2 Print normal density graphics 41 m1 m2 ... ... <ESC> “L” n1 n2 1B 4C n1 n2 m1 m2 Print high density graphics 43 m1 m2 ... ... <ESC> “k” n <0> d...
Page 28 - Other Commands
– 24 – STAR MODE Other Commands Control codes Hexadecimal Function Page codes <CAN> 18 Cancel last line & Initialize printer 53 <DC3> 13 Deselect printer 53 <DC1> 11 Set select mode 53 <RS> 1E Beep the buzzer 53 <ESC> “#N, n1 n2 n3 n4” 1B 23 N 2C n1 n2 n3 n4 Set mem...
Page 29 - FUNCTION; REMARKS; REMARKS
– 25 – STAR MODE 8-2. Command Specification Commands to Select Characters FUNCTION Select international character set CODE <ESC> “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 set 0 U.S.A. 7 Spain I 1 Fra...
Page 30 - HEX; di; n2: Printing character below bar code or line feed
– 26 – STAR MODE FUNCTION Select bar code printing CODE <ESC> “b” n1 n2 n3 n4 di ... dk <RS> HEX 1B 62 n1 n2 n3 n4 di ... dk 1E REMARKS Prints bar code according to the value of n1, as shown below: n1: Type of bar code 0 UPC-E 1 UPC-A 2 JAN/EAN-8 3 JAN/EAN-13 4 CODE 39 5 ITF 6 CODE 128 7...
Page 31 - ITF
– 27 – STAR MODE 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 N...
Page 32 - CODE 128: The value of k is optional, and the maximum
– 28 – STAR MODE ITF: The value of k is optional, and the maximumvalue also differs according to the modes (40digits maximum in mode 4).If the data is number of an odd digits, 0 isautomatically added at the beginning of the data. CODE 128: The value of k is optional, and the maximum value also diffe...
Page 36 - Sets the magnification rate in character height.; Sets the magnification rates in character width and height.; Underlining
– 32 – STAR MODE FUNCTION Sets the magnification rate in character height. CODE <ESC> “h” n HEX 1B 68 n REMARKS Prints the subsequent data magnified in character height by a ratespecified by the value of n. n Character height n Character height 0 Unmagnify 3 Quadruple 1 Double 4 Quintuple 2 Tr...
Page 38 - Select emphasized printing; Cancel emphasized printing
– 34 – STAR MODE FUNCTION Select emphasized printing CODE <ESC> “E” HEX 1B 45 CODE <ESC> “G” HEX 1B 47 REMARKS Causes subsequent characters to be emphasized. FUNCTION Cancel emphasized printing CODE <ESC> “F” HEX 1B 46 CODE <ESC> “H” HEX 1B 48 REMARKS Cancels emphasized print...
Page 40 - Set left margin; Set right margin
– 36 – STAR MODE FUNCTION Set left margin CODE <ESC> “l” n HEX 1B 6C n REMARKS Sets the left margin at column n (where n is between 0 and 255) atthe current character pitch.The left margin does not move if the character pitch is changedlater.Setting is invalid if the printing area for one line...
Page 41 - Commands to Move the Print Position
– 37 – STAR MODE Commands to Move the Print Position FUNCTION Line feed CODE <LF> HEX 0A REMARKS Prints the current line and feeds the paper to the next line. FUNCTION Carriage return CODE <CR> HEX 0D REMARKS Prints the current line and feeds the paper to the next line.This command is ig...
Page 42 - Vertical tab; Set line spacing to 4 mm; Set line spacing to 3 mm
– 38 – STAR MODE FUNCTION Vertical tab CODE <VT> HEX 0B REMARKS Prints the current line and feeds the paper to the next vertical tabstop and moves the print position to the left margin.Performs paper feed if no vertical tabs are set or if the current lineis at or below the last vertical tab st...
Page 43 - One time n/4 mm backfeed; Set vertical tab stops
– 39 – STAR MODE FUNCTION One time n/4 mm backfeed CODE <ESC> “j” n HEX 1B 6A n REMARKS 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 thecurrent page. In this case, the posi...
Page 44 - Set horizontal tab stops
– 40 – STAR MODE FUNCTION Set horizontal tab stops CODE <ESC> “D” n1 n2 ... <0> HEX 1B 44 n1 n2 ... 00 REMARKS Cancels all current horizontal tab stops and sets new tab stops atcolumns n1, n2, etc. at the current character pitch, where n1, n2,etc. are numbers between 1 and 255. A maximum...
Page 45 - Print normal density graphics; Relationship between image data and print dots
– 41 – STAR MODE Commands to Print Dot Graphics FUNCTION Print normal density graphics CODE <ESC> “K” n <0> m1 m2 ... HEX 1B 4B n 00 m1 m2 ... REMARKS Prints normal density dot graphics. The graphics image is 24 dotshigh and n × 3 dots wide. Maximum width is 576 dots. m1, m2, ... are the...
Page 46 - EXAMPLE; We will create the design below using a bit image.; Printing Sample
– 42 – STAR MODE EXAMPLE 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 converted to hexadecimal, it appears as shown below. Printing Sample D 8 D 7 D 6 D 5 D 4 D 3 D 2 D 1 m1 m2 m3 m4 m5 m6 m7 m8 m9 m10 m11 m12 m13 m14...
Page 47 - Print high density graphics; 56 dots wide. Maximum width is 576 dots.
– 43 – STAR MODE FUNCTION Print high density graphics CODE <ESC> “L” n1 n2 m1 m2 ... HEX 1B 4C n1 n2 m1 m2 ... REMARKS Prints high density dot graphics. The graphics image is 24 dotshigh and n1 + n2 × 256 dots wide. Maximum width is 576 dots. m1, m2, ... are the dot data, each a 1-byte value f...
Page 48 - Print fine density bit image
– 44 – STAR MODE EXAMPLE 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 converted to hexadecimal, it appears as shown below. Horizontal density is three times that of the bit image for <ESC>“k”.(Compare the print ...
Page 51 - Print fine density graphics
– 47 – STAR MODE MSB DotPosition LSB b7 b6 b5 b4 b3 b2 b1 b0 d1••• MSB LSB b7 b6 b5 b4 b3 b2 b1 b0 d2••• MSB LSB b7 b6 b5 b4 b3 b2 b1 b0 d3••• 123456789 101112131415161718192021222324 FUNCTION Print fine density graphics CODE <ESC> “X” n1 n2 d1...d [(n1+n2*256)*3] HEX 1B 5 n1 n2 d1...d [(n1+n2...
Page 52 - Commands to Print Download Characters; Define download character
– 48 – STAR MODE Commands to Print Download Characters FUNCTION Define download character CODE <ESC> “&” <1> <1> n m1 m2 ... m48 HEX 1B 26 01 01 n m1 m2 ... m48 CODE <ESC> “&” “1” “1” n m1 m2 ... m48 HEX 1B 26 31 31 n m1 m2 ... m48 REMARKS Defines one new character an...
Page 53 - Delete a download character; Deletes the download character which was assigned the value n.; Enable download character set; Enables the download character set.
– 49 – STAR MODE Hexa- decimal Binary Data Hexa- decimal Binary Data m1 00011000 18 m3 00111000 38 m5 01111000 78 m7 00011000 18 m9 00011000 18 m11 00011000 18 m13 00011000 18 m15 00011001 19 m17 00011011 1B m19 00000110 06 m21 00001100 0C m23 00011011 1B m25 00110111 37 m27 01100110 66 m29 00000000...
Page 54 - Disable download character set; or
– 50 – STAR MODE FUNCTION Disable download character set CODE <ESC> “%” “0” or <ESC> “%” <0> HEX 1B 25 30 or 1B 25 00 REMARKS Disables the selected download character set and returns to thebuilt-in ROM character set.
Page 55 - Commands to Control Peripheral Devices
– 51 – STAR MODE Commands to Control Peripheral Devices FUNCTION Define drive pulse width for peripheral device #1 CODE <ESC><BEL> n1 n2 HEX 1B 07 n1 n2 REMARKS Defines the drive pulse width for peripheral devices requiringother than standard 200 ms pulse time and delay time.n1 indicates...
Page 56 - Commands to Control Auto Cutter; Full-cut command to the auto cutter; Partial-cut command to the auto cutter
– 52 – STAR MODE Commands to Control Auto Cutter FUNCTION Full-cut command to the auto cutter CODE <ESC> “d” “0” or <ESC> “d” <0> HEX 1B 64 30 or 1B 64 00 REMARKS Cuts the paper fully when memory switch 2-C is set to 0. If memoryswitch 2-C is set to 1, the paper is fed to 18 mm and...
Page 57 - Cancel last line & Initialize printer; Deselect printer; Set select mode; Beep the buzzer; Sounds a brief beep tone.
– 53 – STAR MODE Other Commands FUNCTION Cancel last line & Initialize printer CODE <CAN> HEX 18 REMARKS Clears the line buffer, and initializes the commands set already.Does not affect the external equipment drive conditions set by thecode <ESC> <BEL> n1 n2. (This is the same ...
Page 58 - Set memory switch
– 54 – STAR MODE Parameter n4 Setting FF command 4 Paper Feed, Cut & Back Star ESC/POS – (Default) 0 Form Feed : Available FUNCTION Set memory switch CODE <ESC> “# N , n1n2n3n4” <LF> <NUL> HEX 1B 23 N 2C n1n2n3n4 0A 00 REMARKS Set the memory switch. In order to enable changed m...
Page 59 - Initialize printer; Enquiry; Causes the printer to transmit a status byte.
– 55 – STAR MODE 3) N=2 n3 : Always “0” Parameter n1 n2 n4 Setting ESC d command Cutter Paper near end 1 Paper feed & cut Valid (TSP242) Valid ESC/POS – – Star (Default) 0 Cut Invalid (TSP212) Invalid : Available (Default) 0 Normal 48 Invalid 4 4) N=3 n1 : Always “0” Parameter n2 n3 n4 Setting C...
Page 60 - Status byte; Reset the printer hardware.; Resets the printer hardware.
– 56 – STAR MODE b7 b6 b5 b4 b3 b2 b1 b0 0 Constantlyset at “0” Vertical Parity error1 : error Framing error1 : error Mechanical error1 : error Paper empty1 : empty Buffer empty1 : empty Buffer overflow1 : overflow Compulsion switchHigh level(Switch is set to ON) Status byte FUNCTION Reset the print...
Page 63 - CHARACTER CODE TABLES; Star Mode; SP
– 59 – 10. CHARACTER CODE TABLES Star Mode 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3 4 5 6 7 <NUL> SP 0 @ P ` p 0 16 32 48 64 80 96 112 <DC1> ! 1 A Q a q 1 17 33 49 65 81 97 113 <DC2> ” 2 B R b r 2 18 34 50 66 82 98 114 <DC3> # 3 C S c s 3 19 35 51 67 83 99 115 <DC4> $ 4 ...
Page 67 - International Character Set; Ä Ö Ü
– 63 – Star Mode International Character Set 35 36 64 91 92 93 94 96 123 124 125 126 U. S. A. # $ @ [ \ ] ˆ ` { | } ~ France # $ à ° ç § ˆ ` é ù è ¨ Germany # $ § Ä Ö Ü ˆ ` ä ö ü ß England £ $ @ [ \ ] ˆ ` { | } ~ Denmark 1 # $ @ Æ Ø Å ˆ ` æ ø å ~ Sweden # ¤ É Ä Ö Å Ü é ä ö å ü Italy # $ @ ° \ é ˆ ù ...
Page 76 - § Ä Ö Ü
– 72 – ESC/POS Mode International Character Set 35 36 64 91 92 93 94 96 123 124 125 126 U. S. A. # $ @ [ \ ] ˆ ` { | } ~ France # $ à ° ç § ˆ ` é ù è ¨ Germany # $ § Ä Ö Ü ˆ ` ä ö ü ß England £ $ @ [ \ ] ˆ ` { | } ~ Denmark 1 # $ @ Æ Ø Å ˆ ` æ ø å ~ Sweden # ¤ É Ä Ö Å Ü é ä ö å ü Italy # $ @ ° \ é ˆ...
Page 77 - NEVER place fingers or metal objects in the cutter area.
– 73 – 11. AUTOMATIC CUTTER The TSP242 comes equipped with a guillotine-type automatic paper cutter. 1 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 ar...
Page 78 - MEMO