Page 2 - TABLE OF CONTENTS
TABLE OF CONTENTS 1. Control Codes (Star Mode) ......................................................................... 1 1-1. Control Codes List .............................................................................. 1 1-1-1. Character Selection ................................................
Page 9 - FUNCTION; DEFINITION RANGE; OUTLINE; CODE
7 1-2. Control Code Details The following section explains the details of the printer control codes. 1-2-1. Character Selection FUNCTION Selects the international character set CODE <ESC> "R" n (1B)H (52)H n DEFINITION RANGE (00)H n (0E)H or n = (40)H OUTLINE Select the international c...
Page 10 - Selects the character code table
8 FUNCTION Selects the character code table CODE <ESC> <GS> "t" n 1B 1D 74 n OUTLINE 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 - Katakana
9 Value of n Character Table Hex. Dec. 00 0 Normal (Default) 01 1 Code Page 437 (USA, Std. Europe)/IBM Character Set #2 02 2 Katakana 03 3 IBM Character Set #1 04 4 Codepage 858 (Multilingual) 05 5 Codepage 852 (Latin-2) 06 6 Codepage 860 (Portuguese) 07 7 Codepage 861 (Icelandic) 08 8 Codepage 863 ...
Page 12 - Digits Per Line
10 FUNCTION Selects IBM character set #2 CODE <ESC> "6" (1B)H (36)H OUTLINE 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 ar...
Page 17 - n Value
15 FUNCTION Cancels inverted printing (Default) CODE <DC2> (12)H OUTLINE Cancels the inverted character mode. This code is valid only when input at the beginning of a line. FUNCTION Specifies rotated print mode for text with a rotation CODE <ESC> <RS> "i" n 1B 1E 96 n OUTLI...
Page 18 - Selects uni-directional print mode; Prints only when the print head moves from left to right.; Selects bi-directional print mode; Returns to the standard bi-directional print mode. (This mode is
16 FUNCTION Selects uni-directional print mode CODE <ESC> "U" "1" or <ESC> "U" <1> (1B)H (55)H (31)H or (1B)H (55)H (01)H OUTLINE Prints only when the print head moves from left to right. FUNCTION Selects bi-directional print mode CODE <ESC> "U"...
Page 20 - Memory Switch Setting
18 FUNCTION Carriage return CODE <CR> (0D)H OUTLINE 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. Memory Switch Setting <...
Page 21 - Define; Line feed is defined at; Set; This code sets the line feed at a defined value with the
19 FUNCTION Define n/72-inch line spacing CODE <ESC> "A" n (1B)H (41)H n DEFINITION RANGE 0 < = n < = 85 (Default n = 12) OUTLINE 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> "2" code. FUNCTION Se...
Page 26 - NOTE
24 FUNCTION Sets vertical tab stops CODE <ESC> "B" n1 n2 ...nk <0> (1B)H (42)H n1 n2 ...nk (00)H DEFINITION RANGE 1 < = n1 < = n2 < = n3 ... < nk < = 255 < = 1 < = k < = 16 OUTLINE Cancels all current vertical tab stops and sets new vertical tab stops at l...
Page 27 - EXAMPLE
25 1-2-3. Dot Graphics Control FUNCTION 8 dot normal density graphics CODE <ESC> "K" n1 <0> m1 m2 ... (1B)H (4B)H n1 (00)H m1 m2 ... DEFINITION RANGE 1 < = n1 < = 200 (DIP SW 1 - 5 = ON) or 1 < = n1 < = 210 (DIP SW = OFF) OUTLINE Executes 8 dot bit image print determi...
Page 28 - Print Sample
26 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. Print Sample FUNCTION 8 dot high density graphics CODE <ESC> "L" n1 n2 m1 m2... (1B)H (4C)H n1 n2 m1 m2... DEFINITION RANGE 1 < = n1 + 256 X n2 < = ...
Page 29 - For double density bit image printing, dots cannot be printed; When printing one graphic image of a minimum of two lines with
27 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. m2 m4 m6 m1 m3 m5 m7 m8 m9 m10 m11 D8 D7 D6 D5 D4 D3 D2 D1 m2 m4 m6 m1 m3 m5 m7 m8 m9 m10 m11 D8 D7 D6 D5 D4 D3 D2 D1 Printing possible Print...
Page 32 - EXAMPLE of transmitting data
30 (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 ...
Page 33 - Defines drive pulse width for peripheral device #1; than standard 200 ms pulse time and delay time; Controls peripheral device #1; Peripheral Units 1 and 2 cannot be driven simultaneously.
31 1-2-5. Peripheral Device Control FUNCTION Defines drive pulse width for peripheral device #1 CODE <ESC> <BEL> n1 n2 (1B)H (07)H n1 n2 DEFINITION RANGE 1 < = n1 < = 127, 1 < = n2 < = 127 (default setting n1 = n2 = 20) OUTLINE Adjusts drive pulse width for peripheral devices...
Page 36 - Partial-cut command to the auto cutter after paper feed; Paper feed + full cut command
34 FUNCTION Partial-cut command to the auto cutter after paper feed CODE <ESC> “d” “3” or <ESC> “d” <3> (1B)H (64)H (33)H or (1B)H (64)H (03)H OUTLINE Paper feed + full cut command Executes the following actions after printing the data in the line buffer. (SP2520/2560) Feeds paper ...
Page 39 - Parameter
37 FUNCTION Sets the memory switch CODE <ESC> “# N, n1 n2 n3 n4” <LF> <NUL> HEX 1B 23 N 2C n1 n2 n3 n4 0A 00 OUTLINE In order to enable changed memory switch settings, turn the printer OFF and ON again or send the printer reset command (<ESC> “?” <LF> <NUL>) to th...
Page 43 - CR code
41 N = 3 (ESC/POS mode) n1: Always “0” n2: Always “0” n3: Always “0” Parameter Setting “1” to “3” n4 CR code See below 5) N = 4 (Star mode) n3: Always “0” Para. Setting “0” “1” “2” “3” n1 X on/X off Timing When Every 3 When Every 3 Toggled sec Toggled sec RTS Signal Condition Save as Save as Always ...
Page 44 - Setting
42 N = 4 (ESC/POS mode) n3: Always “0” Para. Setting “0” “1” “2” “3” n1 RTS signal condition Save as Save as Always Always DTR DTR SPACE SPACE n2 Receive buffer size 4 k bytes 4 k bytes 40 bytes 40 bytes n3 DSR signal check Checked Checked Not Not during setting status Checked Checked transmission 6...
Page 49 - Value of
47 FUNCTION Enables/disables automatic status CODE <ESC> <RS> “a” n (1B)H (1E)H (61)H n OUTLINE 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...
Page 52 - Ignored Commands; Control; OK
50 Ignored Commands Control Hexadecimal Function TM- TM- Codes Codes U200 U300 <ESC> < 1B 3c Ignored (Returns home) OK <ESC> c 0 n 1B 63 30 n Ignored (Selects paper type(s) for printing) OK <ESC> f t1 t2 1B 66 t1 t2 Ignored (Sets cut sheet wait time) OK <GS> E n 1D 45 n Ig...
Page 53 - Auto Status Specifications
51 3-1. Auto Status Auto status is a function that automatically relays any changes that occur inthe 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...
Page 54 - Always 1; Header 1
52 Table 3-1 Header 1 (First Byte) Bit Content Status 0 Status 1 0 Always 1 1 2 Printer Status Byte Count 3 4 Always 0 5 Printer Status Byte Count 6 Reserved (Fixed at 0) 7 Not Used (Fixed at 0) Table 3-2 Relationship of Actual Transmitted Byte Count and Header 1 Transmitted Byte Count n (7 n 15) He...
Page 59 - Star Mode; Appendix : Character Code Tables
57 Star Mode (Character table: Normal) Note: The (7F)H code is a space when neither normal nor katakana. Appendix : Character Code Tables
Page 63 - Note: Other characters are the same as those for IBM Character Set #2.
61 Star Mode (Character table: IBM Character set #1 ) Note: Other characters are the same as those for IBM Character Set #2.
Page 64 - Portuguese
62 Star Mode Code Page #858 Code Page #852 Multi-lingual Latin-2 Code Page #860 Code Page #861 Portuguese Icelandic Note: Other characters are the same as those for Character table: Normal.
Page 65 - Canadian French
63 Star Mode Code Page #863 Code Page #865 Canadian French Nordic Code Page #866Cyrillic Russian Note: Other characters are the same as those for Character table: Normal.
Page 66 - Cyrillic Bulgarian; 9 A B C D E F
64 Star Mode Code Page #855 Code Page #857 Cyrillic Bulgarian Turkish Code Page #862 Code Page #864 Hebrew Arabic Note: Other characters are the same as those for Character table: Normal. 8 9 A B C D E F 012 3 456789 A BC D E F 8 9 A B C D E F 012 3 456789 A BC D E F 8 9 A B C D E F 012 3 456789 A B...
Page 67 - Greek
65 Star Mode Code Page #737 Code Page #851 Greek Greek Code Page #869 Code Page #928 Greek Greek Note: Other characters are the same as those for Character table: Normal.
Page 68 - Lithuanian
66 Star Mode Code Page #772 Code Page #774 Lithuanian Lithuanian Note: Other characters are the same as those for Character table: Normal.
Page 69 - Thai
67 Star Mode Code Page #874 Code Page #1250 Thai Windows Latin-2 Code Page #1251 Code Page #1252 Windows Cyrillic Windows Latin-1 Note: Other characters are the same as those for Character table: Normal. 8 9 A B C D E F 012 3 456789 A BC D E F 8 9 A B C D E F 012 3 456789 A BC D E F 8 9 A B C D E F ...
Page 70 - Gost
68 Star Mode Code Page #3840 Code Page #3841 IBM-Russian Gost Code Page #3843 Code Page #3844 Polish CS2 Note: Other characters are the same as those for Character table: Normal.
Page 71 - Hungarian
69 Star Mode Code Page #3845 Code Page #3846 Hungarian Turkish Code Page #3847 Code Page #3848 Brazil-ABNT Brazil-ABICOMP Note: Other characters are the same as those for Character table: Normal.
Page 72 - Arabic
70 Star Mode Code Page #1001 Code Page #2001 Arabic Lithuanian-KBL Code Page #3001 Code Page #3002 Estonian-1 Estonian-2 Note: Other characters are the same as those for Character table: Normal.
Page 73 - Bulgarian; Note: Other characters are the
71 Star Mode Code Page #3011 Code Page #3012 Latvian-1 Latvian-2 Note: Other characters are the same as those for Character table: Normal. Code Page #3021 Code Page #3041 Bulgarian Maltese Note: Other characters are the same as those for Charac-ter table: Normal. Note: Other characters are the same ...
Page 77 - Note: Other characters are the same as those for Page 0.
75 ESC/POS Mode Page 1 (Katakana) Note: Other characters are the same as those for Page 0.