Star Micronics DOT MATRIX PRINTER SP2000, 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-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-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 V ertical 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" n1 n2 1B 4C n1 n2
m1 m2
8 dot high density graphics 26
m1 m2
... ...
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
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> n1 n2 1B 07 n1 n2 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 in lines 35 <ESC> "C" <0>
n
1B 43 00
n
Set page length in 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, n1 n2 n3 n4" 1B 23 N 2C n1 n2 <LF> <NUL>
n3 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: 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.
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.
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 (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)
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 are other than #1.
FUNCTION
Selects IBM character set #1
CODE
<ESC> "7" (1B)H (37)H
OUTLINE
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.
FUNCTION
Selects 7 X 9 (half dot) font (Default)
CODE
<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.)
11
FUNCTION
Selects 5 X 9 (2 pulses per dot) font
CODE
<ESC> "P" (1B)H (50)H
OUTLINE
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.)
FUNCTION
Selects 5 X 9 (3 pulses per dot) font
CODE
<ESC> ":" (1B)H (3A)H
OUTLINE
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
Selects character spacing
CODE
<ESC> <SP>
n
1B 20
n
OUTLINE
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.
12
FUNCTION
Sets the printing magnified double in character width
CODE
<SO> (0E)H
OUTLINE
Data following this code is printed in double-width characters. Same as <ESC> "W" "1" or <ESC> "W" <1>.
FUNCTION
Resets the printing magnified in character width (Default)
CODE
<DC4> (14)H
OUTLINE
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>.
FUNCTION
Selects double magnification in character width
CODE
<ESC> "W" "1" or <ESC> "W" <1> (1B)H (57)H (31)H or (1B)H (57)H (01)H
OUTLINE
Data following this code is printed in double-width characters. Same as <SO>.
FUNCTION
Resets magnification in character width
CODE
<ESC> "W" "0" or <ESC> "W" <0> (1B)H (57)H (30)H or (1B)H (57)H (00)H
OUTLINE
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>.
FUNCTION
Selects double magnification in character height
CODE
<ESC> "h"
n
1B 68
n
13
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
Selects underlining
CODE
<ESC> "-" "1" or <ESC> "-" <1> (1B)H (2D)H (31)H or (1B)H (2D)H (01)H
OUTLINE
Data following this code is printed out underlined. (However, the
spaces generated by horizontal tab are not underlined.)
FUNCTION
Cancels underlining (Default)
CODE
<ESC> "-" "0" or <ESC> "-" <0> (1B)H (2D)H (30)H or (1B)H (2D)H (00)H
OUTLINE
Cancels underlined mode.
FUNCTION
Selects upperlining
CODE
<ESC> "_" "1" or <ESC> "_" <1> (1B)H (5F)H (31)H or (1B)H (5F)H (01)H
OUTLINE
Data following this code is printed out with an upperline.
(However the spaces generated by horizontal tab are not upperlined.)
14
FUNCTION
Cancels upperlining (Default)
CODE
<ESC> "_" "0" or <ESC> "_" <0> (1B)H (5F)H (30)H or (1B)H (5F)H (00)H
OUTLINE
Cancels upperline mode.
FUNCTION
Selects red color printing (SP2360/2560) Selects highlight printing (SP2320/2520)
CODE
<ESC> "4" (1B)H (34)H
OUTLINE
(SP2360/2560) Specifies red printing Prints subsequent characters in red. You can print 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)).
FUNCTION
Cancels red color printing (SP2360/2560) Cancel highlighted print mode (SP2320/2520)
CODE
<ESC> "5" (1B)H (35)H
OUTLINE
(SP2360/2560) Cancels red color printing and prints subsequent
characters in black. (SP2320/2520) Cancels highlighted printing. (Default)
FUNCTION
Inverted printing
CODE
<SI> (0F)H
OUTLINE
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.
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
OUTLINE
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.
FUNCTION
Selects emphasized printing
CODE
<ESC> "E" (1B)H (45)H
OUTLINE
Data following this code is printed in the emphasized print mode.
In this mode, printing is uni-directional.
FUNCTION
Cancels emphasized printing (Dafault)
CODE
<ESC> "F" (1B)H (46)H
OUTLINE
Cancels emphasized print mode.
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" "0" or <ESC> "U" <0> (1B)H (55)H (30)H or (1B)H (55)H (00)H
OUTLINE
Returns to the standard bi-directional print mode. (This mode is
set automatically when the printer power is turned on.)
17
1-2-2. Ptint Position Control
FUNCTION
Line feed
CODE
<LF> (0A)H
OUTLINE
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
Vertical tab
CODE
<VT> (0B)H
OUTLINE
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.
FUNCTION
Form feed
CODE
<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
<FF> Command Function
SP2520/2560
0 0 Executes page feed 0 1 Executes full cut (*1) after feeding
paper to the cutting position. 1 0 Executes page feed 1 1 Executes partial cut (*1) after feeding
paper to the cutting position.
*1: Paper feed to the cutting position is executed in inches.
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 <CR> Code Function
MSW 3-1 = 0 Ignored (at exfactory)
MSW 3-1 = 1
MSW 3-0 = 0 Same as <LF> MSW 3-0 = 1 Prints only. No paper feed
FUNCTION
Feed paper n lines
CODE
<ESC> "a"
n
(1B)H (61)H
n
1
<
=
n
<
=
127
OUTLINE
After data in the line buffer is printed out, feeds the paper n lines.
FUNCTION
Horizontal tab
CODE
<HT> (09)H
OUTLINE
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.)
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
Set n/72-inch line spacing
CODE
<ESC> "2" 1B)H (32)H
OUTLINE
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.
FUNCTION
Sets line spacing to 1/12-inch
CODE
<ESC> "z" "0" or <ESC> "z" <0> (1B)H (7A)H (30)H or (1B)H (7A)H (00)H
OUTLINE
Line feed is set at 1/12-inch after this code is received.
FUNCTION
Sets line spacing to 1/6-inch (Default)
CODE
<ESC> "z" "1" or <ESC> "z" <1> (1B)H (7A)H (31)H or (1B)H (7A)H (01)H
OUTLINE
Line feed is set at 1/6-inch after this code is received.
FUNCTION
Sets line spacing to 1/8-inch
CODE
<ESC> "0" (1B)H (30)H
OUTLINE
Line feed is set at 1/8-inch after this code is received.
20
FUNCTION
Sets line spacing to 7/72 inch
CODE
<ESC> "1" (1B)H (31)H
OUTLINE
Line feed is set at 7/72-inch after this code is received.
FUNCTION
One time n/72-inch feed
CODE
<ESC> "J"
n
(1B)H (4A)H
n
DEFINITION RANGE
1
<
=
n
<
=
255
OUTLINE
This code activates the n/72-inch paper feed once.
FUNCTION
Sets line spacing to n/216-inch approximately
CODE
<ESC> "3"
n
(1B)H (33)H
n
DEFINITION RANGE
1
<
=
n
<
=
255
OUTLINE
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
FUNCTION
Sets line spacing to n/144-inch
CODE
<ESC> "y"
n
(1B)H (79)H
n
DEFINITION RANGE
1
<
=
n
<
=
255
OUTLINE
Line feed is set at n/144-inch after this code is received. Default is n = 24.
21
FUNCTION
Sets horizontal tab stops
CODE
<ESC> "D"
n1 n2
...nk <0>
(1B)H (44)H
n1 n2
...nk (00)H
DEFINITION RANGE
1
<
=
n1
<
=
n2
<
=
n3
... <
nk
<
=
(Maximum print columns -1),
1
<
=
k
<
=
16
OUTLINE
Cancels all horizontal tab stops and sets new tab stops within the
character pitch at
n1, n2
, etc. You can set up to 16 individual tab
stops (1
<
=
n1
<
=
n2
<
=
n3
...n16
<
=
maximum printing digits). Tab
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.
FUNCTION
Sets left margin
CODE
<ESC> "l"
n
1B 6C
n
OUTLINE
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
<
=
n
<
=
(right margin -2)
<
=
255. The default
is n = 0.
22
FUNCTION
Sets right margin
CODE
<ESC> "Q"
n
1B 51
n
OUTLINE
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
<
=
n
<
=
<maximum number of printable digits>
<
=
255. The default is n = maximum number of printable digits>.
23
FUNCTION
Aligns position
CODE
<ESC> <GS> "a"
n
(1B)H (1D)H (61)H
n
Sets the alignment of the positions.
OUTLINE
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
ABC
ABCD
ABCDE
ABC
ABCD
ABCDE
<ESC> <GS> “a” “0”
<ESC> <GS> “a” “1”
<ESC> <GS> “a” “2”
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.
Loading...
+ 56 hidden pages