Star SP2000 Series Operating and maintenance manual

Dot Matrix Printer
SP2000 Series
Programmer’s Manual

TABLE OF CONTENTS
1. Control Codes (Star Mode) ......................................................................... 1
1-1. Control Codes List .............................................................................. 1
1-1-1. Character Selection .................................................................. 1
1-1-2. Print Position Control...............................................................3
1-1-3. Dot Graphics Control ...............................................................4
1-1-4. Download Graphics Printing .................................................... 4
1-1-5. Peripheral Device Control ........................................................ 4
1-1-6. Auto Cutter Control (SP2500 type printers only) .................... 5
1-1-7. Commands to Set the Page Format ..........................................5
1-1-8. Other Commands...................................................................... 6
1-2. Control Code Details........................................................................... 7
1-2-1. Character Selection .................................................................. 7
1-2-2. Print Position Control............................................................. 17
1-2-3. Dot Graphics Control .............................................................25
1-2-4. Download Graphics Printing .................................................. 28
1-2-5. Peripheral Device Control ...................................................... 31
1-2-6. Auto Cutter Control (SP2500 type printers only) .................. 33
1-2-7. Command to Set the Page Format.......................................... 35
1-2-8. Other Commands.................................................................... 36
2. ESC/POS Mode Commands....................................................................... 48
2-1. Control Codes List ............................................................................ 48
3. Auto Status Specifications.........................................................................51
3-1. Auto Status ........................................................................................ 51
Appendix : Character Code Tables................................................................ 57
Please access the following URL
http://www.star-micronics.co.jp/service/sp_sup_e.htm
for the lastest revision of the manual.

1
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 Hexadecimal Function Page
Codes Codes
<ESC> "R"
n
1B 52
n
Selects the international character set 7
<ESC> "/" "1" 1B 2F 31 Selects slash zero 7
<ESC> "/" <1> 1B 2F 01
<ESC> "/" "0" 1B 2F 30 Selects normal zero 7
<ESC> "/" <0> 1B 2F 00
<ESC> <GS> "t"
n
1B 1D 74
n
Selects the character code table 8
<ESC> "6" 1B 36 Selects character set #2 10
<ESC> "7" 1B 37 Selects character set #1 10
<ESC> "M" 1B 4D Selects the 7 X 9 (half dot) font (Default) 10
<ESC> "P" 1B 50 Selects the 5 X 9 (2 pulses per dot) font 11
<ESC> ":" 1B 3A Selects the 5 X 9 (3 pulses per dot) font 11
<ESC> <SP>
n
1B 20
n
Sets character spacing 11
<SO> 0E Sets the printing magnified double in 12
character width
<DC4> 14 Resets the printing magnified in 12
character width (Default)
1. Control Codes (Star Mode)

2
Control Hexadecimal Function Page
Codes Codes
<ESC> "W" "1" 1B 57 31 Selects double magnification in character 12
<ESC> "W" <1> 1B 57 01 width
<ESC> "W" "0" 1B 57 30 Resets magnification in character width 12
<ESC> "W" <0> 1B 57 00
<ESC> "h" "1" 1B 68 31 Selects double magnification in character 12
<ESC> "h" <1> 1B 68 01 height
<ESC> "h" "0" 1B 68 30 Resets magnification in character height 12
<ESC> "h" <0> 1B 68 00
<ESC> "-" "1" 1B 2D 31 Selects underlining 13
<ESC> "-" <1> 1B 2D 01
<ESC> "-" "0" 1B 2D 30 Cancels underlining (Default) 13
<ESC> "-" <0> 1B 2D 00
<ESC> "_" "1" 1B 5F 31 Selects upperlining 13
<ESC> "_" <1> 1B 5F 01
<ESC> "_" "0" 1B 5F 30 Cancels upperlining (Default) 14
<ESC> "_" <0> 1B 5F 00
<ESC> "4" 1B 34 Selects red color printing (SP2360/2560) 14
Selects highlight printing (SP2320/2520)
<ESC> "5" 1B 35 Cancels red color printing (SP2360/2560) 14
Cancels highlight printing (SP2320/2520)
<SI> 0F Inverted printing 14
<DC2> 12 Cancels inverted printing (Default) 15
<ESC> <RS> "i" "0" 1B 1E 96 30 Cancels rotated print mode for text 15
<ESC> <RS> "i" <0> 1B 1E 96 00 (Default)
<ESC> <RS> "i" "1" 1B 1E 96 31 Specifies rotated print mode for text with 15
<ESC> <RS> "i" <1> 1B 1E 96 01 a 270° rotation.
<ESC> <RS> "i" "2" 1B 1E 96 32 Specifies rotated print mode for text with 15
<ESC> <RS> "i" <2> 1B 1E 96 02 a 90° rotation.
<ESC> "E" 1B 45 Selects emphasized printing 15
<ESC> "F" 1B 46 Cancels emphasized printing (Default) 15
<ESC> "U"
n
1B 55
n
Selects print direction 16

3
1-1-2. Print Position Control
Control Hexadecimal Function Page
Codes Codes
<LF> 0A Line feed 17
<VT> 0B Vertical tab 17
<FF> 0C Form feed 17
<CR> 0D Carriage Return 18
<ESC> "a"
n
1B 61
n
Feeds paper
n
lines 18
<HT> 09 Horizontal tab 18
<ESC> "A"
n
1B 41
n
Defines
n
/72-inch line spacing 19
<ESC> "2" 1B 32 Sets
n
/72-inch line spacing 19
<ESC> "z" "0" 1B 7A 30 Sets line spacing to 1/12-inch 19
<ESC> "z" <0> 1B 7A 00
<ESC> "z" "1" 1B 7A 31 Sets line spacing to 1/6-inch (Default) 19
<ESC> "z" <1> 1B 7A 01
<ESC> "0" 1B 30 Sets line spacing to 1/8-inch 19
<ESC> "1" 1B 31 Sets line spacing to 7/72-inch 20
<ESC> "J"
n
1B 4A
n
One time
n
/72-inch feed 20
<ESC> "3"
n
1B 33
n
Sets line spacing to
n
/216-inch 20
approximately
<ESC> "y" 1B 79
n
Sets line spacing to
n
/144-inch 20
<ESC> "D"
n1 n2
... <0> 1B 44
n1 n2
... 00 Sets horizontal tab stops 21
<ESC> "l"
n
1B 6C
n
Sets left margin 21
<ESC> "Q"
n
1B 51
n
Sets right margin 22
<ESC> <GS> "a" "0" 1B 1D 61 30 Left justification (Default) 23
<ESC> <GS> "a" <0> 1B 1D 61 00
<ESC> <GS> "a" "1" 1B 1D 61 31 Centering 23
<ESC> <GS> "a" <1> 1B 1D 61 01
<ESC> <GS> "a" "2" 1B 1D 61 32 Right justification 23
<ESC> <GS> "a" <2> 1B 1D 61 02
<ESC> "B"
n1 n2
... <0> 1B 42
n1 n2
... 00 Set vertical tab stops 24

4
1-1-3. Dot Graphics Control
Control Hexadecimal Function Page
Codes Codes
<ESC> "K"
n
<0> 1B 4B
n
00
m1 m2
8 dot normal density graphics 25
m1 m2 ... ...
<ESC> "L"
n
1
n
2 1B 4C
n
1
n
2
m1 m2
8 dot high density graphics 26
m1 m2
... ...
1-1-4. Download Graphics Printing
Control Hexadecimal Function Page
Codes Codes
<ESC> "&" <0>
n
1
n
2 .. 1B 26 00
n
1
n
2 .. Defines download characters 28
<ESC> "%" "1" 1B 25 31 Enables download character set 29
<ESC> "%" <1> 1B 25 01
<ESC> "%" "0" 1B 25 30 Disables download character set 29
<ESC> "%" <0> 1B 25 00 (Default)
1-1-5. Peripheral Device Control
Control Hexadecimal Function Page
Codes Codes
<ESC> <BEL>
n
1
n
2 1B 07
n
1
n
2 Defines drive pulse width for peripheral 31
device #1
<BEL> 07 Controls peripheral device #1 31
<FS> 1C Controls peripheral device #1 immediately 32
<EM> 19 Controls peripheral device #2 immediately 32
<SUB> 1A Controls peripheral device #2 immediately 32

5
1-1-6. Auto Cutter Control (SP2500 type printers only)
Control Hexadecimal Function Page
Codes Codes
<ESC> "d" "0" 1B 64 30 Full-cut command to the auto cutter 33
<ESC> "d" <0> 1B 64 00
<ESC> "d" "1" 1B 64 31 Partial-cut command to the auto cutter 33
<ESC> "d" <1> 1B 64 01
<ESC> "d" "2" 1B 64 32 Full-cut command to the auto cutter 33
<ESC> "d" <2> 1B 64 02 after paper feed
<ESC> "d" "3" 1B 64 33 Partial-cut command to the auto cutter 34
<ESC> "d" <3> 1B 64 03 after paper feed
1-1-7. Commands to Set the Page Format
Control Hexadecimal Function Page
Codes Codes
<ESC> "C"
n
1B 43
n
Set page length i
n
lines 35
<ESC> "C" <0>
n
1B 43 00
n
Set page length i
n
inches 35
<ESC> "
N
"
n
1B 4E
n
Set bottom margi
n
35
<ESC> "O" 1B 4F Cancel bottom margin (Default) 35

6
1-1-8. Other Commands
Control Hexadecimal Function Page
Codes Codes
<CAN> 18 Cancels printer buffer & Initialize printer 36
<DC3> 13 Deselects printer 36
<DC1> 11 Sets select mode (Default) 36
<RS> 1E Beeps the buzzer 36
<ESC> "#
N
,
n
1
n
2
n
3
n
4" 1B 23
N
2C
n
1
n
2
<LF> <
N
UL>
n
3
n
4 Sets memory switch 37
0A 00
<ESC> "@" 1B 40 Initialize printer 43
<EOT> 04 Transmits EOT status 44
<ENQ> 05 Transmits ENQ status 45
<ETB> 17 Confirms finish of printing 46
<ESC> <ACK> <SOH> IB 06 01 Transmits automatic status 46
<ESC> <RS> "a"
n
IB IE 61
n
Enables/disables automatic status 47
<ESC> "?" <LF> <NUL> 1B 3F 0A 00 Resets printer hardware and produce 47
a test print

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 character set corresponding to the value
set for
n
.
n
= (00)H: U.S.A. (06)H: Italy (OC)H: LatinAmerica
(01)H: France (07)H: Spain-1 (0D)H: Korea
(02)H: Germany (08)H: Japan (0E)H: Ireland
(03)H: England (09)H: Norway (40)H: Legal
(04)H: Denmark-1 (0A)H: Denmark-2
(05)H: Sweden (0B)H: Spain-2
Default abides by memory switches 1-0 to 1-3.
FUNCTION
Selects zero style
CODE
<ESC> "/"
n
1B 2F
n
OUTLINE
Selects zero style
Causes subsequent zero characters to be printed with a slash
when
n
is 1 and without a slash when
n
is 0. The value of
n
can
be set to 0 (00H) or "0" (30)H or 1(0H) or "1" (31H).
The default may differ depending on the memory switch setting.
<
=
<
=

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.
Table of contents
Other Star Printer manuals

Star
Star LC-7211 User manual

Star
Star TSP847II User manual

Star
Star TSP650 SERIES User manual

Star
Star SM-S201 User manual

Star
Star SM-T300 Use and care manual

Star
Star TSP100LAN User manual

Star
Star Star NX-2430 User manual

Star
Star SM-S201 User manual

Star
Star HSP7000 User manual

Star
Star SP742R series User manual

Star
Star TSP650II series User manual

Star
Star LC-4511 User manual

Star
Star mC-Label3 Quick start guide

Star
Star SM-S301 User manual

Star
Star Star NX-500 User manual

Star
Star NX-2480 User manual

Star
Star LC-1511 User manual

Star
Star SM-S220 Series User manual

Star
Star SP298 SERIES User manual

Star
Star TSP654IIBI User manual





















