Resumo do conteúdo contido na página número 1
Line Thermal Printer
STAR Line Mode
Command
Specifications
Rev 0.09
Star Micronics Co., Ltd.
Special Products Division
Resumo do conteúdo contido na página número 2
Table of Contents 1. INTERFACE CONFIGURATION.........................................................................................................................1-1 1.1. RS-232 Serial Interface..............................................................................................................................1-1 1.1.1. Specifications (Conforming to RS-232) ......................................................................................................1-1 1.1.2. Signal
Resumo do conteúdo contido na página número 3
5.2. Appendix 2: Status Specifications ..............................................................................................................5-6 5.2.1. ENQ Command Status...............................................................................................................................5-6 5.2.2. EOT Command Status ...............................................................................................................................5-6 5.2.3. Automatic Status ....
Resumo do conteúdo contido na página número 4
This specifications document describes the command specifications for the STAR LINE MODE on line thermal printers. Information contained herein applies to models with the following conditions. - Line thermal printers - Interfaces: - Parallel - RS-232C - USB - Ethernet - Wireless LAN < Applicable Models:> TSP700 TSP600 TSP800 TUP900 TSP1000 TSP828L TSP700II TSP650 ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Line Mode Comman
Resumo do conteúdo contido na página número 5
1. INTERFACE CONFIGURATION 1.1. RS-232 Serial Interface 1.1.1. Specifications (Conforming to RS-232) Rating: RS-232C Synch method: Start-Stop synchronization method Handshake: DTR mode Baud rates: 4800, 9600, 19200, 38400 bps (Set by DIP switches) Bit length: 7, 8 bits (Set by DIP switches) Parity: Yes/No (Set by DIP switches) Parity bit: Odd/even (Set by DIP switches) Stop bit: 1 bit (Fixed) Signal polarity: Mark = logic 1 (-3 to -15 V) Space = logic 0 (+3 to +15 V)
Resumo do conteúdo contido na página número 6
1.1.3. Communication Protocol 1) General description of operations in the DTR mode This mode abides by the DIP switch settings. (Ex-factory settings) This mode performs communication while handshaking with the DTR signals. In the operations to receive printer data, this mode controls the DTR signals by confirming the BUSY signal. A SPACE indicates that the printer is ready to receive data; conversely, a “mark” indicates that the printer cannot receive data.
Resumo do conteúdo contido na página número 7
3) General description of operations in the XON/XOFF mode This mode is set when DIPSW #1 to #3 are turned OFF. This mode notifies the host of the XON (DC1) data when the printer can receive data and the XOFF (DC3) data when the printer cannot receive data, using the TXD signals. This functions so that XON outputs only 1 byte when the printer shifts from OFFLINE (printer busy) to ONLINE (printer ready) and; XOFF outputs 1 byte when the printer shifts from ONLINE (printer ready) to
Resumo do conteúdo contido na página número 8
1.2. Parallel Interfaces (Amphenol 36 pins) 1.2.1. Specifications (Conforming to IEEE1284) Rating: Conforms to IEEE 1284 Mode: Compatibility Mode/Nibble Mode/Byte Mode Data transfer speed: 1000 to 6000 CPS Synch method: According to externally supplied strobe pulse Handshake: According to ACK and BUSY signals Logic level: Compatible to TTL 1.2.2. Signal array and explanations according to interface connector pin Pin No. Compatibility Mode Si
Resumo do conteúdo contido na página número 9
1.2.3. Signal Output Timing 1) Compatibility mode T T T T= Min. 0.5 μs nStrobe Data 0 to 7 Approx. 1 μs nAck Busy 2) Nibble Mode/Byte Mode Conforms to IEEE 1284 standard 1.2.4. Status Specification See Appendix 2 for details. ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Line Mode Command Specifications 1-5
Resumo do conteúdo contido na página número 10
1.3. USB Interface Specifications: Conforms to USB 2.0 Full Speed. Supports printer class and vendor class (Refer to each printer specifications manual for selections.) Connector: Type B 1.4. Ethernet Interface Specifications: Conforms to IEEE 802.3. Cable: 10BASE-T/10BASE-TX Connector: RJ45 1.5. Wireless LAN Interface Specifications: Conforms to IEEE 802.11b. ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Line Mode Comman
Resumo do conteúdo contido na página número 11
2. COMMAND FUNCTION LIST • Standard Commands Class Commands Name Font style ESC RS F Select font And character set ESC GS t Specify code page ESC GS = Write blank code page data ESC R Specify international character set ESC / Specify/cancel slash zero ESC SP Set ANK right space ESC M Specify ANK 12 dot pitch ESC P Specify ANK 15 dot pitch ESC : Specify ANK 16 dot pitch ESC g Specify ANK 14 dot pitch Character ESC i Set/cancel the double wide/high printing ex
Resumo do conteúdo contido na página número 12
Class Commands Name Page control FF Form feed commands ESC C Set page length to n lines ESC C 0 Set page length in 24 mm units VT Feed paper to vertical tab position ESC B Set vertical tab position ESC N Set bottom margin to n lines ESC O Cancel bottom margin Horizontal ESC l Set left margin direction ESC Q Set right margin position HT Move print position to horizontal tab position ESC D Set/cancel horizontal tab position ESC GS A Move absolute position E
Resumo do conteúdo contido na página número 13
Class Commands Name Chinese ESC p Set to JIS Chinese character mode characters ESC q Cancel JIS Chinese character mode ESC $ Set/cancel JIS Chinese character mode ESC s Set two byte Chinese characters left/right spaces ESC t Set 1 byte Chinese characters left/right spaces ESC r Register Chinese download characters Others CAN Cancel print data and initialize commands ESC @ Command initialization ESC GS # Set memory switch ESC ? Reset printer ESC GS r Get
Resumo do conteúdo contido na página número 14
• Black mark related commands Class Commands Name Black mark ESC d Paper cut instruction Related FF Form feed Commands ESC C Set page length to n lines ESC C 0 Set page length in 24 mm units VT Feed paper to vertical tab position ESC B Set vertical tab position ESC N Set n line bottom margin ESC O Cancel bottom margin • 2 color printing related commands Class Commands Name 2 color printing ESC RS c Specify printing color in 2 color printing mode Relat
Resumo do conteúdo contido na página número 15
•Auto Logo commands Class Commands Name Auto Logo ESC GS / W Register Auto Logo setting in non-volatile memory commands ESC GS / C Initialize Auto Logo setting in non-volatile memory ESC GS / 1 ON/OFF setting of Auto Logo function ESC GS / 2 Command character setting ESC GS / 3 User macro 1 setting ESC GS / 4 User macro 2 setting ESC GS / 5 Command character rewriting method setting ESC GS / 6 Setting of partial cut just prior to Auto Logo printing •PDF417 command
Resumo do conteúdo contido na página número 16
•Print Starting Trigger Control commands Class Commands Name Print starting ESC GS g0 Print starting trigger trigger ESC GS g1 Print starting timer setting •QR Code commands Class Commands Name QR code ESC GS y S0 Set QR code model ESC GS y S1 Set QR code mistake correction level ESC GS y S2 Set QR code cell size ESC GS y D1 Set QR code data ESC GS y D2 Set QR code data (Manual) ESC GS y P Print QR code ESC GS y I Get QR code expansion informati
Resumo do conteúdo contido na página número 17
3. COMMAND DETAILS 3.1. Explanation of Terms • Reception buffer The buffer for storing data (reception data) received from the host, as it is called the reception buffer. Reception data is temporarily stored in the reception buffer, then processed sequentially. • Line buffer The buffer for storing image data for printing is called the line buffer. • Line buffer full The state in which the buffer has no more space available is called line buffer full. When the buffer is ful
Resumo do conteúdo contido na página número 18
3.2. Exception Processing 1) Undefined codes Codes from <00>H to <1F>H are targeted. When codes not defined as commands in this region are received, they are discarded. (Ex.) If processing the data string of <30>H<31>H<03>H<32>H<0A>H<33>H, the printer will discard <03>H as an undefined code. 2) Undefined commands When data continuing the codes of ESC, FS, GS, DLE are codes not defined as commands, ESC, FS,GS and subsequent codes are discarded. (Ex.) If processing the dat
Resumo do conteúdo contido na página número 19
3.3. Standard Command Details 3.3.1. Font style and Character Set ESC RS F n [Name] Select font [Code] ASCII ESC RS F n Hex. 1B 1E 46 n Decimal 27 30 70 n [Defined Region] 0 ≤n ≤1, n = 16 [Initial Value] n = 0 [Function] Selects a font n Font 0 Font-A (12 x 24 dots) 1 Font-B (9 x 24 dots) 16 OCR-B (16 x 24 dots) The following functions are disabled when OCR-B font is selected. • Code page • Blank code page • International chara
Resumo do conteúdo contido na página número 20
ESC GS t n [Name] Select code page [Code] ASCII ESC GS t n Hex. 1B 1D 74 n Decimal 27 29 116 n [Defined Region] 0 ≤n ≤21 32 ≤n ≤34 64 ≤n ≤79 [Initial Value] Memory switch setting When installed with Japanese language characters and DBCS setting: Fixed at n=2 [Function] Specifies code page When installed with Japanese and Chinese language characters and DBCS setting, this command is ignored. n Code Page n Code Page 0 Normal* 32 Co