CHAP 9-COMMAND SUMMARY. Epson LQ-510
advertisement
Assistant Bot
Need help? Our chatbot has already read the manual and is ready to assist you. Feel free to ask any questions about the device, but providing details will make the conversation more productive.
Chapter 9
Command Summary
Using the Command Summary. . . . . . . . . . . . . . . . . . . . . . . 9-2
Control Key Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Commands in Numerical Order . . . . . . . . . . . . . . . . . . . . . . 9-5
Commands Arranged by Topic. . . . . . . . . . . . . . . . . . . . . . . 9-8
Printer Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MSB Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Data Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Vertical Motion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Horizontal Motion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Overall Printing Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Print Size and Character Width. . . . . . . . . . . . . . . . . . . . . 9-24
Print Enhancement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Word Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Character Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
User-defined Characters. . . . . . . . . . . . . . . . . . . . . . . . . . .
Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Command Summary 9-1
Using the Command Summary
This chapter lists and describes all the commands available on the
LQ-510.
The first part of this chapter lists all commands in numerical order and gives the number of the page where each is fully described. If you know which command you are looking for, consult the numerical list.
Note: The Quick Reference card at the end of the book also contains a list of the commands divided by topic, with page number references that direct you to full explanations of the commands.
The second part of this chapter lists and describes each command separately; the commands are divided into the following subjects:
Printer operation
MSB control
Data control
Vertical motion
Horizontal motion
Overall printing style
Print size and character width
Print enhancement
Word processing
Character sets
User-defined characters
Graphics
Each command description has a format section and a comment section. The format section gives the ASCII, decimal, and hexadecimal values for the command. These three formats are equivalent, and it should be easy to pick the one most suited to your purpose. The comment section describes the effect of the command and gives any additional information necessary for using it.
Note: Some application programs use control key sequences. See the Control Key chart on page 9-4.
9-2 Command Summary
Using the Command Summary
The simplest type of command consists of a single character to be sent to the printer. For instance, to print in condensed mode, the code format is:
ASCII code:
Decimal:
SI
15
H e x a d e c i m a l : 0 F
This code can be sent from a program by sending the code 15 directly.
More complex commands consist of two or more character codes.
For example, to print in double-wide mode, the code format is the following:
ASCII code:
Decimal:
ESC W n
27 87 n
Hexadecimal: 1B 57 n
In this case n can be either 1 (on) or 0 (off), to begin or end doublewide printing. You can use either of the following commands to turn on double-wide print from BASIC:
LPRINT CHR$(27);CHR$(87);CHR$(l)
LPRINT CHR$(27);"W";CHR$(l)
For the following commands that use only 0 or 1 for the variable, either the decimal or hexadecimal values 1 and 0 or the ASCII characters 1 and 0 can be used:
ESC U, ESC x, ESC p, ESC W, ESC S, ESC -, and ESC %
For example, in BASIC you can turn on proportional spacing with either of these statements:
LPRINT CHR$(27);"p";CHR$(l)
LPRINT CHRS(27);"p";"l"
Command Summary 9-3
Using the Command Summary
Dec.
10
11
12
13
7
8
9
3
4
5
6
1
0
2
Control Key Chart
Some application programs use control key codes for decimal values
O-27. The table below gives you the proper values. The Control Key column indicates that you press the control key at the same time you press the key for the letter or symbol in that column. For example, you press the control key and A at the same time to send the value 1.
Some application programs that use this system cannot use
Control-@, and many programs use the control keys for other purposes.
Hex.
07
08
09
0A
0B
0C
0D
00
01
02
03
04
05
06
Ctrl. Key
G
H
I
E
F
@
A
B
C
D
J
K
L
M
Dec.
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Hex.
15
16
17
18
19
1A
1B
0 E
0F
10
11
12
13
14
Ctrl. Key
S
T
Q
R
N
O
P
X
Y
Z
U
V
W
[
9-4
Command Summary
Commands in Numerical Order
The following list shows control codes and ESC sequences with their decimal and hexadecimal values, and the page where the description of the command can be found.
ASCII Dec.
Hex.
Description Page
VT
FF
CR s o
BEL
BS
HT
LF
SI
DC1
DC2
DC3
DC4
CAN
DEL
ESC SO
ESC SI
ESC EM
ESC SP
ESC !
ESC #
ESC $
ESC %
ESC &
ESC ( -
8
9
11
7
10
12
13
14
15
17
18
19
20
24
127
14
15
25
32
33
35
36
37
38
40
07
08
09
0A
0B
0C
0D
0E
0F
11
12
13
14
18
7F
0E
0F
19
20
21
23
24
25
26
28
Beeper . . . . . . . . . . . . . . . . . . . . . .
9-12
Backspace . . . . . . . . . . . . . . . . . . . 9-20
Tab Horizontally . . . . . . . . . . . . . 9-21
Line Feed . . . . . . . . . . . . . . . . . . . .
9-14
Tab Vertically . . . . . . . . . . . . . . . . 9-17
Form Feed . . . . . . . . . . . . . . . . . . . 9-13
Carriage Return . . . . . . . . . . . . . . 9-12
Select Double-wide Mode
(one line) . . . . . . . . . . . . . . . . . . . . 9-26
Select Condensed Mode . . . . . . . 9-25
Select Printer. . . . . . . . . . . . . . . . . 9-8
Cancel Condensed Mode . . . . . . 9-26
Deselect Printer . . . . . . . . . . . . . . 9-9
Cancel Double-wide Mode
(one line) . . . . . . . . . . . . . . . . . . . . 9-27
Cancel Line . . . . . . . . . . . . . . . . . . 9-12
Delete Character. . . . . . . . . . . . . . 9-9
Select Double-wide Mode
(one line) . . . . . . . . . . . . . . . . . . . .
9-27
Select Condensed Mode . . . . . . . 9-26
Control Cut Sheet Feeder . . . . . . 9-10
Set Intercharacter Space . . . . . . . 9-33
Master Select. . . . . . . . . . . . . . . . . 9-23
Cancel MSB Control. . . . . . . . . . . 9-11
Set Absolute Print Position. . . . . 9-20
Select User-defined Set . . . . . . . . 9-37
Define User-defined Characters 9-36
Select Score . . . . . . . . . . . . . . . . . . 9-31
Command Summary 9-5
ASCII
ESC *
ESC+
ESC -
ESC /
ESC 0
ESC 2
ESC 3
ESC 4
ESC 5
ESC 6
ESC 7
ESC :
ESC <
ESC =
ESC >
ESC ?
ESC @
ESC A
ESC B
ESC C
ESC C 0
ESC D
ESC E
ESC F
ESC G
ESC H
ESC J
ESC K
ESC L
ESC M
Commands in Numerical Order
72
74
75
68
69
70
71
65
66
67
67
61
62
63
64
44
45
46
47
48
4A
4B
41
42
43
43
3D
3E
3F
40
Dec.
Hex.
Description
42
43
45
52
53
54
55
47
48
50
51
58
60
76
77
2A
2B
2D
2F
30
32
33
34
35
36
37
3A
3C
4C
4D
Page
Select Graphics Mode . . . . . . . . . 9-39
Set n/360-inch Line Spacing. . . . 9-15
Turn Underline Mode
On/Off . . . . . . . . . . . . . . . . . . . . . .
9-32
Select Vertical Tab Channel . . . . 9-18
Select 1/8-inch Line Spacing . . . 9-15
Select l/6-inch Line Spacing . . . 9-15
Set n/180-inch
Line Spacing. . . . 9-16
Select Italic Mode . . . . . . . . . . . . . 9-34
Cancel Italic Mode . . . . . . . . . . . . 9-35
Enable Printable Characters . . . . 9-37
Enable Upper Control Codes . . . 9-37
Copy ROM to RAM . . . . . . . . . . . 9-36
Select Unidirectional Mode
(one line) . . . . . . . . . . . . . . . . . . . . 9-9
Set MSB to 0 . . . . . . . . . . . . . . . . . 9-11
Set MSB to 1 . . . . . . . . . . . . . . . . . 9-11
Reassign Graphics Mode . . . . . . 9-40
Initialize Printer . . . . . . . . . . . . . . 9-8
Set n/60-inch Line Spacing. . . . . 9-16
Set Vertical Tabs. . . . . . . . . . . . . . 9-17
Set Page Length in Lines. . . . . . . 9-13
Set Page Length in Inches. . . . . . 9-13
Set Horizontal Tabs . . . . . . . . . . . 9-22
Select Emphasized Mode . . . . . . 9-28
Cancel Emphasized Mode . . . . . 9-28
Select Double-strike Mode . . . . . 9-29
Cancel Double-strike Mode . . . . 9-29
Perform n/180-inch Line Feed . . 9-16
Select Single-density Graphics
Mode . . . . . . . . . . . . . . . . . . . . . . .
9-38
Select Double-density Graphics
Mode . . . . . . . . . . . . . . . . . . . . . . .
9-38
Select 12 CPI . . . . . . . . . . . . . . . . . 9-24
9-6 Command Summary
ESC Y
ESC Z
ESC \
ESC a
ESC b
ESC g
ESC k
ESC 1
ESC p
ESC q
ESC t
ESC w
ESC x
ASCII
ESC N
ESC 0
ESC P
ESC Q
ESC R
ESC S 0
ESC S 1
ESC T
ESC U
ESC W
Commands in Numerical Order
Dec.
Hex.
Description
78
79
80
81
82
83
83
84
85
87
89
90
92
97
98
103
107
108
112
113
116
119
120
4E
4F
50
51
52
53
53
54
55
57
59
5A
5C
61
62
67
6B
6C
70
71
74
77
78
Page
Set Skip Over Perforation . . . . . . 9-14
Cancel Skip Over Perforation. . . 9-14
Select 10 CPI . . . . . . . . . . . . . . . . . 9-24
Set Right Margin . . . . . . . . . . . . . 9-19
Select an International
Character Set. . . . . . . . . . . . . . . . . 9-35
Select Superscript Mode . . . . . . . 9-29
Select Subscript Mode . . . . . . . . . 9-30
Cancel Superscript/Subscript
Mode . . . . . . . . . . . . . . . . . . . . . . .
9-30
Turn Unidirectional Mode
On/Off . . . . . . . . . . . . . . . . . . . . . .
9-10
Turn Double-wide Mode
On/Off. . . . . . . . . . . . . . . . . . . . . .
9-27
Select High-speed Double-density
Graphics Mode. . . . . . . . . . . . . . . 9-38
Select Quadruple-density
Graphics Mode . . . . . . . . . . . . . . . 9-39
Set Relative Print Position . . . . . 9-21
Select Justification . . . . . . . . . . . . 9-33
Set Vertical Tabs in Channels. . . 9-18
Select 15 CPI . . . . . . . . . . . . . . . . . 9-24
Select Typestyle Family. . . . . . . . 9-23
Set Left Margin. . . . . . . . . . . . . . . 9-19
Turn Proportional Mode
On/Off. . . . . . . . . . . . . . . . . . . . . .
9-25
Select Character Style . . . . . . . . . 9-32
Select Character Table . . . . . . . . . 9-34
Turn Double-high Mode
On/Off. . . . . . . . . . . . . . . . . . . . . .
9-28
Select Letter Quality or Draft . . . 9-22
Command Summary 9-7
Commands Arranged by Topic
This following section lists and describes all the commands by topic.
See the Quick Reference card at the back of this book for a handy list of commands by topic.
Printer Operation
ESC @
Format:
ASCII code:
Decimal:
ESC @
27 64
Hexadecimal: 1B 40
Initialize Printer
Comments:
Resets the printer mode and clears the current print line preceding the command.
DC1
Format:
ASCII code:
Decimal:
DC1
17
H e x a d e c i m a l : 1 1
Select Printer
Comments:
Returns the printer to the selected state if it has been deselected by the printer deselect code (DC3). It does not select the printer if it has been switched off line by the ON LINE button,
9-8
Command Summary
Commands Arranged by Topic
DC3
Format:
ASCII code:
Decimal:
DC3
19
H e x a d e c i m a l : 1 3
Deselect Printer
Comments:
Puts the printer into the deselected state until the select printer code (DCl) is received. The printer cannot be reselected with the
ON LINE button.
DEL
Format:
ASCII code:
Decimal:
DEL
127
H e x a d e c i m a l : 7 F
Delete Character
Comments:
Removes the last text character on the print line but does not affect control codes.
ESC < Select Unidirectional Mode (one line)
Format:
ASCII code:
Decimal:
ESC <
27 60
Hexadecimal: 1B 3C
Comments:
Printing is normally bidirectional. This command selects unidirectional printing for one line only. (It is cancelled by a carriage return.) The print head moves to the extreme left (home) position and printing takes place from left to right. Overrides the
DIP switch setting.
Command Summary 9-9
Commands Arranged by Topic
ESC U Turn Unidirectional Mode On/Off
Format:
ASCII code:
Decimal:
ESC U n
27 85 n
Hexadecimal: 1B 55 n
Comments:
The following values can be used for n:
1: Turns the mode on
0: Turns the mode off
Printing is normally bidirectional. This command selects unidirectional printing for more accurate positioning. This setting can also be performed by SelecType.
ESC EM
Format:
ASCII code:
Decimal:
ESC EM n
27 25 n
Hexadecimal: 1B 19 n
Comments:
The following values can be used for n:
0: Turns mode off
4: Turns mode on
R: Ejects a sheet. (No paper is loaded.)
Control Cut Sheet Feeder
The command should not be used unless the cut sheet feeder is installed. It is ignored if any value other than 0, 4, or R is used for n.
The cut sheet feeder mode can also be turned on and off by setting DIP switch 1-8.
9-10 Command Summary
Commands Arranged by Topic
MSB Control
MSB means the Most Significant Bit. MSB control (ESC =, ESC >, and ESC #) does not work for graphics or user-defined characters.
ESC =
Format:
ASCII code:
Decimal:
ESC =
27 61
Hexadecimal: 1B 3D
Set MSB to 0
Comments:
Sets the MSB of all incoming data to 0. Some computers always send data with the MSB set to 1, which means that italics or character graphics are always printed. ESC = can overcome this problem.
ESC >
Format:
ASCII code:
Decimal:
ESC >
27 62
Hexadecimal: 1B 3E
Comments:
Sets the MSB bit of all incoming data as 1.
Set MSB to 1
ESC #
Format:
ASCII code:
Decimal:
ESC #
27 35
Hexadecimal: 1B 23
Cancel MSB Control
Comments:
Cancels the MSB control set by ESC = or ESC >.
Command Summary 9-11
Commands Arranged by Topic
BEL
Format:
ASCII code:
Decimal:
BEL
7
H e x a d e c i m a l : 0 7
Comments:
Sounds the printer’s beeper.
Beeper
Data Control
CR
Format:
ASCII code:
Decimal:
CR
13
H e x a d e c i m a l : 0 D
Carriage Return
Comments:
Prints the data in the print buffer and returns the print position to the left margin. A line feed is added if the AUTO FEED XT line on the parallel interface is held LOW.
CAN
Format:
ASCII code:
Decimal:
CAN
24
H e x a d e c i m a l : 1 8
Cancel Line
Comments:
Clears all text on the print line, but does not affect control codes.
9-12 Command Summary
Commands Arranged by Topic
Vertical Motion
FF
Format:
ASCII code:
Decimal:
FF
12
H e x a d e c i m a l : 0 C
Form Feed
Comments:
Prints the data in the print buffer and advances the paper to the top of the next form according to the current page length. When using a cut sheet feeder, FF ejects the sheet into the stacker.
ESC C
Format:
ASCII code:
Decimal:
ESC C n
27 67 n
Hexadecimal: 1B 43 n
Set Page Length in Lines
Comments:
Sets the page length to n lines in the current line spacing. The value of n must be from 1 to 127 lines. The top of form position is reset to the current line.
Overrides the DIP switch page length setting.
ESC C 0 Set Page Length in Inches
Format:
ASCII code:
Decimal:
ESC C 0 n
27 67 0 n
Hexadecimal: 1B 43 00 n
Comments:
Sets the page length to n inches. The value of n must be from 1 to
22. The top of form position is reset to the current line.
Overrides the DIP switch page length setting.
Command Summary 9-13
Commands Arranged by Topic
ESC N
Format:
ASCII code:
Decimal:
ESC N n
27 78 n
Hexadecimal: 1B 4E n
Set Skip Over Perforation
Comments:
The variable n is the number of lines skipped between the last line printed on one page and the first line to print on the next page.
For example, with the standard setting for line spacing (l/6-inch), and page length (66 lines), ESC N 6 prints 60 lines and then skips
6. This setting is cancelled by ESC 0, ESC C, or ESC C 0. The value of n must be from 1 to 127.
Overrides the DIP switch setting for 1-inch skip over perforation.
ESC O
Format:
ASCII code:
Decimal:
ESC O
27 79
Hexadecimal: 1B 4F
Cancel Skip Over Perforation
Comments:
Cancels the skip over perforation set by ESC N. Overrides the DIP switch setting for 1-inch skip over perforation.
LF
Format:
ASCII code:
Decimal:
LF
10
H e x a d e c i m a l : 0 A
Line Feed
Comments:
When this command is received, the data in the print buffer is printed and the paper advances one line in the current line spacing.
9-14 Command Summary
Commands Arranged by Topic
ESC 0
Format:
ASCII code:
Decimal:
ESC 0
27 48
Hexadecimal: 1B 30
Select 1/8-inch Line Spacing
Comments:
Sets the line spacing to l/8 of an inch for subsequent line feed commands. The 0 is the digit zero and not ASCII code 0.
ESC 2
Format:
ASCII code:
Decimal:
ESC 2
27 50
Hexadecimal: 1B 32
Select 1/6-inch Line Spacing
Comments:
Sets the line spacing to l/6 of an inch for subsequent line feed commands. The 2 is the digit two and not ASCII code 2. This line spacing is the default at power on.
ESC +
Format:
ASCII code:
Decimal:
ESC + n
27 43 n
Hexadecimal: 1B 2B n
Set n/360-inch Line Spacing
Comments:
Sets line spacing to n/360 of an inch for subsequent line feed commands. The value of n must be from 0 to 255.
Command Summary 9-15
Commands Arranged by Topic
ESC 3
Format:
ASCII code:
Decimal:
ESC 3 n
27 51 n
Hexadecimal: 1B 33 n
Set n/180-inch Line Spacing
Comments:
Sets the line spacing to n/180 of an inch for subsequent line feed commands. The 3 is the digit three and not ASCII code 3. The value of n must be from 0 to 255.
ESC A
Format:
ASCII code:
Decimal:
ESC A n
27 65 n
Hexadecimal: 1B 41 n
Set n/60-inch Line Spacing
Comments:
Sets the line spacing to n/60 of an inch for subsequent line feed commands. The value of n must be from 0 to 85.
ESC J
Format:
ASCII code:
Decimal:
ESC J n
27 74 n
Hexadecimal: 1B 4A n
Perform n/180-inch Line Feed
Comments:
Advances the paper n/180 of an inch. The value of n must be from 0 to 255. This command produces an immediate line feed but does not affect subsequent line spacing and does not produce a carriage return.
9-16 Command Summary
Commands Arranged by Topic
VT
Format:
ASCII code:
Decimal:
VT
11
H e x a d e c i m a l : 0 B
Tab Vertically
Comments:
Advances the paper to the next vertical tab position in the channel selected by ESC /. If no channel has been selected, channel 0 is used. If no vertical tabs have been set, the paper advances one line.
ESC B Set Vertical Tabs
Format:
ASCII code:
Decimal:
ESC B n1 n2 ... 0
27 66 n1 n2 ...
0
Hexadecimal: 1B 42 n1 n2 ... 00
Comments:
Sets up to 16 vertical tabs in the current line spacing. Tab settings are not affected by subsequent changes in line spacing. The tab settings are entered as n1, n2, etc.-all from 1 to 225, in ascending order. The 0 value (null) indicates the end of the command. All settings are stored in channel 0 (see ESC b). ESC B 0 clears the tab settings.
Command Summary 9-17
Commands Arranged by Topic
ESC b Set Vertical Tabs in Channels
Format:
ASCII code:
Decimal:
ESC b c n1 n2 ... 0
27 98 c n1 n2 ... 0
Hexadecimal: 1B 62 c n1 n2 ... 00
Comments:
Functions the same as ESC B, except that the variable c selects a channel for the vertical tabs, which must be from 0 to 7.
Therefore, up to eight sets of vertical tabs can be set. The channels are selected by ESC /. To clear the tabs in channel c, use ESC b c 0.
ESC /
Format:
ASCII code:
Decimal:
ESC / c
27 47 c
Hexadecimal: 1B 2F c
Select Vertical Tab Channel
Comments:
This command is used to select the vertical tab channel, with the value of c from 0 to 7. All subsequent VT commands use the channel selected by this command. If no channel has been selected, channel 0 is used.
9-18 Command Summary
Commands Arranged by Topic
Horizontal Motion
ESC 1
Format:
ASCII code:
Decimal:
ESC 1
27 108 n
Hexadecimal: 1B 6C n n
Set Left Margin
Comments:
Sets the left margin to n columns in the current character size.
Settings made in the proportional mode are treated as 10 cpi. This command clears previous tab settings and all previous characters in the print line. Use lowercase 1 (as in left), not the numeral one.
The minimum space between the margins is the width of double-wide 10 cpi character.
one
ESC Q
Format:
ASCII code:
Decimal:
ESC Q n
27 81 n
Hexadecimal: 1B 51 n
Set Right Margin
Comments:
Sets the right margin to n columns in the current character size.
Settings made in the proportional mode are treated as 10 cpi. This command clears previous tab settings and all previous characters in the print line. The minimum space between the margins is the width of one double-wide 10 cpi character.
Command Summary 9-19
Commands Arranged by Topic
BS
Format:
ASCII code:
Decimal:
BS
8
H e x a d e c i m a l : 0 8
Backspace
Comments:
Prints out data in the print buffer, then moves the print position one space to the left. Backspacing is possible up to, but not beyond, the left margin setting. The BS code is ignored if ESC a2 or ESC a3 has been sent.
ESC $ Set Absolute Print Position
Format:
ASCII code:
Decimal:
ESC $ n1 n2
27 36 n1 n 2
Hexadecimal: 1B 24 n1 n2
Comments:
This sequence specifies the distance from the current left margin that subsequent characters are to be printed, using this formula: total number of dots = n1 + (n2 x 256). Each unit equals 1/60th of an inch. The sequence is ignored and the previous setting remains effective if the position specified is beyond the right margin.
9-20 Command Summary
C o m m a n d s A r r a n g e d b y T o p i c
ESC \ Set Relative Print Position
Format:
ASCII code:
Decimal:
ESC \ n1 n2
27 92 n1 n2
Hexadecimal: 1B 5C n1 n2
Comments:
Determines the position (relative to the current position) at which printing of subsequent data will start. To find n1 and n2, first calculate the displacement required in dots. If the displacement is to the left, subtract it from 65536. Send the resulting number using this formula: total number of dots = n1 + (256 x n2). The command is ignored if it would move the print position outside the current margins. A unit is 1/120th of an inch in draft, and
1/180th of an inch in Letter Quality or proportional modes.
HT
Format:
ASCII code:
Decimal:
HT
9
H e x a d e c i m a l : 0 9
Tab Horizontally
Comments:
Advances the print position to the next horizontal tab setting. The default tabs are at g-character intervals in the currently set pitch.
Tab positions are not affected by subsequent changes in cpi.
Command Summary 9-21
Commands Arranged by Topic
ESC D
Set Horizontal Tabs
Format:
ASCII code:
Decimal:
ESC D n1 n2 ... 0
27 68 n1 n2 ... 0
Hexadecimal: 1B 44 n1 n2 ... 00
Comments:
This command allows setting of up to 32 horizontal tabs, which are entered as n1, n2, n3, etc., (from 1 to 255) with the number 0 character terminating the command. The tab settings must be entered in ascending order. ESC D 0 clears all tabs. The default settings, when power is turned on or after an ESC @ command, are at every eight characters. The tab settings are not affected by changes in cpi. The tab positions in proportional printing are determined by the 10 cpi character size.
Overall Printing Style
ESC x
Format:
ASCII code:
Decimal:
ESC
27 x n
120 n
Hexadecimal: 1B 78 n
Select Letter Quality or Draft
Comments:
The following values can be used for n:
0: Selects draft mode.
1: Selects Letter Quality (LQ) mode.
Overrides the SelecType panel setting.
9-22 Command Summary
Commands Arranged by Topic
ESC k
Format:
ASCII code:
Decimal:
ESC k
27 107 n n
Hexadecimal: 1B 6B n
Select Typestyle Family
Comments:
This command affects only the Letter Quality typestyle, not draft.
If n = 0, typestyle in the printer is used. To select one of the other typestyles, use the family number of the font as shown below. For example, to choose the Prestige font, use 3 for the value of following values can be used for
0: Roman
1: Sans Serif
2: Courier
3: Prestige
4: Script
5: OCR-B
6: OCR-A
7: Orator
8: Orator-S n: n.
The
Typestyle families 2 to 8 are available only if the appropriate font module is installed, such as the Multi-Font Module.
Overrides the SelecType panel setting and DIP switch font setting.
ESC !
Format:
ASCII code:
Decimal:
ESC !
27 33
Hexadecimal: 1B 21 n n n
Master Select
Comments:
Selects any valid combination of the following modes: 10 cpi, 12 cpi, proportional, condensed, emphasized, double-strike, doublewide, italic, and underline. For details on how to set n, see the
Selecting Typestyles With Master Select section in Chapter 4.
Command Summary 9-23
Commands Arranged by Topic
Print Size and Character Width
ESC P
Format:
ASCII code:
Decimal:
ESC P
27 80
Hexadecimal: 1B 50
Select 10 CPI
Comments:
Selects 10 character per inch printing. This command is normally used to cancel 12 or 15 cpi.
Select 12 CPI ESC M
Format:
ASCII code:
Decimal:
ESC M
27 77
Hexadecimal: 1B 4D
Comments:
Selects 12 character per inch printing.
ESC g
Format:
ASCII code:
Decimal:
ESC g
27 103
Hexadecimal: 1B 67
Select 15 CPI
Comments:
Selects 15 character per inch printing, and cancels 10 or 12 cpi.
Cannot be combined with condensed mode.
9-24 Command Summary
Commands Arranged by Topic
ESC p Turn Proportional Mode On/Off
Format:
ASCII code:
Decimal:
ESC p n
27 112 n
Hexadecimal: 1B 70 n
Comments:
Turns proportional mode on and off.
The following values can be used for n:
1: Turns mode on.
0: Turns mode off.
The width of proportional characters varies from character to character. Therefore, a narrow letter like i receives less space than a wide letter like W. Proportional character widths are given in the Appendix. This command overrides the condensed mode and fixed cpi fonts. When proportional is cancelled, the previously selected font is used. Graphic characters are printed in fixed cpi only; proportional mode is only available in Roman and Sans
Serif fonts.
SI
Format:
ASCII code:
Decimal:
SI
15
H e x a d e c i m a l : 0 F
Select Condensed Mode
Comments:
Prints characters at about 60 percent of their normal width. For example, the condensed 10 cpi mode has 17 characters per inch.
Proportional characters override the condensed mode.
Condensed mode cannot be combined with 15 cpi. Condensed can be turned on and off by SelecType, the SI command, or DIP switch 1-6.
Command Summary 9-25
Commands Arranged by Topic
ESC SI
Format:
ASCII code:
Decimal:
ESC SI
27 15
Hexadecimal: 1B 0F
Select Condensed Mode
Comments:
Duplicates the SI command and the function of the condensed button on the control panel.
DC2
Format:
ASCII code:
Decimal:
DC2
18
H e x a d e c i m a l : 1 2
Cancel Condensed Mode
Comments:
Cancels condensed mode set by SI, ESC SI, or SelecType and returns printing to normal.
so
Format:
ASCII code:
Decimal:
SO
14
H e x a d e c i m a l : 0 E
Select Double-wide Mode (one line)
Comments:
Doubles the width of all characters on one line. This mode is cancelled by LF, FF, VT, or DC4.
9-26 Command Summary
Commands Arranged by Topic
ESC SO
Format:
ASCII code:
Decimal:
ESC SO
27 14
Hexadecimal: 1B 0 E
Select Double-wide Mode (one line)
Comments:
Duplicates the SO command.
ESC W Turn Double-wide Mode On/Off
Format:
ASCII code:
Decimal:
ESC W
27 87 n
Hexadecimal: 1B 57 n n
Comments:
Doubles the width of all characters.
The following values can be used for
1: Turns mode on.
0: Turns mode off.
n:
DC4
Format:
ASCII code:
Decimal:
DC4
20
H e x a d e c i m a l : 1 4
Cancel Double-wide Mode (one line)
Comments:
Cancels double-wide mode selected by SO or ESC SO, but not double-wide mode selected by ESC W or ESC !.
Command Summary 9-27
Commands Arranged by Topic
ESC w Turn Double-high Mode On/Off
Format:
ASCII code:
Decimal:
ESC
27 w
119
Hexadecimal: 1B 77 n n n
Comments:
Doubles the height of all characters.
The following values can be used for
1: Turns mode on.
0: Turns mode off.
n:
Cannot be used with the pull tractor.
Print Enhancement
ESC E
Format:
ASCII code:
Decimal:
ESC E
27 69
Hexadecimal: 1B 45
Select Emphasized Mode
Comments:
Makes text bolder by printing each dot twice, with the second dot printed slightly to the right of the first.
ESC F
Format:
ASCII code:
Decimal:
ESC F
27 70
Hexadecimal: 1B 46
Cancel Emphasized Mode
Comments:
Cancels the emphasized mode selected by ESC E.
9-28 Command Summary
Commands Arranged by Topic
ESC G
Format:
ASCII code:
Decimal:
ESC G
27 71
Hexadecimal: 1B 47
Select Double-strike Mode
Comments:
Makes text bolder by printing each line twice, with the second printing slightly below the first.
ESC H
Format:
ASCII code:
Decimal:
ESC H
27 72
Hexadecimal: 1B 48
Cancel Double-strike Mode
Comments:
Cancels the double-strike mode selected by ESC G.
ESC S 0
Format:
ASCII code:
Decimal:
ESC S 0
27 83 0
Hexadecimal: 1B 53 00
Select Superscript Mode
Comments:
Prints characters about two-thirds of the normal character height in the upper part of the character space.
Command Summary 9-29
Commands Arranged by Topic
ESC S l
Format:
ASCII code:
Decimal:
Hexadecimal:
ESC S 1
27
1B
83
53
1
01
Select Subscript Mode
Comments:
Prints characters about two-thirds of the normal character height in the lower part of the character space.
ESC T
Format:
ASCII code:
Decimal:
ESC T
27 84
Hexadecimal: 1B 54
Cancel Superscript/Subscript Mode
Comments:
Cancels either superscript or subscript.
9-30 Command Summary
Commands Arranged by Topic
ESC ( -
Format:
ASCII code:
Decimal:
ESC ( - n1 n2 m
27 40 45 n1 n2 m
H e x a d e c i m a l : 1 B 28 2D n1 n2 m
Select Score d1 d2 d1 d2 d1 d2
Comments:
Use decimal or hexadecimal values for all variables, not ASCII characters.
Use the following values for the first 3 variables: n1 must be 3.
n2 must be 0.
m must be 1.
The value of d1 determines the location of the score: d1 = 1 for underline.
d1 = 2 for strike-through.
d1 = 3 for overscore.
The value of d2 determines whether the score line is single, double, broken, or continuous: d2 = 0 Cancel the score line selected by d1.
d2 = 1 Single continuous line.
d2 = 2 Double continuous line.
d2 = 5 Single broken line.
d2 = 6 Double broken line.
Command Summary 9-31
Commands Arranged by Topic
ESC -
Format:
ASCII code:
Decimal:
ESC - n
27 45 n
Hexadecimal: 1B 2D n
Turn Underline Mode On/Off
Comments:
This mode provides continuous underlining including spaces.
The following values can be used for n:
1: Turns mode on.
0: Turns mode off.
Areas skipped with HT or ESC $ are not underlined.
ESC q
Format:
ASCII code:
Decimal:
ESC
27 q
113 n
Hexadecimal: 1B 71 n n
Comments:
The following values can be used for n:
0: Selects normal.
1: Selects outline.
2: Selects shadow.
3: Selects outline with shadow.
Select Character Style
This command is valid for all characters, with the exception of character codes B0H to DFH, F4H, and F5H (176 to 223, 244, and
245 decimal) in the Epson Extended Graphics character table.
9-32 Command Summary
Commands Arranged by Topic
Word Processing
ESC a
Format:
ASCII code:
Decimal:
ESC a
27 97 n
Hexadecimal: 1B 61 n n
Select Justification
Comments:
Sets the type of justification.
The following values can be used for
0: Selects left justification.
1: Selects centering.
2: Selects right justification.
3: Selects full justification.
n:
The default setting is n
= 0. Full justification (n = 3) is performed when the buffer becomes full; HT and BS are invalid except in n
= 0 mode. For n = 3 there must be no carriage returns within a paragraph.
ESC SP (space)
Format:
ASCII code:
Decimal:
ESC SP n
27 32 n
Hexadecimal: 1B 20 n
Set Intercharacter Space
Comments:
Sets the amount of space added to the right of each character, in addition to the space already allowed in the design of the character. The number of dots is determined by n, which should be from 0 to 127. Each unit of space is 1/120th of an inch in draft mode and 1/180th of an inch in Letter Quality and proportional modes.
Command Summary 9-33
Commands Arranged by Topic
Character Tables
ESC t
Format:
ASCII code:
Decimal:
ESC t
27 116 n n
Hexadecimal: 1B 74 n
Select Character Table
Comments:
Selects the character table used by codes 128 to 255. Selecting
Epson Extended Graphics characters does not disable italic printing. Italic printing can still be selected by ESC 4. The following values can be used for n:
0: Selects italics character table.
1: Selects Epson Extended Graphics character table.
2: Selects user-defined character table and remaps user-defined
O-127 to 128-255.
Overrides the function of DIP switch 1-7. Note that the value of must equal 00 hex, 01 hex, or 02 hex.
n
ESC 4
Format:
ASCII code:
Decimal:
ESC 4
27 52
Hexadecimal: 1B 34
Select Italic Mode
Comments:
Causes characters from the italic character table to be printed.
This command is valid even if the Epson Extended Graphics character set has been selected by ESC t or by DIP switch 1-7, but the character graphics are not italicized.
9-34 Command Summary
Commands Arranged by Topic
ESC 5
Format:
ASCII code:
Decimal:
Hexadecimal:
ESC 5
27
1B
53
35
Comments:
Cancels the mode selected by ESC 4.
Cancel Italic Mode
ESC R Select an International Character Set
Format:
ASCII code:
Decimal:
ESC R n
27 82 n
Hexadecimal: 1B 52 n
Comments:
Selects one of the international character sets.
The following values can be used for n:
0 = USA
1 = France
2 = Germany
3 = England
4 = Denmark I
5 = Sweden
6 = Italy
7 = Spain I
8 = Japan
9 = Norway
10 = Denmark II
11 = Spain II
12 = Latin America
13 = Korea
64 = Legal
Overrides the DIP switch settings of the international character set.
Command Summary 9-35
Commands Arranged by Topic
User-defined Characters
See Chapter 4 for sample programs and full information on this topic.
ESC & Define User-defined Characters
Format:
ASCII code:
Decimal:
ESC & 0 n1 n2 d1
27 38 0 n1 n2 d1
H e x a d e c i m a l : 1 B 26 00 n1 n2 d1 d 2 d a t a d2 d 2 d a t a d a t a
Comments:
This command allows characters to be redefined in the currently selected mode.
When defining characters, DIP switch 2-5 must be set to off.
ESC :
Format:
ASCII code:
Decimal:
Hexadecimal:
ESC
27
1B
:
58
3A
0
0
00 n n n
Copy ROM to RAM
0
0
00
Comments:
This sequence copies the characters in ROM to RAM so that specific characters can be redefined. The variable n represents the font family. Fonts in font cartridges (except Orator and
Orator-S) can also be copied. The LQ-510 cannot select fonts
2 to 6 if you do not have the multi-font cartridge.
0: Roman
1: Sans Serif
2: Courier
3: Prestige
4: Script
5:
6:
OCR-B
OCR-A
9-36 Command Summary
Commands Arranged by Topic
ESC %
Format:
ASCII code:
Decimal:
ESC % n
27 37 n
Hexadecimal: 1B 25 n
Select User-defined Set
Comments:
This sequence is used to print the user-defined (download) character set. ESC & is required to define the character set. The following values can be used for n:
0: Selects the normal set.
1: Selects the user-defined set.
ESC 6
Format:
ASCII code:
Decimal:
ESC 6
27 54
Hexadecimal: 1B 36
Enable Printable Characters
Comments:
When the Epson Extended Graphics character table is selected,
ESC 6 enables the printing of codes 128 through 159 (decimal) as characters, not control codes. See the Appendix for characters printed.
ESC 7
Format:
ASCII code:
Decimal:
ESC 7
27 55
Hexadecimal: 1B 37
Enable Upper Control Codes
Comments:
When the Epson Extended Graphics character table is selected,
ESC 7 causes codes 128 through 159 to be treated as control codes.
This is the default.
Command Summary 9-37
Commands Arranged by Topic
Graphics
See Chapter 4 for sample graphics programs. See the table under
ESC * for graphics modes.
ESC K Select Single-density Graphics Mode
Format:
ASCII code:
Decimal:
ESC K n1 n2
27 75 n1 n2
Hexadecimal: 1B 4B n1 n2
Comments:
Turns on 8-pin, single-density graphics mode. The total number of columns = n1 + (n2 x 256).
ESC L Select Double-density Graphics Mode
Format:
ASCII code:
Decimal:
ESC L n1 n2
27 76 n1 n2
Hexadecimal: 1B 4C n1 n2
Comments:
Turns on 8-pin, low-speed, double-density graphics mode. The total number of columns = n1 + (n2 x 256).
ESC Y Select High-speed Double-density Graphics Mode
Format:
ASCII code:
Decimal:
ESC Y n1 n2
27 89 n1 n2
Hexadecimal: 1B 59 n1 n2
Comments:
Turns on 8-pin, high-speed, double-density graphics mode. The total number of columns = n1 + (n2 x 256).
9-38 Command Summary
Commands Arranged by Topic
ESC Z Select Quadruple-density Graphics Mode
Format:
ASCII code:
Decimal:
ESC Z n1 n 2
27 90 n1 n2
Hexadecimal: 1B 5A n1 n 2
Comments:
Turns on 8-pin, quadruple-density graphics mode. The total number of columns = n1 + (n2 x 256).
ESC * Select Graphics Mode
Format:
ASCII code:
Decimal:
ESC * m n1 n2
27 42 m n1 n2
Hexadecimal: 1B 2A m n1 n 2
Comments:
Turns on graphics mode m. Refer to the following table for details on the available modes. The total number of columns = n1 + (n2 x 256).
Option
Single-density
Double-density
High-speed double-density*
Quadruple-density*
CRT I
CRT II
Single-density
Double-density
CRT III
Triple-density
Hex-density* l
Adjacent dots cannot be printed in this mode.
24
24
24
8
8
24
24
8
8
8
8
Pins m
32
33
38
4
6
39
40
2
3
1
0
Horiz. density
(dots/in)
60
120
120
240
80
90
60
120
90
180
360
Command Summary 9-39
Commands Arranged by Topic
ESC ?
Reassign Graphics Mode
Format:
ASCII code:
Decimal:
ESC ?
S m
27 63 s m
Hexadecimal: 1B 3F s m
Comments:
Changes from one graphics mode to another. The variable s is a character (K, L, Y or Z).
The variable m corresponds to the mode m in the ESC * command.
9-40 Command Summary
advertisement
Related manuals
advertisement
Table of contents
- 1 FRONT MATTER
- 4 TABLE OF CONTENTS
- 8 INTRODUCTION
- 8 Features
- 9 Options
- 11 About This Manual
- 12 Application Notes
- 13 Where to Get Help
- 14 CHAP 1-SETTING UP THE PRINTER
- 15 Unpacking the Printer
- 15 Checking the Parts
- 17 Choosing a Place for the Printer
- 19 Assembling the Printer
- 19 Installing the Platen Knob
- 20 Installing the Ribbon Cartridge
- 23 Attaching the Paper Guide
- 26 Testing the Printer
- 26 Plugging in the Printer
- 27 Running the Self Test
- 34 Checking the Operation
- 35 Connecting the Printer to Your Computer
- 35 The Parallel Interface
- 38 Setting Up Your Application Software
- 38 Choosing From a Menu
- 40 CHAP 2-PAPER HANDLING
- 41 Using Single Sheets
- 41 Loading Paper
- 44 Reloading During Printing
- 45 Using Continuous Paper
- 45 Positioning Your Continuous Paper Supply
- 46 Loading Continuous Paper
- 52 Switching Between Continuous and Single Sheets
- 52 Switching to Single Sheets
- 56 Switching Back to Continuous Paper
- 59 Printing on Special Paper
- 59 The Paper Thickness Lever
- 62 Multi-part Forms
- 63 Labels
- 65 Envelopes
- 67 CHAP 3-USING THE PRINTER
- 68 Operating the Control Panel
- 72 Setting the DIP Switches
- 72 Changing a DIP Switch Setting
- 73 The DIP Switch Tables
- 75 The DIP Switch Functions
- 76 Page Length
- 77 Skip Over Perforation
- 78 Adjusting the Loading Position
- 78 The Loading Position
- 79 Using Micro-adjustment
- 80 Using Short Tear-Off
- 81 Adjusting the Tear-off Position
- 83 Selecting Typestyles
- 84 Character Fonts
- 85 Condensed Mode
- 86 Selecting an International Character Set
- 88 Choosing a Character Table
- 90 Using the Data Dump Mode
- 93 CHAP 4-SOFTWARE AND GRAPHICS
- 94 Enhancing Your Printing
- 94 Character Spacing
- 95 Character Size
- 96 Special Effects and Emphasis
- 98 Selecting Typestyles With Master Select
- 101 Graphics
- 102 The Print Head
- 105 The Graphics Command
- 106 Column Reservation Numbers
- 106 A Simple Graphics Program
- 107 Designing Your Own Graphics
- 112 User-defined Characters
- 112 Designing Your Characters
- 114 Defining Your Characters
- 116 Sending Information to Your Printer
- 119 Printing User-defined Characters
- 120 Copying ROM Characters to RAM
- 121 Letter Quality Characters
- 122 Mixing Print Styles
- 125 CHAP 5-USING THE PRINTER OPTIONS
- 126 The Cut Sheet Feeder
- 126 Installation
- 129 Paper Handling
- 133 Testing the Printer in the Cut Sheet Feeder Mode
- 135 Operating the Cut Sheet Feeder
- 135 Single-sheet Insertion
- 139 Removing the Cut Sheet Feeder
- 141 The Pull Tractor
- 141 Installation
- 143 Paper Handling
- 148 Removing the Pull Tractor
- 152 The Multi-Font Module
- 154 Installation
- 157 Selecting a Font
- 158 The Interface Boards
- 158 Choosing an Interface
- 159 Compatible Interfaces
- 159 Installation
- 165 #8143 New Serial Interface
- 167 CHAP 6-MAINTENANCE
- 168 Cleaning the Printer
- 170 Replacing the Ribbon
- 176 Transporting the Printer
- 177 CHAP 7-TROUBLESHOOTING
- 178 Problems and Solutions
- 180 Power Supply
- 181 Printing
- 190 Paper Handling
- 200 Options
- 211 CHAP 8-TECHNICAL SPECIFICATIONS
- 212 Printer Specifications
- 212 Printing
- 214 Paper
- 217 Mechanical
- 218 Electrical
- 218 Environment
- 219 Interface Specifications
- 219 Pin Assignments for the Parallel Interface
- 221 Interface Timing
- 222 Printing Enabled/Disabled Signals and Control Conditions
- 223 Option Specifications
- 223 Single-bin Cut Sheet Feeder
- 225 Initialization
- 225 Default Settings
- 227 CHAP 9-COMMAND SUMMARY
- 228 Using the Command Summary
- 230 Control Key Chart
- 231 Commands in Numerical Order
- 234 Commands Arranged by Topic
- 234 Printer Operation
- 237 MSB Control
- 238 Data Control
- 239 Vertical Motion
- 245 Horizontal Motion
- 248 Overall Printing Style
- 250 Print Size and Character Width
- 254 Print Enhancement
- 259 Word Processing
- 260 Character Tables
- 262 User-defined Characters
- 264 Graphics
- 267 APPENDIX
- 268 Proportional Width Table
- 272 Character Tables
- 275 GLOSSARY
- 283 INDEX