This manual provides information about the programming information for your
printer. Appendix A, B and C describe the comma nds supported by your printer for the
IBM/EPSON, Compuprint native and Olivetti protocols respectively.
The command descriptions are divided into function groups. Each command has both a
brief and a detailed description.
• Name and function description. Information about protocol (IBM Proprinter
Proprinter XL24/XL24E, IBM Personal 2391+, IBM 4722, IBM 9068, EPSON
ESC/P2, Olivetti PR2, Olivetti PR40+, Olivetti 2845)
• The hexadecimal and decimal codes for the command: letters written in italics
represent variable pa rameters of the command. The functions of these parameters
are explained in its corresponding command description.
Appendices D and E show the Code Pages and Characters Sets for the IBM/EPSON
and Olivetti protocols respectivel y.
ii
Appendix A – IBM/EPSON Mode Commands
Summary in Alphabetical Order ........................A-2
EPSON/IBM Mode Commands Description......A-8
Print and Line Feed Execution.........................A-8
Format Control.................................................... A-12
This printer according to the IBM Proprinter Proprinter XL24/XL24E, IBM 2391+,
IBM 4722, IBM 9068 and EPSON ESC/P2 emulations supports the following printer
commands.
Buzzer. (IBM Proprinter XL24/XL24E, 2391+, 9068, EPSON ESC/P2) A-99
Print and space back one position. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068,
EPSON ESC/P2)
Cancels line. (EPSON ESC/P2) A-92
Cancels data. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068) A-92
Prints all received data and the column counter is set to the left margin. (IBM Proprinter
ESC/P2)
Selects 1/6-inch line spacing. (EPSON ESC/P2) A-23
Enables the line spacing set by ESC A command. (IBM Proprinter XL24/XL24E, 2391+,
4722, 9068, EPSON ESC/P2)
Sets n/180-inch line spacing. (EPSON ESC/P2) A-24
Sets graphics line spacing at n/216 inch. (IBM Proprinter XL24/XL24E, 2391+) A-24
Sets graphics line spacing at n/216 inch. (IBM 4722, 9068) A-25
Sets top of form (first printable line). (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068,
EPSON ESC/P2)
Sets italics printing mode. (EPSON ESC/P2) A-51
Sets an automatic line feed after a carriage return. (IBM Proprinter XL24/XL24E, 2391+,
4722, 9068)
Cancels italics printing. (EPSON ESC/P2) A-51
Enables Upper Control Codes. (EPSON ESC/P2) A-68
Selects the Character Set 2. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068) A-68
Selects the Character Set 1. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068) A-68
Cancels Upper Control Codes. (EPSON ESC/P2) A-69
Sets text line spacing at n/60 inch. (EPSON ESC/P2) A-26
Sets text line spacing at n/72 inch. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068,
Buzzer. (IBM Proprinter XL24/XL24E, 2391+, EPSON ESC/P2) A-99
Print and space back one position. (IBM Proprinter XL24/XL24E, 2391+, EPSON
ESC/P2)
Sets form length to n lines. (IBM Proprinter XL24/XL24E, 2391+, EPSON ESC/P2) A-28
Sets horizontal motion index (HMI). (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068,
EPSON ESC/P2)
Sets form length to n inches. (IBM Proprinter XL24/XL24E, 2391+, EPSON ESC/P2) A-27
Cancels data. (IBM Proprinter XL24/XL24E, 2391+) A-92
Prints all received data and the column counter is set to the left margin. (IBM Proprinter
Sets or cancels double height printing. (EPSON ESC/P2) A-61
Sets left and right margins. (IBM Proprinter XL24/XL24E, 2391+, 9068) A-34
Selects font by pitch and point. (EPSON ESC/P2) A-61
Selects Letter Quality or Draft printing. (EPSON ESC/P2) A-62
Double density dot graphics printing at double-speed graphics (120 virtual dpi). (IBM
Prints all received data and the column counter is set to the left margin.
(IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPS ON ES C/P2)
ASCII Code CR
Hexadecimal Value 0D
Decimal Value 13
This code is a terminator code; when received, it causes any da ta in 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 CR
Prints all received data and the column counter is set to the left margin.
(IBM Proprinter XL24/XL24E, 2391+, EPSON ESC/P 2)
ASCII Code ESC CR
Hexadecimal Value 1B 0D
Decimal Value 27 13
See description of CR command above.
A-8
ESC ]
Sets a reverse line feed. (IBM 2391+, 4722, 9068)
ASCII Code ESC ]
Hexadecimal Value 1B 5D
Decimal Value 27 93
This code is a terminator code; when received, 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.
ESC 5
Sets an automatic line feed after a carriage return.
(IBM Proprinter XL24/XL24E, 2391+, 4722, 9068)
ASCII Code ESC 5 n
Hexadecimal Value 1B 35 n
Decimal Value 27 53 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
A-9
ESC J
Advances paper n/180 inch. (EPSON ESC/P2)
ASCII Code ESC J n
Hexadecimal Value 1B 4A n
Decimal Value 27 74 n
Range 0 <
n < 255
This is a terminator code; it therefore causes the current contents of the print buffer to
be printed out before performing a single line LF of n/180 inch. This command is
cancelled after the LF has been performed. The printing will restart after a line feed
from the column at which the command was sent.
ESC J
Advances paper n/216 inch. (IB M Prop r inter XL24/XL24E, 2391+)
ASCII Code ESC J n
Hexadecimal Value 1B 4A n
Decimal Value 27 74 n
Range 0 <
This is a terminator code; it therefore causes the current contents of the print buffer to
be printed out before performing a single line LF of n/216 inch. This command is
cancelled after the LF has been performed. The printing will restart after a line feed
from the column at which the command was sent.
n < 255
A-10
ESC J
Advances paper n/216 or n/v inc h. (IBM 4722, 9068)
ASCII Code ESC J n
Hexadecimal Value 1B 4A n
Decimal Value 27 74 n
Range 0 <
n < 255
This is a terminator code; it therefore causes the current contents of the print buffer to
be printed out before performing a single line LF of n/216 inch or to n/v inch, when the
vertical base unit has been changed to v using ESC [ \.
LF
Line Feed.
(IBM Proprinter XL24/XL24E, 2391+, 4722, 9068 and EPSON ESC/P2)
ASCII Code LF
Hexadecimal Value 0A
Decimal Value
This is a terminator code; it therefore causes the current contents of the print buffer to
be printed out before advancing the paper b y one line at the current vertical spacing.
If no data precedes the LF code, or if the preceding data consi sts of spaces, the code
causes only a line feed.
10
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 or ejects a cut sheet,
if loaded. 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.
A-11
ESC LF
Line Feed.
(IBM Proprinter XL24/XL24E, 2391+, EPSON ESC/P 2)
ASCII Code ESC LF
Hexadecimal Value 1B 0A
Decimal Value 27 10
See the description of the LF command.
FFoorrmmaatt CCoonnttrrooll
ESC $
Sets the absolute printing position. (EPSON ESC/P2)
ASCII Code ESC &
Hexadecimal Value 1B 24
Decimal Value 27 36
Range 0 <
0 <
This command specifies the distance from the left margin where you want to print
subsequent characters. The defa ult uni t is 1 /60 inch. The dista nce is i n number of dots
and must be calculated using the following formula:
Margin distance = n1 + (n2 x 256) x 1/60” + (left margin)
n
n
1 n2
n
1 n2
n
< 255
1
n
< 127
2
1 n2
A-12
Where n2 is equal to:
1
)
defined unit
INIT
[(horizontal position) – (left margin position)]
256
x
(
Where n1 is equal to:
1
)
defined unit
MOD
[(horizontal position) – (left margin position)]
256
x
(
If the selected position is outside the current right margin, the sequence will be
ignored.
ESC ( C
Sets page length in defined unit. (EPSON ESC/P2)
d
(
x 256) +
2
n
1 n2 d1 d2
n
1 n2 d1 d2
n
1 n2 d1 d2
d
) x (defined unit) < 22
1
ASCII Code ESC ( C
Hexadecimal Value 1B 28 43
Decimal Value 27 40 67
n
n
= 2
1
= 0
2
Range
0 <
This command sets the page length in the specified number of units (the default unit
is 1/360 inch), previously defined with the ESC ( U command according to the
following formula:
Page length = (d2 x 256) + d1) x (defined unit)
A-13
Where d2 is equal to:
1
)
defined unit
INIT
(page length)
(
x
256
Where d1 is equal to:
1
)
defined unit
MOD
(page length)
(
x
256
Set the page length before paper is loaded or when the print position is at the top-ofform position. Otherwise, the current print position becomes the top-of-form position.
Setting the page length cancels the top and bottom-margin settings. If the defined unit
is changed it does not affect the current page-length setting.
ESC ( c
Sets Page Format. (EPSON ESC/P2)
ASCII Code ESC ( c
Hexadecimal Value 1B 28 63
Decimal Value 27 40 99
n
n
((
= 4
1
= 0
2
t
2
Range
(defined unit) x (
n
1 n2 t1 t2 b1 b2
n
n
1 n2 t1 t2 b1 b2
x 256) +
1 n2 t1 t2 b1 b2
t
b
) < (
1
x 256) +
2
b
x 256) +
2
b
)
1
b
) < 22
1
This command sets the top and bottom margins in the defined units, set with the ESC
( U command, according to the following formulas:
A-14
Top margin = (t2 x 256) + t1) x (defined unit)
Where t2 is equal to:
1
defined unit
)
INIT
(top margin)
(
x
256
Where t1 is equal to:
1
defined unit
)
MOD
(top margin)
(
x
256
Bottom margin = ((b2 x 256) + b1) x (defined unit)
Where b2 is equal to:
1
)
defined unit
INIT
(bottom margin)
x
256
(
Where b1 is equal to:
MOD
(bottom margin)
(
x
defined unit
256
1
)
A-15
Send this command before paper is loaded or when paper is at the top-of-form positi on.
Otherwise the current print position becomes the top-margin position. Measure both
top and bottom margins from the top edge of the page. The baseline for printing
characters on the first line is 20/180 inch below the top-margin position.
This command cancels any previous top and bottom-margin settings.
ESC ( U
Sets units. (EPSON ESC/P2)
n
ASCII Code ESC ( U
Hexadecimal Value 1B 28 55
Decimal Value 27 40 85
n
Range
= 1
1
n
= 0
2
d
= 10, 20, 30, 40, 50,60
This command sets the unit to m/3600 inch. The printer uses this unit when moving
the print position, setting the page length and setting the top and bottom margins
with the following commands (the default units varies depending on the command and
print quality):
Commands Default Unit
ESC ( V 1/360 inch
ESC ( v 1/360 inch
ESC ( C 1/360 inch
ESC ( c 1/360 inch
ESC \ (LQ mode) 1/180 inch
ESC \ (Draft mode) 1/120 inch
ESC $ 1/60 inch
ASCII Code ESC ( V
Hexadecimal Value 1B 28 56
Decimal Value 27 40 86
n
n
= 2
1
= 0
2
Range
0 <
0 <
This command moves the vertical print position to the position specified by the
following formula:
Vertical position = (d2 x 256)+d1) x (defined unit) + (top-margin position)
Where d2 is equal to:
1
)
defined unit
INIT
[(vertical position) – (top margin po sition)]
256
x
(
Where d1 is equal to:
1
)
defined unit
MOD
[(vertical position) – (top margin po sition)]
x
(
256
A-17
The default unit is 1/360 inch. The new position is measured in defined units from the
current top-margin position. Moving the print position below the bottom-margin
position moves the vertical print position to the top-margin position on the next page
ejects a cut sheet, if loaded.
The printer ignores this command if the command would move the print position more
than 179/360 inch in the negative direction or if the command would move the print
position in the negative direction a fter a graphics command is sent on the current line
or above the point where graphics have previously been printed.
ASCII Code ESC ( v
Hexadecimal Value 1B 28 76
Decimal Value 27 40 118
n
n
= 2
1
= 0
2
Range
0 <
0 <
This command moves the vertical print positi on up or down from the current position,
as specified by the following formula
Vertical position = (d2 x 256)+d1) x (defined unit) + (current position)
For positive (down) movement:
A-18
Where d2 is equal to:
INIT
[(vertical position) – (curre n t position)]
256
Where d1 is equal to:
MOD
[(vertical position) – (curre n t position)]
256
For negative (left) movement:
Where d2 is equal to:
32768-INIT
[(current position) – (ve r tic al position)]
256
Where d1 is equal to:
32768-MOD
[(current position) – (ve r tic al position)]
x
x
x
x
(
(
(
(
1
)
defined unit
1
)
defined unit
1
)
defined unit
1
)
defined unit
256
The default unit is 1/360 inch. The new position is measured in defined units from the
current position. Moving the print position below the bottom-margin position, it moves
the vertical print position to the top-margin position on the next page ejects a cut
sheet, if loaded.
A-19
The printer ignores this command if this one would move the print position more than
179/360 inch in the negative direction or if the command would move the print
position in the negative direction a fter a graphics command is sent on the current line
or above the point where graphics have previously been printed. The command would
move the print position above the top-margin position.
ESC [ \
Sets vertical units. (IBM Prop r inter XL24/XL24E, 2391+, 9068)
m
ASCII Code ESC [ \
Hexadecimal Value 1B 5B 5C
Decimal Value 27 91 92
m
Range
= 4
1
m
= 0
2
t
< 255
0 <
1
t
< 255
0 <
2
t
= 0
3
t
= 180 or 216
4
1 m2
m
m
1 m2
1 m2
t1 … t
t1 … t
t1 … t
4
4
4
This command changes the base units for the graphics line spacing commands (ESC J,
ESC 3). The default value is 1/216 or 1/180 inch.
ESC \
Sets the relative horizontal print position. (EPSON ESC/P2)
ASCII Code ESC \
Hexadecimal Value 1B 5C
Decimal Value 27 92
Range 0 <
0 <
n
n
< 255
1
n
< 127
2
n
n
1 n2
1 n2
1 n2
A-20
This command moves the horizontal print position left or right from the current
position as specified by the following formula:
Horizontal position = (n2 x 256) + n1) x (defined unit) + (current position)
For positive (right) movement:
Where n2 is equal to:
INIT
[(horizontal position) – (current position)]
256
Where n1 is equal to:
MOD
[(horizontal position) – (current position)]
256
For negative (left) movement:
Where n2 is equal to:
32768-INIT
[(current position) – (horizontal position)]
256
x
x
x
(
(
(
1
)
defined unit
1
)
defined unit
1
)
defined unit
A-21
Where n1 is equal to:
1
)
defined unit
32768-MOD
[(current position) – (horizontal position)]
256
x
(
The default unit is 1/120 inch in Draft mode and 1/180 inch in LQ mode. If it would
move the print position outside the printing area, the printer ignores this command.
ESC +
Sets n/360-inch line spacing. (EPSON ESC/P2)
ASCII Code ESC + n
Hexadecimal Value 1B 2B n
Decimal Value 27 43 n
Range 0 <
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 page length.
ESC 0
Selects 1/8-inch line spacing.
(IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPS ON ES C/P2)
ASCII Code ESC 0
Hexadecimal Value 1B 30
Decimal Value 27 48
This command causes line spacing to be set to 1/8 inch. If the line spacing is changed,
it does not affect previous settings for vertical tabs or page length.
In IBM 4722/9068 emulation, when the page-presentation-media (ESC [ F) command
sets the printer to process passbooks, the printer ignores the ESC 0 command.
A-22
ESC 1
Selects 7/72-inch line spacing.
(IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPS ON ES C/P2)
ASCII Code ESC 1
Hexadecimal Value 1B 31
Decimal Value 27 49
This command causes line spacing to be set to 7/72 inch.
In IBM 4722/9068 emulation, when the page-presentation-media (ESC [ F) command
sets the printer to process passbooks, the printer ignores the ESC 1 command.
ESC 2
Selects 1/6-inch line spacing. (EPSON ESC/P2)
ASCII Code ESC 2
Hexadecimal Value 1B 32
Decimal Value 27 50
This command causes the line spacing to be set to 1/6 inch. If the line spacing is
changed, it does not affect previous settings for vertical tabs or page length.
ESC 2
Enables the line spacing set by ESC A command.
(IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPS ON ES C/P2)
ASCII Code ESC 2
Hexadecimal Value 1B 32
Decimal Value 27 50
This command starts line spacing at a value that was set by ESC A.
A-23
The line spacing is set to 1/6 inch, if the command does not encounter an ESC A
command, or if the PPM (ESC [ F) command (4722 or 9068 emulations) sets the
printer to process passbooks.
ESC 3
Sets n/180-inch line spacing. (EPSON ESC/P2)
ASCII Code ESC 3 n
Hexadecimal Value 1B 33 n
Decimal Value 27 51 n
Range 0 <
n < 255
This command sets the line spacing to n/180 inch. If the line spacing is changed, it
does not affect previous settings for vertical tabs or page length.
ESC 3
Sets graphics line spacing at n/216 inch. (IBM Proprinter XL24/XL24E, 2391+)
ASCII Code ESC 3 n
Hexadecimal Value 1B 33 n
Decimal Value 27 51 n
Range 0 <
This command sets graphics line spacing at n default unit defined by the ESC [ \
command. To move exactly n/216 inch, n must be an integer multiple of 3.
n < 255
A-24
ESC 3
Sets graphics line spacing at n/216 inch. (IBM 4722, 9068)
ASCII Code ESC 3 n
Hexadecimal Value 1B 33 n
Decimal Value 27 51 n
Range 0 <
n < 255
This command sets graphics line spacing to the hexadecimal value specified by n ,
measured in n/216 inches, or n/v of an inch if the vertical base unit has been changed
to v using ESC [ \. If n is 0, the current line spacing interval remains in effect.
When the page-presentation-media (ESC [ F) command sets the printer to process
passbooks, the printer ignores the ESC 3 command.
ESC 4
Sets top of form (first printable line).
(IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPS ON ES C/P2)
ASCII Code ESC 4
Hexadecimal Value 1B 34
Decimal Value 27 52
This sequence sets the top of form, i.e. it ejects the loaded paper. The command is
ignored if paper is positioned on the first printable line.
A-25
ESC A
Sets text line spacing at n/60 inch. (EPSON ESC/P2)
ASCII Code ESC A n
Hexadecimal Value 1B 41 n
Decimal Value 27 65 n
Range 0 <
n < 85
This command changes the default line spacing to n/60 inch. The new line spacing
value is immediately activated.
ESC A
Sets text line spacing at n/72 inch.
(IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPS ON ES C/P2)
ASCII Code ESC A n
Hexadecimal Value 1B 41 n
Decimal Value 27 65 n
This command changes the line spacing to n/72 inch. The line spacing value is stored
and activated only after the ESC 2 code is recei ved.
ESC B
Sets vertical tabs.
(IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPS ON ES C/P2)
n
… n
ASCII Code ESC B
Hexadecimal Value 1B 42
Decimal Value 27 66
Range 1 <
1
... nx 00
n
1
... n
n
1
n < 255
0
x
0
x
A-26
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, n2 and so on in the
0 VFU channel. The tab stops are memorized as physical positions.
In IBM modes, this 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 line at top of form is line 1. The tab stops
are memorized as logical positions.
ESC C 0
Sets form length to n inches.
(IBM Proprinter XL24/XL24E, 2391+, EPSON ESC/P 2)
ASCII Code ESC C 0 n
Hexadecimal Value 1B 43 00 n
Decimal Value 27 67 0 n
Range 1 <
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. Setting the paper length cancels the
top and bottom-margin settings.
In IBM 4722 and 9068 emulation, this command is recognized and discarded.
n < 22
A-27
ESC C
Sets form length to n lines.
(IBM Proprinter XL24/XL24E, 2391+, EPSON ESC/P 2)
ASCII Code ESC C n
Hexadecimal Value 1B 43 n
Decimal Value 27 67 n
Range 1 <
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.
In IBM 4722 and 9068 emulations, this command is recognized and discarded.
n < 127
ESC D
Sets horizontal tabs.
(IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPS ON ES C/P2)
n
n
n
1 n2
1 n2
… nx 0
1 n2
… nx 00
… nx 0
ASCII Code ESC D
Hexadecimal Value 1B 44
Decimal Value 27 68
Range 1 <
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 in the page so that it
is affected by changing the horizontal spacing. The c olumns are number ed 1 through 93.
A-28
Loading...
+ 259 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.