Star Micronics Line Thermal Printer Specifications
Star Micronics Line Thermal Printer Specifications

Star Micronics Line Thermal Printer Specifications

Star micronics line thermal printer specification sheet
Table of Contents

Advertisement

Line Thermal Printer

STAR Line Mode

Command

Specifications

Rev 0.09
Star Micronics Co., Ltd.
Special Products Division

Advertisement

Table of Contents
loading

Summary of Contents for Star Micronics Line Thermal Printer

  • Page 1: Star Line Mode

    Line Thermal Printer STAR Line Mode Command Specifications Rev 0.09 Star Micronics Co., Ltd. Special Products Division...
  • Page 2: Table Of Contents

    Table of Contents 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 array and explanations according to interface connector pin ...1-1 1.1.3. Communication Protocol ...1-2 1.2. Parallel Interfaces (Amphenol 36 pins)...1-4 1.2.1. Specifications (Conforming to IEEE1284) ...1-4 1.2.2.
  • Page 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 ...5-7 5.2.4 Printer status transmission specification when using Ethernet I/F and Wireless LAN I/F ...5-14 5.3. Appendix 3: Blank Code Page Configuration ...5-16 5.4.
  • Page 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 <...
  • Page 5: Interface Configuration

    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:...
  • Page 6: Communication Protocol

    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;...
  • Page 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;...
  • Page 8: Parallel Interfaces (Amphenol 36 Pins)

    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.
  • Page 9: Signal Output Timing

    1.2.3. Signal Output Timing 1) Compatibility mode nStrobe Data 0 to 7 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 T= Min. 0.5 μs Approx.
  • Page 10: Usb Interface

    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.
  • Page 11: Command Function List

    2. COMMAND FUNCTION LIST • Standard Commands Class Commands Font style ESC RS F And character set ESC GS t ESC GS = ESC R ESC / ESC SP ESC M ESC P ESC : ESC g Character ESC i expansion settings ESC W ESC h...
  • Page 12 Class Commands Page control commands ESC C ESC C 0 ESC B ESC N ESC O Horizontal ESC l direction ESC Q position ESC D ESC GS A ESC GS R ESC GS a Download ESC & ESC % Bit image ESC K graphics ESC L...
  • Page 13 Class Commands Chinese ESC p characters ESC q ESC $ ESC s ESC t ESC r Others ESC @ ESC GS # ESC ? ESC GS r Macro ESC GS (*) Chinese character commands • Chinese character control commands are ignored on printers not installed with Chinese character fonts (those intended for overseas).
  • Page 14 • B l a c k m a r k r e l a t e d c o m m a n d s Class Commands Black mark ESC d Related Commands ESC C ESC C 0 ESC B ESC N ESC O •...
  • Page 15 • A u t o L o g o c o m m a n d s Class Commands Auto Logo ESC GS / W commands ESC GS / C ESC GS / 1 ESC GS / 2 ESC GS / 3 ESC GS / 4 ESC GS / 5 ESC GS / 6...
  • Page 16 • P r i n t S t a r t i n g T r i g g e r C o n t r o l c o m m a n d s Class Commands Print starting ESC GS g0 trigger ESC GS g1...
  • Page 17: Command Details

    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. •...
  • Page 18: Exception Processing

    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.
  • Page 19: Standard Command Details

    3.3. Standard Command Details 3.3.1. Font style and Character Set ESC RS F n [Name] Select font [Code] ASCII ESC RS Hex. Decimal [Defined Region] 0≤n≤1, n = 16 [Initial Value] n = 0 [Function] Selects a font Font Font-A (12 x 24 dots) Font-B (9 x 24 dots) OCR-B (16 x 24 dots) The following functions are disabled when OCR-B font is selected.
  • Page 20 ESC GS t n [Name] Select code page [Code] ASCII ESC GS Hex. Decimal 29 116 [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.
  • Page 21 ESC GS = n1 n2 da1 da2...dak db1 db2...dbk [Name] Write blank code page data [Code] ASCII ESC GS Hex. Decimal [Defined Area] n1= 0 n2 = 48 1≤(n1 + n2 x 256) 0≤da≤255 (Font-A data) db = 0 (STAR mode is not installed with Font-B.) k = (n1 + n2 x 256) [Initial Value] - - -...
  • Page 22 ESC R n [Name] Specify international character set [Code] ASCII Hex. Decimal [Defined Area] 0≤n≤14 n = 64 48≤n≤57 (”0”≤n≤”9”) 65≤n≤69 (”A”≤n≤”E”) [Initial Value] Memory switch setting When installed with Japanese language characters and DBCS setting: [Function] Specifies international characters International Characters 0, 48 1, 49...
  • Page 23 ESC / n [Name] Specify/cancel slash zero [Code] ASCII Hex. Decimal [Defined Area] n = 0, 1, 48, 49 [Initial Value] Memory switch setting [Function] Specifies and cancels slash zeros. International Characters 0, 48 Cancels slash zero 1, 49 Specifies slash zero ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――...
  • Page 24: Esc Sp N

    ESC SP n [Name] Set ANK right space [Code] ASCII Hex. Decimal [Defined Area] 0≤n≤15 48≤n≤57 (”0”≤n≤”9”) 65≤n≤70 (”A”≤n≤”F”) [Initial Value] Memory switch setting [Function] Specifies the right space for ANK 12 x 24 dot fonts in n dots. Character spacing can be specified also with the following commands. •...
  • Page 25 ESC M [Name] Specify 12 dot pitch [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] Memory switch setting [Function] Specifies rights space for the ANK 12 x 24 dot fonts to 0 dots. ESC P [Name] Specify 15 dot pitch [Code] ASCII Hex.
  • Page 26 ESC g [Name] Specify 14 dot pitch [Code] ASCII Hex. Decimal 27 103 [Defined Area] - - - [Initial Value] Memory switch setting [Function] Specifies rights space for the ANK 12 x 24 dot fonts to 2 dots. Specification A This command is enabled only when the memory switch setting is set for DBCS (2 byte countries).
  • Page 27: Character Expansion Settings

    3.3.2. Character Expansion Settings ESC i n1 n2 [Name] Set/cancel the double wide/high [Code] ASCII Hex. Decimal 27 105 [Defined Area] 0≤n1≤5 48≤n1≤53 (”0”≤n1≤”5”) 0≤n2≤5 48≤n2≤53 (”0”≤n2≤”5”) [Initial Value] n1 = 0 (Double high cancelled) n2 = 0 (Double wide cancelled) [Function] Specifies/cancels double high/wide for ANK characters and Chinese characters.
  • Page 28 ESC W n [Name] expanded wide Specify/cancel [Code] ASCII Hex. Decimal [Defined Area] 0≤n≤5 48≤n≤53 (”0”≤n≤”5”) [Initial Value] n = 0 (Double wide cancelled) [Function] Specifies/cancels double wide for ANK characters and Chinese characters. Expanded wide 0, 48 Cancels expanded wide 1, 49 Specifies 2x wide expansion 2, 50...
  • Page 29 [Name] Set double wide [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] Cancels 2x wide expansion [Function] Specifies double wide for ANK characters and Chinese characters. This command is equivalent to ESC W n (n = 1). [Name] Cancel expanded wide [Code]...
  • Page 30 ESC SO [Name] Set double high [Code] ASCII ESC SO Hex. Decimal [Defined Area] - - - [Initial Value] Double high expansion cancelled. [Function] Specifies double high for ANK characters and Chinese characters. This command is equivalent to ESC h n (n = 1). ESC DC4 [Name] Cancel expanded high...
  • Page 31: Print Mode

    3.3.3. Print Mode ESC E [Name] Select emphasized printing [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] Emphasized printing selected [Function] Specifies emphasized printing for ANK characters. IBM block ignores emphasized printing. ESC F [Name] Cancel emphasized printing [Code] ASCII Hex.
  • Page 32 ESC – n [Name] Select/cancels underling mode [Code] ASCII Hex. Decimal [Defined Area] n = 0, 1, 48, 49 [Initial Value] n = 0 (Underline cancelled) [Function] Specifies underlining (2 dots). Underlines are composed of 2 dot lines. Underlines are not applied to horizontal tabs and to specified horizontal direction positions. Underlines are expanded if the character expansion is specified.
  • Page 33 ESC 4 [Name] Select white/black inverted printing [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] White/black inversion cancelled [Function] Specifies white/black inversion for ANK characters and Chinese characters. IBM block ignores white/black inversion. ESC 5 [Name] Cancel white/black inversion [Code] ASCII Hex.
  • Page 34 [Name] Select upside-down printing [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] Upside-down cancelled [Function] Specifies upside-down printing This command is enabled only when at the top of the line. Upside down and right-side up characters cannot both exist in the same line. This command is enabled for following.
  • Page 35: Line Spacing

    3.3.4. Line Spacing [Name] Line feed [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] Feeds the currently specified amount of paper. If print data exists in the line buffer, it prints that data. The initial value for the amount of paper is set according to the memory switch settings.
  • Page 36 ESC z n [Name] Select line feed amount [Code] ASCII Hex. Decimal 27 122 [Defined Area] n = 1, 49 [Initial Value] Memory switch setting [Function] Specifies the line feed amount. Line feed amount 1, 49 Specifies 4 mm line feed amount ESC 0 [Name] Specify line spacing to 3 mm...
  • Page 37: Esc J N

    ESC J n [Name] n/4 mm line feed [Code] ASCII Hex. Decimal [Defined Area] 1≤n≤255 [Initial Value] - - - [Function] Executes a n/4mm paper feed. If print data exists in the line buffer, it prints that data. Using this command will intermittently feed paper, therefore, it is normally recommended that this command not be used.
  • Page 38: Page Control Commands

    3.3.5. Page Control Commands [Name] Form feed [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] Executes a form feed. If the current position is at the top of the page, it form feeds to the top of the next page. If there is data existing in the line buffer when executing a form feed, it prints that data, then executes the form feed.
  • Page 39 ESC C 0 n [Name] Set page length to n x 24 mm units [Code] ASCII Hex. Decimal [Defined Area] 1≤n≤22 [Initial Value] (Form feed amount initial value x 42) [Function] The position whereat this command is processed is considered the top of the page and sets the page length to (n x 24 mm).
  • Page 40 [Name] Feed paper to vertical tab position [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] Feeds paper to the next vertical tab position. This command is ignored if there are no tabs set. If a vertical tab is set, and the current position is the same as the vertical tab position, or if it is below that position, it feeds paper to the top of the next page.
  • Page 41 ESC B n1 n2…nk NUL [Name] Set vertical tab position [Code] ASCII Hex. Decimal [Defined Area] 1≤n≤255 0≤k≤16 [Initial Value] - - - [Function] Sets the vertical tab to the (current form feed amount x n) position. All other vertical tabs set before setting the vertical tab using this command are cancelled A maximum of 16 vertical tabs can be set.
  • Page 42: Horizontal Direction Printing Position

    3.3.6. Horizontal Direction Printing Position ESC l n [Name] Set left margin [Code] ASCII Hex. Decimal 27 108 [Defined Area] 0≤n≤255 [Initial Value] n = 0 [Function] Uses the left edge as a standard to set the left margin as (current ANK character pitch x n). Character pitch includes the space between characters and expansion settings are enabled.
  • Page 43 ESC Q n [Name] Set right margin [Code] ASCII Hex. Decimal [Defined Area] 0≤n≤255 [Initial Value] - - - [Function] Uses the left edge as a standard to set the print region as (current ANK character pitch x n). Character pitch includes the space between characters and expansion settings are enabled. The right margin set using this command is unaffected by changing the character pitch.
  • Page 44 ESC D n1 n2…nk NUL [Name] Set horizontal tab [Code] ASCII Hex. Decimal [Defined Area] 1≤n≤255 0≤k≤16 [Initial Value] - - - [Function] Uses the left edge as a standard to set the horizontal tab to the position of (current ANK character pitch x n).
  • Page 45 ESC GS A n1 n2 [Name] Move absolute position [Code] ASCII ESC GS Hex. Decimal [Defined Area] 0≤n1≤255 0≤n2≤255 [Initial Value] - - - [Function] Moves the printing position from the left margin to the (n1 + n2 x 256) position. This command is ignored if the print region is exceeded.
  • Page 46 ESC GS a n [Name] Specify position alignment [Code] ASCII ESC GS Hex. Decimal [Defined Area] 0≤n≤2 48≤n≤50 (”0”≤n≤”2”) [Initial Value] n = 0 [Function] Specifies the alignment position in the printing region that has been set. Position alignment 0, 48 Left alignment 1, 49 Center alignment...
  • Page 47: Download

    3.3.7. Download ESC & c1 c2 n d1…d48 [Name] Register 12 x 24 dot font download characters [Code] ASCII Hex. Decimal [Defined Area] c1 = 1, 49 c2 = 1, 49 32≤n≤127 0≤d≤255 [Initial Value] - - - [Function] Registers 12 x 24 dot font download characters to the nth address. Download characters can be registered to <20>H to <7F>H.
  • Page 48 ESC & c1 c2 n [Name] Delete 12 x 24 dot font download characters [Code] ASCII & Hex. Decimal [Defined Area] c1 = 1, 49 c2 = 0, 48 32≤n≤127 [Initial Value] - - - [Function] Deletes 12 x 24 dot font download characters registered to the nth address. ESC % n [Name] Specifies/cancels ANK download characters...
  • Page 49: Bit Image Graphics

    3.3.8. Bit Image Graphics ESC K n1 n2 d1...dk [Name] Standard density bit image [Code] ASCII Hex. Decimal [Defined Area] 1 ≤ {(n1 + n2 x 256) x 3} ≤ printable region k = (n1 + n2 x 256) 0≤d≤255 [Initial Value] - - - [Function]...
  • Page 50 ESC L n1 n2 d1...dk [Name] Standard density bit image [Code] ASCII Hex. Decimal [Defined Area] 1 ≤ (n1 + n2 x 256) ≤ printable region k = (n1 + n2 x 256) 0≤d≤255 [Initial Value] - - - [Function] Prints bit images using 1 dot wide and 3 dots high per 1 dot of input data.
  • Page 51 ESC k n1 n2 d1...dk [Name] Fine density bit image [Code] ASCII Hex. Decimal 27 107 [Defined Area] n2 = 0 1 ≤ {(n1 + n2 x 256) x 8} ≤ printable region k = {(n1 + n2 x 256) x 24} 0≤d≤255 [Initial Value] - - -...
  • Page 52 ESC X n1 n2 d1...dk [Name] Fine density bit image (Compatible with 24 bit wire dots) [Code] ASCII Hex. Decimal [Defined Area] 1 ≤ (n1 + n2 x 256) ≤ printable region k = {(n1 + n2 x 256) x 3} 0≤d≤255 [Initial Value] - - -...
  • Page 53: Logo

    3.3.9. Logo ESC FS q n [ x 1 1 x 1 2 y 1 1 y 1 2 d 1 . . . d k ] 1 . . . [ x n 1 x n 2 y n 1 y n 2 d 1 . . . d k ] n [Name] Register logo [Code]...
  • Page 54 Relationships of logo and registered data xn = xn1 + xn2 x 256, yn = yn1 + yn2 x 256 (yn1 + yn2 x 256) bytes (yn1 + yn2 x 256) x 8 dots ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Line Mode Command Specifications {(xn1 + xn2 x 256) x 8} dots d[11] d[21]...
  • Page 55 ESC FS p n m [Name] Print logo [Code] ASCII Hex. Decimal 28 112 [Defined Area] 1≤n≤255 0≤m≤3 48≤m≤51 (”0”≤m≤”3”) [Initial Value] - - - [Function] Prints the logo of registration number n registered using the logo registration command (ESC FS q) according to the print mode m.
  • Page 56 Spec. B Logo Control Mode 0, 48 Normal mode Batch printing 1, 49 Double wide mode Batch printing 2, 50 Double high mode Batch printing 3, 51 Double high/wide mode Batch printing Batch delete logos ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Line Mode Command Specifications 3-40...
  • Page 57: Bar Code

    3.3.10. Bar Code ESC b n1 n2 n3 n4 d1...dk RS [Name] [Code] ASCII Hex. Decimal [Defined Area] 0≤n1≤8, 48≤n1≤56 (”0 ≤ n1≤”8”) 1≤n2≤4, 49≤n2≤52 (”1”≤n2≤”4”) 1≤n4≤255 n3 (bar code mode), d (bar code data), k (bar code data count) definitions differ according to the type of bar code.
  • Page 58 • n4 bar code height (dot count) Specification A When the height of the bar code is more than the form feed amount, the form feed amount is automatically doubled. Specification B Form feed at (Bar code height + underbar characters) •...
  • Page 59: Cutter Control

    3.3.11. Cutter Control ESC d n [Name] Auto-cutter [Code] ASCII Hex. Decimal 27 100 [Defined Area] 0≤d≤3 48≤d≤51 (”0”≤d≤”3”) [Initial Value] - - - [Function] Executes the auto-cutter. After auto-cutter is executed, the printer considers that to be the top of the page. Auto cutter 0, 48 Full cut at the current position.
  • Page 60: External Device Drive

    3.3.12. External Device Drive ESC BEL n1 n2 [Name] Set external drive device 1 pulse width [Code] ASCII ESC BEL Hex. Decimal [Defined Area] 1≤n1≤127 1≤n2≤127 [Initial Value] n1 = 20 (Energizing time: 200 msec) n2 = 20 (Delay time: 200 msec) [Function] Sets the energizing and delay times for drive of the external device.
  • Page 61 [Name] External device 1 drive instruction [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] Executes the external device drive conditions set according to the command to set the external drive device pulse width (ESC BEL n1 n2). As with other commands, it temporarily stores data in the data buffer, then executes in the order received.
  • Page 62 [Name] External device 2 drive instruction [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] Drives external device 2. The energizing time and delay time for the external device 2 are fixed at 200 ms each. As with other commands, it temporarily stores data in the data buffer, then executes in the order received.
  • Page 63 ESC GS BEL m t1 t2 [Name] Ring buzzer [Code] ASCII GS BEL Hex. Decimal [Defined Area] 1≤m≤2 1≤t1≤255 1≤t2≤255 [Initial Value] - - - [Function] Rings the buzzer. m specifies the drive terminal of the buzzer. Buzzer Drive Terminal 1, 49 Buzzer Drive Terminal 1 2, 50...
  • Page 64 ESC GS EM DC1 m n1 n2 [Name] External buzzer drive pulse condition settings [Code] ASCII ESC GS EM DC1 Hex. Decimal [Defined Area] 1 ≤ m ≤ 2 0 ≤ n1 ≤ 255 0 ≤ n2 ≤ 255 [Initial Value] n1=0 n2=0 [Function]...
  • Page 65 ESC GS EM DC2 m n1 n2 [Name] External buzzer drive execution [Code] ASCII ESC GS EM DC2 Hex. Decimal [Defined Area] 1 ≤ m ≤ 2 1 ≤ n1 ≤ 20 n2=0 [Initial Value] [Function] Repeatedly drives the buzzer according to the ON/OFF conditions set by the external buzzer drive pulse conditions command <ESC>...
  • Page 66: Print Settings

    3.3.13. Print Settings ESC RS d n [Name] Set print density [Code] ASCII ESC RS Hex. Decimal 30 100 [Defined Area] 0≤n≤15 48≤n≤57 (”0”≤n≤”9”) 65≤n≤70 (”A”≤n≤”F”) [Initial Value] Memory switch setting [Function] Sets print density. This command stops printing to be executed. Print density 0, 48 Print density 1.3...
  • Page 67 ESC RS r n [Name] Set print speed [Code] ASCII ESC RS Hex. Decimal 30 114 [Defined Area] 0≤n≤3 48≤n≤51 (”0”≤n≤”3”) [Initial Value] Memory switch setting [Function] Sets print speed. This command stops printing to be executed. Print speed 0, 48 High speed 1, 49 Mid-speed...
  • Page 68: Status

    3.3.14. Status ESC RS a n [Name] Set status transmission conditions [Code] ASCII ESC RS Hex. Decimal [Defined Area] 0≤n≤3 48≤n≤51(”0”≤n≤”51”) [Initial Value] Set by DIP switches and memory switches. [Function] Sets the status transmission conditions. See Appendix 2 for details regarding ASB status. Settings of this command are unaffected by the ESC @ command.
  • Page 69 ESC ACK SOH [Name] Real-time printer status (ASB status) [Code] ASCII ACK SOH Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] Sends ASB status information to the host. This command is not used when ASB is valid. See Appendix 2, Automatic Status for details regarding ASB status.
  • Page 70 [Name] Update ASB ETB status [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] (1) Specifications Sets the ASB ETB status when reading this command from the reception buffer, then sends ASB. See Appendix 2, ASB Status for details. (2) Specifications Sets the ASB ETB status when reading this command from the reception buffer.
  • Page 71: Chinese Characters

    3.3.15. Chinese Characters ESC p [Name] Specify JIS Chinese character mode [Code] ASCII Hex. Decimal 27 112 [Defined Area] - - - [Initial Value] JIS Chinese character mode cancelled [Function] Specifies JIS Chinese character mode When in JIS Chinese character mode, character codes are all handled as 2 byte Chinese characters (First byte: upper code;...
  • Page 72 ESC $ n [Name] Specify/cancel Shift JIS Chinese character mode [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] Memory switch setting [Function] Specifies and cancels the shift JIS Chinese character mode. When in shift JIS Chinese character mode, character codes are all handled as 2 byte Chinese characters (First byte: upper code;...
  • Page 73 ESC s n1 n2 [Name] Set 2 byte Chinese character left/right spaces [Code] ASCII Hex. Decimal 27 115 [Defined Area] 0≤n1≤7 48≤n1≤55 (”0”≤n1≤”7”) 0≤n2≤15 48≤n2≤57 (”0”≤n2≤”9”) 65≤n2≤70 (”A”≤n2≤”F”) [Initial Value] Memory switch setting [Function] Adds n1 dot left space and n2 dot right space to Chinese characters. This command is ignored for models not equipped with Chinese fonts (for overseas) and when the specification for the location of use is specified as SBCS (single byte countries) by the memory switch.
  • Page 74 ESC r c1 c2 d1...dk [Name] Register Chinese download characters [Code] ASCII Hex. Decimal 27 114 [Defined Area] 0≤d≤255 k=72 c1 and c2 differ according to specifications and code type (see table below). [Initial Value] All spaces [Function] Registers Chinese download characters to c1 and c2 addresses. Those already registered to these addresses are overwritten.
  • Page 75: Others

    3.3.16. Others [Name] Cancel print data and initialize commands [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] When the reception buffer and line buffer are cleared, the set commands are initialized. Immediately executed not when taking out from the reception buffer, but when received from the host.
  • Page 76 ESC @ [Name] Command initialization [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] Initializes each command after printing data in the line buffer. However, printers with memory switch settings are initialized to the memory switch settings. DIPSW re-reading is not performed.
  • Page 77 ESC GS # m N n1 n2 n3 n4 LF NUL [Name] Set memory switch [Code] ASCII ESC GS Hex. Decimal [Defined Area] m = 87, 84, 44, 43, 45, 64 ( m = “W”, “T”, “,”, “+”, “-”, “@” ) 48≤n1≤57 (“0”≤n1≤...
  • Page 78 ESC ? LF NUL [Name] Reset printer (execute self print) [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] Hardware resets the printer and executes on self print. After sending this command, the next data is not sent until the printer is online (in a state wherein it can receive data).
  • Page 79 ESC GS + m [t1 nL1 nH1 d11 d12 … d1k] 1 [t2 nL2 nH2 d21 d22 … d2k] 2 [tm nLm nHm dm1 dm2 … dmk] m [Name] Register macro [Code] ASCII Hex. Decimal [Code] ASCII nL2 nH2 Hex. nL2 nH2 Decimal nL2 nH2...
  • Page 80: Raster Graphics Command Details

    3.4. Raster Graphics Command Details Raster graphics are command types and incidental specifications that enable high speed and high quality printing of graphics. The following shows the characteristics and specifications for raster graphics. • Defines the raster mode command as the STAR line mode extension set. Basically no restrictions set in use of conventional STAR line mode.
  • Page 81 ESC * r R [Name] Initialize raster mode [Code] ASCII Hex. Decimal 42 114 [Defined Area] - - - [Initial Value] - - - [Function] Initializes raster mode. This command is also effective when not in the raster mode. However, initialization of the raster mode with this command is executed when entering the raster mode.
  • Page 82 ESC * r A [Name] Enter raster mode [Code] ASCII Hex. Decimal 42 114 [Defined Area] - - - [Initial Value] - - - [Function] Enters raster mode. This command is ignored when in the raster mode. The following shows the details regard processing of this command. (1) Reception of this command.
  • Page 83 ESC * r B [Name] Quit raster mode [Code] ASCII Hex. Decimal 42 114 [Defined Area] - - - [Initial Value] - - - [Function] Quits raster mode. When quitting the raster mode, if there is raster data remaining in the image buffer of the raster mode, it quits the raster mode after executing the raster EOT mode.
  • Page 84 ESC * r D n NUL [Name] Drawer drive [Code] ASCII Hex. Decimal 42 114 [Defined Area] 0≤n≤3 [Initial Value] n = 0 [Function] Drives the drawer in the raster mode. Drawer drive conditions conform to setting command (<ESC> <BEL> n1 n2) of the line mode. n is a decimal description (max.
  • Page 85 ESC * r E n NUL [Name] Set raster EOT mode [Code] ASCII Hex. Decimal 42 114 [Defined Area] n = 0, 1, 2, 3, 8, 9, 12, 13, 36, 37 [Initial Value] Models handling full cut: n = 9 Models connected with a presenter: n = 37 [Function] Sets the raster EOT mode.
  • Page 86 ESC * r F n NUL [Name] Set raster FF mode [Code] ASCII Hex. Decimal 42 114 [Defined Area] n = 0, 1, 2, 3, 8, 9, 12, 13, 36, 37 [Initial Value] Models handling full cut: n = 9 Models connected with a presenter: n = 37 [Function] Sets raster FF mode.
  • Page 87 ESC * r P n NUL [Name] Set raster page length [Code] ASCII Hex. Decimal 42 114 [Defined Area] - - - [Initial Value] Raster image buffer length [Function] Sets raster page length. n is a decimal description (max. 255 digits) using ASCII characters. Continuous print mode (no page length setting) 1≤n Specify page length...
  • Page 88 ESC * r m l n NUL [Name] Set raster left margin [Code] ASCII Hex. Decimal 42 114 109 108 [Defined Area] - - - [Initial Value] n = 0 [Function] Sets raster left margin. This command sets the left margin to (n x 8). When the left margin exceeds the printable area, or if the left margin specification eliminates the print area (printable region to right margin) to the left margin specified value, this command is ignored.
  • Page 89: [Code] Ascii Esc

    ESC * r T n NUL [Name] Set raster top margin [Code] ASCII Hex. Decimal 42 114 [Defined Area] 0≤n≤2 [Initial Value] [Function] Sets the raster top margin. n is a decimal description (max. 255 digits) using ASCII characters. Top margin Set To Default Set top margin using reverse paper feed.
  • Page 90 b n1 n2 data [Name] Send raster data (auto line feed) [Code] ASCII Hex. Decimal [Defined Area] 0≤n1≤255 0≤n2≤255 0≤d≤255 k= n1+n2 x 256 1≤k [Initial Value] - - - [Function] Sends raster data (auto line feed). Raster data is sent in (n1 + n2 x 256) byte counts as binary data. Raster data exceeding the print area currently set is discarded.
  • Page 91 k n1 n2 data [Name] Transfer raster data [Code] ASCII Hex. Decimal [Defined Area] 0≤n1≤255 0≤n2≤255 0≤d≤255 k≤ n1+n2 x 256 1≤k [Initial Value] - - - [Function] Sends raster data. Raster data is sent in (n1 + n2 x 256) byte counts as binary data. Raster data exceeding the print area currently set is discarded.
  • Page 92: Hex

    ESC * r Y n NUL [Name] Move vertical direction position (Line feed for specified dots) [Code] ASCII Hex. Decimal 42 114 [Defined Area] - - - [Initial Value] - - - [Function] Moves vertical direction position. Moves position n dots with this command. When the current page length setting is in continuous print mode, and the n dots exceed the remaining dot count of the raster image buffer length, this moves up to the remaining dot count and ignores the overflow.
  • Page 93 ESC FF NUL [Name] Execute FF mode [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] Executes FF mode. Executes operation specified by the FF mode setting command (ESC * r F n NUL). ESC FF EOT [Name] Execute EOT mode...
  • Page 94 ESC * r V m n NUL [Name] Execute external buzzer drive [Code] ASCII Hex. Decimal [Defined Area] m=49,50 1≤n≤20 [Initial Value] - - - [Function] Repeatedly drives the buzzer according to the ON/OFF conditions set by the external buzzer drive pulse conditions command <ESC>...
  • Page 95: [Defined Area] 0

    3.5. Black Mark Related Command Details The following commands control top of form functions using black mark paper. The following commands are effective only when black mark is set to be effective. ESC d n [Name] Auto cutter [Code] ASCII Hex.
  • Page 96: Decimal 27 42

    [Name] Execute top of form [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] Executes top of form. ESC C n [Name] Set page length to n lines [Code] ASCII Hex. Decimal [Defined Area] 1≤n≤127 [Initial Value] (Form feed amount initial value x 42)
  • Page 97 ESC C 0 n [Name] Set page length to n x 24 mm units [Code] ASCII Hex. Decimal [Defined Area] 1≤n≤22 [Initial Value] (Form feed amount initial value x 42) [Function] When black mark is effective, this command is ignored. ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――...
  • Page 98 [Name] Feed paper to vertical table position [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] When black mark is effective, this command is ignored. ESC B n1 n2...nk NUL [Name] Set vertical tab position [Code] ASCII Hex.
  • Page 99: Usb Related Command Details

    3.6. USB Related Command Details The following commands control USB I/F functions. There are no corresponding commands. ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Line Mode Command Specifications 3-83...
  • Page 100: Color Printing Command Details

    3.7. 2 Color Printing Command Details The following commands control 2 color printing functions. The following commands are effective only when using a model handling 2 color printing. ESC RS c n [Name] Set print color in 2 color print mode [Code] ASCII ESC RS...
  • Page 101 ESC RS C n [Name] Select/cancel 2 color print mode [Code] ASCII ESC RS Hex. Decimal [Defined Area] Specification A 0≤n≤2 48≤n≤50 (”0”≤n≤”2”) Specification B 0≤n≤1 48≤n≤49 (”0”≤n≤”1”) Specification C 0≤n≤2 48≤n≤50 (”0”≤n≤”2”) n = 16, n = 32 [Initial Value] n = 0, 48 [Function] Specification A...
  • Page 102 Specification B Select/cancel 2 color print mode 0, 48 Cancels 2 color print mode This command cancels 2 color print mode, when in 2 color print mode. This command is ignored when the 2 color print mode is already cancelled. The specification of this command is not cleared by ESC @ CAN.
  • Page 103 ESC 4 [Name] Select white/black inverted printing [Code] ASCII Hex. Decimal [Defined Area] - - - [Initial Value] White/black inversion cancelled [Function] Specifies white/black inversion for ANK characters and Chinese characters. IBM block ignores white/black inversion. ESC 5 [Name] Cancel white/black inversion [Code] ASCII Hex.
  • Page 104 ESC RS d n [Name] Set print density [Code] ASCII ESC RS Hex. Decimal 30 100 [Defined Area] 0≤n≤15 48≤n≤57 (”0”≤n≤”9”) 65≤n≤70 (”0”≤n≤”F”) [Initial Value] Memory switch setting [Function] Sets print density. This command stops printing to be executed. When in two-color print mode, this can set the print density of red print. Single Color Printing Mode 0, 48 1, 49...
  • Page 105 ESC RS r n [Name] Set printing speed [Code] ASCII ESC RS Hex. Decimal 30 114 [Defined Area] 0≤n≤3 48≤n≤51 (”0”≤n≤”3”) [Initial Value] Memory switch setting [Function] Sets print speed. This command stops printing to be executed. Because two-color print mode prints in one speed, the speed settings with this command are invalid.
  • Page 106 ESC FS q n [ x 1 1 x 1 2 y 1 1 y 1 2 d 1 . . . d k ] 1 . . . [ x n 1 x n 2 y n 1 y n 2 d 1 . . . d k ] n [Name] Register logo [Code]...
  • Page 107 Relationships of logo and registered data xn = xn1 + xn2 x 256 yn = yn1 + yn2 x 256 (yn1 + yn2 x 256) bytes (yn1 + yn2 x 256) x 8 dots ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Line Mode Command Specifications {(xn1 + xn2 x 256) x 8} dots d[11] d[21]...
  • Page 108 ESC FS p n m [Name] Print logo [Code] ASCII Hex. Decimal 28 112 [Defined Area] 1≤n≤255 0≤m≤3 48≤m≤51 (”0”≤m≤”3”) [Initial Value] - - - [Function] Prints the logo of registration number n registered using the logo registration command (ESC FS q) according to the print mode m.
  • Page 109: Presenter Related Command Details

    3.8. Presenter Related Command Details The following commands control the presenter functions. The following commands are effective only on models equipped with a presenter. ESC SYN 0 n [Name] Execute presenter paper recovery [Code] ASCII ESC SYN Hex. Decimal [Defined Area] n = 0 [Initial Value] - - -...
  • Page 110 ESC SYN 3 n [Name] Acquire presenter paper counter [Code] ASCII ESC SYN Hex. Decimal [Defined Area] n = 0, 1 n = 48, 49 (”0”, “1”) [Initial Value] - - - [Function] Acquires presenter paper counter. This command is ignored when a presenter is not connected. Counter can count to 0xFFFFFFFF sheets.
  • Page 111 ESC SYN 4 n [Name] Initialize presenter paper counter [Code] ASCII ESC SYN Hex. Decimal [Defined Area] n = 0 [Initial Value] - - - [Function] Initializes the presenter paper counter (paper reel counter/paper recovery counter). Initialization of the paper counter using this command is executed when this command is processed.
  • Page 112: Mark Command Details

    <Print Sample> LOTTERY 10 01 05 32 85 86 50 70 77 08 50 21 42 46 40 12 02 06 78 2003/04/08 STAR micronics.co,ltd No. 0304081254896 <Example of Command Transmission> • Mark Format Mark Height h = 10 dots, mark line feed amount v = 20 dots...
  • Page 113 4. Printing Marks <ESC><GS> * 0 n m1 m2 m3 m4 m5 m6 m7 (n=”007”, m1=”1”, m2=”0”, m3=”1”, m4=”0”, m5=”1”, m6=”0”, m7=”2”) <ESC><GS> * 0 n m1 m2 m3 m4 m5 m6 m7 (n=”007”, m1=”1”, m2=”0”, m3=”2”, m4=”0”, m5=”1”, m6=”0”, m7=”1”) <ESC><GS>...
  • Page 114 ESC GS * 0 n m1 m2 m3 … mk [Name] Print mark [Code] ASCII ESC GS Hex. Decimal [Defined Area] “001” ≤ n ≤ ”255” “0” ≤ m ≤ ”9” k = n [Initial Value] - - - [Function] Prints the mark number specified by m, based on the mark format (mark height, mark line feed amount, each mark color, and each mark horizontal width) that is preset.
  • Page 115 ESC GS * 1 h v [Name] Specify mark height and line feed [Code] ASCII ESC GS Hex. Decimal [Defined Area] “001” ≤ h ≤ ”255” “001” ≤ v ≤ ”255” h ≤ v [Initial Value] Non-volatile memory [Function] Specifies mark height and line feed amount h is the mark height (number of dots);...
  • Page 116 ESC GS * W [Name] Register mark format to non-volatile memory [Code] ASCII ESC GS Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] Registers the mark format (mark height, mark line feed amount, each mark color, and each mark horizontal width) to the non-volatile memory.
  • Page 117: Auto Logo Function Command Details

    3.10. AUTO LOGO Function Command Details This command functions to print logos, like the one below, by only changing the product name, when only product names can be changed in systems that are already in use. Also, this function has two operating modes. 1) Standard Auto Logo Function The Auto Logo function is preset and executes the following operations using the print cut command under the current system as a trigger.
  • Page 118 2) Simple Auto Logo Function The simple Auto Logo function is preset and executes the following operations using the print cut command under the current system as a trigger. 1. Start up the simple Auto Logo function using the current system cut command as a trigger 2.
  • Page 119 <Example of Command Transmission> 1) Set the Auto Logo function in advance and register it to the non-volatile memory. ESC GS / 1 n (n=0x01) ESC GS / 2 n ( n=“/” ) ESC GS / 3 nL nH d1 d2... dk nL=4 nH=0 d1=0x1b d2=0x1d d2=0x61 d3=0x01 ESC GS / 4 nL nH d1 d2...
  • Page 120 ESC GS / W [Name] Register Auto Logo setting to non-volatile memory [Code] ASCII ESC GS Hex. Decimal [Defined Area] - - - [Initial Value] - - - [Function] Registers Auto Logo setting to non-volatile memory After registration, the printer is reset. This command is ignored when Auto Logo is being executed.
  • Page 121 ESC GS / 1 n [Name] Auto Logo Function On/Off Setting [Code] ASCII ESC GS Hex. Decimal [Defined Area] 0 ≤ n ≤ 2 [Initial Value] n = 0 [Function] Turns the Auto Logo function on and off. This command is registered to the non-volatile memory by the <ESC> <GS> / W command. When in raster mode, the Auto Logo function is invalid.
  • Page 122 ESC GS / 2 n [Name] Set command character [Code] ASCII ESC GS Hex. Decimal [Defined Area] 32 ≤ n ≤ 127, n = 0 [Initial Value] n = 0 [Function] Sets the Auto Logo function command character. This command is registered to the non-volatile memory by the “<ESC> <GS> / W” command. This command is ignored when Auto Logo is being executed.
  • Page 123 ESC GS / 3 nL nH d1 d2 … dk [Name] Set user macro 1 [Code] ASCII ESC GS Hex. Decimal [Defined Area] 1 ≤ n ≤ 64 nH = 0 1 ≤ (nL + nH x 256) ≤ 64 dk = (nL + nH x 256) 0 ≤...
  • Page 124 ESC GS / 5 n [Name] Set command character switching method [Code] ASCII ESC GS Hex. Decimal [Defined Area] 0 ≤ n ≤ 1 [Initial Value] n = 0 [Function] Sets the Auto Logo function command character switching method. This command is registered to the non-volatile memory by the “<ESC> <GS> / W” command. This command is ignored when Auto Logo is being executed.
  • Page 125 ESC GS / 6 n [Name] Set partial cut before Auto Logo printing [Code] ASCII ESC GS Hex. Decimal [Defined Area] 0 ≤ n ≤ 1 [Initial Value] n = 0 [Function] Sets a partial cut before the Auto Logo printing. This command is registered to the non-volatile memory by the “<ESC>...
  • Page 126: Two-Dimensional Bar Code Pdf417 Command Details

    3.11. Two-dimensional Bar Code PDF417 Command Details This command prints two-dimensional bar code PDF417. There are four types of commands, according to functions, for two-dimensional bar code PDF417. (1) Bar code type setting (2) Bar code data setting (3) Bar code printing (4) Bar code expansion information acquisition The following describes the functions in detail.
  • Page 127 The settings above are set individually, so the errors described below may be generated even if there is no particular problem in those settings. In such case, if the bar code is generated the (3) print command (<ESC> <GS> “x” “P”) is ignored.
  • Page 128 ESC GS x S 0 n p1 p2 Name] Set PDF417 bar code size [Code] ASCII ESC GS Hex. Decimal 29 120 [Defined Area] n = 0, 1 When n = 0: When n = 1: [Initial Value] n = 0, p1 = 1, p2 = 2 [Function] Parameter details (Specify Method to Specify Bar Code Size)
  • Page 129 ESC GS x S 3 n Name] Set PDF417 module aspect ratio [Code] ASCII ESC GS Hex. Decimal 29 120 [Defined Area] 1 ≤ n ≤ 10 [Initial Value] n = 3 [Function] Parameter details • n: Sets the module aspect ratio (asp). The module Y direction size (x-dim x asp) is set using this command.
  • Page 130 ESC GS x I [Name] Get PDF417 bar code expansion information [Code] ASCII ESC GS Hex. Decimal 29 120 [Defined Area] [Initial Value] [Function] When printing a bar code with the current settings and at the print starting position using this command, error information is sent to the printer.
  • Page 131: Details Of The Print Starting Trigger Control Command

    3.12. Details of the Print Starting Trigger Control Command This command is for models equipped with an expansion control function for page control of line unit commands, by controlling the image buffer by page. ESC GS g 0 m n [Name] Print starting trigger [Code]...
  • Page 132: Two-Dimensional Bar Code Qr Code Command Details

    3.13. Two-Dimensional Bar Code QR Code Command Details * Note that QR code is a registered trademark of DENSO WEB. This command is for printing 2-dimensional bar code QR codes. There are four functions of the commands relating to the 2-dimensional bar code QR codes, shown below. (1) Set bar code type (<ESC>...
  • Page 133 (2) Set bar code data This command sets the bar code print data. There are four types of data that can be set using QR codes. They are: numbers; English characters; binary; and Kanji. Furthermore, there are two types of data setting methods. One is to specify these along with the bar code data (data manual analysis), and the other is to specify only the bar code data (data automatic analysis).
  • Page 134 The following is an example showing the sending of the commands. Set bar code type <ESC> <GS> “y” “S” “0” 1 <ESC> <GS> “y” “S” “1” 0 <ESC> <GS> “y” “S” “2” 3 Set bar code data • <ESC> <GS> “y” “D” “1” 0 20 0 •...
  • Page 135 ESC GS y S 0 n [Name] Set QR code model [Code] ASCII ESC GS Hex. Decimal 29 121 [Defined Area] 1 ≤ n ≤ 2 [Initial Value] n = 2 [Function] Sets the model. • Parameter details ESC GS y S 1 n [Name] Set QR code mistake correction level [Code]...
  • Page 136 ESC GS y D 1 m nL nH d1 d2 … dk [Name] Set QR code cell size (Auto Setting) [Code] ASCII ESC GS Hex. Decimal 29 121 [Defined Area] m = 0 0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255 1 ≤...
  • Page 137 E S C G S y D 2 a m 1 n 1 L n 1 H d 1 1 d 1 2 • • • d 1 k m 2 n 2 L n 2 H d 2 1 d 2 2 • • • d 2 k m l • • • d l k [Name] Set QR code cell size (Manual setting) [Code]...
  • Page 138 ESC GS y P [Name] Print QR code [Code] ASCII ESC GS Hex. Decimal 29 121 [Defined Area] [Initial Value] [Function] Prints bar code data. When receiving this command, if there is unprinted data in the image buffer, the printer will print the bar code after printing the unprinted print data.
  • Page 139: Page Function Command Details

    3.14. Page Function Command Details ESC GS h 0 k m n [Name] 180 degree turnover [Code] ASCII ESC GS Hex. Decimal 29 104 [Defined Area] 0 ≤ k ≤ 1, m = 0, n = 0 [Initial Value] [Function] Sets 180 degree turnover function to be valid/invalid.
  • Page 140 ESC GS h 1 k m n [Name] Water mark function [Code] ASCII ESC GS Hex. Decimal 29 104 [Defined Area] 0 ≤ k ≤ 2, 0 ≤ m ≤ 2, 1 ≤ n ≤ 255 [Initial Value] [Function] Sets the water mark function to be valid/invalid. •...
  • Page 141: Character Code Tables

    4. CHARACTER CODE TABLES Refer to the separate ”Character Code Tables” . ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Line Mode Command Specifications...
  • Page 142: Appendix

    5. APPENDIX 5.1. Appendix 1: Bar Code Specification Details Refer to the dedicated manuals for characteristics and methods of use for each bar code symbol. This section describes precautions and methods for setting when printing with the printer. Bar code widths are set for each bar code according to the mode. The following describes each mode and the dot counts.
  • Page 143: Jan/Ean/Upc

    5.1.3. JAN/EAN/UPC Used numbers, not only the bar code symbols, are controlled using JAN, EAN and UPC as shared common commercial codes. Mainly, they are used for supermarkets such as shops and grocery stores. 1. Each mode and bar code width Items Module Width Bar code width (*)
  • Page 144: Code 128

    5.1.4. Code 128 These are bar code symbols that can print ASCII 128 characters. For that reason, use thereof is increasing. 1. Each module and module width Items Mode 1 Module Width 2 dots Length of 1 2.75 mm Character (*) (*) Start and stop bars not included.
  • Page 145 • 2 Character set code table <Control Codes> <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...
  • Page 146: Code 93

    5.1.5. Code 93 1. Each mode and module width Items Module Width Length of 1 Character (*) (*) Start and stop bars not included. 2. Regulations • Start/stop codes are automatically applied. • Check character (C, K) is automatically applied. •...
  • Page 147: Appendix 2: Status Specifications

    5.2. Appendix 2: Status Specifications 5.2.1. ENQ Command Status This status is the one the printer transmits using the ENQ command. Contents Conversion SW Overrun Error Reception Buffer Empty Has Data Fixed at ”0” Paper end Other Errors Framing Error Parity Error •...
  • Page 148: Automatic Status

    5.2.3. Automatic Status Automatic status is a group of states that are automatically returned from the printer to the host when the printer’s status has changed. Automatic status is composed of “Header – 1,” “Header – 2” and “plurality of bytes of the printer status and is continuously returned to the host.
  • Page 149 2. Header -2 Header -2 is the 1 byte length information transmitted from the second byte of the automatic status. The table below shows the composition of the Header -2. Header -2 represents the automatic status version (called automatic status version below) using bit 1 to bit 3 and bit 5. For reference, the table below shows the relationship of actual version bytes and the Header -2.
  • Page 150 3. Printer Status Printer status is the status of the printer sent from the third byte of the automatic status. Printer status is returned for (transmitted byte count – 2 in Header – 1). Printer status is always updated for new information. (No log exists.) The following shows the composition of the status. <Printer status 1 Printer status (Third Byte)>...
  • Page 151 TSP828L Operation Mode Tear Bar Mode Peel Mode <Printer status 4 Sensor Information (Sixth Byte)> Contents Fixed at “0” Not Used (Fixed at “0”) Not Used (Fixed at “0”) Fixed at “0” Paper end Paper Near-end (Inner Side) Paper Near-end (Outer Side) Fixed at “0”...
  • Page 152 <Printer status 6 ETB Counter (Eighth Byte)> Contents “0” Fixed at 0 ETB Counter Bit-4 ETB Counter Bit-3 Fixed at 0 ETB Counter Bit-2 ETB Counter Bit-1 ETB Counter Bit-0 Fixed at 0 (*) ETB Counter This counter is the 5 bit ETB counter. (It counts from 0 to 31.
  • Page 153 <Printer status 7 Position for Presenter Paper (Ninth Byte)> Contents Fixed at “0” Not Used (Fixed at “0”) Not Used (Fixed at “0”) Fixed at “0” (See table Presenter Paper Position (See table Presenter Paper Position (See table Presenter Paper Position Fixed at “0”...
  • Page 154 Status identification method Command/Functions XOFF ASB (Header – 1) ASB (Other than Header – 1) Indicates “0” bit is fixed at 0/Indicates 1 is fixed at 1/Inidcates * variable bit. ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Line Mode Command Specifications Status bit7 bit6 bit5 bit4 bit3 bit2...
  • Page 155: Printer Status Transmission Specification When Using Ethernet I/F And Wireless Lan I/F

    5.2.4 Printer status transmission specification when using Ethernet I/F and Wireless LAN I/F The following describes printer status transmission specifications when using an Ethernet I/F and wireless LAN I/F. 1) Transmission Format: • When transmitting only STAR ASB: STAR ASB (Second Byte Bit 7 = 1) + Length (Length = 0x0000) •...
  • Page 156 2. Separator character 1 (1 Byte) Sends “:” 3. Data Type (1byte) Indicate printer status data; sends “B” (binary type). 4. Status Length (2 bytes) 2 byte value indicating printer status byte count. 5. Printer Status (Variable length) Status sent by printer. Status differs according to the cause.
  • Page 157: Appendix 3: Blank Code Page Configuration

    5.3. Appendix 3: Blank Code Page Configuration Blank code pages are character code tables that are empty from character code 80H to FFH. They can be specified using the command below. • ESC GS t n (n=255) Also, it is possible to write data to the blank code page area using the command below. •...
  • Page 158 2. Example configuration of Font B data. (9 x 24 font) The STAR mode is not loaded with Font B. However, when registering data, Font A and Font B must be registered as a set. When doing so, Font B data can be zero data. •...
  • Page 159 • TSP700II Mai n tenance Counter Type Counter Permanent Head Counter Energizing Count Motor Traveling Distance Cutter Drive Count User Counter Head Energizing Count Motor Traveling Distance Cutter Drive Count • The head energizing count is sometimes counted even when there is not energizing data. (Such as when blank space data is included in the font data.) •...
  • Page 160: Appendix 7 Maximum Number Of Input Characters For Each Version Of Qr Code

    5.4. Appendix 7 Maximum Number of Input Characters for Each Version of QR Code Model 1 Version and Maximum Number of Input Characters Version Cell Count on One Side ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Line Mode Command Specifications Mistake Number of English Correction Characters Characters Level...
  • Page 161 Model 2 Version and Maximum Number of Input Characters Version Cell Count on One Side ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Line Mode Command Specifications Mistake Number of English Correction Characters Characters Level 1022 1101 1250 5-20 Binary Kanji...
  • Page 162 Version Cell Count on One Side ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Line Mode Command Specifications Mistake Number of English Correction Characters Characters Level 1408 1082 1548 1212 1725 1346 1903 1500 1063 2061 1600 1159 2232 1708 1224 2409 1872 1358 1056 2620 2059 1468 1108...
  • Page 163 Version Cell Count on One Side ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Line Mode Command Specifications Mistake Number of English Correction Characters Characters Level 4417 3486 2473 1897 4686 3693 2670 2022 4965 3909 2805 2157 5253 4134 2949 2301 5529 4343 3081 2361 5836 4588 3244...
  • Page 164: Appendix 8 Tsp828L Cut Command Specifications

    5.5. Appendix 8 TSP828L Cut Command Specifications <Line Mode> Command Normal Thermal Paper <FF> Form Feed <ESC> d n n = 0, 48 Tear n = 1, 49 Conveyance n = 2, 50 Tear n = 3, 51 Conveyance n = 116 (“t”) <Raster Mode FF/EOT>...
  • Page 165: Special Appendix Command List For Each Model In Each I/F

    6. SPECIAL APPENDIX COMMAND LIST FOR EACH MODEL IN EACH I/F 6.1. RS-232C I/F • Standard Commands Class Commands TSP800 Font Style ESC RS F ESC GS = Ver. 3.0 or Character Set later ESC R ESC / ESC SP ESC M ESC P ESC :...
  • Page 166 Class Commands TSP800 External ESC BEL device drive ESC GS BEL ESC GS EM DC1 ESC GS EM DC2 Print Setting ESC RS d ESC RS r Status ESC RS a Spec. A ESC ACK SOH Spec. A ESC RS E Chinese ESC p Character...
  • Page 167 • Black Mark Related Commands Class Commands TSP800 Black Mark ESC d Related Commands ESC C ESC C 0 ESC B • 2-Color Printing Related Commands Class Commands TSP800 2-Color ESC RS c Ver. 4.0 or Printing later Related ESC RS C Spec.
  • Page 168 • PDF417 Commands Class Commands TSP800 PDF417 ESC GS x S 0 Commands ESC GS x S 1 ESC GS x S 2 ESC GS x S 3 ESC GS x D ESC GS x P ESC GS x I •...
  • Page 169: Parallel I/F • Usb I/F (Ver2.0)

    6.2. Parallel I/F • USB I/F (Ver2.0) • Standard Commands Class Commands TSP800 Font Style ESC RS F ESC GS t Character Set ESC GS = VER. 3.0 LATER ESC R ESC / ESC SP ESC M ESC P ESC : (Not recommended) ESC g...
  • Page 170 Class Commands TSP800 External ESC BEL device drive ESC GS BEL ESC GS EM DC1 ESC GS EM DC2 Print Setting ESC RS d ESC RS r Status ESC RS a Spec. A ESC ACK SOH Spec. A ESC RS E Chinese ESC p Character...
  • Page 171 • Black Mark Related Commands Class Commands TSP800 Black Mark ESC d Related Commands ESC C ESC C 0 ESC B • 2-Color Printing Related Commands Class Commands TSP800 2-Color ESC RS c Ver. 4.0 or Printing later Related ESC RS C Spec.
  • Page 172 • PDF417 Commands Class Commands TSP800 PDF417 ESC GS x S 0 Command ESC GS x S 1 ESC GS x S 2 ESC GS x S 3 ESC GS x D ESC GS x P ESC GS x I •...
  • Page 173: Usb I/F (Ver1.0) • Ethernet I/F (Silex Ver1.0)

    6.3. USB I/F (Ver1.0) • Ethernet I/F (Silex Ver1.0) • Standard Commands Class Commands TSP800 Font Style ESC RS F ESC GS t Character ESC GS = Ver. 3.0 or later ESC R ESC / ESC SP ESC M ESC P ESC : (Not recommended)
  • Page 174 Class Commands TSP800 External ESC BEL Device Drive ESC GS BEL ESC GS EM DC1 ESC GS EM DC2 Print Setting ESC RS r Status ESC RS a ESC ACK SOH Spec. A ESC RS E Chinese ESC p Character ESC q ESC $ ESC s...
  • Page 175 • Black Mark Related Commands Class Commands TSP800 Black Mark ESC d Related Commands ESC C ESC C 0 ESC B • 2-Color Printing Related Commands Class Commands TSP800 2-Color ESC RS c Ver. 4.0 or Printing later Related ESC RS C Spec.
  • Page 176 • PDF417 Commands Class Commands TSP800 PDF417 ESC GS x S 0 Command ESC GS x S 1 ESC GS x S 2 ESC GS x S 3 ESC GS x D ESC GS x P ESC GS x I •...
  • Page 177: Ethernet I/F / Wireless Lan I/F

    6.4. Ethernet I/F / Wireless LAN I/F • Standard Commands Class Commands TSP800 Font Style ESC RS F ESC GS t Character ESC GS = Ver. 3.0 or later ESC R ESC / ESC SP ESC M ESC P ESC : (Not recommended) ESC g...
  • Page 178 Class Commands TSP800 External ESC BEL device drive ESC GS BEL ESC GS EM DC1 ESC GS EM DC2 Print ESC RS d Setting ESC RS r Status ESC RS a ESC ACK SOH Spec. A ESC RS E Chinese ESC p Character ESC q...
  • Page 179 • Black Mark Related Commands Class Commands TSP800 Black Mark ESC d Related Commands ESC C ESC C 0 ESC B • 2-Color Printing Related Commands Class Commands TSP800 2-Color ESC RS c Ver. 4.0 or Printing later Related ESC RS C Spec.
  • Page 180 • PDF417 Commands Class Commands TSP800 PDF417 ESC GS x S 0 Comman ESC GS x S 1 ESC GS x S 2 ESC GS x S 3 ESC GS x D ESC GS x P ESC GS x I •...
  • Page 181 ELECTRONIC PRODUCTS DIVISION STAR MICRONICS CO., LTD. 536 Nanatsushinya, Shimizu-ku, Shizuoka, 424-0066 Japan Tel: (int+81)-54-347-0112, Fax: (int+81)-54-347-0709 Please access the following URL http://www.star-m.jp/eng/dl/dl02.htm for the latest revision of the manual. OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA, INC. 1150 King Georges Post Road, Edison, NJ 08837-3729 U.S.A.

Table of Contents