Compuprint MDP 30FB Programmer's Manual

M
DPP 3300FF
M
D
B
Prr
P
o
o
grr
g
a
a
m
m
m
m
err
e
M
M
a
a
n
n
u
u
all
a
Rev. 003

Table of Contents

Introduction ............................................................................2
Command Summary in
Alphabetical Order................................................................3
EPSON/IBM Mode..................................................................9
Print and Line Feed Execution ........................9
Format Control.................................................12
Print Mode ........................................................36
Character Set....................................................59
Download Character........................................67
Bit-Image...........................................................73
Data Input Control.......................................... 83
Miscellaneous................................................... 87
COMPUPRINT Mode......................................................... 92
Format Control................................................ 92
Native Character Set ...................................... 95
Bar Codes ......................................................... 98
Bar Code Description....................................101
Miscellaneous................................................. 113
1
IInnttrroodduuccttiioonn
This appendix provides information about the commands supported by your printer. The commands are organized by function groups. Each command has both a bri ef and a detailed description.
Each command has the following structure:
Name and function description. Information about protocol (IBM Proprinter XL24E, IBM Personal 2391, EPSON ESC/P2)
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.
2
CCoommmmaanndd SSuummmmaarryy iinn AAllpphhaabbeettiiccaall OOrrddeerr
BEL Buzzer. (EPSON) 87 BS Print and space back one position. (IBM, EPSON) 87 CAN Cancels line. (EPSON) 83 CAN Cancels data. (IBM) 83 CR Prints all received data and the column counter is set to the left margin.
(IBM,EPSON) DC1 Selects printer. (IBM) 84 DC1 Selects printer. (EPSON) 84 DC2 Sets 10 cpi printing. (IBM) 36 DC2 Cancels compressed printing. (EPSON) 36 DC3 Deselects printer. (EPSON) 84 DC4 Cancels double width printing. (IBM, EPSON) 37 DC4 DC4 E SC ! Bar Code Selection 98 DC4 DC4 ESC (GS Prints bar code symbols (Compuprint) 113 DC4 DC4 E SC @ Re-initializes the printer. (Compuprint) 113 DC4 DC4 ESC 3 1 Sets vertical spacing 12 lines/30 mm. (Compuprint) 92 DC4 DC4 ESC 3 3 Sets vertical spacing to 3 lines/30 mm. (Compuprint) 92 DC4 DC4 ESC 3 4 Sets vertical spacing 4 lines/30 mm. (Compuprint) 93 DC4 DC4 ESC 3 6 Sets vertical spacing 6 lines/30 mm. (Compuprint) 93 DC4 DC4 ESC 3 8 Sets vertical spacing 8 lines/30 mm. (Compuprint) 93 DC4 DC4 ESC A Sets the horizontal spacing to 15, 17, 20, 24 CPI. (Compuprint) 94 DC4 DC4 E SC DC4 Printer functions. 119
9
DC4 DC4 E SC g Selects LQ fonts (Compuprint). 95 DC4 DC4 E SC J Set s amplification factor. (Compuprint) 114
3
DC4 DC4 ESC R String rotation. (Compuprint) 115 DC4 DC4 E SC r Digit rot ation. (Compuprint) 115 DC4 DC4 ESC S Selects character set ISO Character Sets or Code Pages. (Compuprint) 96 DC4 DC4 ESC u Selects the program setups. (Compuprint) 117 DC4 DC4 ESC VT Search for a blank line (without any marker). (Compuprint) 118 DC4 DC4 E SC X Reads the id of the cut sheets. (Compuprint) 118 DC4 DC4 E SC Y Selects emulation. (Compuprint) 116 DC4 DC4 ESC Z Makes AGA in column. (Compuprint) 117 DEL Deletes the last character. (EPSON) 85 ESC - Sets or cancels underlined printing. (IBM, EPSON) 37 ESC ! Master Select. (EPSON) 38 ESC # Cancels MSB control. (EPSON) 85 ESC $ Sets the absolute printing position. (EPSON) 12 ESC % Selects user-defined character set. (EPSON) 67 ESC & Defines user-defined characters. (EPSON) 68 ESC ( - Sets score line. (EPSON) 39 ESC ( ^ Prints data as characters. (EPSON) 59 ESC ( c Sets Page Format. (EPSON) 14 ESC ( G Selects Graphics Mode. (EPSON) 73 ESC ( t Assigns character table. (EPSON) 60 ESC ( U Sets units. (EPSON) 16 ESC ( V Sets absolute vertical print position. (EPSON) 17 ESC ( v Sets relative vertical print position. (EPSON) 18 ESC (C Sets page length in defined unit. (EPSON) 13 ESC * Sets dot graphics printing. (EPSON) 73
4
ESC . Print Raster Graphics. (EPSON) 75 ESC : Sets 12 CPI. (IBM) 40 ESC : Copies characters from ROM to RAM. (EPSON) 69 ESC ? Reassigns dot graphics mode. (EPSON) 76 ESC @ Initializes the printer. (EPSON) 88 ESC [ @ Sets double high printing and double line feed. (IBM) 40 ESC [ \ Sets vertical units. (IB M) 20 ESC [ g High Resolution Graphics. (IBM) 77 ESC [ I Sets font and pitch of a character. (IBM 2391 only) 42 ESC [ K Sets initial conditions. (IBM 2391 only) 89 ESC [ T Selects a Code page. (IBM 2391 only) 61 ESC [d Set the print quality. (IBM 2391 only) 42 ESC \ Sets the relative horizontal print position. (EPSON) 20 ESC \ Prints characters from all characters table. (IBM) 63 ESC ] Sets a reverse line feed. (IBM) 10 ESC ^ Prints a single character from the all characters table. (IBM) 63 ESC _ Sets or cancels overscore printing. (IBM mode) 45 ESC + Sets n/360-inch line spacing. (EPSON) 22 ESC = Defines downloaded characters. (IBM) 70 ESC = Sets MSB to 0. (EPSON) 85 ESC > Sets MSB to 1. (EPSON) 86 ESC 0 Selects 1/8-inch line spacing. (IBM, EPSON) 22 ESC 1 Selects 7/72-inch line spacing. (IBM) 22 ESC 2 Selects 1/6-inch line spacing. (EPSON) 23 ESC 2 Enables the line spacing set by ESC A command. (IBM) 23
5
ESC 3 Sets n/180-inch line spacing. (EPSON) 23 ESC 3 Sets graphics line spacing at n/216 inch. (IBM) 24 ESC 4 Sets top of form (first printable line). (IBM) 24 ESC 4 Sets italics printing mode. (EPSON) 45 ESC 5 Sets an automatic line feed after a carriage return. (IBM) 10 ESC 5 Cancels italics printing. (EPSON) 46 ESC 6 Enables Upper Control Codes. (EPSON) 64 ESC 7 Selects the Character Set 1. (IBM) 64 ESC 7 Enables Upper Control Codes. (EPSON) 64 ESC A Sets text line spacing at n/60 inch. (EPSON) 25 ESC A Sets text line spacing at n/72 inch. (IBM) 25 ESC B Sets vertical tabs. (IBM, EPSON) 26 ESC C Sets form length to n lines. (IBM, EPSON) 27 ESC c Sets horizontal motion index (HMI). (IBM, EPSON) 46 ESC C 0 Sets form length to n inches. (IBM, EPSON) 26 ESC D Sets horizontal tabs. (IBM, EPSON) 27 ESC d Spaces forwards relative dot position. (IBM) 28 ESC E Sets emphasized printing. (IBM, EPSON) 47 ESC EM Loading/ejection of paper. (EPSON) 28 ESC F Cancels emphasized printing. (IBM, EPSON) 47 ESC G Sets double strike printing. (IBM, EPSON) 48 ESC g Sets 15 CPI. (EPSON) 48 ESC H Cancels double strike printing. (IBM, EPSON) 48 ESC I Selects printing type for resident and DLL characters. (IBM) 49 ESC J Advances paper n/180 inch. (EPSON) 11
6
ESC J Graphics variable line spacing (n/216 inch). (IBM) 29 ESC k Selects LQ fonts. (EPSON) 65 ESC K Normal density dot graphics printing (60 dpi). (IBM, EPSON) 79 ESC l Sets left margin (10 cpi). (EPSON) 29 ESC L Double density dot graphics printing (120 dpi). (IBM, EPSON) 80 ESC M Selects 10.5 point, 12 cpi. (EPSON) 50 ESC N Sets the skipover perforation to n lines. (IBM, EPSON) 30 ESC O Disables the skipover perforation. (IBM, EPSON) 31 ESC P Selects 10.5 point, 10 cpi. (EPSON) 50 ESC P Sets or cancels proportional printing. (IBM) 51 ESC p Sets or cancels proportional printing. (EPSON) 51 ESC Q Sets the right margin (10 cpi). (EPSON) 31 ESC q Selects character style. (EPSON) 52 ESC Q Deselects Printer. (IBM) 86 ESC R Sets all tabs to power-on settings. (IBM) 32 ESC R Selects an international character set. (EPSON) 66 ESC S Sets subscript or superscript printing. (IBM, EPSON) 53 ESC SI Selects condensed mode. (IBM, EPSON) 54 ESC SO Sets double width printing (one line). (IBM, EPSON) 54 ESC SP Sets intercharacter space. (EPSON) 33 ESC T Cancels subscript or superscript printing. (IBM, EPSON) 55 ESC t Selects characters table. (EPSON) 66 ESC U Sets printing direction. (IBM, EPSON) 91 ESC W Sets or cancels double width printing. (IBM, EPSON) 55 ESC w Sets or cancels double height printing. (EPSON) 56
7
ESC X Sets left and right margins. (IBM) 33 ESC X Selects font by pitch and point. (EPSON) 56 ESC x Selects Letter Quality or Draft printing. (EPSON) 57 ESC Y Double density dot graphics printing at double-speed graphics (120
81
virtual dpi). (IBM, EPSON) ESC Z Quadruple density dot graphics printing (240 virtual dpi). (IBM, EPSON) 82 FF Advances paper to the top of the next page. (IBM, EPSON) 34 HT Horizontal Tab. (IBM, EPSON) 34 LF Line Feed. (IBM, EPSON) 11 SI Sets condensed printing. (IBM, EPSON) 58 SO Sets double width printing (one line). (IBM, EPSON) 59 VT Vertical Tab. (IBM, EPSON) 35
8
EEPPSSOONN//IIBBMM MMooddee
This printer according to the IBM Proprinter XL24E, IBM 2391 and EPSON ESC/P2 emulations supports the following printer commands.
PPrriinntt aanndd LLiinnee FFeeeedd EExxeeccuuttiioonn
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
This code is a terminator code; when received, it causes any da ta in the buffer to be printed out. The print head then moves logically to the left margin position. The column counter is set to the left margin value and a line feed is inserted automatically after the carriage return (see the automatic carriage return function in the printer setup). The code resets the double width printing set by SO code.
9
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 data consists of spaces, the code causes only a reverse line feed to be performed. When the line counter is equal to or less than the top of the form value, the ESC ] is ignored.
ESC 5
Sets an automatic line feed after a carriage return. (IBM)
ASCII Code ESC 5 n Hexadecimal Value 1B 35 n Decimal Value 27 53 n
If n is equal to 1, this command sets an automatic line feed on receiving of a CR code. If n is equal to 0, this command cancels the automatic line feed.
n
Automatic line feed
0 Disabled 1 Enabled
10
ESC J
Advances paper n/180 inch. (EPSON)
ASCII Code ESC J n Hexadecimal Value 1B 4A n Decimal Value 27 74 n Range 0 <
n < 255
This is a terminator code; it therefore causes the current contents of the print buffer to be printed out before performing a single line LF of n/180 inch. This command is cancelled after the LF has been performed. The printing will restart after a line feed from the column at which the command was sent.
LF
Line Feed. (IBM, EPSON)
ASCII Code LF Hexadecimal Value 0A Decimal Value
This is a terminator code; it therefore causes the current contents of the print buffer to be printed out before advancing the paper b y one line at the current vertical spacing. If no data precedes the LF code, or if the preceding data consi sts of spaces, the code causes only a line feed.
10
When the line counter reaches the last line of the form (defined by software or function menu), the LF code causes a skip to the first line of the next form or ejects a cut sheet, if loaded. This code cancels the double width printing set by the SO code. In IBM mode, the column counter is set to the first column if the automatic carriage return is selected. In EPSON mode, the column is always set to the first column.
11
FFoorrmmaatt CCoonnttrrooll
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 subsequent characters. The defa ult uni t is 1 /60 inch. The dista nce is i n number of dots and must be calculated using the following formula:
Margin distance = n1 + (n2 x 256) x 1/60” + (left margin)
Where n2 is equal to:
n
n
1 n2
n
1 n2
n
< 255
1
n
< 127
2
1 n2
1
)
defined unit
INIT
[(horizontal position) – (left margin position)]
256
(
x
Where n1 is equal to:
1
)
defined unit
MOD
[(horizontal position) – (left margin position)]
256
(
x
If the selected position is outside the current right margin, the sequence will be ignored.
12
ESC (C
Sets page length in defined unit. (EPSON)
((
d
2
n
1 n2 d1 d2
n
1 n2 d1 d2
n
1 n2 d1 d2
x 256) +
d
) x (defined unit) < 22
1
ASCII Code ESC ( C Hexadecimal Value 1B 28 43 Decimal Value 27 40 67
n n
= 2
1
= 0
2
Range
0 <
This command sets the page length in the specified number of units (the default unit is 1/360 inch), previously defined with the ESC ( U command according to the following formula:
Page length = ((d2 x 256) + d1) x (defined unit)
Where d2 is equal to:
1
defined unit
)
INIT
(page length)
(
x
256
Where d1 is equal to:
1
defined unit
)
MOD
(page length)
(
x
256
Set the page length before paper is loaded or when the print position is at the top-of­form position. Otherwise, the current print position becomes the top-of-form position. Setting the page length cancels the top and bottom-margin settings. If the defined unit is changed it does not affect the current page-length setting.
13
ESC ( c
Sets Page Format. (EPSON)
ASCII Code ESC ( c Hexadecimal Value 1B 28 63 Decimal Value 27 40 99
n n
((
= 4
1
= 0
2
t
2
Range
(defined unit) x ((
This command sets the top and bottom margins in the defined units, set with the ESC ( U command, according to the following formulas:
Top margin = ((t2 x 256) + t1) x (defined unit)
Where t2 is equal to:
n
1 n2 t1 t2 b1 b2
n
n
1 n2 t1 t2 b1 b2
x 256) +
1 n2 t1 t2 b1 b2
t
) < ((
1
b
x 256) +
2
b
x 256) +
2
b
)
1
b
) < 22
1
(top margin)
INIT
Where t1 is equal to:
(top margin)
MOD
x
x
(
256
(
256
1
defined unit
1
defined unit
)
)
14
Bottom margin = ((b2 x 256) + b1) x (defined unit)
Where b2 is equal to:
1
)
defined unit
INIT
(bottom margin)
x
256
(
Where b1 is equal to:
1
)
defined unit
MOD
(bottom margin)
(
x
256
Send this command before paper is loaded or when paper is at the top-of-form position. Otherwise the current print position becomes the top-margin position. Measure both top and bottom margins from the top edge of the page. The baseline for printing characters on the first line is 20/180 inch below the top-margin position.
This command cancels any previous top and bottom-margin settings.
15
ESC ( U
Sets units. (EPSON)
n
ASCII Code ESC ( U Hexadecimal Value 1B 28 55 Decimal Value 27 40 85
n
Range
= 1
1
n
= 0
2
d
= 10, 20, 30, 40, 50,60
This command sets the unit to m/3600 inch. The printer uses this unit when moving the print position, setting the page length and setting the top and bottom margins with the following commands (the default units varies depending on the command and print quality):
Commands Default Unit ESC ( V 1/360 inch
ESC ( v 1/360 inch ESC ( C 1/360 inch ESC ( c 1/360 inch ESC \ (LQ mode) 1/180 inch ESC \ (Draft mode) 1/120 inch ESC $ 1/60 inch
1 n2
n
n
1 n2
1 n2
d
d
d
16
ESC ( V
Sets absolute vertical print position. (EPSON)
d
< 255
1
d
< 127
2
n
1 n2 d1 d2
n
1 n2 d1 d2
n
1 n2 d1 d2
ASCII Code ESC ( V Hexadecimal Value 1B 28 56 Decimal Value 27 40 86
n n
= 2
1
= 0
2
Range
0 < 0 <
This command moves the vertical print position to the position specified by the following formula:
Vertical position = (d2 x 256)+d1) x (defined unit) + (top-margin position) Where d2 is equal to:
INIT
[(vertical position) – (top margin po sition)]
Where d1 is equal to:
MOD
[(vertical position) – (top margin po sition)]
256
256
x
x
17
(
(
1
)
defined unit
1
)
defined unit
The default unit is 1/360 inch. The new position is measured in defined units from the current top-margin position. Moving the print position below the bottom-margin position moves the vertical print position to the top-margin position on the next page ejects a cut sheet, if loaded.
The printer ignores this command if the command would move the print position more than 179/360 inch in the negative direction or if the command would move the print position in the negative direction a fter a graphics command is sent on the current line or above the point where graphics have previously been printed.
ESC ( v
Sets relative vertical print position. (EPSON)
d
< 255
1
d
< 127
2
n
1 n2 d1 d2
n
1 n2 d1 d2
n
1 n2 d1 d2
ASCII Code ESC ( v Hexadecimal Value 1B 28 76 Decimal Value 27 40 118
n
n
= 2
1
= 0
2
Range
0 <
0 <
This command moves the vertical print positi on up or down from the current position, as specified by the following formula
Vertical position = (d2 x 256)+d1) x (defined unit) + (current position) For positive (down) movement:
Where d2 is equal to:
1
)
defined unit
INIT
[(vertical position) – (curre n t position)]
256
x
18
(
Where d1 is equal to:
1
)
defined unit
MOD
[(vertical position) – (curre n t position)]
256
(
x
For negative (left) movement:
Where d2 is equal to:
1
)
defined unit
32768-INIT
[(current position) – (ve r tic al position)]
256
(
x
Where d1 is equal to:
1
)
defined unit
32768-MOD
[(current position) – (ve r tic al position)]
256
(
x
The default unit is 1/360 inch. The new position is measured in defined units from the current position. Moving the print position below the bottom-margin position, it moves the vertical print position to the top-margin position on the next page ejects a cut sheet, if loaded.
The printer ignores this command if this one would move the print position more than 179/360 inch in the negative direction or if the command would move the print position in the negative direction a fter a graphics command is sent on the current line or above the point where graphics have previously been printed. The command would move the print position above the top-margin position.
19
ESC [ \
Sets vertical units. (IBM)
m
ASCII Code ESC [ \ Hexadecimal Value 1B 5B 5C Decimal Value 27 91 92
m
Range
= 4
1
m
= 0
2
t
< 255
0 <
1
t
< 255
0 <
2
t
= 0
3
t
= 180 or 216
4
1 m2
m
m
1 m2
1 m2
t1 … t
t1 … t
t1 … t
4
4
4
This command changes the base units for the graphics line spacing commands (ESC J, ESC 3). The default value is 1/216 or 1/180 inch.
ESC \
Sets the relative horizontal print position. (EPSON)
n
n
< 255
1
n
< 127
2
n
n
1 n2
1 n2
1 n2
ASCII Code ESC \ Hexadecimal Value 1B 5C Decimal Value 27 92 Range 0 <
0 <
This command moves the horizontal print position left or right from the current position as specified by the following formula:
Horizontal position = (n2 x 256) + n1) x (defined unit) + (current position)
20
For positive (right) movement: Where n2 is equal to:
INIT
[(horizontal position) – (current position )]
256
Where n1 is equal to:
MOD
[(horizontal position) – (current position )]
256
For negative (left) movement: Where n2 is equal to:
32768-INIT
[(current position) – (horizontal position)]
256
Where n1 is equal to:
32768-MOD
[(current position) – (horizontal position)]
(
x
(
x
(
x
(
x
1
)
defined unit
1
)
defined unit
1
)
defined unit
1
)
defined unit
256
The default unit is 1/120 inch in Draft mode and 1/180 inch in LQ mode. If it would move the print position outside the printing area, the printer ignores this command.
21
ESC +
Sets n/360-inch line spacing. (EPSON)
ASCII Code ESC + n Hexadecimal Value 1B 2B n Decimal Value 27 43 n Range 0 <
n < 255
This command sets the line spacing to n/360 inch. If the line spacing is changed, it does not affect previous settings for vertical tabs or page length.
ESC 0
Selects 1/8-inch line spacing. (IBM, 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.
22
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.
ESC 2
Enables the line spacing set by ESC A command. (IBM)
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. (EPSON)
ASCII Code ESC 3 n Hexadecimal Value 1B 33 n Decimal Value 27 51 n Range 0 <
n < 255
This command sets the line spacing to n/180 inch. If the line spacing is changed, it does not affect previous settings for vertical tabs or page length.
23
ESC 3
Sets graphics line spacing at n/216 inch. (IBM)
ASCII Code ESC 3 n Hexadecimal Value 1B 33 n Decimal Value 27 51 n Range 0 <
n < 255
This command sets graphics line spacing at n default unit defined by the ESC [ \ command. To move exactly n/216 inch, n must be an integer multiple of 3.
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.
24
ESC A
Sets text line spacing at n/60 inch. (EPSON)
ASCII Code ESC A n Hexadecimal Value 1B 41 n Decimal Value 27 65 n Range 0 <
n < 85
This command changes the default line spacing to n/60 inch. The new line spacing value is immediately activated.
ESC A
Sets text line spacing at n/72 inch. (IBM)
ASCII Code ESC A n Hexadecimal Value 1B 41 n Decimal Value 27 65 n
This command changes the line spacing to n/72 inch. The line spacing value is stored and activated only after the ESC 2 code is recei ved.
25
ESC B
Sets vertical tabs. (IBM, EPSON)
n
n
ASCII Code ESC B Hexadecimal Value 1B 42 Decimal Value 27 66 Range 1 <
n < 255
1
... nx 00
n
1
... n
n
1
0
x
0
x
In EPSON mode, sets vertical tab stops in the 0 Vertical Format Unit (VFU) channel. This code sets up to 16 vertical tab stops at the line specified by n1, n2 and so on in the 0 VFU channel. The tab stops are memorized as physical positions.
In IBM modes, this code sets up to 64 vertical tab stops at the line number specified by n1, n2 and so on in the 0 VFU channel. The line at top of form is line 1. The tab stops are memorized as logical positions.
ESC C 0
Sets form length to n inches. (IBM, EPSON)
ASCII Code ESC C 0 n Hexadecimal Value 1B 43 00 n Decimal Value 27 67 0 n Range 1 <
This command sets the form length to the number of inches specified by n. The current position of the paper is assumed as top of form. Setting the paper length cancels the top and bottom-margin settings.
n < 22
26
ESC C
Sets form length to n lines. (IBM, EPSON)
ASCII Code ESC C n Hexadecimal Value 1B 43 n Decimal Value 27 67 n Range 1 <
This command sets the form length to the number of lines specified by n at the current vertical spacing. The current position of the paper is assumed as top of form.
n < 127
ESC D
Sets horizontal tabs. (IBM, EPSON)
n
n
n
1 n2
1 n2
nx 0
1 n2
nx 00
nx 0
ASCII Code ESC D Hexadecimal Value 1B 44 Decimal Value 27 68 Range 1 <
n < 255
This sequence sets up to 28 (IBM mode) or 32 (EPSON mode) horizontal tab stops after canceling the current setting. The n1 to nx parameters specify the number of columns at which horizontal tab stops are required and must be entered in the sequence in ascending numerical order. Any value outside this range will be ignored.
In IBM mode, the tab stop position is memorized as logical position in the page so that it is affected by changing the horizontal spacing. The columns are numbered 1 through
93. 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.
27
ESC d
Spaces forwards relative dot position. (IBM)
n
1
n
n , n
1 n2
n
1 n2
1 n2
< 255
2
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 the right of its current dot position. If the selected positi on is outside the current right margin, it is forced to the last column.
ESC EM
Loading/ejection of paper. (EPSON)
ASCII Code ESC EM n Hexadecimal Value 1B 19 n Decimal Value
27 25 n
This command controls the fanfold and cut sheet feeding according to the pa rameters below:
n
Description
0, R Cut Sheet Ejection 8 Current Paper Parking 9 Current Paper Loading
The parameter “R” ejects the currently loaded cut sheet without printing data from the line buffer.
28
ESC J
Graphics variable line spacing (n/216 inch). (IBM)
ASCII Code ESC J n Hexadecimal Value 1B 4A n Decimal Value
This command advances the paper in units of n/216 inch. The printer does not store graphics line spacing. You must send this command to the printer each time.
27 74 n
ESC l
Sets left margin (10 cpi). (EPSON)
ASCII Code ESC l n Hexadecimal Value 1B 6C n Decimal Value 27 108 n Range 0 <
n < 255
This code sets the le ft margi n at the current horizontal spacing. I t 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 values, as shown in the following table.
Character Width Horizontal Spacing Range of columns
Double Width
Normal
5 0 < 6 cpi 0 <
7.5 cpi 0 <
8.5 cpi 0 < 10 cpi 0 < 10 cpi 0 < 12 cpi 0 < 15 cpi 0 < 17 cpi 0 < 20 cpi 0 <
29
< 67
n
< 80
n
< 100
n
< 114
n
< 134
n
< 134
n
< 160
n
< 201
n
< 229
n
< 255
n
ESC N
Sets the skipover perforation to n lines. (IBM, EPSON)
ASCII Code ESC N n Hexadecimal Value 1B 4E n Decimal Value 27 78 n Range 1 <
n < 127 (EPSON mode) n < 225 (IBM mode)
1 <
The skipover perforation is the sum of top and bottom marg ins values at the selected 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 the 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:
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
30
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 comma nd, 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 cancel led 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 n Hexadecimal Value 1B 51 n Decimal Value 27 81 n Range 1 <
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, as shown in the following table:
n < 255
31
Character Width Horizontal Spacing Range of columns Double Width
Normal
5 cpi 1 < 6 cpi 2 <
7.5 cpi 2 <
8.5 cpi 2 < 10 cpi 2 < 10 cpi 2 < 12 cpi 4 < 15 cpi 4 < 17 cpi 4 < 20 cpi 4 <
n
n n n n n n n n n
< 68
< 81 < 102 < 116 < 136 < 136 < 163 < 204 < 233 < 255
Any value outside the accepted range is ignored a nd the previous setting remains in effect. The right margin must be greater than the left margin. The physical position set for the right margin does not change if the horizontal spacing is modified.
ESC R
Sets 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.
32
ESC SP
Sets intercharacter space. (EPSON)
ASCII Code ESC SP n Hexadecimal Value 1B 20 n Decimal Value 27 32 n Range 0 <
n < 127
This command sets the intercharacter space to n/120 inch in Draft printing and n/180 inch in Quality printing.
ESC X
Sets left and right margins. (IBM)
ASCII Code ESC X Hexadecimal Value 1B 58 Decimal Value 27 88 Range 0 <
This command specifies left and right margin positions. The n1 and n2 parameters indicate respectively the number of columns for the left and right margins at the current spacing. These margins are memorized in terms of a bsol ute displacement from the physical left edge of the page.
n
1 n2
n
1 n2
n
1 n2
n
< 255
1, n2
If n1 is equal to 0, the current left margin of the page is used. 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 for the right margin will be set.
33
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 all data in the print buffer to be printed out. Then it advances the paper to the first printable line of the next form. The line counter is set to the first line value and the column counter is set to the left margin value. This code cancels the double width printing set by SO code.
HT
Horizontal Tab. (IBM, EPSON)
ASCII Code HT Hexadecimal Value 09 Decimal Value 9
This code moves logically the print carriage to the next horizontal tab 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 positi on 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
34
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.
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 fol low 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 b y SO or ESC SO command.
35
PPrriinntt MMooddee
DC2
Sets 10 cpi printing. (IBM)
ASCII Code DC2 Hexadecimal Value 12 Decimal Value 18
This is a terminator code. It causes a ll data present in the print buffer to be printed. This command is accepted at any position wi thin 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 a ll data present i n the print b uffer to be printed. 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
36
DC4
Cancels double width printing. (IBM, EPSON)
ASCII Code DC 4 Hexadecimal Value 14 Decimal Value 20
This code cancels the doub le width pri nting set by SO or ESC SO code. It ha s no effect if the ESC W or ESC has set double width commands.
ESC -
Sets or cancels underlined printing. (IBM, EPSON)
ASCII Code ESC - n Hexadecimal Value 1B 2D n Decimal Value 27 45 n
Enables or disables the underlined printing. See the following table:
n
Underlined Printing
1 enabled 0 disabled
37
ESC !
Master Select. (EPSON)
ASCII Code ESC ! n Hexadecimal Value 1B 21 n Decimal Value 27 33 n Range 0 <
This command selects a ny combination of several attributes. The parameter n is the sum up of the printing style values to be used. See the following table:
n < 255
n
Style
0 10 cpi 1 12 cpi 4 Compressed 8 Emphasized 16 Double Strike 32 Double Width 64 Italic 128 Underlined
To print the desiderated combinati on of printing attri butes, calcula te the n parameter by adding up the values of each attribute.
38
ESC ( -
Sets score line. (EPSON)
n
ASCII Code ESC ( ­Hexadecimal Value 1B 28 2D Decimal Value 27 40 45
n
Range
1
n
2
m
1 <
d
2
= 3 = 0
= 1
d
= 1
< 3
1
This command enables/disables scoring of all characters and spaces following this command according to the following pa rameters:
d1 Line 1 Underline
2 Strikethrough 3 Overscore
d
Line
2
1 n2
n
n
1 n2
1 n2
m d1 d
m d1 d
m d1 d
2
2
2
0 Cancel score line 1 Single continuous line 2 Double continuous line 5 Single broken line 6 Double broken line
Any combination of scoring may be set simultaneously. Each type is independent of other types. Graphics characters are not scored.
39
ESC :
Sets 12 CPI. (IBM)
ASCII Code ESC : Hexadecimal Value 1B 3A Decimal Value 27 58
This is a terminator code. It causes a ll 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 [ @
Sets double high printing and double line feed. (IBM)
ASCII Code ESC [ @ Hexadecimal Value 1B 5B 40 Decimal Value 27 91 64
l
=normally 4
h
= normally 0
m
= 0
1
m
= 0
2
This command sets height, width and vertical spacing. The l and h parameters specify the number of mode bytes mx contained in the sequence. The m3 and m4 parameters specify the printing characteristics.
l h m
l h m
l h m
1 m2 m3 m4
1 m2 m3 m4
1 m2 m3 m4
m3 controls both the line spa cing 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 controls the character height.
40
m
Character Height Line Spacing
3
0 No change No change 1 Standard character height Line feeds unchanged 2 Double character height Line feeds unchanged 16 Character height unchanged Normal line feeds 17 Standard character height Normal line feeds 18 Double character height Normal line feeds 32 Character height unchanged Double line feeds 33 Standard character height Double line feeds 34 Double character height Double line feeds
m
specifies the character width. Only the low-order half-byte is significant in this
4
mode byte. The high-order half-byt e is ignored.
m
Character Width Line Spacing
4
0 No change No change 1 Standard width character No change 2 Double width character No change
41
ESC [d
Set the print qualit y. (IB M 2391 only)
ASCII Code ESC [ d Hexadecimal Value 1B 5B 64 Decimal Value 27 91 100
This command sets the print quality to draft or LQ print. See the following table:
n
0 No change From 1 to 127 Draf t From 128 to 254 Letter Quality 255 Default Quality
Types
1 0 n
01 00 n
1 0 n
ESC [ I
Sets font and pitch of a character. (IBM 2391 only)
ASCII Code ESC [ I Hexadecimal Value 1B 5B 49 Decimal Value 27 91 73
2 0 m n
02 00 m n
2 0 m n
This command allows modifying the font and pitch type style of a character. The values 2 and 0 are constants. If font lock and pitch lock are active, this command
is ignored. To select the values for the v ariables m and n, which identify the pitch and the font type style to use, refer to the table below.
42
1. Identify the type style (pitch and font) to use in the left column (pitch).
2. Fo r the hexadecimal v alues for m n, look across the row to the second column (Hex m n).
3. For the decimal values for m n, look across the row to the third column (Decimal m n).
Substitute these values for m n in the printer command syntax.
Pitch Hexadecimal Decimal Decimal Value
m
n
m
n
(m x 256 + n)
Courier
10 00 0B 0 11 11 12 01 EB 1 235 491 15 01 EC 1 236 492 17 01 ED 1 237 493 20 01 EE 1 238 494 24 01 1E 1 30 286 PS 00 AB 0 171 171
Prestige
10 00 0C 0 12 12 12 01 FE 1 239 495 15 01 OF 1 240 496 17 01 C9 1 201 457 20 01 CA 1 202 458 24 01 1F 1 31 287 PS 00 A4 0 164 164
43
Gothic
10 00 24 0 36 36 12 01 8F 1 143 399 15 01 8E 1 142 398 17 01 8D 1 141 397 20 01 8C 1 140 396 24 01 20 1 32 288 PS 01 AE 1 174 174
Presentor
10 00 19 0 25 25 12 01 D0 1 208 464 15 01 D1 1 209 465 17 01 D2 1 210 466 20 01 D3 1 211 467 24 01 23 1 35 291 PS 00 C7 0 199 199
Script
10 01 D4 1 212 468 12 01 D5 1 213 469 15 01 D6 1 214 470 17 01 D7 1 215 471 20 01 D8 1 216 472 24 01 24 1 36 292 PS 00 C8 0 200 200
44
ESC _
Sets or cancels overscore printing. (IBM mode)
ASCII Code ESC _ n Hexadecimal Value 1B 5F n Decimal Value 27 95 n
Enables or disables the overscore printing. See the following table:
n
Overscore Printing
1 Enabled (all spaces and characters that follow are overscored) 0 Disabled
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.
45
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 c
Sets horizontal motion index (HMI). (IBM, EPSON)
n
< 4
2
n
< 255
1
n
3.00
n
n
2
n
1 n2
1 n2
1 n2
x 256) +
inches
n
)) < 1080
1
ASCII Code ESC c Hexadecimal Value 1B 63 Decimal Value 27 99 Range 0 <
0 < 0 < (( HMI <
This command fixes the character width (HMI) according to the following formula:
Where HMI is equal to:
[(n
x
2
256 ) + n
360
]
1
inch
Where n2 is equal to:
INT
HMI x 360
256
46
Where n1 is equal to:
MOD
HMI x 360
256
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 horizontal ly.
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.
47
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 printing. ESC G must be canceled by ESC H.
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. This command resets the horizontal motion index (HMI) set with the ESC c command. If you change the pitch during proportiona l 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 printing with the ESC G command.
48
ESC I
Selects printing type for resident and DLL characters. (IBM)
ASCII Code ESC I n Hexadecimal Value 1B 49 n Decimal Value 27 73 n
This command selects the resident or the download font in D raft o LQ printing mode. It is ignored if you select a font that has not been downloaded or has been overwritten. See the following table:
n
Resident font
0 Draft 10 cpi 2 LQ 10 cpi 3 Proportional 8 Draft 12 cpi 10 LQ 12 cpi 16 Draft 17 cpi 18 LQ 17 cpi
n
Download font
4 Draft 10 cpi 6 LQ 10 cpi 7 Proportional 12 Draft 12 cpi 14 LQ 12 cpi 20 Draft 17 cpi 22 LQ 17 cpi
49
ESC M
Selects 10.5 point, 12 cpi. (EPSON)
ASCII Code ESC M Hexadecimal Value 1B 4D Decimal Value 27 77
This command selects 10.5-point, 12-cpi character printing. It resets the horizontal motion index (HMI) set with the ESC c command. If you change the pitch during proportional mode (selected with the ESC p command) the cha nge takes effect when the printer exits proportional mode.
ESC P
Selects 10.5 point, 10 cpi. (EPSON)
ASCII Code ESC P n Hexadecimal Value 1B 50 n Decimal Value 27 80 n
This command selects 10.5-point, 10-cpi character printing. It resets the horizontal motion index (HMI) set with the ESC c command. If you change the pitch during proportional mode (selected with the ESC p command) the cha nge takes effect when the printer exits proportional mode.
50
ESC P
Sets or cancels proportional printing. (IBM)
ASCII Code ESC P n Hexadecimal Value 1B 50 n Decimal Value 27 80 n
This code is a terminator code; when received i t causes all data in the print buffer to 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 n Hexadecimal Value 1B 70 n Decimal Value 27 112
This command selects the proportional or fixed spacing according to the following values:
n
n
Proportional Printing
0 Returns to current fixed character pitch 1 Selects proportional character spacing
51
It resets the horizontal motion index (HMI) set with the ESC c command. 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.
ESC q
Selects character style. (EPSON)
ASCII Code Hexadecimal Value 1B 71 n Decimal Value 27 113 n Range 0 <
ESC q n
n < 3
This command enables/disables outline and shadow printing according to the parameters below:
n
Style
0 Normal 1 Outline 2 Shadow 3 Outline with Shadow
52
ESC S
Sets subscript or superscript printing. (IBM, EPSON)
ASCII Code ESC S n Hexadecimal Value 1B 53 n Decimal Value 27 83 n
Selects the subscript or the superscript printing. See the following table:
n
Selection
1 Subscript Print enabled 0 Superscript Print enabled
The proportional printing of the subscri pt or superscript characters is performed at 2/3 of the proportional character width. Use the ESC T command to cancel super/subscript printing.
53
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
17.14 CPI 20 CPI ½ width
DC2 code cancels the condensed printing. This command resets the horizontal motion index (HMI) set with the ESC c command.
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. This command resets the horizontal motion index (HMI) set with the ESC c command.
54
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.
ESC W
Sets or cancels double width printing. (IBM, EPSON)
ASCII Code ESC W n Hexadecimal Value 1B 57 n Decimal Value 27 87 Range 0 <
Enables or disables the double width printing. See the following table:
n
Selection
n
n < 1
1 Double Width Printing enabled 0 Double Width Printing disabled
55
ESC w
Sets or cancels double height printing. (EPSON)
ASCII Code ESC w n Hexadecimal Value 1B 77 n Decimal Value 27 119 Range 0 <
n
n < 255
Enables or disables the double-height printing of all characters. The first line of a page is 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
Selection
1 Double Height Printing enabled 0 Double Height Printing disabled
ESC X
Selects font by pitch and point. (EPSON)
ASCII Code ESC x Hexadecimal Value 1B 58 Decimal Value 27 88 Range 5 <
0 < 0 <
m n
1 n2
m n
1 n2
m n
1 n2
m < 127
n
< 255
1
n
< 127
2
This command puts the printer in scalable font mode and selects the pitch (default value 10 cpi) of the font according to the fol lowing formula:
56
Where m defines the pitch:
m = 0 maintains current density m = 1 sets proportional spacing m > 5 selects fixed pitch equal to 360/m cpi
This command overrides the current pitch setting. This command selects the point (default value 10.5) attributes of the font according to
the following formula:
Point size =
n
(
x 256) +
2
n
1
2
n1 and n2 define size by point (1 point equals 1/72 inch).
n
= INT
2
n
= MOD
1
(point size) x 2
256
(point size) x 2
256
The point sizes available are the following: 8, 10, (10.5), 12, 14, 16, 18, 20, (21), 22, 24, 26, 28, 30, 32.
ESC x
Selects Letter Quality or Draft printing. (EPSON)
ASCII Code ESC x n Hexadecimal Value 1B 78 n Decimal Value 27 120 n
This command selects either LQ or Draft printing according to the following values:
57
n
Selection
0 Draft printing 1 Letter Quality printing
If you select proportiona l spacing with the ESC p command during D raft printing, the printer prints an LQ font instead. When you ca ncel proportional spacing with the ESC p command, the printer returns to Draft printing.
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. This command resets the horizontal motion index (HMI) set with the ESC c command.
58
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 SSeett
ESC ( ^
Prints data as characters. (EPSON)
n
< 255
1
n
< 127
2
n
n
n
ASCII Code ESC ( ^ Hexadecimal Value 1B 28 5E Decimal Value 27 40 94 Range 0 <
0 <
This command prints data bytes d1 through dk as characters not control codes. The amount of data to be sent is calculated as follows:
. d
. d
. d
k
k
k
1 n2 d1
1 n2 d1
1 n2 d1
k = ((n2 x 256) + n1)
59
Where n2 is equal to:
INIT
k
256
Where n1 is equal to:
MOD
k
256
The printer ignores data if no character is a ssigned to that character code in the currently selected character table.
ESC ( t
Assigns character table. (EPSON)
ASCII Code ESC ( t Hexadecimal Value 1B 28 74 Decimal Value 27 40 116
n n
= 3
1
= 0
2
Range
This command assigns the d2 registered character table to the d1 character table according to the following values:
n
1 n2 d1 d2 d3
n
1 n2 d1 d2 d3
n
1 n2 d1 d2 d3
:
d
1
0 character set 0 Italic default 1 character set 0 Graphic default 2 character set 0 DLL default 3 character set 0 Graphic default
60
d
d
2
3
d
2
d
3
1 0 PC 437 15 0 PC867 1 16 PC 437 G 25 0 PC877 3 0 PC850 x x GOST 4 0 PC851 x x TASS 5 0 PC853 29 1 8859/1 6 0 PC855 29 2 8859/2 7 0 PC860 29 3 8859/3 8 0 PC863 29 4 8859/4
9 0 PC865 29 5 8859/5 10 0 PC852 29 6 8859/6 11 0 PC857 29 7 8859/7 12 0 PC858 29 8 8859/8 13 0 PC864 29 9 8859/9 14 0 PC866 29 15 8859/15
x x PC862
ESC [ T
Selects a Code page. (IBM 2391 only)
ASCII Code ESC [ T Hexadecimal Value 1B 5B 54 Decimal Value 27 91 84 4
4 0 0 0 HC L.c
04 00 00 00 Hc Lc
0 0 0 Hc Lc
This sequence allows changi ng the current code page. If an unavailable code page is specified, this command is ignored.
The digits 04 00 00 00 (hexadecimal) and 4 0 0 0 (decimal) are constant.
61
To calculate Hc Lc for a code page tha t 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.
Hc Lc Hc Lc 1 181 CP437 3 108 CP 876
33 122 CP437G 3 109 CP877 3 82 CP850 33 124 GOST 3 83 CP851 33 125 TASS 3 84 CP852 33 143 8859/1 3 85 CP853 33 144 8859/2 3 87 CP855 33 145 8859/3 3 89 CP857 33 146 8859/4 3 90 CP858 33 147 8859/5 3 92 CP860 33 148 8859/6 3 94 CP862 33 149 8859/7 3 95 CP863 33 150 8859/8 3 96 CP864 33 151 8859/9 3 97 CP865 3 155 8859/15 3 98 CP866 3 99 CP867
62
ESC \
Prints characters from all characters table. (IBM)
ASCII Code ESC \ Hexadecimal Value 1B 5C Decimal Value 27 92 Range 0 <
0 <
n
1 n2
n
1 n2
n
1 n2
n
255
<
1
n
255
<
2
This command prints the next n1 + n2 x 256 characters from the table of all printable 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 ^ n Hexadecimal Value 1B 5E n Decimal Value 27 94 n Range 0 <
n < 255
This command prints the next character from the all characters table. This sequence prints only one character from the all character table.
63
ESC 6
Enables Upper Control Codes. (EPSON)
ASCII Code ESC 6 Hexadecimal Value 1B 36 Decimal Value 27 54
This command enables the printing of upper control codes (from 128 to 159). These codes are treated as pri ntable characters instead of control codes. This command ha s no effect when the italic character table is selected and remains in effect even if you change the character table.
ESC 7
Selects the Character Set 1. (IBM)
ASCII Code ESC 7 Hexadecimal Value 1B 37 Decimal Value 27 55
This command selects the character set 1.
ESC 7
Enables Upper Control Codes. (EPSON)
ASCII Code ESC 7 Hexadecimal Value 1B 37 Decimal Value 27 55
This command enables the printing of upper control codes (from 128 to 159). These codes are treated as control codes instead of printable characters This command remains in effect even if you change the character tab le.
64
ESC k
Selects LQ fonts. (EPSON)
ASCII Code ESC k n Hexadecimal Value 1B 6B n Decimal Value 27 107 n
Selects one of the available fonts in Letter Quality mode. See the following table:
n
Types
0 Courier 1 Gothic 2 Courier 3 Prestige 4 Script 5 OCR-B 6 OCR-A 7 Presentor 11 Boldface
If the Draft mode is selected when this command is sent, the new LQ font will be selected when the printer returns to LQ printing.
65
ESC R
Selects an international character set. (EPSON)
ASCII Code ESC R n Hexadecimal Value 1B 52 n Decimal Value 27 82 n Range 0 <
This code causes the national character set to be sel ected according to the parameter n. See the following table:
n < 12
n
0 USA 7 Spain-I 1 France 8 Japan 2 Germany 9 Norway 3 United Kingdom 10 Denmark-II 4 Denmark-I 11 Spain-II 5 Sweden 12 Latin America 6 Italy
n
ESC t
Selects characters table. (EPSON)
ASCII Code ESC t n Hexadecimal Value 1B 74 n Decimal Value 27 116 Range 0 <
n
n < 3
66
Selects the character table to be used for printing from among the four character tables described belo w:
n
Character Tables
0 Standard Italic Character Set 1 PC437 2 User-defined characters 3 PC437
DDoowwnnllooaadd CChhaarraacctteerr
ESC %
Selects user-defined character set. (EPSON)
ASCII Code ESC % n Hexadecimal Value 1B 25 n Decimal Value 27 37 n
This command switches between the normal (resident) and user-defined (downloaded) characters:
n
Selection
1 Selects the use of down-loaded character set in RAM 0 Selects the use of resident character set in ROM
67
ESC &
Defines user-defined characters. (EPSON)
The format for this command depends on whether you are defining draft characters or LQ characters.
Draft mode
ASCII Code ESC & Hexadecimal Value 1B 26 00
n < 127 m < 127
0 <
m
n
<
a
0 <
a0+a1+a
0 <
0 n m [ a
1
Decimal Value 27 38 Range 0 <
LQ mode
ASCII Code ESC & Hexadecimal Value 1B 26 00
n < 127 m < 127
0 <
n
m
<
a
0 <
a0+a1+a
0 <
0 n m [a
<
1
Decimal Value 27 38 Range 0 <
NUL n m [ a
n m [ a
15
<
< 18
2
0 a1 a2
0 a1 a2
NUL n m [a
n m [a
0 a1 a2 d 1 d 2
0 a1 a2 d 1 d 2
37
< 42
2
0 a1 a2
0 a1 a2 d 1 d 2
d
d
1 d 2
d
d k ]
1 d 2
d k ]
d k ]
d k ]
1 d 2
d k ]
d k ]
The data within brackets above is repeated for each character you define. The parameters in the command have the following meaning:
68
n
and m The n and m parameters are two decimal numbers that define the first and the
last characters to be replaced in the character set in use.
a
0
a
1
a
2
d
...dn
1
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.
Maximum character width (height x width):
Print quality 10 cpi 12 cpi 15 cpi Proportional Draft 24 x 12 24 x 10 24 x 8 Not available
Normal size 24 x 36 24 x 30 24 x 24 24 x 42 LQ Super/subscript 16 x 36 16 x 30 16 x 24 16 x 42
ESC :
Copies characters from ROM to RAM. (EPSON)
ASCII Code ESC : Hexadecimal Value 1B 3A 00 Decimal Value 27 58 Range 0 <
m
NUL n m
n m
n < 127
= 0
n m
This code copies the character generator in ROM i nto RAM area dedicated to the user­defined characters. The n parameter represents the LQ typestyle.
69
The following attributes are reflected in the copied font:
Typeface, international character set, size (super/subscript or normal), quality (draft/quality).
Before copying ROM characters to RAM, ca ncel i tal i cs with the ESC 5 command. After copying you can italicize 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
m id p t
m id p t
m id p t
This sequence allows you to design and then down-line load special characters not 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:
70
Byte 1, 2 The absolute address of the character definition. Byte 3 :
- Bit 7
- Bit 6
1
: indicates that the character is a graphic character (connects at 6 lpi)
0
: indicates that the character is an alphanumerical character
0
: indicates a DLL character
1
: indicates a resident character
- Bit 5 to 0 These 6 bits indicate the effective number of dot columns of the character shape stored in memory.
Byte 4:
- Bit 7, 6 Graphic character des cription:
-
-
-
-
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 is 10 dots and bit 5 to 0 must be set to 9.
71
- 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. 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 compress ion 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 =
and m Indicate the byte number of the sequence n is the low part and m is the high
n
id:
and t Indicate the memory address of the character that you wish to replace. p is
p
Data
n m id p t
part. Indicate the printer model. The id related to your printer is
the low part and t is the high part. Is the entry
specified by p and t.
has the following meaning:
9 bytes
of the character that you want to position at address
23H
.
72
BBiitt--IImmaaggee
ESC ( G
Selects Graphics Mode. (EPSON)
ASCII Code ESC ( G Hexadecimal Value 1B 28 47 Decimal Value 27 40 71 Range
m
= 1, 49
n
= 1
1
n
= 0
2
m n
m n
m n
1 n2
1 n2
1 n2
This command selects graphics mode and allows you to print raster graphics. This command clears all user-defined characters and tab settings. Only the following commands are available in graphics mode, the printer ignores all other commands: LF, FF, CR, ESC EM, ESC . , ESC @, ESC ( c, ESC ( C, ESC ( V, ESC ( v, ESC \, ESC $, ESC U, ESC +, ESC ( U.
ESC *
Sets dot graphics printing. (EPSON)
ASCII Code ESC *
m n
Hexadecimal Value 1B 2A m Decimal Value 27 42 m
m
= 0,1,2,3,4,5,6,32,33,38, 39, 40, 64,65,70,71,72,73
n
< 255
0 <
1
n
< 31
0 <
2
This command prints dot-graphics in 8-dot columns, depending on the following parameters:
1 n2
n
1 n2 d1
n
1 n2 d1
d1.. d
.. dx
.. d
x
x
73
m n
, n
1
2
number of dot columns
Specifies the dot density Specify the total number of columns of graphics
data according to the formula:
+ (n2 x 256))
= (n
1
(number of dot columns)
256
(number of dot columns)
256
d1 … d
Bytes of graphics data; x is determined by multiplying the total number of
x
columns times the number of bytes required for each column. See the table
n
n
= MOD
1
= INT
2
below:
Parameter
m
in ESC *
command
0 60 60 60 Yes 8 1 1 120 60 60 Yes 8 1 2 120 60 60 No 8 1 3 240 60 60 No 8 1 4 80 60 60 Yes 8 1
6 90 60 60 Yes 8 1 32 60 180 180 Yes 24 3 33 120 180 180 Yes 24 3 38 90 180 180 Yes 24 3 39 180 180 180 Yes 24 3 40 360 180 180 No 24 3
Horizontal density (dpi)
Vertical density (dpi)
Adjacent dot printing
Dots per column
Bytes per column
74
ESC .
Print Raster Graphics. (EPSON)
ASCII Code ESC . Hexadecimal Value 1B 2E Decimal Value 27 46 Range
c
= 0,1
v
= 10, 20
h
= 10, 20 0 < 0 < 0 < 0 <
c v h m n
c v h m n
c v h m n
m < 24
n
< 255
1
n
< 127
2
d < 255
1 n2 d1 d2
1 n2 d1 d2
1 n2 d1 d2
d
d
d
k
k
k
This command prints dot graphics in raster forma t (row by row, left to right) and can be used only during graphics mode entered by sending the ESC ( G command. It allows compression of graphics data during raster graphics printing.
The parameters are used as described below:
c
v h m n
, n2
1
equal to 0 specifies full graphics mode (no compressed) equal to 1 specifies compressed mode
vertical dot density (v/3600 dpi) horizontal density (h/3600 dpi) vertical dot count (rows of dot graphics) horizontal dot count (columns of dot graphics), according to the following formula:
(horizontal dot count)
n
= INT
2
256
n
= MOD
1
(horizontal dot count)
256
75
k
total number of data bytes, according to the following formula:
(n
x 256) + n1 + 7
k = m x INT
2
8
d1 d
During full graphics mode: graphics data.
k
During compressed mode: the first data byte is treated as a counter. Graphics data bytes then alternate with a data counter byte as follows:
0 <
(counter byte) < 127
Counter specifies the number of data bytes following according to this formula: (counter byte) + 1 = (number of data bytes to follow) or (counter byte) = (number of data bytes to follow) -1
128 <
(counter byte) < 255
Counter specifies the number of times to repeat the next byte of data according to this formula:
256 - (counter byte) + 1 = (number of times to repeat next byte) or
ESC ?
(counter byte) = 257 - (number of times to repeat next byte)
Reassigns dot graphics mode. (EPSON)
ASCII Code ESC ? Hexadecimal Value 1B 3F n m Decimal Value 27 63 n m
n m
Reassigns one of the dots graphics mode (described in the command ESC *) to one of 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,64,65,70,71,72,73
76
n
m
0 (K): ESC K graphic command 1 (L): ESC L graphic command 2 (Y): ESC Y graphic command 3 (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
This command sends data for dot matrix graphics to the printer and allows the selection of eight modes for both 8-wire g ra phics 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.
m (mode) Mode is a one-byte value to select the graphics mode. Modes have a
vertical wire count (8 or 24 ) and a horizontal density in dots per i nch. See the following table:
n m data
n m data
n m data
77
Mode Horizontal
Wires Description
Density
0 60 8 Same as ESC K graphic command 1 120 8 Same as ESC L graphic command 2 120 8 Same as ESC Y graphic command 3 240 8 Same as ESC Z graphic command 8 60 24 High resolution for ESC K 9 120 24 High resolution for ESC L 11 180 24 12 360 24
data
The graphic data is organized by byte.
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
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
78
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 <
n
1 n2 p1 p2
n
1 n2
n
1 n2 p 1 p2
n
255
<
1
n
< 31
2
p < 255
Terminator code. Thi s command prints dot graphics at 60 horizontal dot per inch b y 60 vertical dpi. The parameter values should be calculated as follows:
... p
p1 p2... px
... p
x
x
n1 n
p 1
p2
p
Remainder of the number of column divided by 256.
2
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. Sum of the values corresponding to the dots that should be printed in the second
column of the graphics pattern.
x
Sum of the values corresponding to the dots that should be printed in the last column of the graphics pattern.
79
ESC L
Double density dot graphics printing (120 dpi). (IBM, EPSON)
ASCII Code ESC L Hexadecimal Value 1B 4C Decimal Value 27 76 Range 0 <
0 < 0 <
n
1 n2 p1 p2
n
1 n2 p1 p2
n
1 n2 p 1 p2
n
255
<
1
n
< 31
2
p < 255
Terminator code. This command prints dot graphics at 120 horizontal dot per inch by 60 vertical dpi. The parameter values should be calculated as follows:
... p
... px
... p
x
x
n1 n 2
p 1
p2
px
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. Sum of the values corresponding to the dots that should be printed in the
second column of the graphics pattern. Sum of the values corresponding to the dots that should be printed in the last
column of the graphics pattern.
80
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 <
0 < 0 <
n
1 n2 p1 p2
n
1 n2
n
1 n2 p 1 p2
n
255
<
1
n
< 31
2
p < 255
Terminator code. This command prints dot graphics at 120 horizontal dot per inch by 60 vertical dpi. The parameter values should be calculated as follows:
... p
p1 p2... px
... p
x
x
n1 n
p 1
Remainder of the number of column divided by 256. Integer result of the previous division.
2
Sum of the values corresponding to the dots that should be printed in the first column of the graphics pattern.
p2
Sum of the values corresponding to the dots that should be printed in the second column of the graphics pattern.
p
Sum of the values corresponding to the dots that should be printed in the last column
x
of the graphics pattern.
81
ESC Z
Quadruple density dot graphic s p r inting (240 virtual dpi). (IBM, EPSON)
ASCII Code ESC Z Hexadecimal Value 1B 5A Decimal Value 27 90 Range 0 <
0 < 0 <
n
1 n2 p1 p2
n
1 n2
n
1 n2 p 1 p2
n
255
<
1
n
< 31
2
p < 255
Terminator code. This command prints dot graphics at 240 horizontal dot per inch by 60 vertical dpi. The parameter values should be calculated as follows:
n1
Remainder of the number of column divided by 256.
n
Integer result of the previous division.
2
Sum of the values corresponding to the dots that should be printed in the first column
p 1
of the graphics pattern.
p2
Sum of the values corresponding to the dots that should be printed in the second column of the graphics pattern.
... p
p1 p2... px
... p
x
x
82
DDaattaa IInnppuutt CCoonnttrrooll
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 Decimal Value 24
This code clears all data stored i n the preceding print buffer but does not change the current print position.
18
83
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 command.
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 rema ins deselected until i t receives a DC1 command or power is turned off then on again. The printer ignores the ESC @ command (initialize printer) when it is deselected.
84
DEL
Deletes the last character. (EPSON)
ASCII Code DEL Hexadecimal Value 7F Decimal Value 127
This command causes the printer to delete the last printable character sent to the printer. Printer control codes are not affected. The printer ig nores this command if it follows a command that moves the horizontal print position (ESC $, ESC \ or HT).
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.
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.
85
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 n Hexadecimal Value 1B 51 n Decimal Value 27 81 n
This sequence tells the printer not to accept data from the host. The host must reset the printer or select the printer by using DC1 (Select Printer) to accept data. To deselect the printer, use ESC Q 35.
86
MMiisscceellllaanneeoouuss
BEL
Buzzer. (EPSON)
ASCII Code BEL Hexadecimal Value 07 Decimal Value 7
This code sounds the printers buzzer.
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 it would move the print position to the left of the left margin.
87
ESC @
Initializes the printer. (EPSON)
ASCII Code ESC @ Hexadecimal Value 1B 40 Decimal Value 27 64
This sequence causes the printer to be initialized. This command, inserted in the input buffer, will be executed during data processing, so that data preceding this command will be printed according to the previous setting.
It causes the printer:
To go back to the current printer setup settings
To cancel any print attributes selected
To initialize the printer carriage
To reset the column counter
To set the horizontal tabulations every 8 columns
To clear all vertical tabulations
Only the selection of Draft/Quali ty printi ng, D DL a nd the selected character generator are maintained.
88
ESC [ K
Sets initial conditions. (IBM 2391 only)
n
ASCII Code ESC [ K Hexadecimal Value 1B 5B 4B Decimal Value 27 91 75
This command causes the printer to reset to its initial status:
1 n2
n
n
1n2
1n2
init id
init id
init id
n1 and n2
init
n
The
1
normally,
init
The normally
n
and
parameters specify the number of bytes in the escape sequence
2
n
= 2 and
1
n
= always 0.
2
parameter specifies to which condition the printer should initialize,
init
= 0,1,4,5,254,255:
0 Initializes printer to user-default settings. The download font remains
unchanged. If parameters are specified, they will overwrite the default settings. If the emulation mode is changed, the download font will be initialized. This command will only copy data from the selected macro, add parameter changes, if any, and store in working RAM; the data stored in the macros non-volatile RAM will not be affected.
1 Initializes printer to user-default settings. The download font is initialized. If
parameters are specified, they will overwrite the default settings. This command will only copy data from the selected macro, add parameter changes, if any, and store in working RAM; the data stored in the macros non-volatile RAM will not be affected.
4 Initializes printer to factory settings. The download font remains unchanged. If
parameters are specified, they will overwrite the default settings. If the emulation mode is changed, the download font will be initialized. This command will only copy the default settings from ROM, add parameter changes, if any, and store in working RAM; the data stored in the macros non­volatile RAM will not be affected.
89
id
parm
5 Initializes printer to factory settings. The download font is initialized. If
parameters are specified, they will overwrite the default settings. This command will only copy the default settings from ROM, add parameter changes, if any, and store in working RAM; the data stored in the macros non­volatile RAM will not be affected.
254 Initializes printer to user-default settings. The download font is initialized. If
parameters are specified, they will overwrite the default settings. This command will change data stored in the selected macro. It will copy data from the selected macro, add parameter changes, if any, and store in working RAM and in the selected macro. It will also change the default macro to the value of parm 3.
255 Initializes printer to default settings. The download font is initialized. If
parameters are specified, they overwrite the default settings. This command will change data stored in the macros non-volatile RAM. It will copy default settings from ROM, add parameter changes, if any, and store in working RAM and all macros. It will also set the default macro to disable.
The id parameter specifies the printer for which the following parameter bytes are intended. If the ID does not address your printer, the mode bytes that follow are ignored. The ID values are Hex = B6, Dec = 182.
Specifies the following functions:
1
Bit Not s e t Set
7 Discard byte Process this byte Ignore this byte 6 Reserved
5 Alarm Alarm enabled Alarm disabled 4 Automatic CR No CR on vertical movement CR on vertical movement
3 Automatic LF No LF after CR LF after CR 2 Page length 11 inches 12 inches
1 Slashed zero Zero without slash Zero with slash 0 Character set CS1 CS2
90
parm2
Specifies the following functions:
Bit Not set Set
7 Discard byte Process this byte Ignore this byte 6 Pass over from
CP437-CP850 5 Reserved 4 Reserved 3 Reserved 2 Reserved 1 Line length 13.6 inch 8 inch 0 Reserved
CP437 CP850
ESC U
Sets printing direction. (IBM, EPSON)
ASCII Code ESC U n Hexadecimal Value 1B 55 n Decimal Value
Selects bidirectional or unidirectional printing, according to the parameters below:
27 85 n
n
Direction
0 Bidirectional printing 1 unidirectional (left to right) printing
Unidirectional printing provides better alignment of vertical lines while bidirectional printing is faster.
91
CCOOMMPPUUPPRRIINNTT MMooddee
This printer according to the Native COMPUPRINT Mode supports the following printer commands.
FFoorrmmaatt CCoonnttrrooll
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.
92
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.
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.
93
DC4 DC4 ESC A
Sets the horizontal sp acing to 15, 17, 20, 24 CPI. (Compuprint)
ASCII Code DC4 DC4 ESC A n Hexadecimal Value 14 14 1B 41 n Decimal Value 20 20 27 65 n
This is terminator code and therefore causes the current contents of the print buffer to be printed out. Then, the subsequent characters will be printed at the horizontal spacing specified by the n pa rameter.
n
4 15 cpi 5 17 cpi 6 20 cpi 7 24 cpi
Spacing
94
NNaattiivvee CChhaarraacctteerr SSeett
DC4 DC4 ESC g
Selects LQ fonts (Compuprint).
ASCII Code DC4 DC4 ESC g n Hexadecimal Value 14 14 1B 67 n Decimal Value 20 20 27 103 n
n
Setting
1 Gothic 2 Courier 3 Prestige 4 Script 5 OCR-B 6 OCR-A 7 Presentor 182 DLL
If the down-line loading is selected, the command is stored and will be activated as soon as the down-line loading will be canceled.
95
DC4 DC4 ESC S
Selects character set ISO Character Sets or Code Pages. (Compuprint)
ASCII Code DC4 DC4 ESC S n Hexadecimal Value 14 14 1B 53 n Decimal Value 20 20 27 83 n
n
1 ISO 8859/1 Latin 1 2 ISO 8859/2 Latin 2 3 ISO 8859/3 Latin 3 4 ISO 8859/4 Latin 4 5 ISO 8859/5 Latin/Cyrillic 6 ISO 8859/6 Latin/Arabic 7 ISO 8859/7 Latin/Greek 8 ISO 8859/8 Latin/Hebrew 9 ISO 8859/9 Latin 5 15 ISO 8859/15 Latin 9 128 CP 437 USA 129 CP 850 Multilingual 130 CP 860 Portugal 131 CP 863 Canada/France 132 CP 865 Denmark/Norway 133 CP 851 Greek 134 CP 862 Hebrew 135 CP 864 Arabic 136 TASS Cyrillic
Character Set
96
n
137 CP 852 Eastern Europe 138 CP 876 OCR-A 139 CP 877 OCR-B 140 CP 855 Cyrillic 141 CP 866 Russian 142 GOST Cyrillic 145 CP 437G Greek 146 CP 853 Turkish 147 CP 857 Turkish 148 CP 867 Turkish 149 CP 858 Euro PC Multilingual 199 96 Greek
Character Set
97
BBaarr CCooddeess
DC4 DC4 ESC !
Bar Code Selection
ASCII Code DC4 DC4 ESC ! Hexadecimal Value 14 14 1B 21 Decimal Value 20 20 27 33
h
= Bar Code Height at n/6, 1 <
t
= Standard Bar Code to use
t
1 8-digits European Article Numbering EAN-8 2 13-digits European Article Numbering EAN-13 3 Universal Product Code Type A UPC-A 4 Universal Product Code Type E UPC-E 5 UPC/EAN 2 Digit Supplement UPC-EAN 2 6 UPC/EAN 5 Digit Supplement UPC-EAN 5 7, 8, 9 8-digits European Article Numbering EAN-8 10 General Purpose Bar Code Code GP 11 Code 2 of 5 3-BAR (Data Logic) C25-3BAR 12 Binary Coded Decimal CODE BCD 13 MSI-Plessey MSI 14 AIM-USD-8 / Code-11 Code 11 15 AIM-USD-7 / Code-93 Code 93 16 Code 2 of 5 Bidirectional C25-BID
Name
h < 30
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
98
Loading...