Manuel d'utilisation / d'entretien du produit RS232 du fabricant Star Micronics
Aller à la page of 80
Thermal Printer TSP200 Series Programmer’ s Manual.
.
T ABLE OF CONTENTS 1. OUTLINE .............................................................................................. 1 2. MEMORY SWITCH AND DIP SWITCH ........................................... 2 2-1. Memory Switch ...........................
.
– 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 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 OF 5, CODE 128, CODE 93, NW-7) 3.
– 2 – 2. MEMOR Y 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.
– 3 – DIP switch #1 The factory settings of DIP switch 1 are all on. Switch Contents ON OFF 1-1 Baud Rate 1-2 1-3 Data Length 8 bit 7 bit 1-4 Parity Check Disabled Enabled 1-5 Parity Selection Odd.
– 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 printer is off line or error occurs (Refer to 7. ERRORS.) 3-2.
– 5 – 4. SERIAL INTERF ACE 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: ...........
– 6 – 75188 or equivalent Printer Host computer Printer Host computer 4-2. Interface Circuit 4-2-1. RS-232C Interface Input (RXD, DSR) Output (DTR, FAULT, TXD, RTS) SERIAL.
– 7 – 4-3. Connectors and Signal Names SERIAL 51 6 9 1. From when the power is turned on or I/F reset until communication possible 2. Test printing 3. Cover open 4. Paper feed by paper feed switch 5. Stop due to no paper 6. During waiting for switch input in macro execution 7.
– 8 – Pin No. Signal name Direction Function Star mode Data terminal ready signal. When the printer is ready to receive data, this signal changes to “SPACE”.
– 9 – 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.
– 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 DTR to “SPACE” to indicate that it is ready to receive data.
– 11 – ■ 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).
– 12 – 4-5-2. X-ON/X-OFF mode This mode is accessed when DIP switch 1-6 is set to OFF. 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 DC1; value = 11H) over the TXD line.
– 13 – 5. P ARALLEL INTERF ACE 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.
– 14 – Input Signal Name Sample Circuit 5-3. Connectors and Signal Names Figure 5-1. Parallel Interface Connector Output DATA 1 DATA 8 STROBE BUSY ACK ~ 4.
– 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. HIGH is “1”; LOW is “0”. 10 ACK OUT Printer outputs this pulse for approxi- mately 9 µ s to indicate that data read is completed.
– 16 – 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.
– 17 – Figure 6-2. Separate ground wire and noise filter are required for Europe. Fastener One loop Ferrite core Separate ground wire Peripheral unit drive circuit connector Screw M3 × 4.
– 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.
– 19 – 7. ERRORS Error Description Abnormal head temperature Power Lamp Flashing Pattern Recovery Conditions Automatic recovery after head temperature lowers Approx. 1 Sec Approx. 1 Sec The various types of errors can be identified by the buzzer’s sound and the lit LEDs.
– 20 – 7-3. Fatal Err or (Power Lamp: Flashing; On-Line Lamp: Flashing) The unit will have to be repaired. 7-4. T ype of buzzer sound (only Star mode) P: 50ms Pi: 100ms 1 Online, Offline P 2 No Pa.
– 21 – STAR MODE 8. CONTROL CODES/ST AR 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.
– 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 .
– 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 .
– 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 sele.
– 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.
– 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.
– 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 N.
– 28 – STAR MODE 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.
– 29 – STAR MODE Control codes CODE FORMAT NUL 00H %@ 25H 40H SOH 01H %A 25H 41H STX 02H %B 25H 42H ETX 03H %C 25H 43H EOT 04H %D 25H 44H ENQ 05H %E 25H 45H ACK 06H %F 25H 46H BEL 07H %G 25H 47H B.
– 30 – STAR MODE FUNCTION Select 12-dot pitch printing CODE <ESC> “M” HEX 1B 4D REMARKS Prints 12-dot pitch characters without an extra space. FUNCTION Select 14-dot pitch printing CODE <ESC> “p” HEX 1B 70 REMARKS Prints 12-dot pitch characters with 2-dot spacing between charac- ters.
– 31 – STAR MODE FUNCTION Sets the printing magnified double in character width. CODE <SO> HEX 0E REMARKS Prints the subsequent data including a character spacing set by <ESC><SP> n , magnified double in character width. FUNCTION Resets the printing magnified in character width.
– 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 rate specified by the value of n .
– 33 – STAR MODE FUNCTION Upperlining CODE <ESC> “_” n HEX 1B 5F n REMARKS When the value of n is 1, overlines the subsequent data including a character spacing set by <ESC><SP> n . The part to be skipped by the horizontal tab setting and the block graphic characters are not upperlined.
– 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 printing.
– 35 – STAR MODE Commands to Set the Page Format FUNCTION Set page length in lines CODE <ESC> “C” n HEX 1B 43 n REMARKS 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.
– 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) at the current character pitch. The left margin does not move if the character pitch is changed later.
– 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.
– 38 – STAR MODE FUNCTION Vertical tab CODE <VT> HEX 0B REMARKS 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.
– 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 the current page.
– 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 at columns n1 , n2 , etc. at the current character pitch, where n1 , n2 , etc.
– 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 dots high and n × 3 dots wide.
– 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.
– 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 dots high and n1 + n2 × 256 dots wide. Maximum width is 576 dots.
– 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”.
– 45 – STAR MODE Relationship between image data and print dots Dot position d 1 b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 d n+1 b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 d 2n+1 b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 d 3n+1.
– 46 – STAR MODE EXAMPLE Hexa- decimal Binary Data Hexa- decimal Binary Data d1 00000000 00 d3 00011111 1F d5 00111111 3F d7 01110111 77 d9 11111000 F8 d11 11111000 F8 d13 11111000 F8 d15 00001111.
– 47 – STAR MODE MSB Dot Position 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••• 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 FUNCTION Print fine density graphics CODE <ESC> “X” n 1 n 2 d1.
– 48 – STAR MODE Commands to Print Download Characters FUNCTION Define download character CODE <ESC> “&” <1> <1> nm 1 m 2 ... m48 HEX 1B 26 01 01 nm 1 m 2 ... m48 CODE <ESC> “&” “1” “1” nm 1 m 2 ... m48 HEX 1B 26 31 31 nm 1 m 2 .
– 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 .
– 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 the built-in ROM character set.
– 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 requiring other than standard 200 ms pulse time and delay time.
– 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.
– 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 the code <ESC> <BEL> n1 n2 .
– 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.
– 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 .
– 56 – STAR MODE b7 b6 b5 b4 b3 b2 b1 b0 0 Constantly set at “0” V ertical Parity error 1 : error Framing error 1 : error Mechanical error 1 : error Paper empty 1 : empty Buffer empty 1 : empty Buffer overflow 1 : overflow Compulsion switch High level (Switch is set to ON) Status byte FUNCTION Reset the printer hardware.
– 57 – ESC/POS 9. CONTROL CODES/ESC/POS MODE Control Code Hexadecimal Code Function HT 09 Horizontal tab LF 0A Print line feed FF 0C Page mode print and return DLE EOT 10 04 Real time transmission.
– 58 – ESC/POS Control Code Hexadecimal Code Function ESC u 1B 75 Transmission of peripheral equipment status ESC v 1B 76 Transmission of paper detection status ESC { 1B 7B Designate/cancel invert.
– 59 – 10. CHARACTER CODE T ABLES Star Mode 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456 7 <NUL> SP 0 @ P ` p 0 1 63 24 86 48 09 6 1 1 2 <DC1> !1 A Q a q 1 1 73 34 96 58 19 7 1 1 3 <DC2&.
– 60 – 89 A B C D E F Ä éù a 128 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 ßê ç ° C 131 147 163 179 195 211 227 243 .
– 61 – Star Mode (Character table: katakana).
– 62 – Star Mode (Character table: IBM) 0 1 2 3 4 5 6 7 8 9 A B C D E F 89 A B C D E F Ç Éá α≡ 128 144 160 176 192 208 224 240 üæ í β± 129 145 161 177 193 209 225 241 é Æó Γ≥ 130 .
– 63 – Star Mode International Character Set 35 36 64 91 92 93 94 96 123 124 125 126 U. S. A. # $ @ []ˆ ` {| } ~ France #$à ° ç§ ˆ ` éùè ¨ Germany #$§ Ä Ö Ü ˆ ` äöü ß England £.
– 64 – ESC/POS Mode 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456 7 <NUL> <DLE> SP 0 @ P ` p 0 1 63 24 86 48 09 6 1 1 2 <XON> !1 A Q a q 1 1 73 34 96 58 19 7 1 1 3 ”2 B R br 2 1 83 4.
– 65 – ESC/POS Mode Page 0 (PC437: USA, Standard Europe) 0 1 2 3 4 5 6 7 8 9 A B C D E F 89 A B C D E F Ç É á α≡ 128 144 160 176 192 208 224 240 üæ í β± 129 145 161 177 193 209 225 241 .
– 66 – ESC/POS Mode Page 1(Katakana).
– 67 – ESC/POS Mode Page 2 (PC850: Multilingual).
– 68 – ESC/POS Mode Page 3 (PC860: Portuguese) 0 1 2 3 4 5 6 7 8 9 A B C D E F 89 A B C D E F Ç É á α≡ 128 144 160 176 192 208 224 240 ü À í β± 129 145 161 177 193 209 225 241 é È ó .
– 69 – ESC/POS Mode Page 4 (PC863: Canadian-French).
– 70 – ESC/POS Mode Page 5 (PC865: Nordic) 0 1 2 3 4 5 6 7 8 9 A B C D E F 89 A B C D E F Ç É á α≡ 128 144 160 176 192 208 224 240 üæ í β± 129 145 161 177 193 209 225 241 é Æó Γ≥ .
– 71 – ESC/POS Mode Page 255 (Space Page) 0 1 2 3 4 5 6 7 8 9 A B C D E F 89 A B C D E F SP SP SP SP SP SP SP SP 128 144 160 176 192 208 224 240 SP SP SP SP SP SP SP SP 129 145 161 177 193 209 225.
– 72 – ESC/POS Mode International Character Set 35 36 64 91 92 93 94 96 123 124 125 126 U. S. A. #$ @ [ ] ˆ ` { | } ~ France #$à ° ç§ ˆ ` é ù è ¨ Germany #$§ Ä Ö Ü ˆ ` äöüß Eng.
– 73 – 1 1. AUT OMA TIC 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.
P1996.11 MEMO.
.
Printed in Japan, 80872025 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.
Un point important après l'achat de l'appareil (ou même avant l'achat) est de lire le manuel d'utilisation. Nous devons le faire pour quelques raisons simples:
Si vous n'avez pas encore acheté Star Micronics RS232 c'est un bon moment pour vous familiariser avec les données de base sur le produit. Consulter d'abord les pages initiales du manuel d'utilisation, que vous trouverez ci-dessus. Vous devriez y trouver les données techniques les plus importants du Star Micronics RS232 - de cette manière, vous pouvez vérifier si l'équipement répond à vos besoins. Explorant les pages suivantes du manuel d'utilisation Star Micronics RS232, vous apprendrez toutes les caractéristiques du produit et des informations sur son fonctionnement. Les informations sur le Star Micronics RS232 va certainement vous aider à prendre une décision concernant l'achat.
Dans une situation où vous avez déjà le Star Micronics RS232, mais vous avez pas encore lu le manuel d'utilisation, vous devez le faire pour les raisons décrites ci-dessus,. Vous saurez alors si vous avez correctement utilisé les fonctions disponibles, et si vous avez commis des erreurs qui peuvent réduire la durée de vie du Star Micronics RS232.
Cependant, l'un des rôles les plus importants pour l'utilisateur joués par les manuels d'utilisateur est d'aider à résoudre les problèmes concernant le Star Micronics RS232. Presque toujours, vous y trouverez Troubleshooting, soit les pannes et les défaillances les plus fréquentes de l'apparei Star Micronics RS232 ainsi que les instructions sur la façon de les résoudre. Même si vous ne parvenez pas à résoudre le problème, le manuel d‘utilisation va vous montrer le chemin d'une nouvelle procédure – le contact avec le centre de service à la clientèle ou le service le plus proche.