<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.
Selects IBM character set #1
<ESC> "7"
(1B)H (37)H
Selects IBM character set #1.
Switches from IBM character set #2 to character set #1.
Subsequent 80H to 9FH codes are handled as character data.
This command is invalid when the character code table settings
are other than #2.
Selects 7 X 9 (half dot) font (Default)
<ESC> "M"
(1B)H (4D)H
OUTLINE
Selects 7 X 9 (half dot) font.
When the power of the printer is turned on, 7 X 9 (half dot)
printing is automatically selected.
The number of digits per line is set by the DIP switches in the
following way.
DSW 1 - 5Digits Per Line
ON42
OFF40
(When right space of character is 0.)
10
FUNCTION
Selects 5 X 9 (2 pulses per dot) font
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
<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.
DSW 1 - 5Digits Per Line
ON35
OFF33
(When right space of character is 0.)
Selects 5 X 9 (3 pulses per dot) font
<ESC> ":"
(1B)H (3A)H
Selects 5 X 9 (3 pulses = 1 dot) font.
The number of digits per line is set by the DIP switches in the
following way.
DSW 1 - 5Digits Per Line
ON23
OFF22
FUNCTION
CODE
OUTLINE
Selects character spacing
<ESC> <SP>
1B 20
Sets the size of space to right of character. The value of n can be
set from 0 through 15, or from"0" through 9" and "A" through "F."
Spaces are doubled when printing using Printing magnified
double in character width.
The default value of n is 0.
n
n
11
FUNCTION
Sets the printing magnified double in character width
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
<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>
(14)H
Cancels expanded character mode set by <SO> or <ESC> "W"
"1" or <ESC> "W" <1> code. Data following this code is printed
out in normal size characters.
Same as <ESC> "W" "0" or <ESC> "W" <0>.
Selects double magnification in character width
<ESC> "W" "1" or <ESC> "W" <1>
(1B)H (57)H (31)H or (1B)H (57)H (01)H
Data following this code is printed in double-width characters.
Same as <SO>.
FUNCTION
CODE
OUTLINE
FUNCTION
CODE
Resets magnification in character width
<ESC> "W" "0" or <ESC> "W" <0>
(1B)H (57)H (30)H or (1B)H (57)H (00)H
Cancels expanded character mode set by <ESC> "W" "1" or
<ESC> "W" <1> or <SO> code. Data following this code is
printed out in normal size characters.
Same as <DC4>.
Selects double magnification in character height
<ESC> "h"
1B 68
n
n
12
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:
• You can print in quadruple magnification by combining
horizontal and vertical double magnification commands.
• You cannot combine with the inverted printed command.
• Line feeds of lines including vertical expansion characters are
doubled.
• When font configuration is 6 X 12 dots of IBM block graphics
characters, only the line amount is doubled.
• The bottom of the characters are aligned when one line
contains both vertical expanded characters and regular
character sizes.
FUNCTION
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
Selects underlining
<ESC> "-" "1" or <ESC> "-" <1>
(1B)H (2D)H (31)H or (1B)H (2D)H (01)H
Data following this code is printed out underlined. (However, the
spaces generated by horizontal tab are not underlined.)
Cancels underlining (Default)
<ESC> "-" "0" or <ESC> "-" <0>
(1B)H (2D)H (30)H or (1B)H (2D)H (00)H
Cancels underlined mode.
Selects upperlining
<ESC> "_" "1" or <ESC> "_" <1>
(1B)H (5F)H (31)H or (1B)H (5F)H (01)H
Data following this code is printed out with an upperline.
(However the spaces generated by horizontal tab are not
upperlined.)
13
FUNCTION
Cancels upperlining (Default)
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
FUNCTION
<ESC> "_" "0" or <ESC> "_" <0>
(1B)H (5F)H (30)H or (1B)H (5F)H (00)H
Cancels upperline mode.
Selects red color printing (SP2360/2560)
Selects highlight printing (SP2320/2520)
<ESC> "4"
(1B)H (34)H
(SP2360/2560) Specifies red printing
Prints subsequent characters in red. You can pr int both read and
black characters on the same line.
Unidirectional when switching red and black.
(SP2320/2520) Specifies black and white inverted printing
Inverts black and white and prints subsequent characters
including the character pitch. Printing is unidirectional. Do not
use when ANK font setting is 5 X 9 (3P = 1). (Printing quality is
not guaranteed with 5 X 9 (3P = 1)).
Cancels red color printing (SP2360/2560)
Cancel highlighted print mode (SP2320/2520)
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
<ESC> "5"
(1B)H (35)H
(SP2360/2560) Cancels red color printing and prints subsequent
characters in black.
(SP2320/2520) Cancels highlighted printing. (Default)
Inverted printing
<SI>
(0F)H
Data following this code is printed out in inverted characters. This
code is valid only when input at the beginning of a line, so, normal
and inverted characters cannot be mixed in on the same line.
14
FUNCTION
Cancels inverted printing (Default)
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
<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> <RS> "i"
1B 1E 96
This rotates and prints subsequent data 90° or 270° in the
clockwise direction or cancels it and prints. The n value
determines whether a rotational direction or a cancellation of the
rotation is specified.
n
ValueRotation Specification
00H or "0"Cancel rotation (0° rotation, default)
01H or "1"270° rotation
02H or "2"90° rotation
Underline or overline cannot be applied for rotated text. The
relationship of the vertical ratio and horizontal ratio for rotated
text is the reverse of when the rotation is cancelled.
n
n
FUNCTION
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
Selects emphasized printing
<ESC> "E"
(1B)H (45)H
Data following this code is printed in the emphasized print mode.
In this mode, printing is uni-directional.
Cancels emphasized printing (Dafault)
<ESC> "F"
(1B)H (46)H
Cancels emphasized print mode.
15
FUNCTION
Selects uni-directional print mode
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
<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.
(1B)H (55)H (30)H or (1B)H (55)H (00)H
Returns to the standard bi-directional print mode. (This mode is
set automatically when the printer power is turned on.)
16
1-2-2. Ptint Position Control
FUNCTION
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
FUNCTION
CODE
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.
Vertical tab
<VT>
(0B)H
Feeds the paper to the next vertical tab set position.
When a vertical tab is not set, line feed is not performed. If the
current line is at or below the last vertical tab set position, the
paper feeds to the top of the next page.
Form feed
<FF>
(0C)H
OUTLINE
Inputting this code executes a page feed, on SP2320/2360 series
printers, after printing the data in the line buffer. On SP2520/
2560 series printers this code performs the following according to
the settings of the memory switches 0-2 and 0-3.
MSW 0-3 MSW 0-2
00Executes page feed
01Executes full cut (*1) after feeding
10Executes page feed
11Executes partial cut (*1) after feeding
*1: Paper feed to the cutting position is executed in inches.
<FF> Command Function
SP2520/2560
paper to the cutting position.
paper to the cutting position.
17
FUNCTION
Carriage return
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
FUNCTION
<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.
Memory Switch Setting<CR> Code Function
MSW 3-1 = 0Ignored (at exfactory)
MSW 3-1 = 1
Feed paper n lines
<ESC> "a"
(1B)H (61)H
<
<
1
n
127
=
=
After data in the line buffer is printed out, feeds the paper n lines.
Horizontal tab
MSW 3-0 = 0 Same as <LF>
MSW 3-0 = 1 Prints only. No paper feed
n
n
CODE
OUTLINE
<HT>
(09)H
The print position skips to the next horizontal tab position in line.
If the current position is after the final horizontal tab position that
can be executed, this code is ignored. (Underlining and overlining
do not take place in the spaces between characters set with the
horizontal tab function.)
18
FUNCTION
Define n/72-inch line spacing
CODE
DEFINITION RANGE
OUTLINE
FUNCTION
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
<ESC> "A"
(1B)H (41)H
<
0
=
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.
Set n/72-inch line spacing
<ESC> "2"
1B)H (32)H
This code sets the line feed at a defined value with the <ESC>
"A" previously described. Line feed pitch is 1/6 inch when <ESC>
"A" n is not set.
Sets line spacing to 1/12-inch
<ESC> "z" "0" or <ESC> "z" <0>
(1B)H (7A)H (30)H or (1B)H (7A)H (00)H
Line feed is set at 1/12-inch after this code is received.
n
n
<
n
85 (Default n = 12)
=
FUNCTION
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
Sets line spacing to 1/6-inch (Default)
<ESC> "z" "1" or <ESC> "z" <1>
(1B)H (7A)H (31)H or (1B)H (7A)H (01)H
Line feed is set at 1/6-inch after this code is received.
Sets line spacing to 1/8-inch
<ESC> "0"
(1B)H (30)H
Line feed is set at 1/8-inch after this code is received.
19
FUNCTION
Sets line spacing to 7/72 inch
CODE
OUTLINE
FUNCTION
CODE
DEFINITION RANGE
OUTLINE
FUNCTION
CODE
DEFINITION RANGE
OUTLINE
<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> "J"
(1B)H (4A)H
1
This code activates the n/72-inch paper feed once.
Sets line spacing to n/216-inch approximately
<ESC> "3"
(1B)H (33)H
1
Setting value is approximated using the following equation
because the minimum pitch of the paper feed mechanism is 1/
144 inch.
INT (n X 2/3 + 0.5)/144 inches
n
n
<
<
n
255
=
=
n
n
<
<
n
255
=
=
FUNCTION
CODE
DEFINITION RANGE
OUTLINE
Sets line spacing to n/144-inch
<ESC> "y"
(1B)H (79)H
1
Line feed is set at n/144-inch after this code is received.
Default is n = 24.
n
n
<
<
n
255
=
=
20
FUNCTION
Sets horizontal tab stops
CODE
DEFINITION RANGE
OUTLINE
FUNCTION
CODE
OUTLINE
<ESC> "D"
(1B)H (44)H
<
1
=
<
1
=
Cancels all horizontal tab stops and sets new tab stops within the
character pitch at
stops (1
stops must be set in ascending order. If tab stops are set in an
order which differs fro this, it will end. A <0> code is added as the
ending edge. All tab stops are cleared by inputting <ESC> "D"
<0>. The reference point for the tab positions is left edge of the
paper, regarless of the settings for the left margin. When you
turn ON the power, the horizontal tabs are not set.
Sets left margin
<ESC> "l"
1B 6C
Sets the non-printable range with the current character pitch up to
the nth 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. Changing the character pitch after setting does
not change the left margin. The left margin is the left edge is
when the power is turned ON.
The left margin must be at least 18 dots within the following
values in the left edge of the right margin. Also, if there is less
than one character including the space between characters in the
printable range set for the left and right margins, a "?" will be
printed instead of the character because printing is not possible
there.
The range of n is 0
is n = 0.
n1
k
n1 n2
...nk <0>
n1 n2
...nk (00)H
<
<
n2
n3
=
=
<
16
=
n1, n2
<
<
n1
n2
=
=
<
... <
nk
(Maximum print columns -1),
=
, etc. You can set up to 16 individual tab
<
n3
=
...n16
<
maximum printing digits). Tab
=
n
n
<
<
n
(right margin -2)
=
=
<
255. The default
=
21
FUNCTION
Sets right margin
CODE
OUTLINE
<ESC> "Q"
1B 51
Sets the non-printable range with the current character pitch up to
the nth 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. Changing the character pitch after setting does
not change the right margin. The right margin is the right edge is
when the power is turned ON.
The right margin must be at least 18 dots within the following
values. Also, if there is less than one character including the
space between characters in the printable range set for the left
and right margins, a "?" will be printed instead of the character
because printing is not possible there.
The range of n is 2
<
255. The default is n = maximum number of printable digits>.
=
n
n
<
<
n
<maximum number of printable digits>
=
=
22
FUNCTION
Aligns position
CODE
OUTLINE
<ESC> <GS> "a"
(1B)H (1D)H (61)H
Sets the alignment of the positions.
Aligns all print data of one line to the specified position.
n =(00)H, "0":Left edge alignment (default)