Compuprint MDP40B Programmer Manual

M
DPP 4400
M
D
B
B
Prr
P
o
o
grr
g
a
a
m
m
m
m
err
e
M
M
a
a
n
n
u
u
all
a
Rev. 004
IInnttrroodduuccttiioonn
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
Print Mode............................................................. A-40
Character Sets...................................................... A-64
Download Character.......................................... A-71
Bit-Image ............................................................... A-82
Data Input Control ............................................. A-92
Miscellaneous....................................................... A-99
A-1
IIBBMM//EEPPSSOONN MMooddee CCoommmmaannddss
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.
SSuummmmaarryy iinn AAllpphhaabbeettiiccaall OOrrddeerr
BEL BS
CAN CAN CR
DC1 DC1 DC2 DC2 DC3 DC3 DC4
DEL ESC -
ESC ! ESC # ESC $ ESC %
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
XL24/XL24E, 2391+, 4722, 9068, EPSON ESC/P2) Selects printer. (IBM Proprinter XL24/XL24E, 2391+) A-93 Selects printer. (EPSON ESC/P2) A-93 Sets 10 cpi printing. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068) A-40 Cancels compressed printing. (EPSON ESC/P2) A-41 Deselects printer. (EPSON ESC/P2) A-94 Deselects printer. (IBM Proprinter XL24/24E) A-94 Cancels double width printing. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON
ESC/P2) Deletes the last character. (EPSON ESC/P2) A-95 Sets or cancels underlined printing. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068,
EPSON ESC/P2) Master Select. (EPSON ESC/P2) A-43 Cancels MSB control. (EPSON ESC/P2) A-95 Sets the absolute printing position. (EPSON ESC/P2) A-12 Selects user-defined character set. (EPSON ESC/P2) A-71
A-99
A-8
A-41
A-42
A-2
ESC & ESC ( ­ESC ( ^ ESC ( C ESC ( c ESC ( G ESC ( t ESC ( U ESC ( V ESC ( v ESC * ESC . ESC : ESC : ESC ? ESC @ ESC [ @
ESC [ \ ESC [ c ESC [ d ESC [ F ESC [ g ESC [ I ESC [ I ESC [ J ESC [ K ESC [ K ESC [ T ESC \ ESC \
Defines user-defined characters. (EPSON ESC/P2) A-72 Sets score line. (EPSON ESC/P2) A-44 Prints data as characters. (EPSON ESC/P2) A-64 Sets page length in defined unit. (EPSON ESC/P2) A-13 Sets Page Format. (EPSON ESC/P2) A-14 Selects Graphics Mode. (EPSON ESC/P2) A-82 Assigns character table. (EPSON ESC/P2) A-65 Sets units. (EPSON ESC/P2) A-16 Sets absolute vertical print position. (EPSON ESC/P2) A-17 Sets relative vertical print position. (EPSON ESC/P2) A-18 Sets dot graphics printing. (EPSON ESC/P2) A-82 Print Raster Graphics. (EPSON ESC/P2) A-84 Sets 12 CPI. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068) A-45 Copies characters from ROM to RAM. (EPSON ESC/P2) A-73 Reassigns dot graphics mode. (EPSON ESC/P2) A-86 Initializes the printer. (EPSON ESC/P2) A-100 Sets double high printing and double line feed. (IBM Proprinter XL24/XL24E, 2391+,
9068) Sets vertical units. (IBM Proprinter XL24/XL24E, 2391+, 9068) A-20 Send a device-dependent message to an ASCII printer. (IBM 4722, 9068) A-97 Set the print quality. (IBM 2391+) A-46 Page Presentation Media. (IBM 4722, 9068) A-38 High Resolution Graphics. (IBM Proprinter XL24/XL24E, 2391+, 9068) A-86 Sets font and pitch of a character. (IBM 2391+) A-47 Sets font and pitch of a character. (IBM 9068) A-49 Sets 5 lpi. (IBM 4722, 9068) A-34 Sets initial conditions. (IBM 2391+, 9068) A-101 Sets initial conditions. (IBM 9068) A-104 Selects a Code page. (IBM 2391+, 4722) A-66 Sets the relative horizontal print position. (EPSON ESC/P2) A-20 Prints characters from all characters table. (IBM Proprinter XL24/XL24E, 2391+, 9068) A-67
A-45
A-3
ESC ] ESC ^
ESC _ ESC + ESC = ESC = ESC = ESC > ESC 0
ESC 1
ESC 2 ESC 2
ESC 3 ESC 3 ESC 3 ESC 4
ESC 4 ESC 5
ESC 5 ESC 6 ESC 6 ESC 7 ESC 7 ESC A ESC A
ESC B
Sets a reverse line feed. (IBM 2391+, 4722, 9068) A-9 Prints a single character from the all characters table. (IBM Proprinter XL24/XL24E,
2391+, 4722, 9068) Sets or cancels overscore printing. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068) A-51 Sets n/360-inch line spacing. (EPSON ESC/P2) A-22 Defines downloaded characters. (IBM Proprinter XL24/XL24E, 2391+) A-74 Defines downloaded characters. (IBM Proprinter 4722, 9068) A-76 Sets MSB to 0. (EPSON ESC/P2) A-95 Sets MSB to 1. (EPSON ESC/P2) A-96 Selects 1/8-inch line spacing. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON
ESC/P2) Selects 7/72-inch line spacing. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON
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,
EPSON ESC/P2) Sets vertical tabs. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON ESC/P2) A-26
A-67
A-22
A-23
A-23
A-25
A-9
A-26
A-4
ESC BEL ESC BS
ESC C ESC c
ESC C 0 ESC CAN ESC CR
ESC D ESC d ESC DC1 ESC DC2 ESC DC3 ESC DC4 ESC E
ESC EM ESC F
ESC FF
ESC G
ESC g ESC H
ESC HT ESC I
ESC J ESC J
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
XL24/XL24E, 2391+, EPSON ESC/P2) Sets horizontal tabs. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON ESC/P2) A-28 Spaces forwards relative dot position. (IBM Proprinter XL24/XL24E, 2391+, 9068) A-29 Selects printer. (IBM Proprinter XL24/XL24E, 2391+) A-93 Sets 10 cpi printing. (IBM Proprinter XL24/XL24E, 2391+) A-40 Deselects printer. (IBM Proprinter XL24/24E) A-94 Cancels double width printing. (IBM Proprinter XL24/XL24E, 2391+, EPSON ESC/P2) A-42 Sets emphasized printing. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON
ESC/P2) Loading/ejecting paper. (EPSON ESC/P2) A-29 Cancels emphasized printing. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON
ESC/P2) Ejects loaded document form printer. (IBM Proprinter XL24/XL24E, 2391+, EPSON
ESC/P2) Sets double strike printing. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON
ESC/P2) Sets 15 CPI. (EPSON ESC/P2) A-54 Cancels double strike printing. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON
ESC/P2) Horizontal Tab. (IBM Proprinter XL24/XL24E, 2391+, EPSON ESC/P2) A-37 Selects printing type for resident and DLL characters. (IBM Proprinter XL24/XL24E,
2391+, 4722, 9068) Advances paper n/180 inch. (EPSON ESC/P2) A-10 Advances paper n/216 inch. (IBM Proprinter XL24/XL24E, 2391+) A-10
A-100
A-52
A-8
A-53
A-53
A-35
A-53
A-54
A-54
A-5
ESC J ESC j ESC k ESC K
ESC l ESC L
ESC LF ESC M ESC N
ESC O ESC P ESC P ESC p ESC Q ESC q ESC Q ESC R ESC R ESC S
ESC SI ESC SO
ESC SP ESC T
ESC t ESC U
ESC VT
Advances paper n/216 or n/v inch. (IBM 4722, 9068) A-11 Stops printing. (IBM Proprinter XL24/XL24E, 2391+, 9068) A-96 Selects LQ fonts. (EPSON ESC/P2) A-69 Normal density dot graphics printing (60 dpi). (IBM Proprinter XL24/XL24E, 2391+, 4722,
9068, EPSON ESC/P2) Sets left margin (10 cpi). (EPSON ESC/P2) A-30 Double density dot graphics printing (120 dpi). (IBM Proprinter XL24/XL24E, 2391+,
4722, 9068, EPSON ESC/P2) Line Feed. (IBM Proprinter XL24/XL24E, 2391+, EPSON ESC/P2) A-12 Selects 10.5 point, 12 cpi. (EPSON ESC/P2) A-55 Sets the skipover perforation to n lines. (IBM Proprinter XL24/XL24E, 2391+, EPSON
ESC/P2) Disables the skipover perforation. (IBM Proprinter XL24/XL24E, 2391+, EPSON ESC/P2) A-32 Selects 10.5 point, 10 cpi. (EPSON ESC/P2) A-56 Sets or cancels proportional printing. (IBM Proprinter XL24/XL24E, 2391+) A-56 Sets or cancels proportional printing. (EPSON ESC/P2) A-57 Sets the right margin (10 cpi). (EPSON ESC/P2) A-32 Selects character style. (EPSON ESC/P2) A-57 Deselects Printer. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068) A-96 Sets all tabs to power-on settings. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068) A-33 Selects an international character set. (EPSON ESC/P2) A-70 Sets subscript or superscript printing. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068,
EPSON ESC/P2) Selects condensed mode. (IBM Proprinter XL24/XL24E, 2391+, EPSON ESC/P2) A-59 Sets double width printing (one line). (IBM Proprinter XL24/XL24E, 2391+, EPSON
ESC/P2) Sets intercharacter space. (EPSON ESC/P2) A-34 Cancels subscript or superscript printing. (IBM Proprinter XL24/XL24E, 2391+, 4722,
9068, EPSON ESC/P2) Selects characters table. (EPSON ESC/P2) A-70 Sets printing direction. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON
ESC/P2) Vertical Tab. (IBM Proprinter XL24/XL24E, 2391+, EPSON ESC/P2) A-38
A-88
A-89
A-31
A-58
A-59
A-60
A-105
A-6
ESC W
ESC w ESC X ESC X ESC x ESC Y
ESC Z
FF
HT LF SI
SO
VT
Sets or cancels double width printing. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON ESC/P2)
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
Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON ESC/P2) Quadruple density dot graphics printing (240 virtual dpi). (IBM Proprinter XL24/XL24E,
2391+, 4722, 9068, EPSON ESC/P2) Ejects loaded document form printer. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068,
EPSON ESC/P2) Horizontal Tab. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON ESC/P2) A-36 Line Feed. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068 and EPSON ESC/P2) A-11 Sets condensed printing. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON
ESC/P2) Sets double width printing (one line). (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068,
EPSON ESC/P2) Vertical Tab. (IBM Proprinter XL24/XL24E, 2391+, 4722, 9068, EPSON ESC/P2) A-37
A-60
A-90
A-91
A-35
A-63
A-63
A-7
EEPPSSOONN//IIBBMM MMooddee CCoommmmaannddss DDeessccrriippttiioonn
PPrriinntt aanndd LLiinnee FFeeeedd EExxeeccuuttiioonn
CR
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-of­form 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
1 n2
n
n
1 n2
1 n2
d
d
d
A-16
ESC ( V
Sets absolute vertical print position. (EPSON ESC/P2)
d
< 255
1
d
< 127
2
n
1 n2 d1 d2
n
1 n2 d1 d2
n
1 n2 d1 d2
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.
ESC ( v
Sets relative vertical print position. (EPSON ESC/P2)
d
< 255
1
d
< 127
2
n
1 n2 d1 d2
n
1 n2 d1 d2
n
1 n2 d1 d2
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