Compuprint 4056, 4056N plus Programmer's Manual

44005566 // 44005566N
Prr
P
o
o
grr
g
a
a
m
m
m
m
N pplluuss
err
e
M
M
a
a
n
n
u
u
all
a
RReevv.. 000022
m
EEPPSSOONN//IIBBMM MMooddee CCoom
This printer according to the IBM Proprinter XL 24-XL24AGM and EPSON LQ Seri es emulations supports the following printer commands. Each command has the following structure:
Name and function description.
Information about protocol:
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
maannddss
m
PPrriinntt aanndd LLiinnee FFeeeedd EExxeeccuuttiioon
CR
Prints all received data and the column counter is set to the left margin. (IBM, EPSON)
ASCII Code CR Hexadecimal Value 0D Decimal Value 13
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). When the printer is in parallel connection and in EPSON mode, a line feed is inserted automatically after a ca rriage return if AUTO LF HOST selection (see “Printer Setup” in the User Manual and the AUTOFEEDXT signa l is low. T his code resets the double width printing set by SO code.
A-1
n
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 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 da ta 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)
ASCII Code ESC 5 Hexadecimal Value 1B 35 Decimal Value 27 53
If n is equal to 1, this command sets an automatic line feed on receiving of a CR code. If n is
n
n
n
equal to 0, this command cancels the automatic line feed.
n 0
1
Automatic line feed Disabled
Enabled
A-2
ESC J
Advances paper n/180 inch. (IB M XL24 AGM, EPSON)
ASCII Code ESC J Hexadecimal Value 1B 4A Decimal Value 27 74 Range 1 < n <
This is a terminator code; it therefore causes the current contents of the print buffer to
n
n
n
255
be printed out before performing a single line feed of n/180 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.
ESC J
Advances paper n/216 inch. (IB M XL 24)
ASCII Code ESC J Hexadecimal Value 1B 4A Decimal Value 27 74 Range 1 < n <
This is a terminator code; it therefore causes the current contents of the print buffer to
n
n
n
255
be printed out before performing a single line feed of n/216 inch. The units used by this command can be changed by the set vertical units command ESC [ \.
LF
Line Feed. (IBM, EPSON)
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 v ertical spacing. I f 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 1st line of the next form or ejects a cut sheet, if loaded. This code cancels the double width printing set by the S O c o de . In I BM m od e , t h e c o lu m n counter is set to the 1St column if the automatic CR is selected. In EPSON mode, the column is always set to the 1st column.
A-3
FFoorrmmaatt CCoonnttrrool
l
ESC $
Sets the absolute printing position. (EPSON)
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
n1 n
n1 n
< 255
n
1
< 127
n
2
n1 n
2
2
2
subsequent characters. The default unit is 1/6 0 i nch. The di stance i s in numbe r of dots and must be calculated using the following formula:
Margin distance = n Where n2 is equal to:
[(horizontal position) – (left margin position)] x
INIT
Where n1 is equal to:
MOD
[(horizontal position) – (left margin position)] x
+ (n
1
x 256) x 1/60” + (left margin)
2
(
defined unit
256
256
(
defined unit
1
1
)
)
If the selected position is outside the current right margin, the sequence will be ignored.
A-4
ESC [ \
Sets vertical units. (IBM)
ASCII Code ESC [ \ Hexadecimal Value 1B 5B 5C Decimal Value 27 91 92 Range
This command changes the base units for the graphics line spacing commands (ESC J,
m m
0 < 0 <
t
3
t
4
m1 m2 t1 … t
m1 m2 t1 … t
m1 m2 t1 … t
= 4
1
= 0
2
< 255
t
1
< 255
t
2
= 0 = 180 or 216
4
4
4
ESC 3). The default value is 1/216 or 1/180 inch.
ESC \
Sets the relative horizontal print position. (EPSON)
ASCII Code ESC \ Hexadecimal Value 1B 5C Decimal Value 27 92 Range 0 <
This command moves the horizontal print position left or right from the current
0 <
n
1
< 127
n
2
n1 n
n1 n
n1 n
2
< 255
2
2
position as specified by the following formula: Horizontal position = For positive (right) movement:
n
(
x 256) +
2
n
) x (defined unit) + (current position)
1
Where n2 is equal to:
[(horizontal position) – (current position)] x
INIT
256
A-5
(
defined unit
)
1
Where n1 is equal to:
1
[(horizontal position) – (current position)] x
MOD
For negative (left) movement:
Where n2 is equal to:
32768-INIT
Where n1 is equal to:
32768-MOD
The default unit is 1/120 inch in Draft mode and 1/180 inch in LQ mode. If it would
256
[(current position) – (horizontal position)] x
256
[(current position) – (horizontal position)] x
256
(
(
(
defined unit
1
defined unit
1
defined unit
)
)
)
move the print position outside the printing area, the printer ignores this command.
ESC +
Sets n/360-inch line spacing. (EPSON)
ASCII Code ESC + Hexadecimal Value 1B 2B Decimal Value 27 43 Range 0 < n <
This command sets the line spacing to n/360 inch. If the line spacing is changed, it
n
n
n
255
does not affect previous settings for vertical ta bs or page length.
A-6
ESC / m
Selects the Vertical Format Unit (VFU) channel. (EPSON)
ASCII Code ESC + Hexadecimal Value 1B 2F Decimal Value 27 47 Range 0 < n <
This command selects the vertical tab set m. The values for m specifies the number of
n
n
n
7
the tab set being changed. These sets of tabs are called vertical format unit (VFU) channels.
ESC 0
Selects 1/8-inch line spacing. (IBM, EPSON)
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.
ESC 1
Selects 7/72-inch line spacing. (IBM)
ASCII Code ESC 1 Hexadecimal Value 1B 31 Decimal Value 27 49
This command causes line spacing to be set to 7/72 inch.
ESC 2
Selects 1/6-inch line spacing. (EPSON)
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.
A-7
ESC 2
Enables the line spacing set by ESC A command. (IBM XL24)
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..
ESC 3
Sets n/180-inch line spacing. (IBM XL24 AGM, EPSON)
ASCII Code ESC 3 Hexadecimal Value 1B 33 Decimal Value 27 51 Range 0 < n <
This command sets the line spacing to n/180 inch. If the line spacing is changed, it
n
n
n
255
does not affect previous settings for vertical ta bs or page length.
ESC 3
Sets graphics line spacing at n/216 inch. (IBM XL24)
ASCII Code ESC 3 Hexadecimal Value 1B 33 Decimal Value 27 51 Range 0 < n <
This command sets graphics line spacing at n default unit defined by the ESC [ \
n
n
n
255
command. To move exactly n/216 inch, n must be an integer multiple of 3.
A-8
ESC 4
Sets top of form (first printable line). (IBM)
ASCII Code ESC 4 Hexadecimal Value 1B 34 Decimal Value 27 52
This sequence sets the first line of the fanfold paper as the current paper position of the form.
ESC A
Sets text line spacing at n/60 inch. (IBM XL24 AGM,EPSON)
ASCII Code ESC A Hexadecimal Value 1B 41 Decimal Value 27 65 Range 0 < n <
This command changes the default line spacing to n/60 inch. The new line spacing
n
n
n
85
value is immediately activated.
ESC A
Sets text line spacing at n/72 inch. (IBM XL24, EPSON)
ASCII Code ESC A Hexadecimal Value 1B 41 Decimal Value 27 65
This command changes the line spacing to n/72 inch. The line spacing value is stored
n
n
n
and activated only after the ESC 2 code is received.
A-9
ESC B
Sets vertical tabs. (IBM, EPSON)
ASCII Code ESC B Hexadecimal Value 1B 42 Decimal Value 27 66 Range 1 < n <
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
n1 … n
... nx 00
n
1
... n
n
1
255
0
x
0
x
and so on in the
2
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 b y
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 b
Sets vertical tabs in VFU channels. (EPSON)
ASCII Code ESC b Hexadecimal Value 1B 62 Decimal Value 27 98 Range m = channel
This command sets vertical tabs in one of the 8 VFU channels available. n1-n8 tab
m n1 n
m n1 n
m n1 n
8
8
8
stops. Up to 16 tab stops can be set in each channel at the line specified by n1, n2 and so on in numerical ascending order.
ESC C 0
Sets form length to n inches. (IBM, EPSON)
ASCII Code ESC C 0 Hexadecimal Value 1B 43 00 Decimal Value 27 67 0 Range 1 < n <
This command sets the form length to the number of inches specified by n. The current
n
n
n
22
position of the paper is assumed as top of form. Setting the paper length cancels the top and bottom-margin settings.
A-10
ESC C
Sets form length to n lines. (IBM, EPSON)
ASCII Code ESC C Hexadecimal Value 1B 43 Decimal Value 27 67 Range 1 < n <
This command sets the form length to the number of lines specified by n at the current
n
n
n
127
vertical spacing. The current posi tion of the paper is assumed as top of form.
ESC D
Sets horizontal tabs. (IBM, EPSON)
ASCII Code ESC D Hexadecimal Value 1B 44 Decimal Value 27 68 Range 1 < n <
This sequence sets up to 28 (IBM mode) or 32 (EPSON mode) horizontal tab stops
n1 n2 nx 0
nx 00
n
1 n2
nx 0
n
1 n2
255
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 columns are numbered 1 through
136. In EPSON mode, the tab stop position set by ESC D is memorized 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.
A-11
ESC d
Spaces forwards relative dot position. (IBM)
ASCII Code ESC d Hexadecimal Value 1B 64 Decimal Value 27 100 Range 0 <
This command moves the print carriage of a (n1 + (n2*256))/120 inch displacement on
n1 n
n
n1, n
1 n2
n1 n
< 255
2
2
2
the right of its current dot position. If the sele cted positi on is outside the current rig ht margin, it is forced to the last column.
ESC e
Spaces backwards relative dot position. (IBM)
ASCII Code ESC e Hexadecimal Value 1B 65 Decimal Value 27 101 Range 0 <
This command moves the print carriage of a (n1 + (n2*256))/120 inch displacement on
n1 n
n
n1, n
1 n2
n1 n
< 255
2
2
2
the left of its current dot position.
A-12
ESC l
Sets left margin (10 cpi). (EPSON)
ASCII Code ESC l Hexadecimal Value 1B 6C Decimal Value 27 108 Range 0 < n <
This code sets the left margin at the current horizontal spacing . It must b e sent at the
n
n
n
255
beginning of the line. The n parameter specifies the number of columns. For each ty pe of horizontal spacing there is a different range of possible values, as shown in the following table.
Character Width Double Width
Normal
Horizontal Spacing 5 cpi
6 cpi
7.5 cpi
8.5 cpi 10 cpi 10 cpi 12 cpi 15 cpi
Range of columns 0 < n < 67
0 < n < 80 0 < n < 100 0 < n < 114 0 < n < 134 0 < n < 134 0 < n < 160 0 < n < 201
Any value outside the accepted range is ig nored and the previous setting remains i n effect. The left margin must be smaller than the ri ght margin. The physical position set for the left margin does not change if the horizontal spacing is modified. This command overrides the menu setting.
17 cpi 20 cpi
A-13
0 < n < 229 0 < n < 255
ESC N
Sets the skipover perforation to n lines. (IBM, EPSON)
ASCII Code ESC N Hexadecimal Value 1B 4E Decimal Value 27 78 Range 1 < n <
1 < n < 225 (IBM mode)
The skipover perforation is the sum of top and bottom margins values at the sel ected
n
n
n
127 (EPSON mode)
vertical spacing. The n parameter 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):
If the top margin set via operator panel is greater than the skipover value, then the following value of the margins will be set:
If the top margin set via operator panel is less or equal to the skipover value, then
Top margin = skipover value Bottom margin = 0
the following value of the margins will be set:
Top margin = operator panel value
If the sum of the top and bottom margins values set via operator panel is less than
Bottom margin = the difference between skipover v alue and top margin value
the skipover value, the following values for the margins will be set:
Top margin = operator panel value Bottom margin = the difference between skipover v alue and top margin value
A-14
Changing the vertical spacing does not affect the skipover distance. This can be changed by a further ESC N command or can be reset b y 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.
ESC O
Disables the skipover perforation. (IBM, EPSON)
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 and so any skip perforation set by ESC N is cancelled.
ESC Q
Sets the right margin (10 cpi). (EPSON)
ASCII Code ESC Q Hexadecimal Value 1B 51 Decimal Value 27 81 Range 1 < n <
This code sets the line length at the current horizontal spacing. It must be sent at the
n
n
n
255
beginning of the line. The n parameter specifi es the number of columns and for each type of horizontal spacing there is a range of values, as shown in the following table:
A-15
Character Width
Horizontal Spacing
Range of columns
Double Width
Normal
Any value outside the accepted range is ignored and the prev ious setting remains in
5 cpi 6 cpi
7.5 cpi
8.5 cpi 10 cpi 10 cpi 12 cpi 15 cpi 17 cpi 20 cpi
1< n < 68
2 < n < 81 2 < n < 102 2 < n < 116 2 < n < 136 2 < n < 136 4 < n < 163 4 < n < 204 4 < n < 233 4 < n < 255
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 all tabs to power-on settings. (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.
A-16
ESC SP
Sets intercharacter space. (EPSON)
ASCII Code ESC SP Hexadecimal Value 1B 20 Decimal Value 27 32 Range 0 < n <
This command sets the intercharacter space to n/120 inch in Draft printing and n/180
n
n
n
255
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 <
This command specifies left and right margin positions. The n
n
n1 n
n1 n
1, n2
n1 n
< 255
2
2
2
and n
1
parameters
2
indicate respectively the number of columns for the left and right margins at the current spacing. These margins are memorized in terms of absolute di spla cement from the physical left edge of the page. If n1 is equal to 0, the current left margin of the p age is us ed. If n2 is equal 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 f or the r ight margin will be se t.
A-17
FF
Advances paper to the top of the next page. (IBM, EPSON)
ASCII Code FF Hexadecimal Value 0C Decimal Value 12
This code is a terminator code, when receiv ed, causes al l 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
Horizontal Tab. (IBM, EPSON)
ASCII Code HT Hexadecimal Value 09 Decimal Value 9
This code moves logically the print carriage to the next horizontal ta b stop as defined by ESC D. In IBM mode, up to 28 horizontal tab stops can be set. The HT code 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 (default). The horizontal tab stops can be changed by the ESC D command.
In EPSON mode, up to 32 horizontal tab stops can be set. 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. Character scoring (underline, overscore and strikethrough) is not printed between the current print position and the next tab when this command is sent.
A-18
VT
Vertical Tab. (IBM, EPSON)
ASCII Code VT Hexadecimal Value 0B Decimal Value 11
This code is a terminator code and when received causes the contents of the print buffer to be printed before advancing paper to the next vertical 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 executed like a FF code (EPSON mode) or like a LF code (IBM mode), if the vertical tab stops follow the bottom of form position (which corresponds to the form length if the bottom of form has not been set) or if the current position is beyond the last vertical 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, the vertical tabulations are referred to the VHF channel selected by the ESC / m. If no VFU channels have been selected, the printer assumes as default channel 0.
This command resets the double width printing set by SO or ESC SO command.
A-19
PPrriinntt MMoodde
e
DC2
Sets 10 cpi printing. (IBM)
ASCII Code DC2 Hexadecimal Value 12 Decimal Value 18
This is a terminator code. It causes all data present in the print buffer to be printed. This command is accepted at any position w ithin the line. The character that follows this command will be printed at 10 cpi. This command does not cancel doublewide printing.
DC2
Cancels compressed printing. (EPSON)
ASCII Code DC2 Hexadecimal Value 12 Decimal Value 18
This is a terminator code. It causes all data present in the pri nt buffer to b e pri nted. It is accepted at any position within the line. The character that follows this command will be printed as follows:
17 CPI 20 CPI
10 CPI 12 CPI
A-20
DC4
Cancels double width printing. (IBM, EPSON)
ASCII Code DC 4 Hexadecimal Value 14 Decimal Value 20
This code cancels the double width printi ng set by SO or ESC SO code. It has no effect if the ESC W or ESC has set double width commands.
ESC -
Sets or cancels underlined printing. (IBM, EPSON)
ASCII Code ESC ­Hexadecimal Value 1B 2D Decimal Value 27 45
Enables or disables the underlined printing. See the following table:
n 1
0
Underlined Printing enabled
disabled
n
n
n
ESC !
Mater Select. (EPSON)
ASCII Code ESC ! Hexadecimal Value 1B 21 Decimal Value 27 33 Range 0 < n <
This command selects any combinati on of several attributes. The parameter n is the
n n
n
255
sum up of the printing style values to be used. See the following table:
A-21
n
Style 0 1 2 4 8 16 32 64 128
To print the desiderated combination of pri nting attrib utes, calcul ate the n parameter
10 cpi
12 cpi
Proportional
Compressed
Emphasized
Double Strike
Double Width
Italic
Underlined
by adding up the values of each attribute.
ESC ( -
Sets score line. (EPSON)
ASCII Code ESC ( ­Hexadecimal Value 1B 28 2D Decimal Value 27 40 45 Range
This command enables/disables scoring of all characters and spaces following this
n n m
1 <
d
= 3
1
= 0
2
= 1
= 1
2
d
n1 n2 m d1 d
n1 n2 m d1 d
n1 n2 m d1 d
< 3
1
2
2
2
command according to the following parameters:
d
1
1 2 3
Line
Underline
Strikethrough
Overscore
A-22
d
2
Line
0 1 2 5 6
Any combination of scoring may be set simultaneously. Each type is independent of
Cancel score line Single continuous line Double continuous line Single broken line Double broken line
other types. Graphics characters are not scored.
ESC :
Sets 12 CPI. (IBM)
ASCII Code ESC : Hexadecimal Value 1B 3A Decimal Value 27 58
This is a terminator code. It causes all data present in the print buffer to be printed. Subsequent data 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)
ASCII Code ESC < Hexadecimal Value 1B 3C Decimal Value 27 60
This command causes the printing of one line from left to right.
A-23
ESC [ @
Sets double high printing and double line feed. (IBM)
ASCII Code ESC [ @ Hexadecimal Value 1B 5B 40 Decimal Value 27 91 64
=normally 4
l
= normally 0
h
= 0
m
1
= 0
m
2
This command sets height, width and vertical spacing. The l and h parameters specify the number of mode bytes mx contained in the
l h m1 m2 m3 m
l h m1 m2 m3 m
l h m1 m2 m3 m
4
4
4
sequence. The m3 and m4 parameters specify the printing characteristics.
m3 controls both the line spacing and the character height. It has two parts: a high­order half-byte of m3 controls the line spacing and the low-order half-byte control s the character height.
m 0
1 2
3
Character Height
No change
Standard character height
Double character height
Line Spacing No change
Line feeds unchanged
Line feeds unchanged 16 17 18 32 33 34
Character height unchanged Standard character height Double character height Character height unchanged Standard character height Double character height
A-24
Normal line feeds
Normal line feeds
Normal line feeds
Double line feeds
Double line feeds
Double line feeds
m4 specifies the character width. Only the low-order half-byte is significant in this mode byte. The high-order half-byt e is ignored.
m 0
1 2
4
Character Width No change
Standard width character Double width character
Line Spacing No change
No change No change
ESC _
Sets or cancels overscore printing. (IBM mode)
ASCII Code ESC _ Hexadecimal Value 1B 5F Decimal Value 27 95
Enables or disables the overscore printing. See the following table:
n 1
0
Overscore Printing Enabled (all spaces and characters that follow are overscored)
Disabled
n
n
n
ESC 4
Sets italics printing mode. (EPSON)
ASCII Code ESC 4 Hexadecimal Value 1B 34 Decimal Value 27 52
Sets the style attribute of the font to italic. This command selects italic printing even if the italic character table is not selected.
A-25
ESC 5
Cancels italics printing. (EPSON)
ASCII Code ESC 5 Hexadecimal Value 1B 35 Decimal Value 27 53
Sets the style attribute of the font to normal (cancels the italic style attribute previously selected with the ESC 4 command).
ESC q
Selects character style. (EPSON)
ASCII Code ESC q Hexadecimal Value 1B 71 Decimal Value 27 113 Range 0 < n <
Selects/deselects outline and shadow printing according to the parameters below:
n
n
n
3
n 0
1 2 3
Style Normal
Outline Shadow Outline with Shadow
ESC a
Sets Letter Quality justification printing. (EPSON)
ASCII Code ESC a Hexadecimal Value 1B 61 Decimal Value 27 97 Range 0 < n <
Selects from four types of justification, as follows:
n
n
n
3
A-26
n
Justification
0 1 2 3
Left Centered Right allows an uniform printing between the margins when the buffer is full
ESC E
Sets emphasized printing. (IBM, EPSON)
ASCII Code ESC E Hexadecimal Value 1B 45 Decimal Value 27 69
This command starts emphasized printing. The print head strikes each dot twice to produce a darker, bolder character. The second strike is offset horizontally.
ESC F
Cancels emphasized printing. (IBM, EPSON)
ASCII Code ESC F Hexadecimal Value 1B 46 Decimal Value 27 70
This command ends emphasized printing. This escape sequence cancels emphasized printing that was set by ESC E.
ESC G
Sets double strike printing. (IBM, EPSON)
ASCII Code ESC G Hexadecimal Value 1B 47 Decimal Value 27 71
This command starts double-strike printi ng. ESC G must be canceled by ESC H.
A-27
ESC g
Sets 15 CPI. (EPSON)
ASCII Code ESC g Hexadecimal Value 1B 67 Decimal Value 27 103
Subsequent data will be printed at 15 cpi. This command is accepted at any position within the line. If you change the pitch during proportional mode (selected with the ESC p command) the change takes effect when the printer exits proportional mode.
ESC H
Cancels double strike printing. (IBM, EPSON)
ASCII Code ESC H Hexadecimal Value 1B 48 Decimal Value 27 72
This command cancels double-strike pri nting with the ESC G command.
ESC I
Selects printing type for resident and DLL characters. (IBM)
ASCII Code ESC I Hexadecimal Value 1B 49 Decimal Value 27 73
This command selects the resident or the download font i n Draft o LQ printing mode.
n n
n
It is ignored if you select a font that has not been downloaded or has been overwritten.
n 0
2 3 8 10 16 18
Resident font Draft 10 cpi
LQ 10 cpi Proportional Draft 12 cpi LQ 12 cpi Draft 17 cpi LQ 17 cpi
A-28
n
Download font
4 6 7 12 14 20 22
Draft 10 cpi LQ 10 cpi Proportional Draft 12 cpi LQ 12 cpi Draft 17 cpi LQ 17 cpi
ESC M
Selects 12 or 20 cpi. (EPSON)
ASCII Code ESC M Hexadecimal Value 1B 4D Decimal Value 27 77
This command selects 12-cpi or 20-cpi character printing. If you change the pitch during proportional mode (selected with the ESC p command) the change takes effect when the printer exits proportional mode. The spacing is set to 20 cpi if the co mpressed printing has be en pr eviously selected by SI or ESC SI command.
ESC P
Selects 10 or 17 cpi. (EPSON)
ASCII Code ESC P Hexadecimal Value 1B 50 Decimal Value 27 80
n
n
n
This command selects 10-cpi or 17-cpi character printing. If you change the pitch during proportional mode (selected with the ESC p comma nd) the change takes effect when the printer exits proportional mode. The spacing is set to 17 cpi if the compressed printing has been previously selected by SI or ESC SI command.
A-29
ESC P
Sets or cancels proportional printing. (IBM)
ASCII Code ESC P Hexadecimal Value 1B 50 Decimal Value 27 80
This code is a terminator code; when receiv ed it causes all data in the print buffer to
n
n
n
be printed out. Then if n parameter is equal to 1, the subsequent data is printed in proportional mode. If n parameter is equal to 0, proportional mode is reset.
If the any horizontal spacing command is sent to the printer when the proportional printing is set, the command will be stored and will be activated as soon as the proportional printing will be reset.
ESC p
Sets or cancels proportional printing. (EPSON)
ASCII Code ESC p Hexadecimal Value 1B 70 Decimal Value 27 112
This command selects the proportional or fixed spacing according to the following
n
n
n
values:
n 0
1
The changes made to the fixed-pitch setting with ESC P, ESC M or ESC g commands during proportional mode take effect when the printer exits proportional mode. The printer automatically switches to LQ mode when the printer exits proportional mode.
Proportional Printing Returns to current fixed character pitch
Selects proportional character spacing
A-30
ESC S
Sets subscript or superscript printing. (IBM, EPSON)
ASCII Code ESC S Hexadecimal Value 1B 53 Decimal Value 27 83
Selects the subscript or the superscript printing. See the following table:
n 1
0
The proportional printing of the subscript or superscript characters is performed at 2/3
Selection Subscript Print enabled
Superscript Print enabled
n
n
n
of the proportional character width. Use the ESC T command to cancel super/subscript printing.
ESC SI
Selects condensed mode. (IBM, EPSON)
ASCII Code ESC SI Hexadecimal Value 1B 0F Decimal Value 27 15
This command selects the condensed mode in which character width is reduced as follows:
10 CPI 12 CPI Proportional
DC2 code cancels the condensed printing.
17.14 CPI 20 CPI ½ width
A-31
ESC SO
Sets double width printing (one line). (IBM, EPSON)
ASCII Code ESC S0 Hexadecimal Value 1B 0E Decimal Value 27 14
This code causes subsequent data in the same line to be printed as double width characters. It is canceled by the LF, VT, FF, DC4 and ESC W 0 commands or when the buffer is full.
ESC s
Sets and resets Quiet printing. (EPSON)
ASCII Code ESC s Hexadecimal Value 1B 73 Decimal Value 27 115
This command controls printing speed as follows:
n 0
1
Selection Normal speed printing
Quiet speed printing
n
n
n
ESC T
Cancels subscript or superscript printing. (IBM, EPSON)
ASCII Code ESC T Hexadecimal Value 1B 54 Decimal Value 27 84
This command cancels subscript or superscript pri nting selected by ESC S command.
A-32
ESC W
Sets or cancels double width printing. (IBM, EPSON)
ASCII Code ESC W Hexadecimal Value 1B 57 Decimal Value 27 87 Range 0 < n <
Enables or disables the double width printing. See the following table:
n 1
0
Selection Double Width Printing enabled
Double Width Printing disabled
n
n
n
1
ESC w
Sets or cancels double height printing. (EPSON)
ASCII Code ESC w Hexadecimal Value 1B 77 Decimal Value 27 119 Range 0 < n <
Enables or disables the double-height printing of all characters. The first line of a page is
n
n
n
255
not doubled if the ESC w command is sent on the first line; all following lines are printed at double-height. See the following table:
n 1
0
Selection Double Height Printing enabled
Double Height Printing disabled
A-33
ESC x
Selects Letter Quality or Draft printing. (EPSON)
ASCII Code ESC x Hexadecimal Value 1B 78 Decimal Value 27 120
This command selects either LQ or Draft printi ng according to the following va lues:
n
n
n
n 0
1
If you select proportional spacing w ith the ESC p command during Draft pri nting, the
Selection Draft printing
Letter Quality printing
printer prints an LQ font instead. When you cancel proportional spacing wi th the ESC p command, the printer returns to Draft printing.
ESC y
Selects yellow ribbon band. (IBM)
ASCII Code ESC y Hexadecimal Value 1B 79 Decimal Value 27 121
SI
Sets condensed printing. (IBM, EPSON)
ASCII Code SI Hexadecimal Value OF Decimal Value 15
This command selects the condensed mode in which character width is reduced as follows:
10 CPI 12 CPI Proportional
17.14 CPI 20 CPI ½ width
DC2 code cancels the condensed printing.
A-34
SO
Sets double width printing (one line). (IBM, EPSON)
ASCII Code SO Hexadecimal Value 0E Decimal Value 14
This code causes subsequent data in the same line to be printed as double width characters. It is canceled by the LF, FF, VT, DC4, ESC W codes o when the buffer is full. This command is not canceled by the VT command when it functions the same as a CR command.
CChhaarraacctteerr SSeet
t
ESC [ T
Selects a Code page.
ASCII Code ESC [ T Hexadecimal Value 1B 5B 54 Decimal Value 27 91 84
This sequence allows changing the current code page. If an unavailable code page is
4 0 0 0 Hc Lc
04 00 00 00 Hc Lc
4 0 0 0 Hc Lc
specified, this command is ignored. The digits 04 00 00 00 (hexadecimal) and 4 0 0 0 (decimal) are constant.
To calculate Hc Lc for a code page that is not shown:
divide the code page number, such as 437, by 256.
- The whole number result is the Hc value
-
The remainder is the Lc value.
If your code page has an alphabetic character, such as 437G, add 10,000 to the code page number, then divide by 256.
A-35
Hc
Lc
Hc
Lc 1 33 3 3 3 3 3 3 3 3 3 3 3 3
181 122 82 83 84 85 87 89 90 92 94 95 96 97
CP437 CP437G CP850 CP851 CP852 CP853 CP855 CP857 CP858 CP860 CP862 CP863 CP864 CP865
33 33 33 33 33 33 33 33 33 33 33 33 33 3
123
126
124
125
143
144
145
146
147
148
149
150
151
155
96 GREEK MAZOWIA GOST TASS 8859/1 8859/2 8859/3 8859/4 8859/5 8859/6 8859/7 8859/8 8859/9
8859/15 3 3 3 3
98 99 108 109
CP866 CP867 CP876 CP877
4 4 4
A-36
226 227 228
CP1250
CP1251
CP1252
ESC \
Prints characters from all characters table. (IBM)
ASCII Code ESC \ Hexadecimal Value 1B 5C Decimal Value 27 92 Range 0 <
0 <
This command prints the next n1 + n2 x 256 characters from the table of all printable
n1 n2
n1 n
n
1 n2
n1 n
< 255 < 255
2
2
characters. The total number of characters that will be printed from the table of all printable characters is equal to n1 + (n2 x 256). For example, to print 300 characters from the table of all printable characters: n1 = 44, n2 = 1. The control codes are not recognized as long as this sequence is active. The space character is printed as an unassigned character.
ESC ^
Prints a single character from the all characters table. (IBM)
ASCII Code ESC ^ Hexadecimal Value 1B 5E Decimal Value 27 94 Range 0 < n <
This command prints the next character from the a ll characters table. Thi s sequence
n n
n
255
prints only one character from the all character table.
ESC 6
Selects the Character Set 2. (EPSON, IBM)
ASCII Code ESC 6 Hexadecimal Value 1B 36 Decimal Value 27 54
This command selects the character set 2.
A-37
ESC 7
Selects the Character Set 1. (EPSON, IBM)
ASCII Code ESC 7 Hexadecimal Value 1B 37 Decimal Value 27 55
This command selects the character set 1.
ESC k
Selects LQ fonts. (EPSON)
ASCII Code ESC k Hexadecimal Value 1B 6B Decimal Value 27 107
Selects one of the available fonts in Letter Quality mode. See the following table:
n 0
1 2 3 4 5 6 7 11
If the Draft mode is selected when this command is sent, the new LQ font will be
Types Courier
Gothic Courier Prestige Script OCR-B OCR-A Presentor Boldface
n
n
n
selected when the printer returns to LQ printing.
A-38
ESC R
Selects an international character set. (EPSON)
ASCII Code ESC R Hexadecimal Value 1B 52 Decimal Value 27 82 Range 0 < n <
This code causes the national character set to be selected according to the parameter n.
n
n
n
12
n 0
1 2 3 4 5 6
Character Sets USA
France Germany United Kingdom Denmark-I Sweden Italy
n 7
8 9 10 11 12
Character Sets Spain-I
Japan Norway Denmark-II Spain-II Latin America
ESC t
Selects characters table. (EPSON)
ASCII Code ESC t Hexadecimal Value 1B 74 Decimal Value 27 116 Range 0 < n <
Selects the character table to be used for printing from among the four character
n n
n
3
tables described bel o w:
n
Character Tables
0 1 2
Standard Italic Character Set PC437 User-defined characters
A-39
DDoowwnnllooaadd CChhaarraacctteer
r
ESC %
Selects user-defined character set. (EPSON)
ASCII Code ESC % Hexadecimal Value 1B 25 Decimal Value 27 37
This command switches between the normal (resident) and user-defined (downloaded)
n
n
n
characters:
n 1
0
Selection Selects the use of down-loaded character set in RAM
Selects the use of resident character set in ROM
ESC &
Defines user-defined characters. (EPSON)
The format for this command depends on whether you are defining draft cha racters or LQ characters.
Draft mode
ASCII Code ESC & Hexadecimal Value 1B 26 00 Decimal Value 27 38 Range 0 < n <
0 < m < 127
n
0 < 0 <
LQ mode
ASCII Code ESC & Hexadecimal Value 1B 26 00 Decimal Value 27 38 Range 0 < n <
0 < m < 127
n
0 < 0 <
NUL n m [ a0 a1 a2 d
n m [ a
0 n m [ a
127
<
m
< 15
a1 a0+a1+a
<
m a1 a0+a1+a
< 18
2
NUL n m [a
n m [a
0 n m [a
127
< 37
< 42
2
d
0 a1 a2
0 a1 a2
0 a1 a2 d 1 d 2
0 a1 a2 d 1 d 2
1 d 2
d
1 d 2
0 a1 a2 d 1 d 2
1 d 2
d k ]
d k ]
d k ]
d k ]
d k ]
d k ]
A-40
The data within brackets above is repeated for each character you define. The parameters in the command have the following meaning:
n and m
The n and m parameters are two decimal numb ers that define the first and the last characters to be replaced in the character set in use.
a
0
a
1
a
2
d1 ...d
Maximum character width (height x wi dth):
Print quality Draft
LQ
n
It sets space to the left of each proportional user-defined character. Actual width of user-defined characters. It sets space to the right of each proportional user-defined. They are the character data that is printed.
10 cpi
24 x 12 24 x 10 Normal size Super/subscript 16 x 36 16 x 30
24 x 36 24 x 30
12 cpi
ESC :
Copies characters from ROM to RAM. (EPSON)
ASCII Code ESC : Hexadecimal Value 1B 3A 00 Decimal Value 27 58 Range 0 < n <
m
NUL n m
n m
n m
127
= 0
15 cpi 24 x 8
24 x 24 16 x 24
Proportional Not available
24 x 42 16 x 42
This code copies the character generator in ROM into RAM area dedicated to the user­defined characters. The n parameter represents the LQ typestyle.
A-41
n
n
0 0 1 3 5 7
Before copying ROM characters to RAM, cancel ita li cs wi th the ESC 5 command. After
Draft (Draft) Courier (Quality) Gothic Prestige OCR-B Presentor
2 4 6 11
Courier Script OCR-A Boldface
copying you can itali cize characters by sending the ESC 4 command.
ESC =
Defines downloaded characters. (IBM)
ASCII Code ESC = n Hexadecimal Value 1B 3D n Decimal Value 27 61 n
This sequence allows you to design and then down-line load special characters not
m id p t
m id p t
m id p t
present in the character set in use. Whenever you would like to start the DLL setting procedure, proceed as follows:
Copy the character generator in ROM into RAM
Select the DLL generator
There are 256 entries of 9 bytes that compose the look up table of a character generator. One entry describes one character as follows:
Byte 1, 2 Byte 3 :
- Bit 7
The absolute address of the character definition.
1: indicates that the char acter is a grap hic charac ter (connec ts at 6 lpi) 0: indicates that the character is an alphanumerical character
A-42
- Bit 6
0: indicates a DLL character
- Bit 5 to 0
1: indicates a resident character These 6 bits indicate the effective number of dot columns of the
character shape stored in memory.
Byte 4:
- Bit 7, 6
Graphic character description:
- 0: shading character
- 1: line drawing character
- 10: underscored character
- 11: not supported All graphics characters are 30 dot high. An underscored character is
defined as a blank graphic (all zeros) and it is automatically generated by the printer. A shading character repeats dots 1-6 of each column as dots 25 through 30 respectively. A line drawing character repeats dots 23 and 24 as the pairs 25 and 26, 27 and 28, 29 and 30.
- Bit 5 to 0
The number of dot columns of the character shape minus one. For example: the character width of Draft generator i s 10 dots and bi t 5 to 0 must be set to 9.
- Bit 5 to 9
Compression mask description. It is used to optimize the memory occupation and it is based on the concept that a dot column on its left is not stored. You can calculate the compression mask of a character only after designing the entire character. Every bit is associated with a dot column with the bit 7 of byte 5 associated with the leftmost column.
A-43
- Bit 5 to 9
The bit is set to 1 if the column is equal to the preceding one; otherwise, it is set to 0. If the character is longer than 39 dot columns the remaining dot columns must be stored without compression. The bit 40 (bit 0 of byte 9) must be 0. If no compression is present in the character, byte 5 to 9 is composed by all zeros.
If you wish to copy an entry over another entry so that two characters with the same characteristics and different code are present in the same look up table, the DLL sequence ESC = n m id p t has the following meaning:
n and m
id: p and t
data
Indicate the byte number of the sequence n is the low part and m is the high part.
Indicate the printer model. The id related to your printer is 23H. Indicate the memory address of the character that you wish to
replace. p is the low part and t is the high part. Is the entry 9 bytes of the character that you want to position at
address specified by p and t.
A-44
BBiitt--IImmaagge
e
ESC *
Sets dot graphics printing. (IBM XL24 AGM, EPSON)
ASCII Code ESC * Hexadecimal Value 1B 2A m Decimal Value 27 42 m
= 0,1,2,3,4,6,32,33,38,39,40
m
< 255
0 <
n
1
0 <
< 12
n
2
This command prints dot-graphics in 8-dot columns or 24-dot columns, depending on
m n1 n
2
n1 n2 d1.. d
n1 n2 d1.. d
d1.. d
x
x
x
the following parameters:
m n1, n
2
Specifies the dot density Specify the total number of columns of graphics data according to the
formula:
number of dot columns = (n1 + (n2 x 256))
(number of dot columns)
256
(number of dot columns)
256
d1 … d
n2 = INT
n1 = MOD
Bytes of graphics data; x is determined by multiplying the total number
x
of columns times the number of bytes required for each column. See the following table :
A-45
8 bit graphics mode
Parameter
in ESC *
m
command
0606060Yes81 1 120 60 60 Yes 8 1 2 120 60 60 No 8 1 3 240 60 60 No 8 1 4806060Yes81 6906060Yes81
Horizontal density (dpi)
24 bit graphics mode
Parameter
in ESC *
m
Horizontal density (dpi)
command
32 60 180 180 Yes 24 3 33 120 180 180 Yes 24 3
Vertical density (dpi) Adjacent
dot printing
Vertical density (dpi)
Adjacent dot printing
Dots per column
Dots per column
Bytes per column
Bytes per column
38 90 180 180 Yes 24 3 39 180 180 180 Yes 24 3 40 360 180 180 No 24 3
A-46
ESC ?
Reassigns dot graphics mode. (EPSON)
ASCII Code ESC ? Hexadecimal Value 1B 3F n Decimal Value 27 63 n
Reassigns one of the dots graphics mode (described in the command ESC *) to one of
n m
m
m
the following commands: ESC K, ESC L, ESC Y and ESC Z. The parameter n specifies a character (K, L, Y or Z) which is reassigned to specific mode.
m = 0,1,2,3,4,6,32,33,38,39,40
m 0
1 2 3
n (K): ESC K graphic command
(L): ESC L graphic command (Y): ESC Y graphic command (Z): ESC Z graphic command
ESC [ g
High Resolution Graphics. (IBM)
ASCII Code ESC [ g Hexadecimal Value 1B 5B 67 Decimal Value 27 91 103
n m data
n m data
n m data
This command sends data for dot matrix graphics to the printer and allows the selection of eight modes for both 8-wire g raphics and 24-wire graphics.
n (count)
Count is a two-byte value in the format of low byte, high byte that gives the number of bytes of graphic data plus one.
A-47
m (mode)
Mode is a one-byte value to select the graphics mode. Modes have a vertical wire count (8 or 24) a nd a horizontal densi ty in dots per i nch. See the following table:
Mode 0
1 2 3 8 9 11 12
data
For 8-wire modes, it is arrang ed and mapped to the wires identically to ESC K. For 24-wire modes, the data has 3 bytes per slice, the most significant bit of the 1
Horizontal Density 60
120 120 240 60 120 180 360
The graphic data is organized by byte.
Wires 8
8 8 8 24 24 24 24
Description Same as ESC K graphic command
Same as ESC L graphic command Same as ESC Y graphic command Same as ESC Z graphic command Same as ESC * (32) Same as ESC * (33) Same as ESC * (39) Same as ESC * (40)
byte mapping to the top wire and the least significant bit of the 3rd byte mapping to the bottom wire. The slices are in sequence from left to right.
st
A-48
ESC K
Normal density dot graphics printing (60 dpi). (IBM, EPSON)
ASCII Code ESC K Hexadecimal Value 1B 4B Decimal Value 27 75 Range 0 <
0 < 0 < p < 255
Terminator code. This command prints dot gra phics at 60 horizontal dot per inch b y
n1 n2 p1 p2... p
n1 n2 p1 p2... p
n1 n
2 p 1 p2
< 255
n1
< 31
n
2
... p
x x x
60 vertical dpi. Th e parameter values should be calculated as follows:
n n
p 1
1
2
Remainder of the number of column divided by 256. Integer result of the previous division. Sum of the values corresponding to the dots that should be printed in the
first column of the graphics pattern.
p
2
Sum of the values corresponding to the dots that should be printed in the second column of the graphics pattern.
p
x
Sum of the values corresponding to the dots that should be printed in the last column of the graphics pattern.
ESC L
Double density dot graphics p rinting (120 dpi). (IBM, EPSON)
ASCII Code ESC L Hexadecimal Value 1B 4C Decimal Value 27 76 Range 0 <
n1
0 <
n
2
0 < p < 255
n
1 n2 p1 p2
n
1 n2 p1 p2
n1 n
< 255
< 31
2 p 1 p2
... p
... p
... p
x
x
x
Terminator code. This command prints dot graphics at 120 horizontal dot per inch by 60 vertical dpi. Th e parameter values should be calculated as follows:
A-49
n
1
n
2
Remainder of the number of column divided by 256. Integer result of the previous division.
p 1
Sum of the values corresponding to the dots that should be printed in the first column of the graphics pattern.
p
2
Sum of the values corresponding to the dots that should be printed in the second column of the graphics pattern.
p
x
Sum of the values corresponding to the dots that should be printed in the last column of the graphics pattern.
ESC Y
Double density dot graphics printing at double-speed graphics (120 virtual dpi). (IBM, EPSON)
ASCII Code ESC Y Hexadecimal Value 1B 59 Decimal Value 27 89 Range 0 <
Terminator code. This command prints dot graphics at 120 horizontal dot per inch by
n1 n2 p1 p2... p
n1 n2 p1 p2... p
n1 n
< 255
n1
0 <
< 31
n
2
0 < p < 255
2 p 1 p2
... p
x
x
x
60 vertical dpi. Th e parameter values should be calculated as follows:
n
1
n
2
Remainder of the number of column divided by 256. Integer result of the previous division.
p 1
Sum of the values corresponding to the dots that should be printed in the first column of the graphics pattern.
p
2
Sum of the values corresponding to the dots that should be printed in the second column of the graphics pattern.
p
x
Sum of the values corresponding to the dots that should be printed in the last column of the graphics pattern.
A-50
ESC Z
Quadruple density dot graphics printing (240 virtual dpi). (IBM, EPSON)
ASCII Code ESC Z Hexadecimal Value 1B 5A Decimal Value 27 90 Range 0 <
Terminator code. This command prints dot graphics at 240 horizontal dot per inch by
n1 n2 p1 p2... p
n1 n2 p1 p2... p
n1 n
< 255
n1
0 <
< 31
n
2
0 < p < 255
2 p 1 p2
... p
x x x
60 vertical dpi. Th e parameter values should be calculated as follows:
n n
p 1
1
2
Remainder of the number of column divided by 256. Integer result of the previous division. Sum of the values corresponding to the dots that should be printed in
the first column of the graphics pattern.
p
2
Sum of the values corresponding to the dots that should be printed in the second column of the graphics pattern.
A-51
DDaattaa IInnppuutt CCoonnttrrool
l
CAN
Cancels line. (EPSON)
ASCII Code CAN Hexadecimal Value 18 Decimal Value 24
This code clears all printable characters and bit-image graphics on the current line. This code moves the print position to the left-margin position.
CAN
Cancels data. (IBM)
ASCII Code CAN Hexadecimal Value 18 Decimal Value 24
This code clears all data stored in the preceding print buffer but does not cha nge the current print position.
DC1
Selects printer. (IBM)
ASCII Code DC1 Hexadecimal Value 11 Decimal Value 17
This command causes the printer to be enabled after it has been disabled by the ESC Q 35 command.
A-52
DC1
Selects printer. (EPSON)
ASCII Code DC1 Hexadecimal Value 11 Decimal Value 17
This command causes the printer to be enabled after it has been disabled by the DC3 command.
DC3
Deselects printer. (EPSON)
ASCII Code DC3 Hexadecimal Value 13 Decimal Value 19
This code deselects the printer. The printer remains desel ected until it recei ves a DC1 command or power is turned off then on again. The printer ignores the ESC @ command (initialize printer) when it is deselected.
ESC #
Cancels MSB control. (EPSON)
ASCII Code ESC # Hexadecimal Value 1B 23 Decimal Value 27 35
This command cancels any controls on the MSB (bit number 7) set by ESC = or ESC > commands; printer then accepts all MSB data as is.
A-53
ESC =
Sets MSB to 0. (EPSON)
ASCII Code ESC = Hexadecimal Value 1B 3D Decimal Value 27 61
This command sets the Most Significant bit (bit number 7) of all incoming data to 0. All data is affected including graphics data.
ESC >
Sets MSB to 1. (EPSON)
ASCII Code ESC > Hexadecimal Value 1B 3E Decimal Value 27 62
This command sets the Most Significant bit (bit number 7) of all incoming data to 1. All data is affected including graphics data.
ESC Q
Deselects Printer. (IBM)
ASCII Code ESC Q Hexadecimal Value 1B 51 Decimal Value 27 81
This sequence tells the printer not to accept data from the host. The host must reset
n
n
n
the printer or select the printer by using DC1 (Select Printer) to accept data. To deselect the printer, use ESC Q35.
A-54
MMiisscceellllaanneeoouus
s
BEL
Buzzer. (EPSON)
ASCII Code BEL Hexadecimal Value 07 Decimal Value 7
This code sounds the printer’s buzzer (for about 0.25 seconds).
BS
Print and space back one position. (IBM, EPSON)
ASCII Code BS Hexadecimal Value 08 Decimal Value 8
This code causes the printing to be continued from one column to the left of the current carriage position. The printer ignores this command if the print position moves to the left of the left margin.
ESC @
Initializes the printer. (EPSON)
ASCII Code ESC @ Hexadecimal Value 1B 40 Decimal Value 27 64
This sequence causes the printer to be initialized and resets the printer to its default settings.
A-55
ESC j
Stops printing. (IBM)
ASCII Code ESC j Hexadecimal Value 1B 6A Decimal Value 27 106
This command stops the printer. The printer goes offline and a BUSY signal is sent to
n
n
n
the computer. To place the printer online, press the Online/Offline key.
ESC U
Sets printing direction. (IBM, EPSON)
ASCII Code ESC U Hexadecimal Value 1B 55 Decimal Value 27 85
Selects bidirectional or uni directional printing, according to the parameters below:
n 0
1
Unidirectional printing provides better alignment of vertical lines while bidirectional
Direction Bidirectional printing
Unidirectional (left to right) printing
n
n
n
printing is faster.
A-56
CCOOMMPPUUPPRRIINNT
This printer according to the Native COMPUPRINT Mode supports the following
T MMooddee Commands
printer commands.
FFoorrmmaatt CCoonnttrrool
l
DC4 DC4 ESC 3 1
Sets vertical spacing 12 lines/30 mm. (Compuprint)
ASCII Code DC4 DC4 ESC 3 1 Hexadecimal Value 14 14 1B 33 31 Decimal Value 20 20 27 51 49
This command sets vertical spacing to 12 lines per 30 mm.
DC4 DC4 ESC 3 3
Sets vertical spacing to 3 lines/30 mm. (Compuprint)
ASCII Code DC4 DC4 ESC 3 3 Hexadecimal Value 14 14 1B 33 33 Decimal Value 20 20 27 51 51
This command sets vertical spacing to 3 lines per 30 mm.
DC4 DC4 ESC 3 4
Sets vertical spacing 4 lines/30 mm. (Compuprint)
ASCII Code DC4 DC4 ESC 3 4 Hexadecimal Value 14 14 1B 33 34 Decimal Value 20 20 27 51 52
This command sets vertical spacing to 4 lines per 30 mm.
A-57
DC4 DC4 ESC 3 6
Sets vertical spacing 6 lines/30 mm. (Compuprint)
ASCII Code DC4 DC4 ESC 3 6 Hexadecimal Value 14 14 1B 33 36 Decimal Value 20 20 27 51 54
This command sets vertical spacing to 6 lines per 30 mm.
DC4 DC4 ESC 3 8
Sets vertical spacing 8 lines/30 mm. (Compuprint)
ASCII Code DC4 DC4 ESC 3 8 Hexadecimal Value 14 14 1B 33 38 Decimal Value 20 20 27 51 56
This command sets vertical spacing to 8 lines per 30 mm.
DC4 DC4 ESC A
Sets the horizontal spacing to 15, 17, 20, 24 CPI. (Compuprint)
ASCII Code DC4 DC4 ESC A Hexadecimal Value 14 14 1B 41 Decimal Value 20 20 27 65
This is terminator code and therefore causes the current contents of the print buffer to
n
n
n
be printed out. Then, the subsequent characters will be printed at the horizontal spacing specified by the n parameter.
n 4
5 6 7
Spacing 15 cpi
17 cpi 20 cpi 24 cpi
A-58
AAuuttoommaattiicc SShheeeett FFeeeeddeer
r
ESC EM
Loading/ejection of paper. (EPSON)
ASCII Code ESC EM Hexadecimal Value 1B 19 Decimal Value 27 25
This command controls cut sheet feeding (ASF) according to the parameters below:
n
n
n
n 0 1 2 4
Description Disables ASF and the printer (off line) after ejecting cut sheet Enables the ASF and selects Bin 1 Enables the ASF and selects Bin 2 The ASF is enabled and the previous default bin is selected
//n//
ASF and Bin selection. (Compuprint)
ASCII Code //n// Hexadecimal Value 2F 2F n 2F 2F Decimal Value 47 47 n 47 47
This command must start and finish with a CR, a LF or both; otherwise it will be handled as if it were printable data.
n 1 2 C
Effect Selects bin 1 Selects bin 2 Selects bin 1 once then bin 2. First sheet fed from bin 1 and following
from bin 2.
E
Selects envelope tray
R
Ejects the sheet without selecting
A-59
NNaattiivvee CChhaarraacctteerr SSeet
t
DC4 DC4 ESC g
Selects LQ fonts (Compuprint).
ASCII Code DC4 DC4 ESC g n Hexadecimal Value 14 14 1B 67 Decimal Value 20 20 27 103
n
n
n 0
1 2 3 4 5 6 7 11
If the down-line loading is selected, the command is stored and will be activated as
Setting Courier
Gothic Courier Prestige Script OCR-B OCR-A Presentor Boldface
soon as the down-line loading will be canceled.
A-60
DC4 DC4 ESC S
Selects character set ISO Character Sets or Code Pages. (Compuprint)
ASCII Code DC4 DC4 ESC S Hexadecimal Value 14 14 1B 53 Decimal Value 20 20 27 83
n
n
n
n 1
2 3 4 5 6 7 8 9 15 128 129 130 131 132
Character Set ISO 8859/1 Latin 1
ISO 8859/2 Latin 2 ISO 8859/3 Latin 3 ISO 8859/4 Latin 4 ISO 8859/5 Latin/Cyrillic ISO 8859/6 Latin/Arabic ISO 8859/7 Latin/Greek ISO 8859/8 Latin/Hebrew ISO 8859/9 Latin 5 ISO 8859/15 Latin 9 CP 437 USA CP 850 Multilingual CP 860 Portugal CP 863 Canada/France
CP 865 Denmark/Norway 133 134 135 136
CP 851 Greek
CP 862 Hebrew
CP 864 Arabic
TASS Cyrillic
A-61
n
Character Set 137
138 139 140 141 142 145 146 147 148 149 199
CP 852 Eastern Europe
CP 876 OCR-A
CP 877 OCR-B
CP 855 Cyrillic
CP 866 Russian
GOST Cyrillic
CP 437G Greek
CP 853 Turkish
CP 857 Turkish
CP 867 Turkish
CP 858 Euro PC Multilingual
96 Greek
A-62
BBaarr CCooddees
s
DC4 DC4 ESC !
Bar Code Selection.
ASCII Code DC4 DC4 ESC ! Hexadecimal Value 14 14 1B 21 Decimal Value 20 20 27 33
h t f F r o q b s B S i EM
h t f F r o q b s B S i EM
h t f F r o q b s B S i EM
= Bar Code Height at n/6”, 1 < h <
h
= Standard Bar Code to use
t
t 1
2 3 7, 8, 9 17 18 19 20 21 22 23 24
f = Readable character printing
Name 8-digits European Article Numb ering
13-digits European Article Nu mbering Universal Product Code Type A 8-digits European Article Numb ering Code 2 of 5 Interleaved Code 2 of 5 Industrial Code 2 of 5 Matrix Code 3 of 9 8-digits European Article Numb ering Codabar (all types) Code 128 USPS-PostNet
30
EAN-8 EAN-13 UPC-A EAN-8 C25-INT C25-IND C25-MTX Code-39 EAN-8 CODABAR CODE-128 POSTNET
f = 1 printing enabled f = 0 printing disabled
A-63
F = Font selection for the printabl e characters
F 0
1 2 3 4
r = Bar code rotation
r 0
1 2 3 4
o = Check digit inserted as last character of the received string according to the bar code q = Horizontal graphic density of the bar code
q
Selection
Selected font by r value
Default font for text
Special font for OCR-A o OCR-B bar codes according to the t value
Special font for OCR-A bar codes
Special font for OCR-B bar codes
Selection
No rotation
Rotation at 0°
Rotation at 90°
Rotation at 180°
Rotation at 270°
Selection
0 1
b = Narrow bar width in n/180”, 3 < b < 18 s = Narrow space width in n/180”, 3 < s < 18 B = Wide bar width in n/180”, 6 < B < 72 S = Wide space width in n/180”, 6 < S < 72 i = Spacing between characters in n/180”, 3 < i < 72 EM = Check sequence terminator
1/60”
1/180”
A-64
BBaarr CCooddee DDeessccrriippttiioon
n
EAN-8
EAN-13
UPC-A
DC4 DC4 ESC!
The EAN-8 bar code data field must only contain numeric data, and
n 1 p EM
must be eight bytes long, check digit included. The EAN-8 character repertoire provides 0 to 9 ASCII numeric figures. n indicates the bar code height in units of 1/6 inch and must be in the range 1 to 12. p must be NUL (hex. 00) if no Human Readable C har acter s ar e to be pr inted , and 1 (hex. 01) if they are to be printed. The range of values for n and p parameters can be increased of 32 dec.
DC4 DC4 ESC!
The EAN-13 bar code data field must only contain numeric data, and
n 2 p EM
must be 13 bytes long, check digit included. The EAN-13 character repertoire provides 0 to 9 ASCII numeric figures. n indicates the bar code height in units of 1/6 inch and must be in the range 1 to 12. If you want to print the Human Readable Characters, p must have the value 1 (hex.
01); otherwise this value must be NUL (hex. 00). The range of values for n and p parameters can be increased of 32 dec.
DC4 DC4 ESC!
The UPC-A bar code data field allows 10 numeric characters plus one
n 3 p EM
system number digit and one check digit, at the leftmost and rightmost positions respectively. The UPC-A character repertoire provides 0 to 9 ASCII numeric figures. n indicates the bar code height in units of 1/6 inch and must be in the range 1 to 12. p must be NUL (hex. 00) if no Human Readable Characters ar e to be printed , and 1 (hex. 01) if they are to be printed. The range of values for n and p parameters can be increased of 32 dec.
A-65
2 of 5 Interleaved
DC4 DC4 ESC!
The 2/5-INTERLEAVED bar code does not have a defined format
n 17 p EM
length. However, the total sum of the characters must be even. n indicates the bar code height and must be i n the range 1 to 12. p must be NUL (hex. 00) if no Human Readable Characters are to be printed, and 1 (hex. 01) if they are to be printed.
2 of 5 Industrial
2 of 5 Matrix
DC4 DC4 ESC !
The 2/5 INDUSTRIAL bar code. Data format length is variable and
n 18 p EM
the supported character set only provides ASCII numeric figures 0 to
9. N indicates the bar code height in units of 1 /6 inch and must be in the range 1 to 12. The parameter p must be NUL (hex. 00) if no Human Readable Characters are to be printed, and 1 (hex. 01) if they are to be printed.
DC4 DC4 ESC !
The 2/5 MATRIX bar code. Data format length is variable and the
n 19 p EM
supported character set only provides ASCII numeric figures 0 to 9. N indicates the bar code height in units of 1/6 inch a nd must be in the range 1 to 12. The parameter p must be NUL (hex. 00) if no Huma n Readable Characters are to be printed, and 1 (hex. 01) if they are to be printed.
A-66
Code 39
DC4 DC4 ESC !
The CODE 39 bar code. Data format length is variable and must
n 20 p EM
always start and end with an asterisk. It can contain the alphanumeric character listed below:
0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z -.
SPACE $ / + % * ( as start / stop character) The parameter indicates the bar code height in units of 1/6 inch and
must be in the range 1 to 12. The p parameter must be NU L (hex.
00) if no Human Readable Characters are to be printed, and 1 (hex.
01) if they are to be printed.
CODABAR
DC4 DC4 ESC!
The Codabar bar code data fields do not have a defined format
n 22 p EM
length and contain data belonging to the character set listed hereafter:
0 1 2 3 4 5 6 7 8 9 - $: /. + A B C D E N T * a b c d e n t (only as START/STOP characters) The printer allows any combination of START/STOP characters. If
the first and last characters of the received string do not belong to the START/STOP characters subset, question marks will be printed in place of HRC string, if possib le.
A-67
CODE 128
DC4 DC4 ESC !
The CODE-128 bar code data fields do not have a defined format
n 23 p EM
length and contain data belonging to the standard ASCI I character set, including control codes.
Since GS and EM control codes used within the Compuprint DC4 DC4 ESC (...EM ”Print Bar Code” control sequence are pa rt of the supported character set, the host application must SET THE HIGHER-ORDER BIT of the above control codes to allow the printer distinguish between encodable data and string terminators.
POSTNET
DC4 DC4 ESC!
The POSTNET bar code data fields contain onl y numeric data and
n 24 p EM
do not have a defined format length. PO STNET bar codes have no HRC string printed and the LOW/TALL bars that encode the symbol comply with the U.S.P.S standard; whatever will be p field value.
DC4 DC4 ESC (GS
Prints bar code symbols (Compuprint)
ASCII Code DC4 DC4 ESC (GS Hexadecimal Value 14 14 1B 28 1D Decimal Value 20 20 27 40 29 Range 1 < n <
This sequence causes the bar code symbol to be printed according to the previous
12
0 < p < 1
n1 data GS n2 data ... EM
data ... 19
n
1
data... 25
n
1
selection. If you want to print more than one bar code symbol of the same type and height, GS n defines the distance from the beginning of the line or between two bar code symbols in multiples of 1/72 inch. At the end of the line, EM must close this command.
A-68
MMiisscceellllaanneeoouus
s
DC4 DC4 ESC @
Re-initializes the printer. (Compuprint)
ASCII Code DC4 DC4 ESC @ Hexadecimal Value 14 14 1B 40 Decimal Value 20 20 27 64
This command resets the printer mode and clears the buffer of printable data.
DC4 DC4 ESC Y
Selects emulation. (Compuprint)
ASCII Code DC4 DC4 ESC Y Hexadecimal Value 14 14 1B 59 Decimal Value 20 20 27 89 Range
Selects the printer emulation type according to the n parameter value:
n
n
n
n 0
1 2 4
Emulation Default printer emulation
EPSON LQ Series IBM Proprinter XL 24 IBM Proprinter XL 24AGM
A-69
CChhaarraacctteerr SSeetts
This appendix contains the selected character sets and the hexadecimal to decimal conversion table.
s
B-1
CChhaarraacctteerr SSeett 11 ((CCSS11)
00 10 20 30 40 50 60 70 80 90 A0 B0 C0 D0 E0 F0
NUL SP
00 01 02 03 04 05 % 5 E U e u Ñ 06 & 6 F V f v ª 07 08 09 0A 0B 0C 0D 0E 0F
DC1
DC2
DC3
DC4
BEL
BS CAN
HT
LF
VT ESC
FF
CR
SO
SI
0@P’ p
!1AQaq “2BRbr #3CScs $4DTdt
‘7GWgw (8HXhx )9IYiy *:JZjz +;K[k{
,<L\l|
-=M]m}
.>N^n~
/?O_o
)
NUL
DC1
DC2
DC3
DC4
BEL
BS CAN
HT
LF
VT ESC
FF
CR
SO
DEL SI
•••••
á
•••ß±
í
•••••
ó
•••••
ú
•••••
ñ
•••••
•••µ÷
º•••••
¿••••°
•••••·
¬••••·
½•••••
¼•••••
¡••••²
«•••••
»••••
SP
B-2
CChhaarraacctteerr SSeett 22 ((CCSS22)
00 10 20 30 40 50 60 70 80 90 A0 B0 C0 D0 E0 F0
NUL SP
00 01 02 ` 03 04 05 06 07 08
09 0A 0B 0C 0D 0E 0F
DC1
DC2
DC3
DC4
§ %5EUeuàòÑ
BEL
BS CAN
HT
LF
VT ESC
FF
CR
SO
SI
0@P’ p ÇÉá
!1AQaqüæí “ 2BRbréÆó #3CScsâôú $4DTdtäöñ
&6FVf våûª
7GWgwçù (8HXhxêÿ )9IYiyëö *:JZjzèÜ +;K[k{ï ¢
,<L\l|î £
-=M]m}ì¥
.>N^n~Ä
/?O_o
)
•••••
•••ß±
•••••
•••••
•••••
•••••
•••µ ÷
º•••••
¿••••°
•••••·
¬••••·
½•••••
¼•••••
¡••••²
•«•••••
DEL
ƒ»••••
Å
SP
B-3
EEPPSSOONN NNaattiioonnaall VVaarriiaattiioonns
35 36 60 62 64 91 92 93 94 96 105 123 124 125 126 USA #$<>@[\]^`i FRANCE # $ < > à°ç§^ GERMANY # $ < > §ÄÖÜ^ U.K. £ $ < > @ [ \ ] ^ DENMARK 1 # $ < > @ ÆØÅ ^ SWEDEN # ITALY # $ < > @ ° \ é ^ ù i àòèì SPAIN 1 JAPAN # $ < > @ [ ¥ ]^`i NORWAY # DENMARK 2 # $ < > ЙЖШЕЬ и i SPAIN 2 # $ < > á¡Ñ¿è`i íñóú LATIN
AMERICA
½
<>ЙДЦЕЬи i äöâü
$<>@¡Ñ¿^
½
<>ЙЖШЕЬ и i
#$<>á¡Ñ¿éüi íñóú
s
{
|}~
`
i éùè“
`
i äöüß
`
`
`
{
i i
i “ñ}~
|}~
æ
øâ~
{
|}~
æ
øâü
æ
øâü
B-4
IIBBMM NNaattiioonnaall VVaarriiaattiioonns
s
UUSSAA ((CCPP 443377)
00 Ø 01 02 03 04 05 06 07 08
09 ° 0A 0B
0C
0D 0E 0F
)
00 10 20 30 40 50 60 70 80 90 A0 B0 C0 D0 E0 F0
-
/
!!#3CScsâôú
±
l
@
0@P’ p ÇÉá !1AQaqüæ í “ 2BRbréÆó
$4DTdtäöñ %5EUeu àòÑ &6FV f våû ª
7GWgwçù (8HXhxêÿ
)9IYiyëö *:JZjzèÜ +;K[k{ï ¢
,<L\l|î £
-=M]m}ì¥
.>N^n~Ä
/?O_o Å
•«•••••
ƒ»••••
•••••
•••ß±
•••••
•••••
•••••
•••••
•••µ ÷
º•••••
¿••••°
•••••·
¬••••·
½•••••
¼•••••
¡••••²
B-5
GGrreeeekk ((CCPP443377--GG)
00 10 20 30 40 50 60 70 80 90 A0 B0 C0 D0 E0 F0 00 Ø 01 02 03 04 05 06 07 08 09 °
0A 0B
0C
0D 0E 0F
-
/
!! # 3 C S c s
±
l
@
)
0@P’ p
!1AQaq
2BRbr
$4DTdt %5EUeu &6FVf v
7GWgw (8HXhx )9IYiy *:JZjz +;K[k{
,<L\l|
-=M]m}
.>N^n~
/?O_o
ΑΡ ι
ΒΣκ
ΓΤλ
∆Υµ
Εφν
ΖΧξ
ΗΨο
ΘΩπ
Ιαρ
Κβσ
Λγς
Μδ τ
Νευ
Ξξ♥
Οηχ
Πθψ
•••
•••α±
•••H
•••K
•••L
•••L
•••R÷
•••X
•••X°
•••
•••
•••(
•••Η•
•••Ι²
•••Ο•
•••
Z
Z
$
γ
o
£ ¥
B-6
MMuullttiilliinngguuaall ((CCPP 885500)
00 10 20 30 40 50 60 70 80 90 A0 B0 C0 D0 E0 F0 00 Ø 01 02 03 04 05 06 07 08 09 °
0A 0B
0C
0D 0E 0F
-
/
@
!1AQaqüæí
2BRbréÆó
!! # 3 C S c s âôú
$4DTdtäöñ
%5EUeuàòÑÁ•¹Õ§
±
&6FVf våûªÂâ Í
7GWgwçù°ÀÃ Îþ ¸
(8HXhxêÿ¿©
)9IYiyëÖ®
*:JZjzèܬ
+;K[k{ïø½
,<L\l|î £ ¼
l
-=M]m}ìØ¡ ¢
.>N^n~Ä׫¥
/?O_o Ń»
)
0@P’ p ÇÉá
••
••
••
••
••
•••
•••
•••
•••
ðÓ– Ðß ÊÔ_ ËÒ¾ Èõ¶
ÏÞ
¦Ý
̯
¤
±
÷
µ
°
Ú¨ Û· Ù¹
ý³
²
B-7
GGrreeeekk ((CCPP 885511)
00 10 20 30 40 50 60 70 80 90 A0 B0 C0 D0 E0 F0
00 Ø
-
01
/
02
03
04
05
06
07
08 09 °
0A 0B
0C
0D 0E
@
0F
)
!! # 3 C S c s
±
l
0@P’ p Ç I
!1AQaqü’ι
2BRbr
$4DTdt %5EUeu &6FVf v
7GWgw (8HXhx )9IYiy *:JZjz +;K[k{
,<L\l|
-=M]m}
.>N^n~
/?O_o
ι
ΓΤ
∆Υ
Εφ
ΖΧ
ΗΨο
ΘΩπ
Ιαρ
Κβσ
Λγς
Μδ τ
Νευ
Ξξ♥
Οηχ
Πθψ
ó ú ñ Ñ
•••
•••α±
•••H
•••K
•••L
•••L
•••R÷
•••X
•••X°
•••
•••
•••(
•••Η•
•••Ι²
•••Ο•
•••
Z
Z
$
γ
o
£ ¥
B-8
EEaasstteerrnn EEuurrooppee ((CCPP 885522)
)
B-9
TTuurrkkiisshh ((CCPP 885533)
)
B-10
CCyyrriilllliicc ((CCPP 885555)
)
B-11
TTuurrkkiisshh ((CCPP 885577)
)
B-12
EEuurroo PPCC MMuullttiilliinngguuaall ((CCPP 885588)
)
B-13
PPoorrttuuggaall ((CCPP 886600)
)
B-14
HHeebbrreeww ((CCPP 886622)
)
B-15
FFrraannccee//CCaannaaddaa ((CCPP 886633)
)
B-16
AArraabbiicc ((CCPP 886644)
)
B-17
DDeennmmaarrkk//NNoorrwwaayy ((CCPP 886655)
)
B-18
RRuussssiiaann ((CCPP 886666)
)
B-19
TTuurrkkiisshh 22 ((CCPP 886677)
)
B-20
OOCCRR-- AA ((CCPP 887766)
)
B-21
OOCCRR-- BB ((CCPP 887777)
)
B-22
CCeennttrraall EEuurrooppee ((CCPP 11225500)
)
B-23
CCyyrriilllliicc ((CCPP 11225511)
)
B-24
WWiinnddoowwss LLaattiinn 11 AAnnssii ((CCPP 11225522)
)
B-25
GGOOSSTT ((RRuussssiiaann)
)
B-26
TTAASSSS ((CCyyrriilllliicc)
)
B-27
MMAAZZOOWWIIA
A
B-28
IISSOO 88885599//11 ((LLaattiinn 11)
)
B-29
IISSOO 88885599//22 ((LLaattiinn 22)
)
B-30
Loading...