Star SP2000 Series Programmer's 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-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-6. Auto Cutter Control (SP2500 type printers only) .................. 33
1-2-7. Command to Set the Page Format .......................................... 35
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. 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 Hexadecimal Function Page Codes Codes
<ESC> "R" <ESC> "/" "1" 1B 2F 31 <ESC> "/" <1> 1B 2F 01 <ESC> "/" "0" 1B 2F 30 <ESC> "/" <0> 1B 2F 00 <ESC> <GS> "t" <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> <SO> 0E Sets the printing magnified double in
<DC4> 14 Resets the printing magnified in
n
n
n
1B 52
n
1B 1D 74
1B 20
n
Selects the international character set 7
Selects slash zero
Selects normal zero 7
n
Selects the character code table 8
Sets character spacing 11
character width
character width (Default)
12
12
7
1
Control Hexadecimal Function Page Codes Codes
<ESC> "W" "1" 1B 57 31 Selects double magnification in character <ESC> "W" <1> 1B 57 01 width <ESC> "W" "0" 1B 57 30 <ESC> "W" <0> 1B 57 00 <ESC> "h" "1" 1B 68 31 Selects double magnification in character
<ESC> "h" <1> 1B 68 01 height <ESC> "h" "0" 1B 68 30 <ESC> "h" <0> 1B 68 00 <ESC> "-" "1" 1B 2D 31 <ESC> "-" <1> 1B 2D 01 <ESC> "-" "0" 1B 2D 30 <ESC> "-" <0> 1B 2D 00 <ESC> "_" "1" 1B 5F 31 <ESC> "_" <1> 1B 5F 01 <ESC> "_" "0" 1B 5F 30 <ESC> "_" <0> 1B 5F 00 <ESC> "4" 1B 34 Selects red color printing (SP2360/2560)
<ESC> "5" 1B 35 Cancels red color printing (SP2360/2560)
<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 <ESC> <RS> "i" <0> 1B 1E 96 00 (Default) <ESC> <RS> "i" "1" 1B 1E 96 31 Specifies rotated print mode for text with <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 <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
Resets magnification in character width 12
Resets magnification in character height 12
Selects underlining 13
Cancels underlining (Default) 13
Selects upperlining 13
Cancels upperlining (Default) 14
Selects highlight printing (SP2320/2520)
Cancels highlight printing (SP2320/2520)
Selects print direction 16
12
12
14
14
15
15
15
2

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" <HT> 09 Horizontal tab 18 <ESC> "A" <ESC> "2" 1B 32 Sets n/72-inch line spacing 19 <ESC> "z" "0" 1B 7A 30 <ESC> "z" <0> 1B 7A 00 <ESC> "z" "1" 1B 7A 31 <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" <ESC> "3"
<ESC> "y" 1B 79 <ESC> "D" <ESC> "l" <ESC> "Q" <ESC> <GS> "a" "0" 1B 1D 61 30 <ESC> <GS> "a" <0> 1B 1D 61 00 <ESC> <GS> "a" "1" 1B 1D 61 31 <ESC> <GS> "a" <1> 1B 1D 61 01 <ESC> <GS> "a" "2" 1B 1D 61 32 <ESC> <GS> "a" <2> 1B 1D 61 02 <ESC> "B"
n
n
n n
n1 n2
... <0> 1B 44
n
n
n1 n2
1B 61
1B 41
1B 4A 1B 33
1B 6C 1B 51
... <0> 1B 42
n
n
n n
n n1 n2
n
n
n1 n2
... 00 Set vertical tab stops 24
Feeds paper n lines 18
Defines n/72-inch line spacing 19
Sets line spacing to 1/12-inch 19
Sets line spacing to 1/6-inch (Default) 19
One time n/72-inch feed 20 Sets line spacing to n/216-inch
approximately Sets line spacing to n/144-inch 20
... 00 Sets horizontal tab stops 21
Sets left margin 21 Sets right margin 22
Left justification (Default) 23
Centering 23
Right justification 23
20
3

1-1-3. Dot Graphics Control

Control Hexadecimal Function Page Codes Codes
<ESC> "K" n <0> 1B 4B n 00
m1 m2 ... ...
<ESC> "L" n1 n2 1B 4C n1 n2
m1 m2
... ...
m1 m2
m1 m2
8 dot normal density graphics 25
8 dot high density graphics 26

1-1-4. Download Graphics Printing

Control Hexadecimal Function Page Codes Codes
<ESC> "&" <0> n1 n2 .. 1B 26 00 n1 n2 .. Defines download characters 28 <ESC> "%" "1" 1B 25 31 <ESC> "%" <1> 1B 25 01 <ESC> "%" "0" 1B 25 30 Disables download character set <ESC> "%" <0> 1B 25 00 (Default)
Enables download character set 29
29

1-1-5. Peripheral Device Control

Control Hexadecimal Function Page Codes Codes
<ESC> <BEL> n1 n2 1B 07 n1 n2 Defines drive pulse width for peripheral
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
4
31

1-1-6. Auto Cutter Control (SP2500 type printers only)

Control Hexadecimal Function Page Codes Codes
<ESC> "d" "0" 1B 64 30 <ESC> "d" <0> 1B 64 00 <ESC> "d" "1" 1B 64 31 <ESC> "d" <1> 1B 64 01 <ESC> "d" "2" 1B 64 32 Full-cut command to the auto cutter
<ESC> "d" <2> 1B 64 02 after paper feed <ESC> "d" "3" 1B 64 33 Partial-cut command to the auto cutter <ESC> "d" <3> 1B 64 03 after paper feed
Full-cut command to the auto cutter 33
Partial-cut command to the auto cutter 33
33
34

1-1-7. Commands to Set the Page Format

Control Hexadecimal Function Page Codes Codes
<ESC> "C" <ESC> "C" <0> <ESC> "N" <ESC> "O" 1B 4F Cancel bottom margin (Default) 35
n
n
n
1B 43
n
1B 43 00 1B 4E
n
Set page length in lines 35
n
Set page length in inches 35
Set bottom margi
n
35
5

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, n1 n2 n3 n4" 1B 23 N 2C n1 n2 <LF> <NUL>
<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" <ESC> "?" <LF> <NUL> 1B 3F 0A 00 Resets printer hardware and produce
n
n3 n
4 Sets memory switch 37
0A 00
IB IE 61
n
Enables/disables automatic status 47
a test print
47
6

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"
(1B)H (52)H (00)H n (0E)H or n = (40)H
Select the international character set corresponding to the value set for n.
n
= (00)H: U.S.A. (06)H: Italy (OC)H: Latin America (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. Selects zero style
<ESC> "/" 1B 2F 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.
n
n
<
<
=
=
n
n
7
FUNCTION
Selects the character code table
CODE
OUTLINE
<ESC> <GS> "t" 1B 1D 74 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.
n
n
8
Value of
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 (Canadian French) 09 9 Codepage 865 (Nordic) 0A 10 Codepage 866 (Cyrillic Russian) 0B 11 Codepage 855 (Cyrillic Bulgarian) 0C 12 Codepage 857 (Turkish) 0D 13 Codepage 862 (Hebrew) 0E 14 Codepage 864 (Arabic) 0F 15 Codepage 737 (Greek) 10 16 Codepage 851 (Greek) 11 17 Codepage 869 (Greek) 12 18 Codepage 928 (Greek) 13 19 Codepage 772 (Lithuanian) 14 20 Codepage 774 (Lithuanian) 15 21 Codepage 874 (Thai) 20 32 Codepage 1252 (Windows Latin-1) 21 33 Codepage 1250 (Windows Latin-2) 22 34 Codepage 1251 (Windows Cyrillic) 40 64 Codepage 3840 (IBM-Russian) 41 65 Codepage 3841 (Gost) 42 66 Codepage 3843 (Polish) 43 67 Codepage 3844 (CS2) 44 68 Codepage 3845 (Hungarian) 45 69 Codepage 3846 (Turkish) 46 70 Codepage 3847 (Brazil-ABNT) 47 71 Codepage 3848 (Brazil-ABICOMP) 48 72 Codepage 1001 (Arabic) 49 73 Codepage 2001 (Lithuanian-KBL) 4A 74 Codepage 3001 (Estonian-1) 4B 75 Codepage 3002 (Estonian-2) 4C 76 Codepage 3011 (Latvian-1) 4D 77 Codepage 3012 (Latvian-2) 4E 78 Codepage 3021 (Bulgarian) 4F 79 Codepage 3041 (Maltese)
n
Character Table
9
FUNCTION
Selects IBM character set #2
CODE
OUTLINE
FUNCTION
CODE
OUTLINE
FUNCTION
CODE
<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 - 5 Digits Per Line
ON 42 OFF 40
(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 - 5 Digits Per Line
ON 35 OFF 33
(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 - 5 Digits Per Line
ON 23 OFF 22
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
Value Rotation 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.
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. (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
0 0 Executes page feed 0 1 Executes full cut (*1) after feeding
1 0 Executes page feed 1 1 Executes 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 = 0 Ignored (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)
(01)H, "1": Center alignment (02)H, "2": Right edge alignment
ABC
ABCD
ABCDE
<ESC> <GS> “a” “1”
n
n
<ESC> <GS> “a” “0”
ABC
ABCD
ABCDE
<ESC> <GS> “a” “2”
ABCDE
ABC
ABCD
Note:
• Effective only when input at the beginning of the line.
• Align positions within the printable range that has been set.
• Skipped areas by the horizontal tab are also targeted for
position alignment.
23
Loading...
+ 56 hidden pages