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 det ailed description.
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 det ailed description.
Each command has the following structure:
•
Name and function description. Information about protocol (IBM
Proprinter XL24E, IBM Personal 2391, EPSON ESC LQ 1050-
2550)
•
The hexadecimal and decimal codes for the command: n represents
variable parameters of the command. The functions of these
parameters are explained in its corresponding command
description.
ASF and Bin selection. (Compuprint)68
Buzzer. (EPSON)59
Print and space back one position. (IBM, EPSON)60
Cancels line. (EPSON)56
Cancels data. (IBM)56
Prints all received data and the c olum n c ounter i s s et t o the
left margin. (IBM)
Selects printer. (IBM)57
Selects printer. (EPSON)57
Sets 10 cpi printing. (I BM)22
Cancels compressed printing. (EPSON)23
Deselects printer. (EPSON)57
Cancels double width printing. (IBM, EPSON)23
Bar Code Selection.73
Prints bar code symbols (Compuprint)88
DC4 DC4 ESC p
DC4 DC4 ESC R
DC4 DC4 ESC r
DC4 DC4 ESC S
DC4 DC4 ESC T
DC4 DC4 ESC u
DC4 DC4 ESC Y
DC4 DC4 ESC Z
DEL
ESC ESC !
ESC #
ESC $
ESC %
ESC &
ESC ( ESC *
ESC / m
ESC :
ESC :
ESC ?
ESC @
ESC [ ESC [ @
ESC [ @
ESC [ \
ESC [ I
Re-initializes the printer. (Compuprint)89
Sets vertical spac i ng n/180 inch. (Compuprint)65
Sets vertical spac i ng 12 l i nes/30 mm. (Com pupri nt)65
Sets vertical spac i ng to 3 lines/30 mm. (Compuprint)65
Sets vertical spac i ng 4 l i nes/30 mm. (Com pupri nt)66
Sets vertical spac i ng 6 l i nes/30 mm. (Com pupri nt)66
Sets vertical spac i ng 8 l i nes/30 mm. (Com pupri nt)66
Selects ASF Bi n 3 f or paper loading. (Compuprint)67
Ejects cut sheet or FF. (Compuprint)67
Selects ASF Bi n 1 f or paper loading. (Compuprint)67
Selects ASF Bi n 2 f or paper loading. (Compuprint)68
Sets the horizontal spacing to 15, 17, 20, 24 CPI.
(Compuprint)
Selects LQ fonts (Compuprint).71
Sets amplification factor. (Compuprint)89
Selects/loads or parks the fanfold from the upper path.
(Compuprint)
Sets quality printing. (Compuprint)91
String rotation. (Compupri nt)91
Digit rotation. (Compupri nt)92
Selects character s et ISO Character Sets or Code Pages.
(Compuprint)
Selects/loads or parks the fanfold from the lower path.
(Compuprint)
Selects the user macros. (Compuprint)93
Selects emulat i on. (Compuprint)92
Makes AGA in column. (Compuprint)93
Deletes the last character. (EPSON)58
Sets or cancels underlined printing. (IBM, EPSON)23
Mater Select. (EPSON)24
Cancels MSB control. (EPSON)58
Sets the absolute printing position. (EPSON)8
Selects user-defined character set. (EPSON)47
Defines user-defined characters. (EPSON)47
Sets score line. (EPSON)24
Sets dot graphics printing. (EPSON)51
Selects the Vertical Format Unit (VFU) channel. (EPSON)10
Sets 12 CPI. (IBM)26
Copies characters from ROM to RAM. (EPSON)48
Reassigns dot graphics mode. (EPSON)53
Initializes the printer. (EPSON)60
Selects the score line. (IBM 2391 only)25
Selects the printi ng t ype style. (IBM 2391 only)26
Sets double high printing and double line feed. (IBM)27
Sets vertical units. (IBM)9
Sets font and pitch of a character. (IBM 2391 only)29
66
90
71
90
A78408098-003
3
Introduction
ESC [ K
ESC [ T
ESC [d
ESC \
ESC \
ESC ]
ESC ^
ESC _
ESC +
ESC <
ESC =
ESC =
ESC >
ESC 0
ESC 1
ESC 2
ESC 2
ESC 3
ESC 3
ESC 4
ESC 4
ESC 5
ESC 5
ESC 6
ESC 7
ESC 7
ESC A
ESC A
ESC a
ESC B
ESC b
ESC b
ESC C
ESC c
ESC C 0
ESC D
ESC d
ESC e
ESC E
ESC EM
ESC F
ESC G
ESC g
ESC H
ESC I
ESC J
ESC j
ESC k
Sets initial conditions. (IBM 2391 only) 61
Selects a Code page. 42
Set the print quality. (IBM 2391 only)28
Sets the relative horizontal print position. (EPSON)9
Prints characters from all characters t abl e. (IBM)43
Sets a reverse line feed. (I B M)6
Prints a single character from the all charact ers table. (IBM) 44
Sets or cancels overscore printing. (IBM mode)31
Sets n/360-inch line spacing. (EPSON)10
Prints characters for one line from lef t to right. (EPSON)26
Sets MSB to 0. (EPSON)58
Defines downloaded characters. (IB M)49
Sets MSB to 1. (EPSON)59
Selects 1/8-inch line spacing. (IBM, EPSON)11
Selects 7/72-inch li ne spacing. (IBM)11
Selects 1/6-inch line spacing. (EPSON)11
Enables the line spacing s et by ESC A command. (IBM)11
Sets n/180-inch line spacing. (EPSON)12
Sets graphics line spacing at n/216 inch. (IBM)12
Sets top of form (first printable line). (IBM)12
Sets italics printing mode. (EPSON)31
Sets an automatic l ine feed after a carriage return. (IBM)7
Cancels italics printing. (EPSON)31
Enables Upper Control Codes. (EPSON)44
Selects the Character Set 1. (IBM)44
Enables Upper Control Codes. (EPSON)45
Sets text line spacing at n/60 inch. (EPSON)13
Sets text line spacing at n/72 inch. (IBM)13
Sets Letter Quality justification printing. (EPSON)32
Sets vertical tabs. (IBM, EPSON)13
Sets vertical tabs in VFU channels. (EPSON)14
Selects black ribbon band. (IBM)32
Sets form length t o n lines. (IBM, EPSON)
Selects cyan ribbon band. (IBM)32
Sets form length t o n inches. (IBM, EPSON)
Sets horizontal tabs. (IBM, EPSON)15
Spaces forwards relative dot posi tion. (IBM)15
Spaces backwards relative dot position. (IBM)16
Sets emphasized printing. (IBM, EPSON)33
Loading/ejection of paper. (EPSON)16
Cancels emphasized printing. (IBM, EPSON)33
Sets double strike printing. (IBM, EPSON)33
Sets 15 CPI. (EPSON)34
Cancels double strike printing. (IBM, EPSON)34
Selects printing type f or resident and DLL characters. (IBM) 34
Advances paper n/180 inch. (EPSON)7
Stops printing. (IBM)63
Selects LQ fonts. (EPSON)45
14
14
4
A78408098-003
Introduction
ESC K
ESC l
ESC L
ESC M
ESC m
ESC N
ESC O
ESC P
ESC P
ESC p
ESC Q
ESC Q
ESC R
ESC r
ESC R
ESC S
ESC s
ESC SI
ESC SO
ESC SP
ESC T
ESC t
ESC U
ESC W
ESC w
ESC X
ESC x
ESC y
ESC Y
ESC Z
FF
HT
LF
SI
SO
VT
Normal density dot graphics printing (60 dpi). (IBM,
EPSON)
Sets left margin (10 cpi). (EPSON)16
Double density dot graphics printing (120 dpi). (IBM,
EPSON)
Selects 10.5 point, 12 cpi. (EPSON)35
Selects magenta ri bbon band. (IBM)35
Sets the skipover perforation to n lines. (IBM, EPSON)
Disables the skipover perforation. (IBM, EPSON)18
Selects 10.5 point, 10 cpi. (EPSON)36
Sets or cancels proporti onal pri nting. (IBM)36
Sets or cancels proportional printing. (EPSON)36
Sets the right margin (10 cpi). (EPSON)19
Deselects Printer. (IBM)59
Sets all tabs to power-on sett i ngs. (IBM)19
Selects print col or (if the color ribbon cart ridge is installed).
(EPSON)
Selects an international character set. (EPSON)46
Sets subscript or superscript print i ng. (IBM, EPSON)38
Sets and resets Quiet printing. (EPSON)39
Selects condensed mode. (IBM, EPSON)38
Sets double width printing (one line). (IBM, EPSON)39
Sets intercharacter space. (EPSON)20
Cancels subscript or superscript printing. (IBM, EPSON)39
Selects characters table. (EPSON)46
Sets printing direction. (IBM, EPSON)64
Sets or cancels double width printing. (IBM, EPSON)40
Sets or cancels double height printing. (EPSON)40
Sets left and right margins. (IBM)20
Selects Letter Quality or Draft. (EPSON)41
Selects yellow ribbon band. (IBM)41
Double density dot graphics printing at double-speed
graphics (120 virtual dpi). (IBM, EPSON)
Quadruple density dot graphics printing (240 virtual dpi).
(IBM, EPSON)
Advances paper to the top of the next page. (IBM, EPSON) 21
Horizontal Tab. (IBM, EPSON)21
Line Feed. (IBM, EPSON)7
Sets condensed printing. (IBM, EPSON)41
Sets double width printing (one line). (IBM, EPSON)42
Vertical Tab. (IBM, EPSON)22
53
54
17
37
55
55
A78408098-003
5
EPSON/IBM Mode
EPSON/IBM Mode
This printer according to the IBM Proprinter XL24E-XL24AGM, IBM
2391 and EPSON LQ 1050-2550 emulations support the following printer
commands.
Print and Line Feed Execution
CR
Prints all received da ta and the column counter is set to the
left margin. (IBM)
ASCII CodeCR
Hexadecimal Value0D
Decimal Value13
This code is a terminator code; when received, it causes any data 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 le ft 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.
This code is a terminator code; when received, it causes the current
contents of the print buffer to be printed out, be fore reve rsing 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.
6
A78408098-003
EPSON/IBM Mode
ESC 5
Sets an automatic line feed after a carriage return. (IBM)
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 cance ls the
automatic line feed.
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 inch. This command is can celled afte r the line feed has been
performed. The printin g will restart af ter a line feed fro m th e co lumn
at which the command was sent.
n
n
n
255
LF
Line Feed. (IBM, EPSON)
ASCII CodeLF
Hexadecimal Value0A
Decimal Value
This is a terminator code; it therefore causes the current contents of the
print buffer to be printed out be fore advancing the pape r by one line at
A78408098-003
10
7
EPSON/IBM Mode
the current vertical spacing. If no data precedes the LF code, or if the
preceding data consists of spaces , the code ca uses onl y a lin e 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 or ejects a cut sheet , if loaded. This code cancels the double
width printing set by the SO code. In IB M mode, the column cou nter 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.
Format Control
ESC $
Sets the absolute printing position. (EPSON)
ASCII CodeESC & n1 n
Hexadecimal Value1B 24 n1 n
Decimal Value27 36 n1 n
Range0 < n1 < 255
0 < n2 < 127
2
2
2
This command specifies the distance from the left margin where you
want to print subsequent characters. The default unit is 1/60 inch.
The distance is in number o f dots and must be calculated using the
following formula:
+ (n
Margin distance = n
Where n
is equal to:
2
[(horizontal position) – (left margin position)]
INIT
x 256) x 1/60” + (left margin)
1
2
256
x
defined unit
(
1
)
Where n1 is equal to:
1
defined unit
)
MOD
[(horizontal position) – (left margin position)]
256
x
(
8
A78408098-003
EPSON/IBM Mode
If the selected position is outside the current right margin, the
sequence will be ignored.
This command mov es the horizontal print positio n left or righ t from
the current position as specified by the following formula:
Horizontal position =
For positive (right) movement:
Where
Where
n
is equal to:
2
INIT
n
is equal to:
1
MOD
[(horizontal position) – (current position)]
[(horizontal position) – (current position)]
0 <
(
n1 n
n1 n
n1 n
< 255
n
1
< 127
n
2
n
x 256) +
2
2
2
2
n
) x (defined unit) + (current position)
1
(
x
256
(
x
256
1
defined unit
1
defined unit
)
)
A78408098-003
9
EPSON/IBM Mode
For negative (left) movement:
Where n
32768-INIT
is equal to:
2
[(current position) – (horizontal position)]
256
(
x
1
defined unit
)
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 th e print position outside the printing area,
the printer ignores this command.
ESC +
Sets n/360-inch line spacing. (EPSON)
ASCII CodeESC + n
Hexadecimal Value1B 2B n
Decimal Value27 43 n
Range0 < n <
This command sets the line spacing to n/360 inch. If the line sp acing is
changed, it does not affect previous settings for vertical tabs or page
length.
255
ESC / m
Selects the Vertical Format Unit (VFU) channel. (EPSON)
ASCII CodeESC + n
Hexadecimal Value1B 2F n
Decimal Value27 47 n
Range0 < n <
This command selects the vertical tab set m. The values for m specifies
the number of the tab set being changed . These sets of tabs are called
vertical format unit (VFU) channel s.
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.
This command causes the line spacin g to be set to 1/6 inch. If the line
spacing is changed, it does no t af fe ct p re vio u s settin gs f or v e rtical tabs o r
page length.
ESC 2
Enables the line spacing set by ESC A command. (IBM)
This command starts line spacing at a value that was set by ESC A..
A78408098-003
11
EPSON/IBM Mode
ESC 3
Sets n/180-inch line spacing. (EPSON)
ASCII CodeESC 3 n
Hexadecimal Value1B 33 n
Decimal Value27 51 n
Range0 < n <
255
This command sets the line spacing to n/180 inch. If the line sp acing 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)
ASCII CodeESC 3 n
Hexadecimal Value1B 33 n
Decimal Value27 51 n
Range0 < n <
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.
This sequence sets t he first line of t he fanfold paper a s the current paper
position of the form.
12
A78408098-003
ESC A
Sets text line spacing at n/60 inch. (EPSON)
EPSON/IBM Mode
ASCII CodeESC A
Hexadecimal Value1B 41
Decimal Value27 65
Range0 < n <
n
n
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)
ASCII CodeESC A
Hexadecimal Value1B 41
Decimal Value27 65
n
n
n
This command changes the line spacing to n/72 inch . The li ne spac ing
value is stored and activated only after the ESC 2 code is received.
ESC B
Sets vertical tabs. (IBM, EPSON)
ASCII CodeESC B
Hexadecimal Value1B 42
Decimal Value27 66
Range1 < n <
n1 … n
... nx 00
n
1
... n
n
1
255
0
x
0
x
In EPSON mode, sets vertical tab stops in the 0 Vertical Fo rmat Unit
(VFU) channel. This code sets up to 16 v ertical tab stops at the line
, n
specified by n
and so on in the 0 VFU ch annel. The tab stops are
1
2
memorized as physical positions.
In IBM modes, this code sets u p to 64 vertical tab stops at the line
number specified by n
, n2 and so on in the 0 VFU chan nel. The line
1
at top of form is line 1. The tab stops are memorized as logical
positions.
A78408098-003
13
EPSON/IBM Mode
ESC b
Sets vertical tabs in VFU channels. (EPSON)
ASCII CodeESC b m n1 … n
Hexadecimal Value1B 62 m n1 … n
Decimal Value27 98 m n1 … n
Rangem = channel
8
8
8
This command sets vertical tabs in one of the 8 VFU channels
available. n
tab stops.
1-n8
ESC C 0
Sets form length to n inche s. (IBM, EPSON)
ASCII CodeESC C 0 n
Hexadecimal Value1B 43 00 n
Decimal Value27 67 0 n
Range1 < n <
22
This command sets the form len gth to the n umber of in ches spe cified
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.
ESC C
Sets form length to n lines . (IBM, EPSON)
ASCII CodeESC C n
Hexadecimal Value1B 43 n
Decimal Value27 67 n
Range1 < n <
127
This command sets the form length to the nu mber of lin es specifie d by n
at the current vertical spacing. The current position of the paper is
assumed as top of form.
14
A78408098-003
ESC D
Sets horizontal tabs. (IBM, EPSON)
EPSON/IBM Mode
ASCII CodeESC D
Hexadecimal Value1B 44
Decimal Value27 68
Range1 < n <
n1 n2 … nx 0
… nx 00
n
1 n2
… nx 0
n
1 n2
255
This sequence sets up to 28 (IBM mode) or 32 (EPSON mode)
horizontal tab stops after canceling the current setting. The n
to n
1
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 changin g the horizo ntal spacing . The
columns are numbered 1 through 136.
In EPSON mode, the tab sto p position se t by ESC D is memor ized as
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.
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.
A78408098-003
15
EPSON/IBM Mode
ESC e
Spaces backwards relative dot position . (IBM)
ASCII CodeESC e n1 n
Hexadecimal Value1B 65 n
Decimal Value27 101 n1 n
Range0 < n1, n2 < 255
2
1 n2
2
This command moves the print carriage of a (n1 + (n2*256))/120 inch
displacement on the left of its current dot position.
ESC EM
Loading/ejection of paper. (EPSON)
ASCII CodeESC EM n
Hexadecimal Value1B 19 n
Decimal Value27 25 n
This command controls cut sheet feeding (ASF) according to the
parameters below:
n Description
0Disables
1Bin 1
2Bin 2
3Bin 3
4Last bin
REjects cut sheet
ESC l
Sets left margin (10 cpi). (EPSON)
ASCII CodeESC l n
Hexadecimal Value1B 6C n
Decimal Value27 108 n
Range0 < n <
255
This code sets the left margin at the current horizontal spacing. It
must be sent at the beginning of the line. The n parameter specifies
the number of columns. For each type of horizontal spacing there is a
different range of possible va lues, as shown in th e following table.
16
A78408098-003
EPSON/IBM Mode
Character WidthHorizontal Spacing Range of columns
Double Width
30 < n
< 67
6 cpi0 < n < 80
7.5 cpi0 < n < 100
8.5 cpi0 < n < 114
Normal
10 cpi0 < n
10 cpi0 < n < 134
< 134
12 cpi0 < n < 160
15 cpi0 < n < 201
17 cpi0 < n < 229
20 cpi0 < n
< 255
Any value outside the accepted range is ignored and the previous
setting remains in effect. The left marg in 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. (IBM, EPSON)
ASCII CodeESC N
Hexadecimal Value1B 4E
Decimal Value27 78
Range1 < n <
n
n
n
127 (EPSON mode)
1 < n < 225 (IBM mode)
The skipover perforation is the sum of top and bottom margins values
at the selected vertical sp acing. The n p arameter must be less than
the current form length. The skipover is 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):
A78408098-003
17
EPSON/IBM Mode
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 whe n the end of the page is reache d with a
LF, VT or FF code and not with the ESC J or ESC C command, the
skipover perforation is cancell ed and must t herefore be set again.
This code sets the line length at the current horizontal spacing. It
must be sent at the beginning of the line. The n parameter specifies
the number of columns and for each type of horizontal spacing there
is a range of values, a s shown in the following table:
Character WidthHorizontal SpacingRange of columns
Double Width
5 cpi0 < n < 67
6 cpi0 < n < 81
7.5 cpi0 < n < 102
8.5 cpi0 < n < 116
Normal
10 cpi0 < n
10 cpi0 < n < 136
< 136
12 cpi0 < n < 163
15 cpi0 < n < 204
17 cpi0 < n < 233
20 cpi0 < n
< 255
Any value outside the accepted range is ignored and the previous
setting remains in effec t. The right margin mu st be greater than th e
left margin. The physical position set for the right margin does not
change if the horizontal spacing is modified.
ESC R
Sets all tabs to pow er-on settings. (IBM)
ASCII CodeESC R
Hexadecimal Value1B 52
Decimal Value27 82
This command sets h orizontal tab stops e very eigh t columns startin g
from column 9 and cancels all vertical tab stops.
A78408098-003
19
EPSON/IBM Mode
ESC SP
Sets intercharacter space. (EPSON)
ASCII CodeESC SP n
Hexadecimal Value1B 20 n
Decimal Value27 32 n
Range0 < 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 CodeESC X n1 n
Hexadecimal Value1B 58 n1 n
Decimal Value27 88 n1 n
Range0 < n
This command specifies lef t and right margin po sitions. The n
1, n2
2
2
2
< 255
and n
1
parameters indicate respectively the number of columns for the left
and right margins at the current spacing. These margins are
memorized in terms of absolute displacement from the physical left
edge of the page.
is equal to 0, the current left margin of the page is used. If n2 is equal
If n
1
to 0, the current right 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.
2
20
A78408098-003
EPSON/IBM Mode
FF
Advances paper to the top of the next page. (IBM, EPSON)
ASCII CodeFF
Hexadecimal Value0C
Decimal Value12
This code is a terminator code, when received, causes all data in the
print buffer to be printed ou t. Then it adv ances 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 print ing set by SO code.
HT
Horizontal Tab. (IBM, EPSON)
ASCII CodeHT
Hexadecimal Value09
Decimal Value9
This code moves logically the print carriage to the next horizontal tab
stop as defined by ESC D.
In IBM mode, up to 28 horizon tal tab stop s can be se t. The HT co de is
ignored if no tab stop has been set or if the current print carriage
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 (defau lt). The horizontal tab stops can be changed by
the ESC D command.
In EPSON mode, up to 32 horizontal tab stops can be se t. The de fault
tab stops are memorized as logical p osition 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. Character
scoring (underline, overscore and strikethrough) is not printed
between the current print position and the next tab when this
command is sent.
A78408098-003
21
EPSON/IBM Mode
VT
Vertical Tab. (IBM, EPSON)
ASCII CodeVT
Hexadecimal Value0B
Decimal Value11
This code is a terminator code and when received causes the contents of
the print buffer to be printed bef ore adv ancing pap er to the next ve rtical
tab stop set by the ESC B command.
This code will be executed normally, if vertical tab stops follow the
current print position. It will be e xecuted like a FF cod e (EPSON mode)
or like a L F code (IBM mode), if the vert ic al ta b s t ops fol low t he b ott om of
form position (which co rr e spo n ds to th e f o rm le ng th if th e bo ttom o f f o rm
has not been set) o r if the c urren t position is be yond the last v ertical tab
stop. It will be executed like an LF code if no vertical tab stops have been
set by the ESC B command. In EPSON mode, th e vertical tabulations
are referred to the VHF channel selected by the ESC / m. If no VFU
channels have been selected, the printer as sumes a s default channel 0.
This command resets the double width printing set by SO or ESC SO
command.
Print Mode
DC2
Sets 10 cpi printing. (IBM)
ASCII CodeDC2
Hexadecimal Value12
Decimal Value18
This is a terminator code. It causes all data present in the print
buffer to be printed. This command is accepted at any position within
the line. The character that follows this command will be prin ted at
10 cpi. This command does not cancel doublewide printing.
22
A78408098-003
EPSON/IBM Mode
DC2
Cancels compresse d printing. (EPSON)
ASCII CodeDC2
Hexadecimal Value12
Decimal Value18
This is a terminator code. It causes all data present in the print
buffer to be printed. It is accepted at any position within the line. The
character that follows this command will be printed as follows:
Enables or disables the underlined printing. See the following table:
n Underlined Printing
1 enabled
0 disabled
A78408098-003
n
n
n
23
EPSON/IBM Mode
ESC !
Mater Select. (EPSON)
ASCII CodeESC ! n
Hexadecimal Value1B 21 n
Decimal Value27 33 n
Range0 < n <
This command selects any combination of several attributes. The
parameter n is the sum up of the printing style values to be used. See
the following table:
To print the desiderated combination of printing attributes, calculate the
n parameter by adding up the values of ea ch att ribute.
255
ESC ( -
Sets score line. (EPSON)
ASCII CodeESC ( - n1 n2 m d1 d
Hexadecimal Value1B 28 2D n1 n2 m d1 d
Decimal Value27 40 45 n1 n2 m d1 d
Rangen1 = 3
= 0
n
2
m = 1
< 3
1 < d
1
d2 = 1
This command enables/disables scoring of all characters and spaces
following this command according to the following parameters:
24
2
2
2
A78408098-003
EPSON/IBM Mode
d
1
Line
1Underline
2Strikethrough
3Overscore
d
2
Line
0Cancel score line
1Single continuous line
2Double continuous line
5Single broken line
6Double broken line
Any combination of scoring may be set simultaneously. Each type is
independent of other types. Graphics cha racters are not s cored.
This is a terminator code. It causes all data present in the print
buffer to be printed. Subsequent d ata will be printed at 12 cpi. This
command is accepted at any position within the line. The setting of
another horizontal spacing resets this command.
ESC <
Prints characters for one line from left to right. (EPSON)
This command sets height, width and vertical spacing. The l and h
parameters specify the number of mode bytes m
sequence. The m
and m4 parameters specify the printing
3
contained in the
x
characteristics.
controls both the line spacin g an d th e ch aracter h e igh t. It has tw o
m
3
parts: a high-order half-byte of m
controls the line spacing an d the
3
low-order half-byte controls the character height.
Character HeightLine Spacing
m
3
0No changeNo change
1Standard character heightLine feeds unchanged
2Double character heightLine feeds unchanged
16Character height unchangedNormal line feeds
17Standard character heightNormal line feeds
18Double character heightNormal line feeds
32Character height unchangedDouble line feeds
33Standard character heightDouble line feeds
34Double character heightDouble line feeds
m4 specifies the character width. Only the low-order half-byte is
significant in this mode byte. The high-order half-byte is ignored.