1. Control Codes (Star Mode) 1-1. Control Codes List The following tables show the Star Mode commands that are supported by this printer. 1-1-1. Character Selection Control Codes <ESC> "R" n <ESC> "/" "1" <ESC> "/" <1> <ESC> "/" "0" <ESC>...
1-1-2. Print Position Control Control Hexadecimal Codes Codes <LF> <VT> <FF> <CR> <ESC> "a" n 1B 61 n <HT> <ESC> "A" n 1B 41 n <ESC> "2" 1B 32 <ESC> "z" "0" 1B 7A 30 <ESC> "z" <0> 1B 7A 00 <ESC>...
1-1-8. Other Commands Control Hexadecimal Codes Codes <CAN> <DC3> <DC1> <RS> <ESC> "# N , n 1 n 2 n 3 n 4" 1B 23 N 2C n 1 n 2 <LF> < N UL> <ESC> "@" <EOT> <ENQ> <ETB> <ESC>...
1-2. Control Code Details The following section explains the details of the printer control codes. 1-2-1. Character Selection FUNCTION CODE DEFINITION RANGE OUTLINE FUNCTION CODE OUTLINE Selects the international character set <ESC> "R" n (1B)H (52)H n < = < = (0E)H or n = (40)H (00)H Select the international character set corresponding to the value...
FUNCTION CODE OUTLINE Selects the character code table <ESC> <GS> "t" n 1B 1D 74 n Selects the character code table This function selects a character code table (as shown below). The default settings follow the settings of the memory switches 3- 8 to 3-5.
Page 11
Value of n Character Table Hex. Dec. Normal (Default) Code Page 437 (USA, Std. Europe)/IBM Character Set #2 Katakana IBM Character Set #1 Codepage 858 (Multilingual) Codepage 852 (Latin-2) Codepage 860 (Portuguese) Codepage 861 (Icelandic) Codepage 863 (Canadian French) Codepage 865 (Nordic) Codepage 866 (Cyrillic Russian) Codepage 855 (Cyrillic Bulgarian) Codepage 857 (Turkish)
FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Selects IBM character set #2 <ESC> "6" (1B)H (36)H Selects IBM character set #2. Switches from IBM character set #1 to character set #2. Subsequent 80H to 9FH codes are handled as character data. This command is invalid when the character code table settings are other than #1.
FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Selects 5 X 9 (2 pulses per dot) font <ESC> "P" (1B)H (50)H Selects 5 X 9 (2 pulses = 1 dot) font. The number of digits per line is set by the DIP switches in the following way.
FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE Sets the printing magnified double in character width <SO> (0E)H Data following this code is printed in double-width characters. Same as <ESC> "W" "1" or <ESC> "W" <1>. Resets the printing magnified in character width (Default) <DC4>...
OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Sets the magnification rate in character height Prints the subsequent data with a character height magnified by a rate specified by the value of n . n = 0 and "0"' Reset magnification n = 1 and "1": Double magnification Note: •...
FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Cancels inverted printing (Default) <DC2> (12)H Cancels the inverted character mode. This code is valid only when input at the beginning of a line. Specifies rotated print mode for text with a rotation <ESC>...
FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Selects uni-directional print mode <ESC> "U" "1" or <ESC> "U" <1> (1B)H (55)H (31)H or (1B)H (55)H (01)H Prints only when the print head moves from left to right. Selects bi-directional print mode <ESC> "U" "0" or <ESC> "U" <0> (1B)H (55)H (30)H or (1B)H (55)H (00)H Returns to the standard bi-directional print mode.
1-2-2. Ptint Position Control FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Line feed <LF> (0A)H Data in the line buffer is printed out and one line is fed. If data does not exist before this code is received, the printer only feeds one line.
FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Carriage return <CR> (0D)H The <CR> code is valid when the memory switch 3-1 = 1 (set to 0 at exfactory). When the <CR> code is valid, setting the memory switch 3-0 will cause the <CR> to function as shown in the table below.
FUNCTION CODE DEFINITION RANGE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Define n /72-inch line spacing <ESC> "A" n (1B)H (41)H n < = < = 85 (Default n = 12) Line feed is defined at n /72-inch after this code is received. This code sets the feed at n /72-inch with the <ESC>...
FUNCTION CODE OUTLINE FUNCTION CODE DEFINITION RANGE OUTLINE FUNCTION CODE DEFINITION RANGE OUTLINE FUNCTION CODE DEFINITION RANGE OUTLINE Sets line spacing to 7/72 inch <ESC> "1" (1B)H (31)H Line feed is set at 7/72-inch after this code is received. One time n /72-inch feed <ESC>...
FUNCTION CODE DEFINITION RANGE OUTLINE FUNCTION CODE OUTLINE Sets horizontal tab stops <ESC> "D" n1 n2 ...nk <0> (1B)H (44)H n1 n2 ...nk (00)H < = < = < = n3 ... < nk < = < = Cancels all horizontal tab stops and sets new tab stops within the character pitch at n1 , n2 , etc.
FUNCTION CODE OUTLINE Sets right margin <ESC> "Q" n 1B 51 n Sets the non-printable range with the current character pitch up to the n th postion with the left edge as the reference, after printing the data in the line buffer. Settings changed partway through a line take effect from the subsequent line.
FUNCTION CODE OUTLINE Aligns position <ESC> <GS> "a" n (1B)H (1D)H (61)H n Sets the alignment of the positions. Aligns all print data of one line to the specified position. (00)H, "0": (01)H, "1": (02)H, "2": ABCD <ESC> <GS> “a” “0” ABCDE <ESC>...
1-2-3. Dot Graphics Control FUNCTION CODE DEFINITION RANGE OUTLINE EXAMPLE 8 dot normal density graphics <ESC> "K" n1 <0> m1 m2 ... (1B)H (4B)H n1 (00)H m1 m2 ... < = < = 200 (DIP SW 1 - 5 = ON) or 1 OFF) Executes 8 dot bit image print determined by "...
Page 28
Print Sample FUNCTION CODE DEFINITION RANGE OUTLINE First, since the volume of data is 30, n1 = (1E)H. If the data m1 to m30 is converted to hexadecimal, it appears as shown below. Data Binary Data m11 00111110 00000001 00011110 m12 00000010 02 m13 00000010 02 00111110...
Page 29
NOTE For double density bit image printing, dots cannot be printed overlapping each other in the horizontal direction. The following is an example of this. Printing possible Printing not possible m2 m4 m6 m2 m4 m6 m1 m3 m5 m7 m1 m3 m5 m7 When printing one graphic image of a minimum of two lines with <ESC>...
1-2-4. Download Graphics Printing FUNCTION CODE DEFINITION RANGE OUTLINE WHEN m0 = (00)H D8 D7 D6 D5 D4 D3 D2 D1 Dot Position Used NOTE Defines download characters When the 7 X 9 (half dot) font is set (default setting): <ESC>...
Page 31
FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Char. Code = (21)H Printing possible Printing not possible m2 m4 m6 m1m3 m5 m7 Enables download character set <ESC> "%" "1" or <ESC> "%" <1> (1B)H (25)H (31)H or (1B)H (25)H (01)H Enables the download character set Download characters defined by the ESC &...
EXAMPLE of transmitting data Print Sample (2) Define the download characters. When character codes where the download character is written are specified as (21)H, (22)H, (23)H, n1 = (21)H, n2 = (23)H are obtained. If the relationship between the character pattern data and printing head is specified to "not use pin 9", m0 = (80)H is obtained.
FUNCTION CODE OUTLINE NOTE FUNCTION CODE OUTLINE NOTE FUNCTION CODE OUTLINE NOTE Controls peripheral device #1 immediately <FS> (1C)H Executes drive pulse for peripheral unit 1 (immediate). This code differs from the <BEL> code as follows: When the printer receives an <FS> code, the command is executed immediately.
1-2-6. Auto Cutter Control (SP2500 type printers only) FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Full-cut command to the auto cutter <ESC> "d" "0" or <ESC> "d" <0> (1B)H (64)H (30)H or (1B)H (64)H (00)H Full cut command. Executes a full cut after printing the data in the line buffer.
FUNCTION CODE OUTLINE Partial-cut command to the auto cutter after paper feed <ESC> “d” “3” or <ESC> “d” <3> (1B)H (64)H (33)H or (1B)H (64)H (03)H Paper feed + full cut command Executes the following actions after printing the data in the line buffer.
1-2-7. Command to Set the Page Format FUNCTION CODE DEFINITION RANGE OUTLINE FUNCTION CODE DEFINITION RANGE OUTLINE FUNCTION CODE DEFINITION RANGE OUTLINE FUNCTION CODE OUTLINE Set page length in n lines <ESC> “C” n (1B)H (43)H n < = < = 255 (default: n =42) Sets page length in n lines.
1-2-8. Other Commands FUNCTION CODE OUTLINE Print Sample CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Cancels printer buffer & Initialize printer <CAN> (18)H Clears the data buffer and line buffer and initializes all commands that have already been set. <CAN> is executed not when taking data from the reception buffer, but when it is received from the host.
FUNCTION CODE OUTLINE Sets the memory switch <ESC> “# N, n1 n2 n3 n4 ” <LF> <NUL> 1B 23 N 2C n1 n2 n3 n4 0A 00 In order to enable changed memory switch settings, turn the printer OFF and ON again or send the printer reset command (<ESC>...
Page 40
2) N = 1 (Star mode only) n1 : Always “0” n2 : Always “0” Parameter Setting Zero style International character set Country Country “0” “3” “1” France “4” Denmark #1 “2” Germany “5” Sweden Country Country “9” Norway “C” Latin America “A”...
Page 41
Comdex dual auto-cutter “0” to “7” Invalid “8” to “F” Valid *1: Comdex Dual Auto Cut Mechanism (STAR mode only) This mechanism automatically cuts when there is a consecu- tive paper feed exceedin 7/6 inch. Hosts that cannot send an escape sequence such as <ESC>...
Page 42
Value of n Character Table “0” or “8” “0” Normal (Default) “0” or “8” “1” Code Page 437 (USA, Std. Europe)/IBM Character Set #2 “0” or “8” “2” Katakana “0” or “8” “3” IBM Character Set #1 “0” or “8” “4”...
Page 43
CR code “0” Ignores “1” Ignores “2” Feeds line after printing (same as <LF> “3” Prints (no line feed.) N = 3 (ESC/POS mode) n1 : Always “0” n2 : Always “0” n3 : Always “0” Parameter Setting CR code CR code “0”...
Page 44
N = 4 (ESC/POS mode) n3 : Always “0” Para. Setting RTS signal condition Receive buffer size DSR signal check during setting status transmission 6) N = 5 n1 : Always “0” n2 : Always “0” n3 : Always “0” n4 : Always “0”...
Page 45
FUNCTION CODE OUTLINE Treatment of missing data during reverse mode “0” to “7” Store “8” to “F” Delete Valid only when using a parallel interface. Set DIP SW 1-2 if you are using a serial interface. Also, the conditions for BUSY and the automatic status are disregarded.
Page 46
FUNCTION CODE OUTLINE EOT Status Transmits EOT status <EOT> (04)H Transmits the EOT status of the printer to the host in real-time. (Does not execute after taking fro reception buffer, but immedi- ately upon receiving from the host.) It is in a “Data ready” state when using a bi-directional parallel interface.
FUNCTION CODE OUTLINE Transmits ENQ status <ENQ> (05)H Transmits the ENQ status of the printer to the host in real-time. (Does not execute after taking fro reception buffer, but immedi- ately upon receiving from the host.) It is in a “Data ready” state when using a bi-directional parallel interface.
FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Confirms finish of printing <ETB> (17)H This command cause the printer to wait until all printing is completed (the printing motor stops) and sets the printer status 1- 1 of the automatic status (<ETB> command) to “1” (only execute ETB).
Page 49
FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Enables/disables automatic status <ESC> <RS> “a” n (1B)H (1E)H (61)H n This command sets the transmission conditions of the automatic status. Initial values are according to DIP switch 1-6. See Chapter 2 Automatic Status Specifications for details on the contents of the automatic status.
2. ESC/POS Mode Commands The following table lists the TM-U200 and TM-U300 emulation commands that are supported by this printer. 2-1. Control Codes List Control Hexadecimal Function Codes Codes <HT> <LF> <CR> <DLE> <EOT> 10 04 <DLE> <ENQ> 10 05 <ESC>...
Page 51
Control Hexadecimal Function Codes Codes <ESC> R 1B 52 <ESC> U 1B 55 <ESC> V 1B 56 <ESC> a 1B 61 <ESC> c 3 1B 63 33 <ESC> c 4 1B 63 34 <ESC> c 5 1B 63 35 <ESC> d 1B 64 <ESC>...
Ignored Commands Control Hexadecimal Function Codes Codes <ESC> < 1B 3c <ESC> c 0 n 1B 63 30 n <ESC> f t1 t2 1B 66 t1 t2 <GS> E n 1D 45 n Ignored (Returns home) Ignored (Selects paper type(s) for printing) Ignored (Sets cut sheet wait time) Ignored (Selects head control method) U200...
3. Auto Status Specifications 3-1. Auto Status Auto status is a function that automatically relays any changes that occur in the status of the printer from the printer to the host. It is composed of the “Header -1,” “Header - 2” and “a plurality of bytes of printer states.” The host always identifies the data using the method of identification for each byte received.
Page 54
Table 3-1 Header 1 (First Byte) Content Always 1 Printer Status Byte Count Always 0 Printer Status Byte Count Reserved (Fixed at 0) Not Used (Fixed at 0) Table 3-2 Relationship of Actual Transmitted Byte Count and Header 1 Transmitted Byte Count n (7 n 15) Header 2 Header 2 is the information of the length of one byte transmitted in the second byte of the automatic status.
Page 55
Table 3-3 Header 2 (Second Byte) Content Always 0 Automatic Status Ver. Number Always 0 Automatic Status Ver. Number Not Used (Fixed at 0) Table 3-4 Relationship of Actual Automatic Status Version and Header 2 Version Number n • • •...
Page 56
Printer Status Printer Status is the overall status transmitted in the third byte of the auto- matic status. Printer status is returned as transmission byte count -2 added by the Header 1. It always updates with new information. (There is no historical record existing.) Tables 3-5 to 3-9 show the composition of the overall status.
Page 57
Table 3-7 Printer Status 3 <Error Information> (Fifth Byte) Content Always 0 Invalid Invalid Invalid Always 0 Invalid Reception Buffer Overflow Error (*) Not Used (Fixed at 0) * Bit 6 is cleared to 0 when returned to the host. Table 3-8 Printer Status 4 <Sensor Information>...
Page 58
(2) Precautions Do not use the <ENQ>, <EOT>, <ESC>, <ACK> or <SOH> commands when the automatic status is valid. You must first invalidate the use of the automatic status function using the DIP switches or the <ESC> <RS> “a” n command to use these inquiry commands.
Page 61
Star Mode (Character table: IBM Character set #2 (Code page 437 )) Note: Other characters are the same as those for Character table: Normal.
Page 62
Star Mode (Character table: Katakana) Note: Other characters are the same as those for Character table: Normal.
Page 63
Star Mode (Character table: IBM Character set #1 ) Note: Other characters are the same as those for IBM Character Set #2.
Page 64
Star Mode Code Page #858 Multi-lingual Code Page #860 Portuguese Note: Other characters are the same as those for Character table: Normal. Code Page #852 Latin-2 Code Page #861 Icelandic...
Page 65
Star Mode Code Page #863 Canadian French Code Page #866 Cyrillic Russian Note: Other characters are the same as those for Character table: Normal. Code Page #865 Nordic...
Page 66
Star Mode Code Page #855 Cyrillic Bulgarian 8 9 A B C D E F Code Page #862 Hebrew 8 9 A B C D E F Note: Other characters are the same as those for Character table: Normal. Code Page #857 Turkish 8 9 A B C D E F Code Page #864...
Page 67
Star Mode Code Page #737 Greek Code Page #869 Greek Note: Other characters are the same as those for Character table: Normal. Code Page #851 Greek Code Page #928 Greek...
Page 68
Star Mode Code Page #772 Lithuanian Note: Other characters are the same as those for Character table: Normal. Code Page #774 Lithuanian...
Page 69
Star Mode Code Page #874 Thai 8 9 A B C D E F Code Page #1251 Windows Cyrillic 8 9 A B C D E F Note: Other characters are the same as those for Character table: Normal. Code Page #1250 Windows Latin-2 8 9 A B C D E F Code Page #1252...
Page 70
Star Mode Code Page #3840 IBM-Russian Code Page #3843 Polish Note: Other characters are the same as those for Character table: Normal. Code Page #3841 Gost Code Page #3844...
Page 71
Star Mode Code Page #3845 Hungarian Code Page #3847 Brazil-ABNT Note: Other characters are the same as those for Character table: Normal. Code Page #3846 Turkish Code Page #3848 Brazil-ABICOMP...
Page 72
Star Mode Code Page #1001 Arabic Code Page #3001 Estonian-1 Note: Other characters are the same as those for Character table: Normal. Code Page #2001 Lithuanian-KBL Code Page #3002 Estonian-2...
Page 73
Star Mode Code Page #3011 Latvian-1 Note: Other characters are the same as those for Character table: Normal. Code Page #3021 Bulgarian Note: Other characters are the same as those for Charac- ter table: Normal. Code Page #3012 Latvian-2 Code Page #3041 Maltese Note: Other characters are the same as those for Code...
Page 74
Star Mode International Character Set The character codes shown in the table are hexadecimal.
Page 77
ESC/POS Mode Page 1 (Katakana) Note: Other characters are the same as those for Page 0.
Page 78
ESC/POS Mode Page 2 (PC858: Multilingual) Note: Other characters are the same as those for Page 0.
Page 79
ESC/POS Mode Page 3 (PC860: Portuguese) Page 4 (PC863: Canadian-French) Page 5 (PC865: Nordic) Note: Other characters are the same as those for Page 0.
Page 80
ESC/POS Mode International Character Set The character codes shown in the table are hexadecimal.
HEAD OFFICE STAR MICRONICS CO., LTD. 536 Nanatsushinnya, Shimizu, Shmizuoka 424-0066 Japan Tel: 0543-47-0112, Fax: 0543-48-5013 Please access the following URL http://www.star-micronics.co.jp/service/sp_sup_e.htm for the lastest revision of the manual. OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA, INC. 1150 King Georges Post Road Edison, New Jersey 08837-3729 U.S.A...
Need help?
Do you have a question about the DOT MATRIX PRINTER SP2000 and is the answer not in the manual?
Questions and answers