The Serial Interface .................................................................. 221
Serial Interface Signals..........................................................222
2
CCoommmmaannddss
This section provides information about the commands supported by your printer. The
commands are organized by function groups. Each command has both a brief and a detailed
description.
GGeenneerraall OOvveerrvviieeww
This appendix provides information about the commands supported by your printer. The
commands are organized by function groups. Each command has both a brief and a detailed
description.
Each command has the following structure:
• Name and function description. Information about protocol (IBM Proprinter XL24/XL24
AGM, IBM Personal 2391+, EPSON LQ Series).
• The hexadecimal and decimal codes for the command: n represents variable parameters of
the command. The functions of these parameters are explai ned in its corresponding command
description.
EESSCC [[ p
EESSCC [[ p
EESSCC [[ p
EESSCC [[ p
EESSCC [[ @
EESSCC [[ @
EESSCC [[ \
EESSCC [[ d
EESSCC [[
EESSCC [[ K
EESSCC [[ p
EESSCC [[ p
EESSCC [[ p
EESSCC [[ p
EESSCC [[ p
EESSCC [[ p
EESSCC [[ p
EESSCC [[ p
EESSCC [[ p
EESSCC [[ p
EESSCC [[ T
EESSCC \
EESSCC \
EESSCC BB NNUUL
EESSCC bb NNUUL
EESSCC c
EESSCC c
EESSCC CC 00 n
EESSCC CC n
EESSCC D
EESSCC d
EESSCC DD oorr IINND
EESSCC e
EESSCC E
EESSCC EE oorr NNEEL
EESSCC F
EESSCC G
EESSCC
EESSCC H
EESSCC HH oorr HHTTS
EESSCC I
EESSCC J
EESSCC JJ oorr VVTTS
EESSCC k
EESSCC K
EESSCC k
EESSCC KK oorr PPLLD
EESSCC l
EESSCC L
EESSCC LL oorr PPLLU
EESSCC M
EESSCC m
EESSCC MM oorr RRI
EESSCC N
EESSCC O
EESSCC P
EESSCC P
EESSCC p
EESSCC PP ddaatta
EESSCC Q
EESSCC Q
EESSCC QQ oorr PPUU1
EESSCC R
EESSCC R
EESSCC rr n
EESSCC S
EESSCC s
EESSCC SSP
EESSCC T
EESSCC t
EESSCC U
EESSCC W
EESSCC w
EESSCC X
EESSCC x
EESSCC
EESSCC Y
EESSCC Z
Prints all received data and the column counter is set to the left margin.
ASCII Code CR
Hexadecimal Value 0D
Decimal Value 13
This code is a terminator code; when receiv ed, it causes any data i n the buffer to be printed out.
The print head then moves logically to the left margin position. The column counter is set to the
left margin value and a line feed is inserted automatically after the carriage return (see the
automatic carriage return function in the printer setup). The code resets the double width
printing set by SO code.
ESC ]
Sets a reverse line feed. (IBM)
ASCII Code ESC ]
Hexadecimal Value 1B 5D
Decimal Value 27 93
This code is a terminator code; when receiv ed, it causes the current contents of the print buffer
to be printed out, before reversing the paper by one line at the current vertical spacing. If no
data precedes this command or if the preceding data consists of spaces, the code causes only a
reverse line feed to be performed. When the line counter is equal to or less than the top of the
form value, the ESC ] is ignored.
8
ESC 5
Sets an automatic line feed after a carriage return. (IBM)
ASCII Code ESC 5 n
Hexadecimal Value 1B 35
Decimal Value 27 53
n
n
If n is equal to 1, this command sets an automatic line feed on receiving of a CR code. If n is
equal to 0, this command cancels the automatic line feed.
n Automatic line feed
0 Disabled
1 Enabled
ESC J
Advances paper n/180 inch. (EPSON and IBMXL24AGM)
Advances paper n/216 inch. (IBMXL24 and 2391)
ASCII Code ESC J n
Hexadecimal Value 1B 4A
Decimal Value 27 74
Range 1 <
This is a terminator code; it therefore causes the current contents of the print buffer to be
printed out before performing a single line feed of n/180 or n/216 inch. This command is
cancelled after the line feed has been performed. The printing will restart after a line feed from
the column at which the command was sent.
n
n
n < 255
9
LF
Line Feed.
ASCII Code LF
Hexadecimal Value 0A
Decimal Value 10
This is a terminator code; it therefore causes the current contents of the print buffer to be
printed out before advancing the paper by one line at the current vertical spacing. If no data
precedes the LF code, or if the preceding data consists of spaces, the code causes only a line feed.
When the line counter reaches the last line of the form (defined by software or function menu),
the LF code causes a skip to the first line of the next form. This code cancels the double width
printing set by the SO code. In IBM mode, the column counter is set to the first column if the
automatic carriage return is selected. In EPSON mode, the column is always set to the first
column.
10
FFoorrmmaatt CCoonnttrrooll
ESC $
Sets the absolute printing position. (EPSON)
n1 n2
n1 n2
n1, n
n1 n
2
< 255
2
ASCII Code ESC &
Hexadecimal Value 1B 24
Decimal Value 27 36
Range 0 <
This command specifies the distance from the left margin where you want to print subsequent
characters. The distance is in number of dots and must be calculated using the following
formula:
Margin distance = n
+ (n
1
x 256)
2
where n2 is the integer result of the number of dots divided by 256 and the n1 is the remainder. 1 dot =
1/60 inch. If the selected pos ition is outside the cur rent right margin, the se quence will be ignored.
ESC [ \
Sets vertical units. (IBM)
= 4
1
= 0
2
t
< 255
1
t
< 255
2
m1 m2 t1 … t
m1 m2 t1 … t
m1 m2 t1 … t
4
4
4
11
ASCII Code ESC [ \
Hexadecimal Value 1B 5B 5C
Decimal Value 27 91 92
Range m
m
0 <
0 <
t
= 0
3
t
= 180 or 216
4
This command changes the base units for the graphics line spacing commands (ESC J, ESC 3).
The default is 1/216 or 1/180 inch.
ESC /
Selects the Vertical Format Unit (VFU) channel. (EPSON)
ASCII Code ESC / m
Hexadecimal Value 1B 2F
Decimal Value 27 47
Range 0 <
m
m
m < 7
This sequence selects the VFU channel that you want to use. Eight different channels are
available. The parameter m represents the channel that you want to select.
ESC \
Sets the relative dot position. (EPSON)
n1, n
n1 n
n1 n
n1 n
2
2
2
2
< 255
+ (n
1
x 256)
2
+ (n
1
x 256).
2
ASCII Code ESC \
Hexadecimal Value 1B 5C
Decimal Value 27 92
Range 0 <
This command specifies the distance between the current print head position and the position
where you want to print subsequent characters (relative position). The distance is in number of
dots and must be calculated using the following formula:
Current position distance = n
where n2 is the integer result of the number of dots divided by 256 and the n1 is the remainder.
The unit of the dots is 1/120 inch for Draft printing or 1/180 inch for Letter Quality. If the
distance is negative (Most Significant Bit of m2 equal to 1), the print head will be moved to the
left of the current position by a number of dots equal to the complement on two of n
12
ESC 0
Sets vertical spacing to 1/8 inch.
ASCII Code ESC 0
Hexadecimal Value 1B 30
Decimal Value 27 48
This code causes vertical spacing to be set to 1/8 inch.
ESC 1
Sets vertical spacing to 7/72 inch. (IBM)
ASCII Code ESC 1
Hexadecimal Value 1B 31
Decimal Value 27 49
This command causes vertical spacing to be set to 7/72 inch.
ESC +
Sets n/360-inch line spacing. (IBM)
ASCII Code ESC + n
Hexadecimal Value 1B 2B
Decimal Value 27 43
Range 0 <
n
n
n < 255
This command sets the line spacing to n/360 inch. If the line spacing is changed, it does not
affect previous settings for vertical tabs or pa ge length..
13
ESC 2
Sets the vertical spacing to 1/6 inch. (EPSON)
ASCII Code ESC 2
Hexadecimal Value 1B 32
Decimal Value 27 50
This command causes the vertical spacing to be set to 1/6 inch.
ESC 2
Enables the vertical spacing set by ESC A. (IBM)
ASCII Code ESC 2
Hexadecimal Value 1B 32
Decimal Value 27 50
This command enables the vertical spacing sets by ESC A.
14
ESC 3
Sets vertical spacing to n/180 inch. (IBM XL24 AGM, EPSON)
ASCII Code ESC 3 n
Hexadecimal Value 1B 33
Decimal Value 27 51
Range 1 <
n
n
n < 255
This sequence sets the vertical spacing to n/180 inch. It is ignored if n is equal to 0.
ESC 3
Sets vertical spacing to n/216 inch. (IBM XL24, 2391 +)
ASCII Code ESC 3 n
Hexadecimal Value 1B 33
Decimal Value 27 51
Range 0 <
n
n
n < 255
This sequence sets the vertical spacing to n/216 inch.
ESC 4
Sets the current position as top of form (first printable line). (IBM)
ASCII Code ESC 4
Hexadecimal Value 1B 34
Decimal Value
2277 5522
This sequence sets the first line of the fanfold paper as the current paper position of the form.
ASCII Code ESC A n
Hexadecimal Value 1B 41
Decimal Value 27 65
n
n
This command changes the default vertical spacing to n/72 inch. The vertical spacing value is
stored and activated only after the ESC 2 code is recei ved.
ESC B
Sets vertical tab stops.
ASCII Code ESC B
Hexadecimal Value 1B 42
Decimal Value 27 66
Range 1 <
n1 … n
n1 ... nx 00
n1 ... n
n < 255
In EPSON mode, sets vertical tab stops in the 0 Vertical Format Unit (VFU) channel. This code
sets up to 16 vertical tab stops at the line specified by n1, n
tab stops are memorized as physical positi ons. In IBM modes, thi s code sets up to 64 vertical tab
stops at the line number specified by n1, n2 and so on in the 0 VFU channel. The tab stops are
memorized as logical positi ons.
0
x
0
x
and so on in the 0 VFU channel. The
2
16
ESC B NUL
Resets vertical tab stops.
ASCII Code ESC B NUL
Hexadecimal Value 1B 42
Decimal Value 27 66 00
00
Resets vertical tab stops in the 0 Vertical Format Unit (VFU) channel.
ESC b
Sets vertical tab stops in one of the 8 Vertical Format Unit channels available. (EPSON)
ASCII Code ESC b
Hexadecimal Value 1B 62
Decimal Value 27 98
Range 0 <
1 <
m
n1 ... nx
m n1 ... nx 0
m n1 ... nx 00
m n1 ... nx 0
< 7
< 255
This sequence sets vertical tabulations in the VFU channel specified by the parameter m.
The VFU channel can be imagined as a blank page where you can set up to 16 vertical
tabulations in order to format your page as you like. 8 channels are available and in each of
them you can create a sample page tha t you can recall later. n1 to n16 specify the lines at which
vertical tabulations must be set.
The values of n must be in ascending order. If you change the vertical spacing, the vertical
tabulations set are not cancelled and they maintain their physical position on the page.
The vertical tabulations set in the channel specified by the m parameter are executed by the VT
code when the specific channel is selected by the ESC / command, this code is executed as a line
feed.
17
ESC b NUL
Resets vertical tab stops in one of the 8 Vertical Format Unit channels available. (EPSON)
ASCII Code ESC b NUL
Hexadecimal Value 1B 62
Decimal Value 27 98 0
00
Resets vertical tab stops in one of the 8 Vertical Format Unit channels available.
ESC C 0 n
Sets form length to n inches.
ASCII Code ESC C 0 n
Hexadecimal Value 1B 43 00
Decimal Value 27 67 0
Range 1 <
n < 24
n
n
This command sets the form length to the number of inches specified by n. The current position
of the paper is assumed as top of form.
ESC C n
Sets form length to n lines.
ASCII Code ESC C n
Hexadecimal Value 1B 43
Decimal Value 27 67
n
n
Range 1 <
n < 255
This command sets the form length to the number of lines specified by n at the current vertical
spacing. The current position of the paper is assumed as top of form.
18
ESC D
Sets horizontal tab stops.
ASCII Code ESC D
Hexadecimal Value 1B 44
Decimal Value 27 68
Range 1 <
n1 n2 … nx 0
n1 n2… nx 00
n1 n2… nx 0
n < 255
This sequence sets up to 28 (IBM mode) or 32 (EPSON mode) horizontal tab stops after canceling
the current setting. The n1 to nx parameters specify the number of columns at which horizontal
tab stops are required and must be entered in the sequence in ascending numerical order. Any
value outside this range will be ignored. In IBM mode, the tab stop position is memorized as
logical position i n the pag e so that i t i s affected by chang ing the horizonta l spa cing. The col umns
are numbered 1 through 136. In EPSON mode , th e tab st op pos ition s et b y ES C D is memoriz ed a s
physical position in the page and therefore it is not affected by changing the horizontal spacing. The
physical position of the tab stop depends on the horizontal spacing in operation when ESC D is used.
The ESC D 0 cancels all active tab stops.
ESC d
Spaces forwards relative dot position. (IBM)
ASCII Code ESC d
Hexadecimal Value 1B 64
Decimal Value 27 100
Range 0 <
n1 n
2
n
1 n2
n1 n
2
n1, n
< 255
2
This command moves the print carriage of a (n1 + (n2*256))/120 inch displacement on the right of its
current dot position. If the selected position is outside the current right margin, it is forced to the last
column.
19
ESC e
Spaces backward relative dot position. (IBM)
n1, n
n1 n
n1 n
n
n
n
1
1
2
2
2
n
2
2
< 255
ASCII Code ESC e
Hexadecimal Value 1B 65
Decimal Value
Range 0 <
2277 110011
This command moves the print carriage of a (n1 + (n2*256))/120 inch displacement on the left of its
current dot position. If the selected position is outside the current left ma rgin, it is forced to the
first column.
ESC l
Sets left margin. (EPSON)
ASCII Code ESC l n
Hexadecimal Value 1B 6C
Decimal Value
Range 0 <
n
n
2277 110088
n
n < 255
This code sets the left margin at the current horizontal spacing. It must be sent at the beginni ng
of the line. The n parameter specifies the number of columns. For each type of horizontal spaci ng
there is a different range of possible values, as shown in the following table:
20
Character Width Horizontal Spacing Range of columns
Double Width
5 0 < n < 67
6 cpi 0 < n < 80
7.5 cpi 0 < n < 100
8.5 cpi 0 < n < 114
10 cpi 0 < n < 134
Normal
10 cpi 0 < n < 134
12 cpi 0 < n < 160
15 cpi 0 < n < 201
17 cpi 0 < n < 229
20 cpi 0 < n < 255
24 cpi 0 < n < 255
Any value outside the accepted range is i gnored and the previous setting remains in effect. The
left margin must be smaller than the right margin. The physical position set for the left margin
does not change if the horizontal spacing is modified. This command overrides the menu setting.
ESC N
Sets the skipover perforation to n lines.
ASCII Code ESC N n
Hexadecimal Value 1B 4E
Decimal Value 27 78
Range 1 <
n
n < 127 (EPSON mode)
1 <
n < 225 (IBM mode)
n
21
The skipover perforation is the sum of top and bottom margins values at the selected vertical
spacing. The n parameter must be less than the current form length. The skipover i s memorized
as physical position on the page. It is cancelled by ESC O or changing the form length.
The skipover value, when accepted, will set the top and bottom margins according to the
operator panel setting (see User Manual in this CD-ROM):
If the top margin set via operator panel is greater than the skipover value, then the following
value of the margins will be set:
Top margin = skipover value
Bottom margin = 0
If the top margin set via operator panel is less or equal to the skipover value, then the following
value of the margins will be set:
Top margin = operator panel value
Bottom margin = the difference between skipover value and top margin value
If the sum of the top and bottom margins values set via operator panel is less than the skipover
value, the following values for the margins will be set:
Top margin = operator panel value
Bottom margin = the difference between skipover value and top margin value
Changing the vertical spacing does not affect the skipover distance. This can be changed by a
further ESC N command or can be reset by the ESC O command, which resets the skipover
value to 0. The skipover perforation will be executed when the end of the page is reached with a
LF, VT or FF code and not with the ESC J or ESC C command, the skipover perforation is
cancelled and must therefore be set again.
22
ESC O
Disables the skipover perforation.
ASCII Code ESC 0
Hexadecimal Value 1B 4F
Decimal Value 27 79
This sequence sets the number of lines of the skipover perforation to the value 0 a nd so any ski p
perforation set by ESC N is cancelled.
ESC Q
Sets the right margin. (EPSON)
ASCII Code ESC Q n
Hexadecimal Value 1B 51
Decimal Value 27 81
Range 1 <
n
n
n < 225
This code sets the line length at the current horizontal spaci ng. It must be sent at the beginning
of the line.
The n parameter specifies the number of columns a nd for each type of horizontal spacing there is
a range of values, as shown in the following table:
23
Character Width Horizontal Spacing Range of columns
Double Width
5 cpi 1 < n < 67
6 cpi 1 < n < 81
7.5 cpi 1 < n < 101
8.5 cpi 1 < n < 116
10 cpi 1 < n < 135
Normal
10 cpi 1 < n < 135
12 cpi 1 < n < 162
15 cpi 1 < n < 203
17 cpi 1 < n < 232
20 cpi 1 < n < 255
24 cpi 1 < n < 255
Any value outside the accepted range is i gnored and the previous setting remains in effect. The
right margin must be greater than the left margin. The physical position set for the right margin
does not change if the horizontal spacing is modified.
ESC R
Sets horizontal and vertical tab stops to default values. (IBM)
ASCII Code ESC R
Hexadecimal Value 1B 52
Decimal Value 27 82
This command sets horizontal tab stops every eight columns starting from column 9 and cancels
all vertical tab stops.
24
ESC SP
Sets intercharacter space. (EPSON)
ASCII Code ESC SP n
Hexadecimal Value 1B 20
Decimal Value 27 32
Range 0 <
n
n
n < 255
This command sets the intercharacter space to n/120 inch in Draft printing and n/180 inch in
Quality printing.
ESC X
Sets left and right margins. (IBM)
ASCII Code ESC X
Hexadecimal Value 1B 58
Decimal Value 27 88
Range 0 <
2 <
This command sets the left and right margins simultaneously. The n
respectively the number of columns for the left and right margi ns at the current spacing. These
margins are memorized in terms of absolute displacement from the physical left edge of the
page. Use a CR immediately after ESC X n to establish the print head position relative to the
new margin setting.
n1 n
2
n1 n2
n1 n
2
n
< 134 (left margin)
1
n
< 136 (right margin)
2
and n
1
parameters indicate
2
If n1 is equal to 0, the current left margin of the page is used. If n
is equal to 1, the current right
2
margin of the page is used. The left margin value must be less than the right margin value. The
right margin value must not exceed the physical right edge of the paper; otherwise the
maximum acceptable value for the right margin will be set.
25
FF
Advances paper to the top of the next page.
ASCII Code FF
Hexadecimal Value 0C
Decimal Value 12
This code is a terminator code, when received, ca uses all data in the print buffer to be printed
out. Then it advances the paper to the first printable line of the next form. The line counter is set
to the first line value and the column counter is set to the left margin value. This code cancels
the double width printing set by SO code.
HT
Moves logically the print carriage to the next horizontal tab stop.
ASCII Code HT
Hexadecimal Value 09
Decimal Value 9
This code moves logically the print carriag e to the next horizontal tab stop as defined by ESC D.
Up to 28 (IBM mode) or 32 (EPSON mode) horizontal tab stops can be set. The HT code is
ignored if no tab stop has been set or if the current print carri age position has moved past the
last tab position or if the tab stop is on or beyond the right margin. At power on, the tab stops
are set every eight columns (default).
In EPSON mode, the default tab stops are memorized as logical position in the page, so that are
affected by changing the horizontal spacing. The tab stop positions set by ESC D are memorized
as physical position in the page and therefore they are not affected by changing the horizontal
spacing. When the double width printing is selected, the tab stop setting must take account that
each character occupies two columns. In IBM mode, the tab stops, both, default and set by ESC,
are memorized as logical position in the page, so that are affected by changing the horizontal
spacing. The horizontal tab stops can be changed by the ESC D command.
26
Loading...
+ 204 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.