RTM154 V1.0
;New text
;*****************************************************************************
;* << Panasonic KX-P3124 >> *
;* COMMAND REFERENCE *
;*****************************************************************************
; *********************************
; ***** EPSON Mode Commands *****
; *********************************
<PRINT QUALITY>
Selects print quality.
Name: ESC x n
Dec.: 27 120 n
Hex.: 1B 78 n
Comments:
*The following values of n can be used:
n=0:Draft font
n=1:LQ font
n=2:SLQ mode (Roman 5, 10 , 6 and 12 CPI fonts only)
*PANEL LOCK in the Function mode affects this command.
<FONT STYLE>
Selects LQ font style.
Name: ESC k n
Dec.: 27 107 n
Hex.: 1B 6B n
Comments:
*The following values of n can be used:
n=0: Roman
n=1: Sans Serif
n=2: Courier
n=3: Prestige
n=4: Script
n=5: OCR-B
n=6: Bold PS
n=7: Orator
*This command is effective only in letter quality mode (ESC+x+1).
*PANEL LOCK in the Function mode affects this command.
<SUB/SUPERSCRIPT FONT>
Selects sub/superscript font with characters printed in the
lower/upper area of the line.
Set:
Name: ESC S n
Dec.: 27 83 n
Hex.: 1B 53 n
Release:
Name: ESC T
Dec.: 27 84
Hex.: 1B 54
Comments:
*The following values of n can be used:
n=0: Superscript
n=1: Subscript
*Sub/superscript font is 2/3 normal character height.
*In draft mode, font is normal character width.
*In LQ mode, font is 2/3 normal fixed character width.
*In PS mode, font is 2/3 normal PS character width.
<SELECTS FONT BY PITCH AND POINT>
Selects font by pitch and point size
SET :
NAME: ESC X m n1 n2
Hex.: 1B 58 m n1 n2
Dec.: 27 88 m n1 n2
Comments:
*Parameter range:
0<=m<=127 except 2,3 and 4
m=0 no change to character spacing
m=1 character spacing is set to PS
m>4 set character spacing to 360/m CPI
0<=n1<=255
0<=n2<=127
n1 and n2=0 no change to point size
*Total points = (n1 + n2 x 256) / 2
Comments:
*This command overrides the current pitch setting.
*Only the following point sizes are available: From 8 to 96
(in increments of 2) and 10.5 ,21 points.
*Selecting a combination of 15 CPI and 10 or 20 point characters
results in 15-CPI ROM characters being chosen; the height of these
characters is about 2/3 that of normal characters. Select the pitch
with the ESC+c command to obtain normal height 10 or 20-point
characters at 15 CPI.
*During multipoint mode the printer ignores the ESC+W,ESC+w,ESC+SP,SI,
ESC+SI,SO, and ESC+SO commands.
*The following commands cancel multipoint mode, returning the printer
to 10.5-point characters: ESC+P,ESC+M,ESC+g,ESC+p,ESC+!, and ESC+@.
<PICA PITCH>
Sets printing to 10 characters per inch (up to 90 characters per line).
Name: ESC P
Dec.: 27 80
Hex.: 1B 50
Comments:
*When pica and compressed are set simultaneously, output is
17 CPI (up to 153 CPL).
*PANEL LOCK in the Function mode affects this command.
<ELITE PITCH>
Sets printing to 12 characters per inch (up to 108 characters per line).
Name: ESC M
Dec.: 27 77
Hex.: 1B 4D
Comments:
*When elite and compressed are set simultaneously, output is
20 CPI (up to 180 CPL).
*PANEL LOCK in the Function mode affects this command.
<MICRON PITCH>
Sets printing to 15 characters per inch (up to 135 characters per line).
Name: ESC g
Dec.: 27 103
Hex.: 1B 67
Comments:
*When micron and compressed are set simultaneously, output is
15 CPI (up to 135 CPL).
*PANEL LOCK in the Function mode affects this command.
<COMPRESSED PITCH>
Sets printing to 17 characters per inch (up to 153 characters per line).
Set:
Name: SI or ESC SI
Dec.: 15 or 27 15
Hex.: 0F or 1B 0F
Release:
Name: DC2
Dec.: 18
Hex.: 12
Comments:
*When pica and compressed are set simultaneously, output is
17 CPI (up to 153 characters per line).
*When elite and compressed are set simultaneously, output is
20 CPI (up to 180 CPL).
*When micron and compressed are set simultaneously, output is
15 CPI (up to 135 CPL).
*When PS (Proportional Spacing) and compressed are set
simultaneously, font is compressed PS character width.
*PANEL LOCK in the Function mode affects this command.
<PROPORTIONAL SPACING>
Sets proportional spacing between characters.
Set:
Name: ESC p 1
Dec.: 27 112 1
Hex.: 1B 70 01
Release:
Name: ESC p 0
Dec.: 27 112 0
Hex.: 1B 70 00
Comments:
*Proportional spacing overrides pica, elite, and micron
pitch setting.
*When PS (Proportional Spacing) and compressed are set
simultaneously, font is compressed PS character width.
*This command is effective only in letter quality mode (ESC+x+1).
*PANEL LOCK in the Function mode affects this command.
<PROGRAMMABLE PITCH/HIGHLIGHTING>
Sets a combination of character pitch and/or highlighting.
Name: ESC ! n (n = 0 to 255)DEC
Dec.: 27 33 n
Hex.: 1B 21 n
Comments:
*The value of n determines the pitch and highlight combinations.
*To find the value of n, add up the decimal numbers below for
the print modes you wish to select:
0: Pica
1: Elite
2: PS
4: Compressed
8: Emphasized
16: Double-strike
32: Double-wide
64: Italic
128: Underlining
*Invalid values of n follow rules noted in individual commands.
*When elite and compressed are set simultaneously output is
20 CPI (up to 180 CPL).
*PANEL LOCK in the Function mode affects this command.
<EMPHASIZED PRINTING>
Sets printing to twice the original horizontal dot density.
Set:
Name: ESC E
Dec.: 27 69
Hex.: 1B 45
Release:
Name: ESC F
Dec.: 27 70
Hex.: 1B 46
Comments:
*Emphasized characters are printed at half speed.
*PANEL LOCK in the Function mode affects this command.
<DOUBLE HIGH PRINTING>
Sets double high printing.
Set:
Name: ESC w 1
Dec.: 27 119 1
Hex.: 1B 77 01
Release:
Name: ESC w 0
Dec.: 27 119 0
Hex.: 1B 77 00
Comments:
*In the pull tractor mode, this command will not reverse feed paper
correctly and the resulting printout may not be correct.
*PANEL LOCK in the Function mode affects this command.
<DOUBLE WIDE PRINTING (SINGLE LINE)>
Sets double wide (expanded) printing for one line only.
Set:
Name: SO or ESC SO
Dec.: 14 or 27 14
Hex.: 0E or 1B 0E
Release:
Name: DC4 or ESC W 0
Dec.: 20 or 27 87 0
Hex.: 14 or 1B 57 00
Comments:
*Single line double wide printing is released when:
- a LF, FF or VT is executed.
- the printer is initialized.
- DC4 or ESC+W+0 is executed.
- ESC+!+0 is executed.
*PANEL LOCK in the Function mode affects this command.
<DOUBLE WIDE PRINTING>
Sets double wide (expanded) printing.
Set:
Name: ESC W 1
Dec.: 27 87 1
Hex.: 1B 57 01
Release:
Name: ESC W 0
Dec.: 27 87 0
Hex.: 1B 57 00
Comments:
*DC4 will not release the double wide printing set by ESC+W+1.
*Expanded pica output is 5 CPI.
*Expanded elite output is 6 CPI.
*Expanded micron output is 7.5 CPI.
*Expanded compressed output is 8.5 CPI.
*PANEL LOCK in the Function mode affects this command.
<OUTLINE AND SHADOW PRINTING>
Sets outline and shadow printing.
Name: ESC q n
Dec.: 27 113 n
Hex.: 1B 71 n
Comments:
*The following values of n can be used.
n=0: Releases outline/shadow printing
n=1: Outline
n=2: Shadow
n=3: Outline with Shadow
*PANEL LOCK in the Function mode affects this command.
<DOUBLE STRIKE PRINTING>
Sets double printing.
Set:
Name: ESC G
Dec.: 27 71
Hex.: 1B 47
Release:
Name: ESC H
Dec.: 27 72
Hex.: 1B 48
Comments:
*Double strike printing prints each line twice, with the second
line slightly below the first to create a bold appearance.
*PANEL LOCK in the Function mode affects this command.
<UNDERLINING>
Sets continuous underlining of characters.
Set:
Name: ESC - 1
Dec.: 27 45 1
Hex.: 1B 2D 01
Release:
Name: ESC - 0
Dec.: 27 45 0
Hex.: 1B 2D 00
Comment:
*Bit image data, spaces set by the HT code, and IBM graphic
characters will not be underlined.
<SCORE>
Sets/releases score.
Name: ESC ( - 3 0 1 d1 d2
Dec.: 27 40 45 3 0 1 d1 d2
Hex.: 1B 28 2D 03 00 01 d1 d2
Comments:
*The value of d1 determines the location of the score:
d1=1: Underline
d1=2: Strikethrough
d1=3: Overscore
*The value of d2 determines whether the score line is single,
double, broken or continuous:
d2=0: Cancel the score line selected by d1
d2=1: Single continuous line
d2=2: Double continuous line
d2=5: Single broken line
d2=6: Double broken line
<CHARACTER DOT SPACING>
Sets character dot spacing
Name: ESC SP n (n = 0 to 127)DEC
Dec.: 27 32 n
Hex.: 1B 20 n
Comment:
*Sets the amount of dot space (Draft: n/120 inch,
LQ: n/180 inch) added to the right of each character
to allow for micro justification.
<UNIT>
Set unit
SET :
NAME: ESC ( U 1 0 n
Hex.: 1B 28 55 1 0 n
Dec.: 27 40 85 01 00 n
Comment:
*Parameter range:
n = 10,20,30,40,50,60
*Sets the units for the vertical print position [ ESC(V and ESC(v ],
horizontal print position [ ESC\ and ESC $] and page format
[ ESC(C and ESC(c ] commands to n/3600 inch.
<HORIZONTAL MOTION INDEX (HMI)>
Set horizontal motion index (HMI)
SET :
NAME: ESC c n1 n2
Hex.: 1B 63 n1 n2
Dec.: 27 99 n1 n2
Comment:
*Parameter range:
0<=n1<=255
0<=n2<=4
0<(n1 + (n2x256))<=1080
*HMI<=3.00 inches
Notes:
*Sending this command cancels additional character space set with the
ESC+SP command.
*The HMI setting made with this command is canceled when the printer
receives the following commands: SO,SI,DC2,DC4,ESC+W,ESC+P,ESC+M,
ESC+g,ESC+p,ESC+!,ESC+SP, and ESC+@.
*Use this command to set the pitch if you want to print normal-height
10 or 20-point characters at 15 CPI during multipoint mode. Selecting
15 CPI for 10 or 20-point characters with the ESC+X command results in
characters being printed at 2/3 their normal height.
<ITALIC FONT>
Selects italic character printing.
Set:
Name: ESC 4
Dec.: 27 52
Hex.: 1B 34
Release:
Name: ESC 5
Dec.: 27 53
Hex.: 1B 35
Comments:
*Italic characters are printed in place of characters
in character set locations 32DEC to 126DEC (20 HEX to 7E HEX).
*This command is effective regardless of character set
selected by ESC+t+n.
*PANEL LOCK in the Function mode affects this command.
<INTERNATIONAL CHARACTER SET>
Selects international character set.
Name: ESC R n
Dec.: 27 82 n
Hex.: 1B 52 n
Comments:
*The following values of n can be used:
n=0 to 13: Selects one of 14 language character sets.
n=64 : Selects legal character set.
*Character set tables in the appendix of the operating instruction
manual identifies the characters generated by the appropriate
codes.
*International character sets can be set through the initial setup
disk.
*PANEL LOCK in the Function mode affects this command.
<ENABLE UPPER CONTROL CODES>
Assigns character codes 128 to 159 as control codes
Name: ESC 7
Dec.: 27 55
Hex.: 1B 37
Comments:
*Refer to character set tables in appendix of the operating
instruction manual.
*This command is not operational when the Italic character
set is selected by ESC+t+n.
*PANEL LOCK in the Function mode affects this command.
<ENABLE PRINTING OF UPPER CONTROL CODES>
Assigns character codes 128 to 159 as printable characters
Name: ESC 6
Dec.: 27 54
Hex.: 1B 36
Comments:
*Refer to character set tables in appendix of the operating
instruction manual.
*This command is not operational when the Italic character
set is selected by ESC+t+n.
<ALTERNATE CHARACTER TABLE>
Selects alternate character table.
Name: ESC t n
Dec.: 27 116 n
Hex.: 1B 74 n
Comments:
*The following values of n can be used:
n=0: Character table 0 : default = Italic
n=1: Character table 1 : default = PC437 (US)
n=2: Character table 2 : default = User defined
n=3: Character table 3 : default = PC437 (US)
*Use the ESC ( t command to assign a pre-defined character set
to a character table. The character set charts are found in the
appendix of the operating instruction manual.
*To copy user-defined characters to the upper half of the character
table use the ESC t 2 command. This command will not work if you
have assigned another character table to table 2.
*PANEL LOCK in the Function mode affects this command.
<ASSIGN CHARACTER TABLE>
Assign character table
SET :
NAME: ESC ( t 3 0 n1 n2 n3
Hex.: 1B 28 74 3 0 n1 n2 n3
Dec.: 27 40 116 03 00 n1 n2 n3
Comment:
*Parameter range:
0<=n1<=3, 48<=n1<=51
0<=n2<=255
n3 = 0
*n1 specifies the character table to re-assign.
*n2 specifies the character set to assign to a character table.
possible values are:
0 = Italic 1 = PC437(US)
3 = PC850(MULTINATIONAL) 5 = PC853(TURKISH)
7 = PC860(PORTUGAL) 8 = PC863(CANADA-FRENCH)
9 = PC865(NORWAY)
*Refer to the character set tables in the appendix of the operating
instruction manual.
*Character tables assigned to tables 0 and 1 with this command are not
cleared by the ESC+@ (initialize printer) command.
<PRINT DATA AS CHARACTER>
Print data as characters
SET :
NAME: ESC ( ^ n1 n2 Data
Hex.: 1B 28 5E n1 n2 Data
Dec.: 27 40 94 n1 n2 Data
Comment:
*Parameter range:
0<=n1<=255
0<=n2<=127
Amount of data to print as characters = n1 + (256*n2).
*The printer ignores data if no character is assigned to that character
code in the currently selected character table.
<8-PIN STANDARD DENSITY GRAPHICS>
Sets standard density graphics mode [60 dots per inch
(25.4 mm)].
Name: ESC K n1 n2 Data
Dec.: 27 75 n1 n2 Data
Hex.: 1B 4B n1 n2 Data
Comment:
*Refer to "ESC+*+m+n1+n2" command.
<8-PIN DOUBLE DENSITY GRAPHICS>
Sets double density graphics mode [120 dots per inch
(25.4 mm)].
Name: ESC L n1 n2 Data
Dec.: 27 76 n1 n2 Data
Hex.: 1B 4C n1 n2 Data
Comment:
*Refer to "ESC+*+m+n1+n2" command.
<8-PIN DOUBLE SPEED/DOUBLE DENSITY GRAPHICS>
Sets double speed double density graphics mode
[120 dots per inch (25.4 mm)].
Name: ESC Y n1 n2 Data
Dec.: 27 89 n1 n2 Data
Hex.: 1B 59 n1 n2 Data
Comments:
*Horizontal adjacent dots cannot be printed.
*Refer to "ESC+*+m+n1+n2" command.
<8-PIN QUADRUPLE DENSITY GRAPHICS>
Sets quadruple density graphics mode
[240 dots per inch (25.4 mm)].
Name: ESC Z n1 n2 Data
Dec.: 27 90 n1 n2 Data
Hex.: 1B 5A n1 n2 Data
Comments:
*Horizontal adjacent dots cannot be printed.
*Refer to "ESC+*+m+n1+n2" command.
<BIT IMAGE MODE SELECTION>
Selects one of the 8-pin or 24-pin bit image graphic modes.
Name: ESC * m n1 n2 Data
Dec.: 27 42 m n1 n2 Data
Hex.: 1B 2A m n1 n2 Data
Comments:
*The following table illustrates the various modes based upon the
values of m.
m pin dpi dpl
----------------------------------------------------
0 8 60 540 Standard Density
1 8 120 1080 Double Density
2 8 120 1080 Double Speed, Double Density
3 8 240 2160 Quadruple Density
4 8 80 720 CRT I
6 8 90 810 CRT II
32 24 60 540 Standard Density
33 24 120 1080 Double Density
38 24 90 810 CRT III
39 24 180 1620 Triple Density
40 24 360 3240 Hex Density
*When m=2, 3 or 40, horizontal adjacent dots cannot be printed.
*The values n1 and n2 indicate the number of graphic columns
to be printed.
* Bit Image (Graphics)
Bit image (Graphics) is used to produce pictures, graphs, charts
or creative patterns. Many commercial software packages use bit
images.
This printer has six 8-pin bit image modes and five 24-pin bit
image modes within Epson mode, and has four 8-pin/24-pin bit image
modes within IBM mode, so that you have a wide variety of image
printing. When you use a commercial software package, you should
refer to your software instruction manual for the proper use.
Each printer mode has its own bit image commands. Because
differences between the two modes are few, only Epson mode is used
here as an example of how to print bit images through software
commands.
1. Dot Density
Dot density (dot resolution) refers to the maximum number of dots
that can be printed in an inch or on a line. This printer enables
you to access a variety of dot densities through specific control
commands. The various dot densities and corresponding control
commands appear as follows:
Maximum
Command Function Dots/Inch Dots/Line
ESC+"K"+n1+n2 Standard density 60 540
ESC+"L"+n1+n2 Double density 120 1080
ESC+"Y"+n1+n2 Double speed,Double density 120 1080
ESC+"Z"+n1+n2 Quadruple density 240 2160
ESC+"*"+m+n1+n2 8-Pin Mode Selection:
m=0 (Standard) 60 540
m=1 (Double) 120 1080
m=2 (Double speed,Double density) 120 1080
m=3 (Quadruple density) 240 2160
m=4 (CRT I) 80 720
m=6 (CRT II) 90 810
24-Pin Mode Selection:
m=32 (Standard) 60 540
m=33 (Double) 120 1080
m=38 (CRT III) 90 810
m=39 (Triple) 180 1620
m=40 (Hex) 360 3240
ESC+"["+"g"+n1+n2+m 8-Pin Mode Selection:
m=0 (Standard) 60 540
m=1 (Double) 120 1080
m=2 (Double speed,Double density) 120 1080
m=3 (Quadruple density) 240 2160
24-Pin Mode Selection:
m=8 (Standard) 60 540
m=9 (Double) 120 1080
m=11 (Triple) 180 1620
m=12 (Hex) 360 3240
2. 8-Pin Bit Image Mode
This printer has 24 pins in the printhead. The distance between
the centers of adjacent pins is 1/180inch (0.14 mm), and the
diameter of each pin is 1/127 inch (0.2 mm). In 8-pin bit image
mode the 24 pins of the printhead are grouped as follows. One byte
is sent to the printer for each column to be printed. Each bit of
that byte represents an individual pin-block. By summing the powers
of two corresponding to each pin-block you wish to fire, you will
obtain a numerical value for the column in question. By sending a
string of bytes, numerical values for each column on a line are
input and processed. The result is one line of graphics.
Pin-block Pin-block Code Pins Pin No. Pin-block Code Pin-block
__________________________ __________________________
O 1 2^7=128 1
1 2^7=128 O 2 __________________________
__________________________ O 3 ________________1_and_2___
O 4 2^6=64 2
2 2^6=64 O 5 __________________________
__________________________ O 6 2^5=32 3
O 7 __________________________
3 2^5=32 O 8 ________________3_and_4___
__________________________ O 9 2^4=16 4
O 10 __________________________
4 2^4=16 O 11 2^3=8 5
__________________________ O 12 __________________________
O 13 ________________5_and_6___
5 2^3=8 O 14 2^2=4 6
__________________________ O 15 __________________________
O 16 2^1=2 7
6 2^2=4 O 17 __________________________
__________________________ O 18 ________________7_and_8___
O 19 2^0=1 8
7 2^1=2 O 20 __________________________
__________________________ O 21 Not used
O 22 Not used
8 2^0=1 O 23 Not used
__________________________ O 24 Not used
Epson mode and IBM mode IBM mode
(Alternate Graphic Mode: ON) (Alternate Graphic Mode: OFF)
Note:
In the Epson mode or IBM mode with Alternate Graphic Mode (AGM)
set to ON through the initial setup disk, 8-pin bit image graphics
is printed by using all 24 pins in the printhead.
In IBM mode with Alternate Graphic Mode (AGM) set to OFF, 8-pin
bit image graphics is printed by using upper 20 pins in the
printhead.
As an example, suppose you want to fire pin-blocks 1, 2, 5 and
8 simultaneously. Then you compute the following sum:
Input code = Pin-block 1 code + Pin-block 2 code +
Pin-block 5 code + Pin-block 8 code
= 2^7 + 2^6 + 2^3 + 2^0
= 128 + 64 + 8 + 1
= 201
Thus, the value 201 is entered in the CHR$ function in order to
print a single column of dots resulting from firing pin-blocks
1, 2, 5, and 8.
For our final example, refer to the standard density designation
in Table above. This setting is given by ESC+"K"+n1+n2. To print
image graphics, you must specify to the printer how many columns
are to be used. This is done by finding values for n1 and n2, as
follows:
Divide the total number of columns you select, by 256 (max # of
columns). The result is n1 and the remainder is n2.
n1 = 100 MOD 256 = 100
n2 = 100 / 256 = 0 so, n2=0 and n1=100
Our control code ESC+"K"+n1+n2 now translates into:
LPRINT CHR$(27)+"K"+CHR$(100)+CHR$(0);
If you use ESC+"["+"g"+n1+n2+m in IBM mode, compute the values of
n1 and n2 as follows:
n2 x 256 + n1 = Column x Bytes + 1
m=0, 1, 2, 3: Bytes=1
m=8, 9, 11, 12: Bytes=3
For example, 24-pin bit image of 100 column is:
n2 x 256 + n1 = 100 x 3 + 1 = 301 so, n2=1 and n1=45.
For example, you select 100 columns and double density (m=9), so
your bytes are equal to 3. Now, use the following equation:
100 columns x 3 bytes + 1 = 301 (always add 1).
Using the equation from above, we have:
n1 = 301 MOD 256 = 45
n2 = 301 / 256 = 1 so, n2=1 and n1=45
A programming example is as follows:
10 REM STANDARD DENSITY
20 WIDTH "LPT1:",255
30 OPEN "LPT1:" AS #1
40 PRINT #1,CHR$(27)+"3"+CHR$(24);
50 PRINT #1,CHR$(27)+"K"+CHR$(100)+CHR$(0);
60 FOR I=1 TO 5
70 PRINT #1,CHR$(1)+CHR$(2)+CHR$(4)+CHR$(8)+CHR$(16);
80 PRINT #1,CHR$(32)+CHR$(64)+CHR$(128)+CHR$(64)+CHR$(128);
90 PRINT #1,CHR$(64)+CHR$(128)+CHR$(64)+CHR$(128)+CHR$(64);
100 PRINT #1,CHR$(32)+CHR$(16)+CHR$(8)+CHR$(4)+CHR$(2);
110 NEXT I
120 PRINT #1,CHR$(13)+CHR$(10);
130 PRINT #1,CHR$(27)+"K"+CHR$(100)+CHR$(0);
140 FOR I=1 TO 5
150 PRINT #1,CHR$(128)+CHR$(64)+CHR$(32)+CHR$(16)+CHR$(8);
160 PRINT #1,CHR$(4)+CHR$(2)+CHR$(1)+CHR$(2)+CHR$(1);
170 PRINT #1,CHR$(2)+CHR$(1)+CHR$(2)+CHR$(1)+CHR$(2);
180 PRINT #1,CHR$(4)+CHR$(8)+CHR$(16)+CHR$(32)+CHR$(64);
190 NEXT I
200 PRINT #1,CHR$(13)+CHR$(10);
210 CLOSE
220 END
Note:
Line 20 and 30 are necessary for the proper execution of this
program on many IBM-compatible computers.
Line 40 is necessary to set the line feed for printing in the
bit image mode. In the IBM mode, when AGM is set to OFF through
the initial setup disk, it will amount to 24/216inch.
3. 24-Pin Bit Image Mode
In the 24-pin bit image mode, all 24-pins of the printhead may
be fired. In this mode, 3 data bytes must be sent to the printer
for each column. The 24 pins in the printhead are divided into
three portions, the upper 8 pins, middle 8 pins and lower 8 pins.
As an example, suppose you want to fire pins 1, 2, 5, 8, 9, 11, 12,
21 and 24 simultaneously. Then you compute the following three
values:
Byte 1: Input code=Pin 1 code+Pin 2 code+Pin 5 code+Pin 8 code
=2^7 + 2^6 + 2^3 + 2^0 = 128 + 64 + 8 + 1
= 201
Byte 2: Input code=Pin 9 code+Pin 11 code+Pin 12 code
=2^7 + 2^5 + 2^4 = 128 + 32 + 16
= 176
Byte 3: Input code=Pin 21 code+Pin 24 code
=2^3 + 2^0 = 8 + 1
= 9
Thus, the three bytes for a single column of dots are entered as
CHR$(201);CHR$(176);CHR$(9); Refer to the 24-pin standard density
command. This setting is given by ESC+"*"+m+n1+n2, where m=32.
Suppose you wish to print 100 columns of dots, where every column
fires pins 1, 2, 5, 8, 9, 11, 12, 21 and 24 as above.
As in the 8-pin example, n1=100 and n2=0. Our command
ESC+"*"+m+n1+n2 now translates into
LPRINT CHR$(27)+"*"+CHR$(32)+CHR$(100)+CHR$(0);
If we incorporate this information into a program, we might have
the following:
10 REM 24 PIN STANDARD DENSITY
20 WIDTH "LPT1:",255
30 OPEN "LPT1:" AS #1
40 PRINT #1,CHR$(27)+"*"+CHR$(32)+CHR$(100)+CHR$(0);
50 FOR I=1 TO 100
60 PRINT #1,CHR$(201);
70 PRINT #1,CHR$(176);
80 PRINT #1,CHR$(9);
90 NEXT I
100 PRINT #1,CHR$(13)+CHR$(10);
110 CLOSE
120 END
Note:
If in IBM mode, AGM must be set to ON.
If you use ESC+"["+"g"+n1+n2+m in IBM mode, you must change
line 40 as follows:
40 PRINT #1, CHR$(27)+"["+"g"+CHR$(45)+CHR$(1)+CHR$(8);
Bit Image Graphics prints uni-directional for high precision
printing. For high speed printing set the printer to bi-directional
printing through initial setup mode or through the initial setup
disk.
Graphics mode is released immediately following the printing of
all bit image data. Printing will return to text mode.
Bit image data is not affected by MSB control commands.
4. Alternate Graphic Mode (AGM)
There are two methods of graphic printing in IBM mode. You can
set them through Alternate Graphic Mode setting through the initial
setup disk.
When AGM is set to OFF, 8-pin bit image graphic is printed by
using pins 1 through 20.
When AGM is set to ON, the printing of 8-pin graphic mode is the
same as in Epson mode. Also, graphic printing command, ESC+"*" in
Epson mode is effective in this mode. Therefore, you can use the
same command as in Epson mode.
The following table shows commands affected by AGM mode.
AGM ON AGM OFF
ESC+"K"+n1+n2 use 24 pin use 20 pin
ESC+"L"+n1+n2 use 24 pin use 20 pin
ESC+"Y"+n1+n2 use 24 pin use 20 pin
ESC+"Z"+n1+n2 use 24 pin use 20 pin
ESC+"["+"g"+ 8-pin mode use 24 pin use 20 pin
n1+n2+m 24-pin mode use 24 pin use 24 pin
ESC+"3"+n based on 1/180 inch based on 1/216 inch
ESC+"A"+n based on 1/60 inch based on 1/72 inch
ESC+"J"+n based on 1/180 inch based on 1/216 inch
<BIT IMAGE MODE REASSIGNMENT>
Reassigns bit image graphics mode density.
Name: ESC ? n m
Dec.: 27 63 n m
Hex.: 1B 3F n m
Comments:
*The value of n specifies the graphics mode which is
to be reassigned:
n=75: Reassign Standard Density (ESC+K+n1+n2)
n=76: Reassign Double Density (ESC+L+n1+n2)
n=89: Reassign Double Speed, Double Density (ESC+Y+n1+n2)
n=90: Reassign Quadruple Density (ESC+Z+n1+n2)
*The value of m specifies the graphics mode to which the
original is to be reassigned. Refer to the table in the
<BIT IMAGE MODE SELECTION> section for values of m.
<GRAPHIC MODE>
Select graphics mode
SET :
NAME: ESC ( G 1 0 n
Hex.: 1B 28 47 1 0 n
Dec.: 27 40 71 01 00 n
Comment:
*Parameter range:
n = 1,49
Notes:
*Exit graphics mode by sending the ESC+@ (Initialize printer) command.
*This command clears all user-defined characters and tab settings.
*Text printing is not possible during graphics mode.
*Do not mix text and graphics-mode printing on the same page.
*Only the following commands are available in graphics mode:
LF Line feed
FF Form feed
CR Carriage return
ESC+EM Control paper loading/ejecting
ESC+. Print raster graphics
ESC+@ Initialize printer (exit graphics mode)
ESC+(+c Set page format
ESC+(+C Set page length in defined unit
ESC+(+V Set absolute vertical print position
ESC+(+v Set relative vertical print position
ESC+\ Set relative vertical print position
ESC+$ Set absolute horizontal print position
ESC+r Select printing color
ESC+U Turn unidirectional mode on/off
ESC++ Set n/360-inch line spacing
ESC+(+U Set unit
The printer ignores all other commands.
<RASTER GRAPHIC>
Print raster graphics
SET :
NAME: ESC . c v h m n1 n2 Data
Hex.: 1B 2E c v h m n1 n2 Data
Dec.: 27 46 c v h m n1 n2 Data
Comment:
*Parameter range:
c = 0,1
v = 10,20
h = 10,20
0<=m<=24
0<=n1<=255
0<=n2<=127
Notes:
*Parameters are used as described below:
c=0 non compressed graphics mode
c=1 compressed graphics mode (Run-Length data compression).
Data is treated as counter byte, data, counter byte,
data, etc.
if c<128
counter byte = number of data bytes to follow - 1
if c>127
counter byte = number of times to repeat the next
byte of data calculated as follows:
257-counter byte
v=vertical dot density (v/3600)
h=horizontal dot density (h/3600)
m=vertical dot count (rows of dot graphics)
n1 and n2 = horizontal dot count (columns of dot graphics)
horizontal dot count = n1 + (n2 x 256)
*This command can be used only during graphics mode, entered by
sending the ESC+(+G command.
*The combination of v = 10 and h = 20 (360 vertical dots by 180
horizontal dots) is not possible.
*You can specify the horizontal dot count in 1-dot increments. If the
dot count is not a multiple of 8, the remaining data in the data byte
at the far right of each row is ignored.
*The final print position is the dot after the far right dot on the
top row of the graphics printed with this command.
*Repetitive data bytes can be mixed with data blocks in the same
command.
*You cannot move the print position in a negative direction (up)
immediately after this command. Also, the printer ignores commands
moving the vertical print position in a negative direction if the
final position would be above any graphics printed with this command.
<1/8 INCH PAPER FEED>
Sets paper feed amount to 1/8 inch (3.2 mm).
Name: ESC 0
Dec.: 27 48
Hex.: 1B 30
Comment:
*PANEL LOCK in the Function mode affects this command.
<1/6 INCH PAPER FEED>
Sets paper feed amount to 1/6 inch (4.23 mm).
Name: ESC 2
Dec.: 27 50
Hex.: 1B 32
Comment:
*PANEL LOCK in the Function mode affects this command.
<n/60 INCH PAPER FEED>
Sets paper feed amount to n/60 inch.
Name: ESC A n (n = 0 to 127)DEC
Dec.: 27 65 n
Hex.: 1B 41 n
Comment:
*PANEL LOCK in the Function mode affects this command.
<n/180 INCH PAPER FEED>
Sets programmable paper feed amount to n/180 inch.
Name: ESC 3 n
Dec.: 27 51 n
Hex.: 1B 33 n
Comments:
*n/180 inch paper feed is valid for n = 0 to 255.
*PANEL LOCK in the Function mode affects this command.
<n/360 INCH PAPER FEED>
Sets paper feed amount to n/360 inch.
Name: ESC + n (n = 0 to 255)DEC
Dec.: 27 43 n
Hex.: 1B 2B n
Comment:
*PANEL LOCK in the Function mode affects this command.
<LINE FEED (LF)>
Feeds paper to next line position after printing data in the line buffer.
Name: LF
Dec.: 10
Hex.: 0A
Comments:
*The amount of spacing generated by LF is determined by the
paper feed commands or the Function mode setting.
*When the new line position falls within the perforation skip
area, the paper advances to the next top of form position.
<FORM FEED (FF)>
Feeds paper to next top of form position after printing data
in the line buffer.
Name: FF
Dec.: 12
Hex.: 0C
Comment:
*The amount of spacing generated by FF is determined
by the page length commands or the Function mode setting.
<n/180 INCH SINGLE LINE FEED>
Feeds paper n/180 inch after printing data in the line buffer.
Name: ESC J n (n = 0 to 255)DEC
Dec.: 27 74 n
Hex.: 1B 4A n
<n/180 INCH REVERSE DIRECTION SINGLE LINE FEED>
Prints data in the line buffer and feeds the paper n/180 inch
in the reverse direction.
Name: ESC j n (n = 0 to 255)DEC
Dec.: 27 106 n
Hex.: 1B 6A n
Note:
*Reverse paper feed cannot be executed in the area within
3.6inches (91.4 mm) of the bottom perforation. Additionally,
the perforation should not be included in the area of
reverse paper feed.
*In the pull tractor mode, this command will not reverse feed
paper correctly and resulting printout may not be correct.
<PAGE LENGTH (INCHES)>
Sets page length in inches.
Name: ESC C 0 n (n = 0 to 22)DEC
Dec.: 27 67 0 n
Hex.: 1B 43 00 n
Comments:
*Upon receipt of ESC+C+0+n, the present line position becomes
the top of form position.
*ESC+C+0+n releases the skip perforation settings.
*The page length does not change even if the paper feed amount
is changed.
*The terms "form" and "page" are interchangeable.
*PANEL LOCK in the Function mode affects this command.
<PAGE LENGTH (LINES)>
Sets page length in number of lines.
Name: ESC C n (n = 1 to 127)DEC
Dec.: 27 67 n
Hex.: 1B 43 n
Comments:
*Upon receipt of ESC+C+n, the present line position becomes
the top of form position.
*If n=0, page length returns to the inch designation.
*ESC+C+n releases the skip perforation settings.
*The page length does not change even if the paper feed amount
is changed
*The terms "form" and "page" are interchangeable.
*PANEL LOCK in the Function mode affects this command.
<LEFT MARGIN>
Sets position of left margin.
Name: ESC l n
Dec.: 27 108 n
Hex.: 1B 6C n
Comments:
*The following values of n can be used:
8" print line 9" print line
-------------------------------------------------------
Pica print n = 0 to 78 n=0 to 88
Elite print n = 0 to 93 n=0 TO 105
Micron print n = 0 to 117 n=0 to 133
Compressed print n = 0 to 133 n=0 to 151
*If the value of n exceeds the right margin value, ESC+l+n
is ignored.
*Setting the left margin clears all data in the line buffer.
*In proportional spacing, the value of n is based on 10 CPI.
*Once the left margin position is set, a change in the
character mode will not alter this left margin setting.
*PANEL LOCK in the Function mode affects this command.
<RIGHT MARGIN>
Sets position of right margin.
Name: ESC Q n
Dec.: 27 81 n
Hex.: 1B 51 n
Comments:
The following values of n can be used:
8" print line 9" print line
-------------------------------------------------------
Pica print n = 2 to 80 n=2 to 90
Elite print n = 3 to 96 n=3 TO 108
Micron print n = 3 to 120 n=3 to 136
Compressed print n = 4 to 137 n=4 to 155
*If the value n exceeds the left margin value, ESC+Q+n is
ignored.
*Setting the right margin clears all data in the line buffer.
*In proportional spacing, the value of n is based on 10 CPI.
*Once the right margin position is set, a change in the
character mode will not alter this right margin setting.
*PANEL LOCK in the Function mode affects this command.
<SKIP PERFORATION>
Sets skip perforation.
Set:
Name: ESC N n (n = 1 to 127)DEC
Dec.: 27 78 n
Hex.: 1B 4E n
Release:
Name: ESC O
Dec.: 27 79
Hex.: 1B 4F
Comments:
*The value of n specifies the number of lines (or n times the current
line spacing amount) to be skipped at the bottom of the page.
*If n>128, the value is processed as n-128. If n=128 the command
is ignored.
*The skip perforation amount does not change even if the paper feed
amount is changed following a skip perforation designation.
*The skip perforation setting is released upon receipt of the page
length designation command.
*The skip perforation command overrides the front panel Bottom
margin setting.
*PANEL LOCK in the Function mode affects this command.
<PAGE LENGTH (UNIT)>
Set page length in defined unit
SET :
NAME: ESC ( C 2 0 n1 n2
Hex.: 1B 28 43 2 0 n1 n2
Dec.: 27 40 67 02 00 n1 n2
Comment:
*Parameter range:
0<((n2 x 256)+n1) x (defined unit) <= 22
Notes:
*Define unit with the ESC ( U command. Default value = 1/360 inches.
*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 (this results in undesirable
contradictions between the actual and logical page settings).
*Setting the page length cancels the top and bottom-margin settings.
*Changing the defined unit does not affect the current page-length
setting.
<PAGE FORMAT>
Set page format
SET :
NAME: ESC ( c 4 0 m1 m2 n1 n2
Hex.: 1B 28 63 4 0 m1 m2 n1 n2
Dec.: 27 40 99 04 00 m1 m2 n1 n2
Comments:
*Top Margin = m1+(m2x256) x (defined unit) where top margin < bottom
margin.
*Bottom Margin = n1+(n2x256) x (defined unit) where bottom margin <
22 inches.
*Define unit with the ESC ( U command. Default value = 1/360 inches.
*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.
*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 (this results in undesirable contradictions
between the actual and logical page settings).
*This command cancels any previous top and bottom-margin settings.
*Changing the defined unit does not affect the current page-length
setting.
<HORIZONTAL TAB STOP SETTING>
Sets horizontal tabulations to specified values.
Set:
Name: ESC D n1 n2...nx 0
Dec.: 27 68 n1 n2...nx 0
Hex.: 1B 44 n1 n2...nx 00
Release:
Name: ESC D 0
Dec.: 27 68 0
Hex.: 1B 44 00
Comments:
*Horizontal tabs are set from the left margin position.
*Horizontal tabs must be designated such that n1<n<2<...<nx.
*A maximum of 32 tabs may be set on a single line.
*ESC+D+n1+n2+...+nx+0 sets horizontal tab stops. The HT command
executes the tab designation.
*In proportional spacing, horizontal tabs are set based on 10 CPI.
*When the left margin is changed, horizontal tabs will be moved
based on new margin setting.
*When the printer is powered up, tabs are automatically set every
8 characters.
*If the pitch is altered after designation of horizontal tabs,
the tab positions do not move.
<HORIZONTAL TAB EXECUTION>
Executes the horizontal TAB as designated by ESC+D+n1+n2...+nx+0.
Name: HT
Dec.: 9
Hex.: 09
Comments:
*If the value of horizontal TAB is less than present column
position, then HT is ignored.
*When in underline mode, the blank spaces between consecutive
HT print positions are not underlined.
<VERTICAL TAB STOP SETTING>
Sets vertical tabulation to specified values.
Set:
Name: ESC B n1 n2...nx 0
Dec.: 27 66 n1 n2...nx 0
Hex.: 1B 42 n1 n2...nx 00
Release:
Name: ESC B 0
Dec.: 27 66 0
Hex.: 1B 42 00
Comments:
*VT is set from the top of form position.
*Vertical tabs must be designed such that n1<n2...<nx.
*ESC+B+n1+n2+...+nx+0 sets vertical tab stops. The VT
command executes the tab designation.
*If the paper feed amount is changed after a designation
of vertical tabs, the positions do not change.
*VT settings are released by page length designation commands.
*A maximum of 16 tabs may be set.
<VERTICAL TAB EXECUTION>
Executes the vertical TAB as designated by
ESC+B+n1+n2+...+nx+0, ESC+b+m+n1+n2+...nx+0.
Name: VT
Dec.: 11
Hex.: 0B
Comments:
*When TABs are set with VT or VFU setting command and when
there is no tab setting on a position exceeding the present
line, data in the line buffer is printed and the paper is fed
to the next top of form position (same as FF).
*On power up no vertical tabs have been set; therefore, when
a VT is sent, the paper advances one line.
*When vertical TAB is cleared by ESC+B+0, execution of VT
causes data in the line buffer to be printed and does not
advance the paper.
<BACKSPACE>
Prints data in the line buffer and backspaces one space.
Name: BS
Dec.: 8
Hex.: 08
Comment:
*The backspacing amount will depend upon the pitch set when
the BS code is executed.
<CARRIAGE RETURN>
Prints data in the line buffer and returns the printhead
to the left margin position.
Name: CR
Dec.: 13
Hex.: 0D
Comments:
*Certain computers issue an automatic line feed with
a carriage return. Check your computer manual for details.
*When automatic LF is set to ON through the initial setup mode
or through initial setup disk, a LF is executed whenever a CR
code is executed.
<ONE LINE UNI-DIRECTION>
Causes printhead to move to its left margin position.
Name: ESC <
Dec.: 27 60
Hex.: 1B 3C
<UNI-DIRECTION>
Sets uni-directional printing mode.
Set:
Name: ESC U 1
Dec.: 27 85 1
Hex.: 1B 55 01
Release:
Name: ESC U 0
Dec.: 27 85 0
Hex.: 1B 55 00
Comment:
*PANEL LOCK in the Function mode affects this command.
<HALF SPEED PRINTING>
Sets printing to half speed.
Set:
Name: ESC s 1
Dec.: 27 115 1
Hex.: 1B 73 01
Release:
Name: ESC s 0
Dec.: 27 115 0
Hex.: 1B 73 00
Comment:
*Half speed printing can be set only in the draft pica,
draft elite, standard density image, double-speed
double-density image, CRT I image and CRT II image modes.
<ABSOLUTE HORIZONTAL POSITION>
Moves the printhead to an absolute horizontal position.
Name: ESC $ n1 n2
Dec.: 27 36 n1 n2
Hex.: 1B 24 n1 n2
Comments:
*This command moves the print position to a position
n1+256xn2 dots (units) from the left margin. Each unit
equals 1/60th of an inch.
*To calculate n1 and n2 first determine the total increments
of 1/60 inch to move the print position from the left margin.
Let this value = m then
n1=m MOD 256
n2=int(m/256)
<RELATIVE HORIZONTAL POSITION>
Moves the printhead left or right to a relative horizontal position.
Name: ESC \ n1 n2
Dec.: 27 92 n1 n2
Hex.: 1B 5C n1 n2
Comments:
*This command moves the print position n/120 (in draft mode) or
n/180 (in LQ mode) of an inch from current position.
*To calculate n1 and n2 first determine the total increments of
1/120 (in draft mode) or n/180 (in LQ mode) of an inch to move
the print position from its current position.
*If the head movement will be to the left subtract this number
from 65536.
*To move n/120 (draft) or n/180 (LQ) of an inch to right: m=n
To move n/120 (draft) or n/180 (LQ) of an inch to left: m=65536-n
n1=m MOD 256 n2=int(m/256)
*If the resulting movement would place the printhead outside
current margins, the command is ignored.
<ABSOLUTE VERTICAL POSITION>
Set absolute vertical print position
SET :
NAME: ESC ( V 2 0 n1 n2
Hex.: 1B 28 56 2 0 n1 n2
Dec.: 27 40 86 02 00 n1 n2
Comment:
*Parameter range:
0<=n1<=255
0<=n2<=127
Notes:
*Set the defined unit using the ESC+(+U command.
*The default defined unit for this command is 1/360 inch.
*The new position is (n1+(n2x256)) x (defined unit) inches from
the current top margin position.
*Moving the print position below the bottom-margin position produces
the following results:
Continuous paper Moves the vertical print position to the
top-margin position on the next page
Single-sheet paper Ejects the paper
*The printer ignores this command under the following conditions:
- The command would move the print position more than 1/2 inch in the
negative direction
- The command would move the print position in the negative direction
after a graphics command is sent on the current line
<RELATIVE VERTICAL POSITION>
Set relative vertical print position
SET :
NAME: ESC ( v 2 0 n1 n2
Hex.: 1B 28 76 2 0 n1 n2
Dec.: 27 40 118 02 00 n1 n2
Comment:
*Parameter range:
0<=n1<=255 For positive movement:
0<=n2<=127 0<=n2<=63
For negative movement:
64<=n2<=127
Notes:
*Set the defined unit using the ESC+(+U command.
*The default defined unit for this command is 1/360 inch.
*The new position is (n1+(n2x256)) x (defined unit) from the
current vertical position.
*Moving the print position below the bottom-margin position produces
the following results:
Continuous paper Moves the vertical print position to the
top-margin position on the next page
Single-sheet paper Ejects the paper
*The printer ignores this command under the following condition:
- The command would move the print position in the negative direction
after a graphics command is sent on the current line.
<CANCEL>
Clears all data in the line buffer.
Name: CAN
Dec.: 24
Hex.: 18
<REMOTE PRINTER SELECT>
Selects printer after it has been deselected by DC3.
Name: DC1 (Device Control 1)
Dec.: 17
Hex.: 11
Comment:
*All data sent to the printer between DC3 and DC1 is lost.
<REMOTE PRINTER DESELECT>
Deselects printer until it has been selected by DC1.
Name: DC3 (Device Control 3)
Dec.: 19
Hex.: 13
Comment:
*All data sent to the printer between DC3 and DC1 is lost.
<DELETE>
Deletes the last character stored in the line buffer.
Name: DEL
Dec.: 127
Hex.: 7F
Comment:
*Only text characters may be deleted. Bit image data, spacing
generated by consecutive TABs, and commands cannot be deleted.
<MSB ON>
Sets the Most Significant Bit to 1.
Name: ESC >
Dec.: 27 62
Hex.: 1B 3E
Comments:
*ESC+> has no effect on bit image data.
*This setting can be released by ESC+#.
*PANEL LOCK in the Function mode affects this command.
<MSB OFF>
Sets the Most Significant Bit to 0.
Name: ESC =
Dec.: 27 61
Hex.: 1B 3D
Comments:
*ESC+"=" has no effect on bit image data.
*This setting can be released by ESC+#.
*PANEL LOCK in the Function mode affects this command.
<CANCELS MSB SETTING>
Sets printer to receive 8th bit as is.
Name: ESC #
Dec.: 27 35
Hex.: 1B 23
Comments:
*This setting has no effect on bit image data.
*PANEL LOCK in the Function mode affects this command.
<FONT DOWNLOADING>
Defines download characters into specified address locations in RAM.
Name: ESC & 0 n m d0 d1 d2 Data
Dec.: 27 38 0 n m d0 d1 d2 Data
Hex.: 1B 26 00 n m d0 d1 d2 Data
Comments:
*The values n and m are the ASCII address locations of the
first and last characters being defined.
*The values of d0, d1 and d2 define the character cell.
*d0=Left Space d1=Body d2=Right Space
*The values of d0,d1 and d2 vary with pitch as follows:
d1 d0+d1+d2 (total)
Draft 9 12
LQ 10 CPI 29 36
LQ 12 CPI 23 30
LQ 15 CPI 15 24
PS 37 42
*PANEL LOCK in the Function mode affects this command.
*This command is operational only when DOWNLOAD is set to ON
through the Function mode or setup disk.
*Draft and Letter Quality (LQ) fonts can be downloaded simultaneously.
Draft download characters are printed when the printer is
in draft mode. LQ characters are printed when the printer is
in LQ mode.
*Making Maximum Use of the Buffer:
Epson mode:
18K (18,432) bytes are available and can be divided between draft
and LQ characters in any combination, subject to hexadecimal
address and buffer limits. Draft letters require 39 bytes maximum
and LQ letters require 114 maximum. To determine if the desired
combination will fit, use the formula:
(# of draft characters x 39)+(# of LQ characters x 114) <= 18,432
For example:
120 draft and 120 LQ are desired.
(120 x 39)+(120 x 114) = 4,680+13,680 = 18,360
Therefore this combination will fit.
Because no more than 256 addresses can be identified in 1 byte
(00h-FFh), 256 is the maximum number of draft characters that can
be defined. The maximum number of LQ characters that can be loaded
is 161.
*Designing Download Characters
1. Draft Font
To download a character you must first design the character.
A draft font download character uses 9 columns and 24 rows of
dots. Since a given column contains 24 dots, each column is divided
into 3 portions, upper 8, middle 8 and lower 8 dots. Column 1 is
labeled P1H for the upper 8 dots, P1M for the middle 8 and P1L for
the lower 8 dots. Similarly, column 9 is labeled P9H for the upper
8 dots, P9M for the middle 8 and P9L for the lower 8 dots. Column
10, 11 and 12 are always set to zero, thus we are working with P1H
through P9L.
In the matrix below, the circles represent pins that may be fired.
You may darken any circle, provided no two adjacent horizontal
circles are filled in. Once you have designed the character, you
must quantify each dot column, P1H-P9H, by summing the powers of
two represented by each dot. Consider the design of the Greek
character gamma.
Character body Right space columns
_____________ <---------------><---->
2^7 (128) . . . . . . . . . . . .
2^6 (64) . . . . . . . . . . . .
2^5 (32) . . . . . . . . . . . .
Upper 2^4 (16) . . . . . . . . . . . .
8 dots (H) 2^3 (8) . . . . . . . . . . . .
2^2 (4) . . . . . . . . . . . .
2^1 (2) . . . . . . . . . . . .
_____________2^0 (1) . . O . . . . . O . . .
2^7 (128) . O . O . . . . . . . .
2^6 (64) . . . . O . . . O . . .
2^5 (32) . . . . . . . . . . . .
Middle 2^4 (16) . . . . . O . O . . . .
8 dots (M) 2^3 (8) . . . . . . . . . . . .
2^2 (4) . . . . . . O . . . . .
2^1 (2) . . . . . O . . . . . .
_____________2^0 (1) . . . . O . O . . . . .
2^7 (128) . . . . . . . . . . . .
2^6 (64) . . . . O . O . . . . .
2^5 (32) . . . . . . . . . . . .
Lower 2^4 (16) . . . . . O . . . . . .
8 dots (L) 2^3 (8) . . . . . . . . . . . .
2^2 (4) . . . . . . . . . . . .
2^1 (2) . . . . . . . . . . . .
_____________2^0 (1) . . . . . . . . . . . .
: : : : : : : : :
P1H=0, P1M=0, P1L=0 ..........: : : : : : : : :
: : : : : : : :
P2H=0, P2M=128, P2L=0 ............: : : : : : : :
: : : : : : :
P3H=1, P3M=0, P3L=0 ..............: : : : : : :
: : : : : :
P4H=0, P4M=128, P4L=0 ................: : : : : :
: : : : :
P5H=0, P5M=65, P5L=64 ..................: : : : :
: : : :
P6H=0, P6M=18, P6L=16 ....................: : : :
: : :
P7H=0, P7M=5, P7L=64 ......................: : :
: :
P8H=0, P8M=16, P8L=0 ........................: :
:
P9H=1, P9M=64, P9L=0 ..........................:
2. LQ Font
A LQ font download character uses 36 columns and 24 rows of dots.
Designing and storing fonts can be performed in the same way as
with draft fonts. Here, consider the design of the one-eighth-note
character:
Left space Character body Right space
_____________ <----><------------------><-------->
2^7 (128) ....................................
2^6 (64) ....................................
2^5 (32) ................O...................
Upper 2^4 (16) ................O...................
8 dots (H) 2^3 (8) ................O.O.................
2^2 (4) ................O.O.O...............
2^1 (2) ................O.O.O.O.............
_____________2^0 (1) ................O.....O.O...........
2^7 (128) ................O.......O...........
2^6 (64) ................O........O..........
2^5 (32) ................O........O..........
Middle 2^4 (16) ................O........O..........
8 dots (M) 2^3 (8) ................O........O..........
2^2 (4) ..........O.O...O.......O...........
2^1 (2) ........O.O.O.O.O...................
_____________2^0 (1) .......O.O.O.O.O....................
2^7 (128) ......O.O.O.O.O.O...................
2^6 (64) .......O.O.O.O.O....................
2^5 (32) ........O.O.O.O.....................
Lower 2^4 (16) ..........O.O.......................
8 dots (L) 2^3 (8) ....................................
2^2 (4) ....................................
2^1 (2) ....................................
_____________2^0 (1) ....................................
::::::::::::::::::::
P7H=0, P7M=0, P7L=128 ...........::::::::::::::::::::
:::::::::::::::::::
P8H=0, P8M=1, P8L=64 ............:::::::::::::::::::
::::::::::::::::::
P9H=0, P9M=2, P9L=160 .............::::::::::::::::::
:::::::::::::::::
P10H=0, P10M=1, P10L=64 ..............:::::::::::::::::
::::::::::::::::
P11H=0, P11M=6, P11L=176 ...............::::::::::::::::
:::::::::::::::
P12H=0, P12M=1, P12L=64 ................:::::::::::::::
::::::::::::::
P13H=0, P13M=6, P13L=176 ...............::::::::::::::
:::::::::::::
P14H=0, P14M=1, P14L=64 .................:::::::::::::
::::::::::::
P15H=0, P15M=2, P15L=160 ..................::::::::::::
:::::::::::
P16H=0, P16M=1, P16L=64 ...................:::::::::::
::::::::::
P17H=63, P17M=254, P17L=128 ....................::::::::::
:::::::::
P18H=0, P18M=0, P18L=0 ......................:::::::::
::::::::
P19H=14, P19M=0, P19L=0 .......................::::::::
:::::::
P20H=0, P20M=0, P20L=0 .........................:::::::
::::::
P21H=6, P21M=0, P21L=0 .........................::::::
:::::
P22H=0, P22M=0, P22L=0 ...........................:::::
::::
P23H=3, P23M=0, P23L=0 ...........................::::
:::
P24H=0, P24M=0, P24L=0 ............................:::
::
P25H=1, P25M=132, P25L=0 .............................::
:
P26H=0, P26M=120, P26L=0 ..............................:
*Entering Download Data
Epson mode:
1. Draft Font
Download command in the Epson mode is:
ESC+"&"+0+n+m+d0+d1+d2+DATA
Input format for a download command is:
LPRINT CHR$(27)+"&"+CHR$(0)+CHR$(n)+CHR$(m)+
CHR$(d0)+CHR$(d1)+CHR$(d2)+DATA
Programming example for the Greek character gamma is as follows:
10 REM Draft Download Character
20 WIDTH "LPT1:",255
30 OPEN "LPT1:" AS #1
40 PRINT #1,CHR$(27)+"x0";
50 PRINT #1,CHR$(27)+":"+CHR$(0)+CHR$(0)+CHR$(0);
60 PRINT #1,CHR$(27)+"&"+CHR$(0)+CHR$(65)+CHR$(65);
70 PRINT #1,CHR$(1)+CHR$(8)+CHR$(3);
80 PRINT #1,CHR$(0)+CHR$(128)+CHR$(0);
90 PRINT #1,CHR$(1)+CHR$(0)+CHR$(0);
100 PRINT #1,CHR$(0)+CHR$(128)+CHR$(0);
110 PRINT #1,CHR$(0)+CHR$(65)+CHR$(64);
120 PRINT #1,CHR$(0)+CHR$(18)+CHR$(16);
130 PRINT #1,CHR$(0)+CHR$(5)+CHR$(64);
140 PRINT #1,CHR$(0)+CHR$(16)+CHR$(0);
150 PRINT #1,CHR$(1)+CHR$(64)+CHR$(0);
160 REM Download Character Print
170 PRINT #1,CHR$(27)+"%"+CHR$(1);
180 PRINT #1,"A A A A A A A A A A";CHR$(10);
190 PRINT #1,CHR$(27)+"%"+CHR$(0);
200 END
First determine where in RAM the character(s) should be stored.
The variables "n" and "m" are used for this purpose. The value
specified for n indicates the location into which the first
download character will be stored. The value specified for "m"
indicates the location into which the last download character will
be stored. If you are storing a single character, then n=m.
Next define the value of "d0", "d1" and "d2", which specify
attribute information. The attribute information includes the
following:
d0=number of space dot columns to the left of the character body
d1=number of character body dot columns
d2=number of space dot columns to the right of the character body
In our sample program, we created a gamma character. This character
consists of 1 left space dot column, 8 body dot columns and 3 right
space dot columns. Therefore, d0=1, d1=8 and d2=3.
In general, d1 cannot exceed 9 and d0+d1+d2 cannot exceed 12.
Note:
Program line 40 is necessary for downloading the draft font and
designates draft printing.
Program lines 80-150 use the eight values P2H-P9L to define the
shape and size of the gamma.
Program line 170 selects download character generator. After this
selection, by printing the download code [in this example,
CHR$(65)="A"] the downloaded character is printed.
Two horizontal adjacent columns cannot be printed in either draft
or LQ mode.
2. LQ Font
Input format is the same as with draft fonts.
Programming example for the one-eighth-note character is as follows:
10 REM Define Download Letter Quality Character
20 WIDTH "LPT1:",255
30 OPEN "LPT1:" AS #1
40 PRINT #1,CHR$(27)+"x1";
50 PRINT #1,CHR$(27)+":"+CHR$(0)+CHR$(0)+CHR$(0);
60 PRINT #1,CHR$(27)+"&"+CHR$(0)+CHR$(65)+CHR$(65);
70 PRINT #1,CHR$(6)+CHR$(20)+CHR$(10);
80 PRINT #1,CHR$(0)+CHR$(0)+CHR$(128);
90 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64);
100 PRINT #1,CHR$(0)+CHR$(2)+CHR$(160);
110 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64);
120 PRINT #1,CHR$(0)+CHR$(6)+CHR$(176);
130 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64);
140 PRINT #1,CHR$(0)+CHR$(6)+CHR$(176);
150 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64);
160 PRINT #1,CHR$(0)+CHR$(2)+CHR$(160);
170 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64);
180 PRINT #1,CHR$(63)+CHR$(254)+CHR$(128);
190 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0);
200 PRINT #1,CHR$(14)+CHR$(0)+CHR$(0);
210 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0);
220 PRINT #1,CHR$(6)+CHR$(0)+CHR$(0);
230 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0);
240 PRINT #1,CHR$(3)+CHR$(0)+CHR$(0);
250 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0);
260 PRINT #1,CHR$(1)+CHR$(132)+CHR$(0);
270 PRINT #1,CHR$(0)+CHR$(120)+CHR$(0);
280 REM Download Character Print
290 PRINT #1,CHR$(27)+"%"+CHR$(1);
300 PRINT #1,"A A A A A A A A A A";CHR$(10);
310 PRINT #1,CHR$(27)+"%"+CHR$(0);
320 END
The number of printable columns for characters downloaded in the
letter quality font is as follows:
d0+d1+d2
LQ 10 CPI 36
LQ 12 CPI 30
Proportional Spacing 42
*Print Mode Combination:
Draft Download characters can be printed only when the FONT is
set to Draft through software commands or the Function mode.
Letter quality download characters can be printed only when the
FONT is set to Bold PS, Courier, Orator, Prestige, Roman, Sans Serif,
Script or OCR-B through the Function mode or through software
commands.
<SELECTS ROM CG OR DOWNLOADED CG>
Name: ESC % n
Dec.: 27 37 n
Hex.: 1B 25 n
Comments:
*The following values of n can be used.
n=0: Select ROM Character Generator (CG)
n=1: Select download CG
*PANEL LOCK in the Function mode affects this command.
<ROM CHARACTER GENERATION SET COPY>
Copies both draft and LQ internal ROM CG font into the
downloadable font area.
Name: ESC : 0 n 0 (n = 0 through 6)
Dec.: 27 58 0 n 0
Hex.: 1B 3A 00 n 00
Comments:
*The value of n specifies the LQ font to download.
Refer to Font Style command ESC+"k"+n.
*Upon receipt of the command, all previous downloaded fonts
are cleared.
*When altering only part of the ROM CG, use this command
before font downloading.
*PANEL LOCK in the Function mode affects this command.
<BELL>
Sounds buzzer for approximately 0.5 second.
Name: BEL
Dec.: 7
Hex.: 07
<RESET PRINTER>
Initializes printer, causing data in the line buffer,
but not in the receive buffer, to be cleared.
Name: ESC @
Dec.: 27 64
Hex.: 1B 40
<SELECTS CSF>
Selects Cut Sheet Feeder (CSF) mode ON/OFF.
Name: ESC EM n
Dec.: 27 25 n
Hex.: 1B 19 n
Comments:
*The following values of n can be used.
n=R: Eject a sheet
n=0: Cut Sheet Feeder mode is OFF
n=4: Cut Sheet Feeder mode is ON
*PANEL LOCK in the Function mode affects this command.
Note:
*If the Cut Sheet Feeder mode is set to ON without
installing the CSF, the paper will not feed correctly.
<PRINT COLOR>
Select printing color
SET :
NAME: ESC r n
Hex.: 1B 72 n
Dec.: 27 114 n
Comment:
*The following values of n can be used:
n=0 Black
n=1 Red (Magenta)
n=2 Blue (Cyan)
n=3 Violet
n=4 Yellow
n=5 Orange (Red)
n=6 Green
Notes:
*This command is operational only when the color kit (KX-PCK11) is
installed.
*Print yellow first when overlapping colors.
< Epson Mode Characters (USA Normal)>
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 30 30 36 36 18 36 36 36 30 36 36 36 30 30
1 1 - - 18 30 36 36 30 36 36 42 18 36 36 36 30 30
2 2 - - 30 30 36 36 36 30 30 42 30 36 36 36 30 30
3 3 - - 30 30 36 36 30 30 30 30 30 36 36 36 30 30
4 4 - - 30 30 36 36 36 24 30 30 36 36 36 36 30 30
5 5 - - 36 30 36 42 30 36 30 30 36 36 36 36 30 30
6 6 - - 36 30 36 36 24 36 30 36 30 36 36 36 30 30
7 7 - - 18 30 36 42 36 42 30 36 30 36 36 36 30 30
8 8 - - 24 30 36 36 36 30 30 36 30 36 36 36 30 30
9 9 - - 24 30 24 36 18 36 30 36 30 36 36 36 30 30
10 A - - 30 18 30 30 24 30 30 42 30 36 36 36 30 30
11 B - - 30 18 36 24 36 24 18 30 30 36 36 36 36 30
12 C - - 18 30 36 30 18 18 18 30 30 36 36 36 30 30
13 D - - 30 30 42 24 42 24 18 36 30 36 36 36 30 30
14 E - - 18 30 36 30 36 30 36 42 30 36 36 36 30 30
15 F - - 30 30 36 30 30 30 36 30 30 36 36 36 30 30
Sub/Superscript PS width is 2/3 of Normal PS.
Compressed PS width is 1/2 of Normal PS.
Unit:1/360 inch (0.07 mm)
< Epson Mode Characters (Multilingual Normal)>
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 30 30 36 36 18 36 36 36 30 36 36 36 36 30
1 1 - - 18 30 36 36 30 36 36 42 18 36 36 36 30 30
2 2 - - 30 30 36 36 36 30 30 42 30 36 36 36 36 30
3 3 - - 30 30 36 36 30 30 30 30 36 36 36 36 36 30
4 4 - - 30 30 36 36 36 24 30 30 36 36 36 36 30 30
5 5 - - 36 30 36 42 30 36 30 30 36 36 36 18 36 30
6 6 - - 36 30 36 36 24 36 30 36 30 36 30 24 30 30
7 7 - - 18 30 36 42 36 42 30 36 30 36 36 24 36 30
8 8 - - 24 30 36 36 36 30 30 36 30 36 36 24 36 30
9 9 - - 24 30 24 36 18 36 30 36 36 36 36 36 42 30
10 A - - 30 18 30 30 24 30 30 42 30 36 36 42 42 30
11 B - - 30 18 36 24 36 24 18 30 30 36 36 42 36 24
12 C - - 18 30 36 30 18 18 18 30 30 36 36 36 36 24
13 D - - 30 30 42 24 42 24 18 36 30 30 36 18 30 30
14 E - - 18 30 36 30 36 30 36 30 30 36 36 24 18 30
15 F - - 30 30 36 30 30 30 36 30 30 36 30 36 20 30
Sub/Superscript PS width is 2/3 of Normal PS.
Compressed PS width is 1/2 of Normal PS.
Unit:1/360 inch (0.07 mm)
< Epson Mode Characters (Portugal Normal)>
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 30 30 36 36 18 36 36 36 30 36 36 36 30 30
1 1 - - 18 30 36 36 30 36 36 36 18 36 36 36 30 30
2 2 - - 30 30 36 36 36 30 30 36 30 36 36 36 30 30
3 3 - - 30 30 36 36 30 30 30 30 36 36 36 36 30 30
4 4 - - 30 30 36 36 36 24 30 30 36 36 36 36 36 30
5 5 - - 36 30 36 42 30 36 30 30 36 36 36 36 36 30
6 6 - - 36 30 36 36 24 36 36 42 30 36 36 36 30 30
7 7 - - 18 30 36 42 36 42 30 36 30 36 36 36 30 30
8 8 - - 24 30 36 36 36 30 30 24 30 36 36 36 30 30
9 9 - - 24 30 24 36 18 36 36 36 36 36 36 36 30 30
10 A - - 30 18 30 30 24 30 30 42 30 36 36 36 30 30
11 B - - 30 18 36 24 36 24 24 30 30 36 36 36 30 30
12 C - - 18 30 36 30 18 18 36 30 30 36 36 36 30 30
13 D - - 30 30 42 24 42 24 18 42 30 36 36 36 30 30
14 E - - 18 30 36 30 36 30 36 42 30 36 36 36 30 30
15 F - - 30 30 36 30 30 30 36 36 30 36 36 36 30 30
Sub/Superscript PS width is 2/3 of Normal PS.
Compressed PS width is 1/2 of Normal PS.
Unit:1/360 inch (0.07 mm)
< Epson Mode Characters (Canada-French Normal)>
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 30 30 36 36 18 36 36 36 18 36 36 36 30 30
1 1 - - 18 30 36 36 30 36 36 36 18 36 36 36 30 30
2 2 - - 30 30 36 36 36 30 30 36 30 36 36 36 30 30
3 3 - - 30 30 36 36 30 30 36 30 36 36 36 36 30 30
4 4 - - 30 30 36 36 36 24 36 36 30 36 36 36 36 30
5 5 - - 36 30 36 42 30 36 30 24 30 36 36 36 36 30
6 6 - - 36 30 36 36 24 36 30 36 24 36 36 36 30 30
7 7 - - 18 30 36 42 36 42 30 36 30 36 36 36 30 30
8 8 - - 24 30 36 36 36 30 30 30 24 36 36 36 30 30
9 9 - - 24 30 24 36 18 36 30 36 30 36 36 36 30 30
10 A - - 30 18 30 30 24 30 30 42 30 36 36 36 30 30
11 B - - 30 18 36 24 36 24 18 30 30 36 36 36 30 30
12 C - - 18 30 36 30 18 18 18 30 30 36 36 36 30 30
13 D - - 30 30 42 24 42 24 30 42 30 36 36 36 30 30
14 E - - 18 30 36 30 36 30 36 42 30 36 36 36 30 30
15 F - - 30 30 36 30 30 30 30 30 30 36 36 36 30 30
Sub/Superscript PS width is 2/3 of Normal PS.
Compressed PS width is 1/2 of Normal PS.
Unit:1/360 inch (0.07 mm)
< Epson Mode Characters (Norway Normal)>
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 30 30 36 36 18 36 36 36 30 36 36 36 30 30
1 1 - - 18 30 36 36 30 36 36 42 18 36 36 36 30 30
2 2 - - 30 30 36 36 36 30 30 42 30 36 36 36 30 30
3 3 - - 30 30 36 36 30 30 30 30 36 36 36 36 30 40
4 4 - - 30 30 36 36 36 24 30 30 36 36 36 36 36 30
5 5 - - 36 30 36 42 30 36 30 30 36 36 36 36 36 30
6 6 - - 36 30 36 36 24 36 30 36 30 36 36 36 30 30
7 7 - - 18 30 36 42 36 42 30 36 30 36 36 36 30 30
8 8 - - 24 30 36 36 36 30 30 36 30 36 36 36 30 30
9 9 - - 24 30 24 36 18 36 30 36 30 36 36 36 30 30
10 A - - 30 18 30 30 24 30 30 42 30 36 36 36 30 30
11 B - - 30 18 36 24 36 24 18 30 30 36 36 36 30 30
12 C - - 18 30 36 30 18 18 18 30 30 36 36 36 30 30
13 D - - 30 30 42 24 42 24 18 36 30 36 36 36 30 30
14 E - - 18 30 36 30 36 30 36 42 30 36 36 36 30 30
15 F - - 30 30 36 30 30 30 36 30 30 36 36 36 30 30
Sub/Superscript PS width is 2/3 of Normal PS.
Compressed PS width is 1/2 of Normal PS.
Unit:1/360 inch (0.07 mm)
< Epson Mode Characters (Turkey Normal)>
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 30 30 36 36 18 36 36 36 30 36 36 36 30 30
1 1 - - 18 30 36 36 30 36 36 42 18 36 36 36 30 30
2 2 - - 30 30 36 36 36 30 30 42 30 36 36 36 30 30
3 3 - - 30 30 36 36 30 30 30 30 36 36 36 36 30 30
4 4 - - 30 30 36 36 36 24 30 30 36 36 36 36 36 30
5 5 - - 36 30 36 42 30 36 30 30 36 36 36 36 36 30
6 6 - - 36 30 36 36 24 36 30 36 36 36 36 36 30 30
7 7 - - 18 30 36 42 36 42 30 36 36 36 36 36 30 30
8 8 - - 24 30 36 36 36 30 30 24 30 36 36 36 30 30
9 9 - - 24 30 24 36 18 36 30 36 30 36 36 36 30 30
10 A - - 30 18 30 30 24 30 30 42 30 36 36 36 30 30
11 B - - 30 18 36 24 36 24 18 30 30 36 36 36 36 30
12 C - - 18 30 36 30 18 18 18 30 30 36 36 36 30 30
13 D - - 30 30 42 24 42 24 18 36 30 36 36 36 30 30
14 E - - 18 30 36 30 36 30 36 36 30 36 36 36 30 30
15 F - - 30 30 36 30 30 30 36 30 30 36 36 36 30 30
Sub/Superscript PS width is 2/3 of Normal PS.
Compressed PS width is 1/2 of Normal PS.
Unit:1/360 inch (0.07 mm)
;
; *******************************
; ***** IBM Mode Commands *****
; *******************************
<PRINT QUALITY>
Name: ESC I n
Dec.: 27 73 n
Hex.: 1B 49 n
Comments:
*The following values of n can be used.
n=0: Internal Draft 10 CPI mode
n=2: Internal LQ 10 CPI mode
n=3: Internal Proportional LQ mode
n=4: Download Draft 10 CPI mode
n=6: Download LQ 10 CPI mode
n=7: Download Proportional LQ mode
n=8: Internal Draft 12 CPI mode
n=10: Internal LQ 12 CPI mode
n=12: Download Draft 12 CPI mode
n=14: Download LQ 12 CPI mode
n=16: Internal Draft 17 CPI mode
n=18: Internal LQ 17 CPI mode
n=20: Download Draft 17 CPI mode
n=22: Download LQ 17 CPI mode
*PANEL LOCK in the Function mode affects this command.
<TYPEFACE>
Selects LQ Typeface.
Name: ESC k n
Dec.: 27 107 n
Hex.: 1B 6B n
Comments:
*The following values can be used.
n=0: Roman
n=1: Sans Serif
n=2: Courier
n=3: Prestige
n=4: Script
n=5: OCR-B
n=6: Bold PS
n=7: Orator
*Typeface must be reselected after any pitch change.
*IBM characters in locations from 0 to 31DEC (except 19,
20, 21DEC) from 00 to 1FHEX (except 13, 14, 15HEX) and
from 250 to 255DEC (from F0 to FFHEX) are printed in
Courier font, regardless of font selection.
*PANEL LOCK in the Function mode affects this command.
<SUB/SUPERSCRIPT FONT>
Selects sub/superscript font with characters printed
in the lower/upper 2/3 area of the line.
Set:
Name: ESC S n
Dec.: 27 83 n
Hex.: 1B 53 n
Release:
Name: ESC T
Dec.: 27 84
Hex.: 1B 54
Comments:
*The following values of n can be used:
n=0: Superscript
n=1: Subscript
*Sub/superscript font is 2/3 normal character height.
*Sub/superscript characters are normal width.
<ELITE PITCH>
Sets printing to 12 characters per inch.
Set:
Name: ESC :
Dec.: 27 58
Hex.: 1B 3A
Release:
Name: DC2
Dec.: 18
Hex.: 12
Comments:
*When in Letter Quality mode, ESC + : selects
the Prestige Typeface (Refer to ESC+I+n).
*PANEL LOCK in the Function mode affects this command.
<COMPRESSED PITCH>
Sets printing to 17 characters per inch.
Set:
Name: SI or ESC SI
Dec.: 15 or 27 15
Hex.: 0F or 1B 0F
Release:
Name: DC2
Dec.: 18
Hex.: 12
Comments:
*When in Letter Quality mode, SI or ESC + SI selects
the Courier Typeface (Refer to ESC+I+n).
*PANEL LOCK in the Function mode affects this command.
<PROPORTIONAL SPACING>
Sets proportional spacing between characters.
Set:
Name: ESC P 1
Dec.: 27 80 1
Hex.: 1B 50 01
Release:
Name: ESC P 0
Dec.: 27 80 0
Hex.: 1B 50 00
Comments:
*When in Letter Quality mode, ESC + P + 1 selects
the Bold PS Typeface (Refer to ESC+I+n).
*PANEL LOCK in the Function mode affects this command.
<EMPHASIZED PRINTING>
Sets printing to twice the original horizontal dot density.
Set:
Name: ESC E
Dec.: 27 69
Hex.: 1B 45
Release:
Name: ESC F
Dec.: 27 70
Hex.: 1B 46
Comments:
*Emphasized characters are printed at half speed
(100 cps in draft pica pitch).
*PANEL LOCK in the Function mode affects this command.
<DOUBLE STRIKE PRINTING>
Sets double strike character printing.
Set:
Name: ESC G
Dec.: 27 71
Hex.: 1B 47
Release:
Name: ESC H
Dec.: 27 72
Hex.: 1B 48
Comments:
*Double strike printing prints each line twice,
with the second line slightly below the first
to create a bold appearance.
*PANEL LOCK in the Function mode affects this command.
<DOUBLE WIDE PRINTING SINGLE LINE>
Sets double wide expanded printing for one line only.
Set:
Name: SO or ESC SO
Dec.: 14 27 14
Hex.: 0E 1B 0E
Release:
Name: DC4 or ESC W 0
Dec.: 20 27 87 0
Hex.: 14 1B 57 00
Comments:
*Single line double wide printing is released when:
- a LF,FF or VT is executed.
- a CR is executed.
- DC4 or ESC+W+0 is executed.
*PANEL LOCK in the Function mode affects this command.
<DOUBLE WIDE PRINTING>
Sets double wide expanded printing.
Set:
Name: ESC W 1
Dec.: 27 87 1
Hex.: 1B 57 01
Release:
Name: ESC W 0
Dec.: 27 87 0
Hex.: 1B 57 00
Comments:
*DC4 will not release the double wide printing set by ESC+W+1.
*PANEL LOCK in the Function mode affects this command.
<DOUBLE HIGH AND DOUBLE WIDE PRINTING>
Sets printing to double high, double wide or both at the same time.
Name: ESC [ @ 4 0 0 0 m3 m4
Dec.: 27 91 64 4 0 0 0 m3 m4
Hex.: 1B 5B 40 04 00 00 00 m3 m4
Comments:
*The value of m3 selects both the line feed and character
height as follows:
Function
m3 Line feed Character height
----------------------------------------
0 Unchanged Unchanged
1 Unchanged Single-line
2 Unchanged Double-high
16 Single Unchanged
17 Single Single-high
18 Single Double-high
32 Double Unchanged
33 Double Single-high
34 Double Double-high
*The value of m4 selects the character width as follows:
m4=0: No change
m4=1: Single-width
m4=2: Double-width
*PANEL LOCK in the Function mode affects this command.
*In the pull tractor mode, this command will not reverse feed
paper correctly and the resulting printout may not be correct.
<UNDERLINING>
Sets continuous underlining of characters.
Set:
Name: ESC - 1
Dec.: 27 45 1
Hex.: 1B 2D 01
Release:
Name: ESC - 0
Dec.: 27 45 0
Hex.: 1B 2D 00
Comments:
*Bit image data, spaces set by the HT code and IBM Graphic
characters will not be underlined.
*Pin No. 24 of the printhead is used for underlining.
<OVERLINING>
Sets continuous overlining of characters.
Set:
Name: ESC _ 1
Dec.: 27 95 1
Hex.: 1B 5F 01
Release:
Name: ESC _ 0
Dec.: 27 95 0
Hex.: 1B 5F 00
Comments:
*Bit image data, spaces set by the HT code, IBM graphic
characters will not be overlined.
*Pin No. 1 of the printhead is used for overlining.
<IBM CHARACTER SET 1>
Selects IBM Character Set 1.
Name: ESC 7
Dec.: 27 55
Hex.: 1B 37
Comments:
*Refer to character set tables in appendix of the operating
instruction manual.
*PANEL LOCK in the Function mode affects this command.
<IBM CHARACTER SET 2>
Selects IBM Character Set 2.
Name: ESC 6
Dec.: 27 54
Hex.: 1B 36
Comments:
*Refer to character set tables in appendix of the operating
instruction manual.
*PANEL LOCK in the Function mode affects this command.
<SETS CODE PAGE>
Changes the current code page.
Name: ESC [ T 4 0 0 0 n1 n2
Dec.: 27 91 84 4 0 0 0 n1 n2
Hex.: 1B 5B 54 04 00 00 00 n1 n2
Comments:
*The values of n1 and n2 select the code pages as follows:
n1=00H and n2=00H: Current
n1=01H and n2=B5H: USA
n1=03H and n2=52H: Multilingual
n1=03H and n2=5CH: Portugal
n1=03H and n2=5FH: Canada French
n1=03H and n2=61H: Norway
n1=03H and n2=59H: Turkey
Except the above: Downloaded font
*PANEL LOCK in the Function mode affects this command.
*Refer to character set tables in appendix of the operating
instruction manual.
<8-PIN STANDARD DENSITY GRAPHICS>
Sets standard density graphic mode [60 dots per inch].
Name: ESC K n1 n2 Data
Dec.: 27 75 n1 n2 Data
Hex.: 1B 4B n1 n2 Data
Comment:
*Refer to "ESC+*+m+n1+n2" command in Epson mode.
<8-PIN DOUBLE DENSITY GRAPHICS>
Sets double density graphic mode [120 dots per inch].
Name: ESC L n1 n2 Data
Dec.: 27 76 n1 n2 Data
Hex.: 1B 4C n1 n2 Data
Comment:
*Refer to "ESC+*+m+n1+n2" command in Epson mode.
<DOUBLE SPEED, DOUBLE DENSITY GRAPHICS>
Sets double speed, double density graphics mode [120 dots per inch].
Name: ESC Y n1 n2 Data
Dec.: 27 89 n1 n2 Data
Hex.: 1B 59 n1 n2 Data
Comments:
*Horizontal adjacent dots cannot be printed.
*Refer to "ESC+*+m+n1+n2" command in Epson mode.
<8-PIN QUADRUPLE DENSITY GRAPHICS>
Sets quadruple density graphics mode [240 dots per inch].
Name: ESC Z n1 n2 Data
Dec.: 27 90 n1 n2 Data
Hex.: 1B 5A n1 n2 Data
Comments:
*Horizontal adjacent dots cannot be printed.
*Refer to "ESC+*+m+n1+n2" command in Epson mode.
<BIT IMAGE MODE SELECTION (AGM)>
Selects one of the 8-pin and 24-pin bit image graphic modes (AGM only).
Name: ESC * m n1 n2 Data
Dec.: 27 42 m n1 n2 Data
Hex.: 1B 2A m n1 n2 Data
Comments:
*The following table illustrates the various modes
based upon the values of m.
m pin dpi dpl
----------------------------------------------------
0 8 60 540 Standard Density
1 8 120 1080 Double Density
2 8 120 1080 Double Speed, Double Density
3 8 240 2160 Quadruple Density
4 8 80 720 CRT I
6 8 90 810 CRT II
32 24 60 540 Standard Density
33 24 120 1080 Double Density
38 24 90 810 CRT III
39 24 180 1620 Triple Density
40 24 360 3240 Hex Density
*When m=2, 3, 40, horizontal adjacent dots cannot be printed.
*The values n1 and n2 indicate the number of graphic columns
to be printed.
*This command is effective only when AGM mode is set to ON
through the initial setup disk or the Function mode.
*Refer to "ESC+*+m+n1+n2" command in Epson mode.
<BIT IMAGE MODE SELECTION>
Selects one of the 8-pin or 24-pin bit image graphic modes.
Name: ESC [ g n1 n2 m Data
Dec.: 27 91 103 n1 n2 m Data
Hex.: 1B 5B 67 n1 n2 m Data
Comments:
*The following table illustrates the various modes
based upon the values of m.
m pin dpi dpl
----------------------------------------------------
0 8 60 540 Standard Density
1 8 120 1080 Double Density
2 8 120 1080 Double Speed, Double Density
3 8 240 2160 Quadruple Density
8 24 60 540 Standard Density
9 24 120 1080 Double Density
11 24 180 1620 Triple Density
12 24 360 3240 Hex Density
*When m=2, 3, 12, horizontal adjacent dots cannot be printed.
*The values n1 and n2 indicate the number of graphic columns
to be printed.
*Refer to "ESC+*+m+n1+n2" command in Epson mode.
<1/8 INCH PAPER FEED>
Sets paper feed amount to 1/8 inch (3.2 mm).
Name: ESC 0
Dec.: 27 48
Hex.: 1B 30
Comment:
*PANEL LOCK in the Function mode affects this command.
<7/72 INCH PAPER FEED>
Sets paper feed amount to 7/72 inch (2.5 mm).
Name: ESC 1
Dec.: 27 49
Hex.: 1B 31
Comment:
*PANEL LOCK in the Function mode affects this command.
<LINE SPACING>
Executes line spacing set by ESC+A+n.
Name: ESC 2
Dec.: 27 50
Hex.: 1B 32
Comment:
*PANEL LOCK in the Function mode affects this command.
<n/72 INCH PAPER FEED SELECTION>
Sets paper feed amount to n/72 inch or n/60 inch (AGM).
Name: ESC A n (n = 0 to 255)DEC
Dec.: 27 65 n
Hex.: 1B 41 n
Comments:
*ESC+2 must be input after ESC+A+n for n/72 inch paper feed
to become effective (when AGM is set to OFF only).
*In the AGM mode, this command sets one line paper feed of
n/60 inch.
*PANEL LOCK in the Function mode affects this command.
<n/216 INCH PAPER FEED>
Sets paper feed amount to n/216 inch or n/180 inch (AGM).
Name: ESC 3 n (n = 0 to 255)DEC
Dec.: 27 51 n
Hex.: 1B 33 n
Comments:
*The paper feed amount is not exactly n/216 inch, for the
minimum unit is 1/360 inch.
*In the AGM mode, this command sets one line paper feed of
n/180 inch.
*PANEL LOCK in the Function mode affects this command.
<PAPER FEED BASE UNIT>
Selects base unit for ESC+3 and ESC+J.
Name: ESC [ \ 4 0 0 0 n 0
Dec.: 27 91 92 4 0 0 0 n 0
Hex.: 1B 5B 5C 04 00 00 00 n 00
Comments:
*The following values of n can be used:
n=180 n/180 inch base unit
n=216 1/216 inch base unit
<AUTOMATIC LINE FEED MODE>
Automatically executes a line feed following a carriage return.
Set:
Name: ESC 5 1
Dec.: 27 53 1
Hex.: 1B 35 01
Release:
Name: ESC 5 0
Dec.: 27 53 0
Hex.: 1B 35 00
Comment:
*PANEL LOCK in the Function mode affects this command.
<LINE FEED (LF)>
Feeds paper to next line position after printing data in the line buffer.
Name: LF
Dec.: 10
Hex.: 0A
Comments:
*The amount of spacing generated by LF is determined
by the paper feed commands or Function mode setting.
*When the new line position falls within the skip perforation
area, the paper advances to the next top of form position.
*When Auto CR is set to ON through the initial setup disk or the
Function mode,a Carriage Return command (CR) is added to each
Line Feed (LF).
<FORM FEED (FF)>
Feeds paper to next top of form position after printing data in the line buffer.
Name: FF
Dec.: 12
Hex.: 0C
Comment:
*The amount of spacing generated by FF is determined
by the page length commands or Function mode setting.
<n/216 INCH SINGLE LINE FEED>
Feeds paper n/216 inch or n/180 inch (AGM) after printing data
in the line buffer.
Name: ESC J n (n = 0 to 255)DEC
Dec.: 27 74 n
Hex.: 1B 4A n
Comments:
*When Auto CR is set to ON through the initial setup disk
or the Function mode, a carriage return command (CR) is
added to each line feed.
*The paper feed amount is not exactly n/216 inch, for the
minimum unit is 1/360 inch.
*In the AGM mode, this command sets one line paper feed of
n/180 inch.
<PAGE LENGTH (INCHES)>
Sets page length in inches.
Name: ESC C 0 n (n = 1 to 255)DEC
Dec.: 27 67 0 n
Hex.: 1B 43 00 n
Comments:
*Upon receipt of ESC+C+0+n, the present line position
becomes the top of form position.
*ESC+C+0+n releases the skip perforation settings.
*The page length does not change even if the paper feed
amount is changed.
*The terms "form" and "page" are interchangeable.
*PANEL LOCK in the Function mode affects this command.
<PAGE LENGTH (LINES)>
Sets page length in number of lines.
Name: ESC C n (n = 1 to 255)DEC
Dec.: 27 67 n
Hex.: 1B 43 n
Comments:
*Upon receipt of ESC+C+n, the present line position
becomes the top of form position.
*If n=0, page length returns to the inch designation.
*ESC+C+n releases the skip perforation settings.
*The page length does not change even if the paper feed
amount is changed.
*The terms "form" and "page" are interchangeable.
*PANEL LOCK in the Function mode affects this command.
<MARGIN SET>
Sets positions of left and right margins.
Name: ESC X n1 n2
Dec.: 27 88 n1 n2
Hex.: 1B 58 n1 n2
Comments:
*The following values of n1 (left) and n2 (right) can be used:
8" print line 9" print line
Pica n1=1 to 78 n2=3 to 80 n1=1 to 88 n2=3 to 90
Elite n1=1 to 93 n2=4 to 96 n2=1 to 105 n2=4 to 108
Compressed n1=1 to 133 n2=5 to 137 n3=1 to 151 n2=5 to 155
*To keep current left or right margin, set n1=0 or n2=0.
*Any right margin designation to the left of the left margin
position is ignored.
*Setting the margin clears all data in the line buffer.
*Once the margin position is set, a change in the pitch will
not alter this margin setting.
*PANEL LOCK in the Function mode affects this command.
<SKIP PERFORATION>
Sets skip perforation.
Set:
Name: ESC N n (n = 0 to 255)
Dec.: 27 78 n
Hex.: 1B 4E n
Release:
Name: ESC O
Dec.: 27 79
Hex.: 1B 4F
Comments:
*The value of n specifies the number of lines (or n times
the current line spacing amount) to be skipped at the bottom
of the page.
*The skip perforation amount does not change even if the paper
feed amount is changed following a skip perforation designation.
*The skip perforation is released upon receipt of the page
length designation command.
*The skip perforation command overrides the front panel Bottom
margin setting.
*PANEL LOCK in the Function mode affects this command.
<TOP OF FORM>
Sets current paper position as the new top of form.
Name: ESC 4
Dec.: 27 52
Hex.: 1B 34
<HORIZONTAL TAB STOP SETTING>
Sets horizontal tabulations to specified values.
Set:
Name: ESC D n1 n2...nx 0
Dec.: 27 68 n1 n2...nx 0
Hex.: 1B 44 n1 n2...nx 00
Release:
Name: ESC D 0
Dec.: 27 68 0
Hex.: 1B 44 00
Comments:
*Horizontal tabs are set from the left margin position.
*Horizontal tabs must be designated such that n1<n2...<nx.
*A maximum of 32 tabs may be set on a single line.
*ESC+D+n1+n2+...+nx+0 sets horizontal tab stops.
*The HT command executes the tab designation.
*In proportional spacing, horizontal tabs are set based on 10 CPI.
*If the character pitch is altered after designation of
horizontal tabs, the tab positions change.
*When the left margin is changed, horizontal tabs will be
moved based on the new margin setting.
*When the printer is powered up, tabs are automatically set
every 8 characters.
<HORIZONTAL TAB EXECUTION>
Executes the horizontal TAB as designated by ESC+D+n1+n2+...nx+0.
Name: HT
Dec.: 9
Hex.: 09
Comments:
*If the value of the horizontal TAB is less than the
present column position, that HT is ignored.
*When in underline mode, the blank spaces between
consecutive HT print positions are not underlined.
<VERTICAL TAB STOP SETTING>
Sets vertical tabulation to specified values.
Set:
Name: ESC B n1 n2...nx 0
Dec.: 27 66 n1 n2...nx 0
Hex.: 1B 42 n1 n2...nx 00
Release:
Name: ESC B 0
Dec.: 27 66 0
Hex.: 1B 42 00
Comments:
*VT is set from the top of form position.
*Vertical tabs must be designed such that n1<n2...<nx.
*ESC+B+n1+n2+...nx+0 sets vertical tab stops. The VT command
executes the tab designation.
*If the paper feed amount is changed after a designation of
vertical tabs, the tab positions do not change.
*A maximum of 64 tabs may be set.
<VERTICAL TAB EXECUTION>
Executes the vertical TAB as designated by ESC+B+n1+n2+...+nx+0.
Name: VT
Dec.: 11
Hex.: 0B
Comments:
*When TABs are set with VT setting command and there is
no tab setting on a position exceeding the present line,
data in the line buffer is printed and the paper is fed
one line (same as LF).
*When vertical TAB has not been set by ESC+B+n1+n2+...+nx+0,
execution of VT causes data in the line buffer to be printed
and advances the paper one line (same function as LF).
<ALL TAB INITIAL CLEAR>
Sets all tabs to power on settings.
Name: ESC R
Dec.: 27 82
Hex.: 1B 52
Comment:
*This command sets horizontal tabs at every 8th position
and clears all vertical tabs.
<BACKSPACE>
Prints data in the line buffer and backspaces one space.
Name: BS
Dec.: 8
Hex.: 08
Comment:
*The backspacing amount will depend upon the pitch set when
the BS code is executed.
<CARRIAGE RETURN>
Prints all data in the line buffer and returns the printhead
to the left margin position.
Name: CR
Dec.: 13
Hex.: 0D
Comments:
*Certain computers issue an automatic line feed with
a carriage return. Check your computer manual for details.
*When Auto LF is set to ON through the Function mode or
the initial setup mode, a Line Feed command (LF) is added to
each Carriage Return (CR) double width printing set.
<UNI-DIRECTION>
Sets uni-directional printing mode.
Set:
Name: ESC U 1
Dec.: 27 85 1
Hex.: 1B 55 01
Release:
Name: ESC U 0
Dec.: 27 85 0
Hex.: 1B 55 00
Comment:
*PANEL LOCK in the Function mode affects this command.
<RELATIVE HORIZONTAL POSITION>
Moves the printhead toward the right n/120 inch.
Name: ESC d n1 n2
Dec.: 27 100 n1 n2
Hex.: 1B 64 n1 n2
Comments:
*Each unit equals n/120 of an inch
*Let m=# of units
Divide m by 256 using long division
The quotient=n2
The remainder=n1
*When underlining or overlining, spaces created by the move
are underlined or overlined.
<CANCEL>
Clears all data in the line buffer.
Name: CAN
Dec.: 24
Hex.: 18
<REMOTE PRINTER SELECT>
Selects printer after it has been deselected by ESC+Q+36.
Name: DC1 (Device Control 1)
Dec.: 17
Hex.: 11
Comment:
*All data sent to the printer between ESC+Q+36 and DC1 is lost.
<REMOTE DESELECT PRINTER>
Deselects printer until it has been selected by DC1.
Name: ESC Q 36
Dec.: 27 81 36
Hex.: 1B 51 24
Comment:
*All data sent to the printer between DC3 and DC1 is lost.
<FONT DOWNLOADING>
Defines download characters into specified address locations
in RAM.
Name: ESC = n1 n2 35 A1 A2 Data
Dec.: 27 61 n1 n2 35 A1 A2 Data
Hex.: 1B 3D n1 n2 23 A1 A2 Data
Comments:
*The values n1 and n2 indicate the number of data bytes to be
downloaded.
*The values A1 and A2 are the low order and high order address
location of the character being defined.
*When n1=n2=0, all previously downloaded characters are cleared.
*PANEL LOCK in the Function mode affects this command
*This command is operational only when through Function mode
or setup disk
Draft and Letter Quality (LQ) fonts can be downloaded simultaneously.
Draft download characters are printed when the printer is
in draft mode. LQ characters are printed when the printer is
in LQ mode.
*Making Maximum Use of the Buffer:
IBM mode:
The 32K bytes available can be divided between draft and LQ
characters in any combination. The download data also can be
entered to RAM by compression. The maximum number of characters
depends on the manner in which the characters are entered.
*Entering Download Data
IBM mode:
Downloading fonts in IBM mode requires downloading character Dot
Pattern data and character Index Table data. Dot pattern data
controls which pins fire when printing a character. Index Table
data is placed in a "look-up table" that provides information on
where Dot Pattern data is stored in memory and defines certain
attributes of the character.
The format for the command to input download data is:
ESC+"="+n1+n2+35+A1+A2+d1+d2+...+dx
where
n1+(256 x n2)=the number of data bytes to be downloaded,
35 is a fixed number that must always be sent, A1h and A2h
indicate the low order and high order addresses in which
data is to be stored, and d1, d2...is the data being
downloaded. This data will be in one of two formats,
depending on whether it is Dot Pattern or Index Table:
1. Index Table Addresses
Starting memory addresses for Index Tables are:
Draft (10 and 12 CPI) 8011HEX
LQ 10 CPI 8912HEX
LQ Proportional 9213HEX
LQ 12 CPI 9B14HEX
To calculate the address for an individual character Index Table
Entry, use equation:
Address=9 x ASCII character number+starting address.
To find the address of the Index Table location for the draft
letter "A":
Multiply 9 x 65 (ASCII character number for "A")=585DEC
Convert to hexadecimal=249HEX
Add starting address for draft=8011HEX
yielding 825AHEX making A1=5AHEX, and A2=82HEX.
2. Dot Pattern Data
Dot Pattern data is sent for all columns that must be
uniquely defined. If adjacent horizontal columns are
identical (or can be made identical knowing that the
printer will not print adjacent horizontal dots) data
compression may be used and the duplicate data need not
be sent. Dot Pattern data may be stored at any address
from A414HEX to FFFFHEX inclusive.
Dot columns for characters are as follows:
Draft (10 and 12 CPI) 10 columns
LQ 10 CPI 36 columns
LQ 12 CPI 30 columns
LQ Proportional 18-42 columns
It is important to note that the last column is always
blank. (e.g. A download draft character is defined by 9
columns. The printer automatically adds the tenth column.)
Data=P1H+P1M+P1L+P2H+P2M+P2L+...+PnH+PnM+PnL
3. Index Table Data
AA1+AA2+IT1+IT2+CM1+...+CM5
where
AA1 and AA2 indicate the address where Dot Pattern data
is stored.
AA1 and AA2 are the high order and the low order bytes
respectively.
IT1 is Index Table byte #1. Bit designation is:
Bit 0 1
7 Normal Character Graphic Character
6 Download Character Resident Character
5 to 0 Number of columns in the character memory
IT2 is Index Table byte #2. Bit designation is:
Bits 7, 6 Type of block graphic character
00 shading character
01 line drawing character
10 underscore character
11 not supported
Bits 5 to 0 number of columns in the character less 1
[e.g. for draft characters,
10-1=9DEC=(001001)BIN bits 5 to 0=001001]
From CM1 to CM5 are compression mask bits. (0=no compression,
1=compression)
CM1 bit 7=1st dot column
bit 6=2nd dot column
.
.
.
CM5 bit 3=37th dot column
bit 2=38th dot column
bit 1=39th dot column
bit 0=40th dot column
All block graphic characters are 30 dots high, even though only
24 dots are defined for each column. An underline is defined as
a blank block graphic character (all zeros). The underline is
generated by the printer during the second pass. A shadow character
repeats dots 1 to 6 of each column as dots 25 through 30
respectively. A line draw character repeats dots 23 and 24 as the
pairs 25 and 26, 27 and 28, and 29 and 30.
Entry data can designate any character data image whether resident
or downloaded. Multiple table entries can designate the same
character. The address of an undefined entry should be 000. An
undefined entry is printed as a space.
Location 0 (00HEX) normally stores the slashed zero. If a character
is downloaded into this location, when the slashed zero is selected
through the initial setup disk, the downloaded character will print
in place of any zero.
4. Data Compression
Data Compression allows the efficient use of memory in storing
downloaded characters, providing space for more characters than
would be available without compression. The printer repeats the
previous dot column in the current column when the current column
compression mask bit is set to 1.
5. Resetting Download Area
Issuing the command ESC+"="+0+0 initializes the download area.
All previously downloaded characters are cleared and the Index
Tables are loaded with information for resident fonts.
6. Programming Examples:
To load the draft character used in the example for the Epson
mode (Greek gamma), the following program may be used.
10 REM Greek Gamma Character Download and print
20 WIDTH "LPT1:",255
30 OPEN "LPT1:" AS #1
40 REM---(Initialize the Download Buffer)
50 PRINT #1,CHR$(27)+"="+CHR$(0)+CHR$(0);
60 REM---(Dot Pattern Data Entry to ASCII "A")
70 PRINT #1,CHR$(27)+"="+CHR$(30)+CHR$(0)+CHR$(35);
80 PRINT #1,CHR$(&H0)+CHR$(&HB0);
90 PRINT #1,CHR$(0)+CHR$(128)+CHR$(0);
100 PRINT #1,CHR$(1)+CHR$(0)+CHR$(0);
110 PRINT #1,CHR$(0)+CHR$(128)+CHR$(0);
120 PRINT #1,CHR$(0)+CHR$(65)+CHR$(64);
130 PRINT #1,CHR$(0)+CHR$(18)+CHR$(16);
140 PRINT #1,CHR$(0)+CHR$(5)+CHR$(64);
150 PRINT #1,CHR$(0)+CHR$(16)+CHR$(0);
160 PRINT #1,CHR$(1)+CHR$(64)+CHR$(0);
170 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0);
180 REM---(Index Table Entry to ASCII "A")
190 PRINT #1,CHR$(27)+"="+CHR$(12)+CHR$(0)+CHR$(35);
200 PRINT #1,CHR$(&H5A)+CHR$(&H82);
210 PRINT #1,CHR$(&HB0)+CHR$(&H0)+CHR$(8);
220 PRINT #1,CHR$(10)+CHR$(0)+CHR$(0);
230 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0);
240 REM---(Download Character print)
250 PRINT #1,CHR$(27)+"I"+CHR$(4);
260 FOR I=1 TO 10
270 PRINT #1,"A";
280 NEXT
290 PRINT #1,CHR$(13);CHR$(10);
300 CLOSE #1
310 END
In this example of Greek gamma, a character is not compressed,
and data of CM1 through CM5 are all zeros.
To load the LQ character used in the example for the one-eighth-
note character, the following program may be used.
Input format is the same as with draft fonts.
Programming example for the one-eighth-note character is as follows:
10 REM One-eight-note Character Download and print
20 WIDTH "LPT1:",255
30 OPEN "LPT1:" AS #1
40 REM---(Initialize the Download Buffer)
50 PRINT #1,CHR$(27)+"="+CHR$(0)+CHR$(0);
60 REM---(Dot Pattern Data Entry to ASCII "B")
70 PRINT #1,CHR$(27)+"="+CHR$(45)+CHR$(0)+CHR$(35);
80 PRINT #1,CHR$(&H0)+CHR$(&HB0);
90 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0);
100 PRINT #1,CHR$(0)+CHR$(0)+CHR$(128);
110 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64);
120 PRINT #1,CHR$(0)+CHR$(3)+CHR$(224);
130 PRINT #1,CHR$(0)+CHR$(7)+CHR$(240);
140 PRINT #1,CHR$(0)+CHR$(3)+CHR$(224);
150 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64);
160 PRINT #1,CHR$(63)+CHR$(254)+CHR$(128);
170 PRINT #1,CHR$(14)+CHR$(0)+CHR$(0);
180 PRINT #1,CHR$(6)+CHR$(0)+CHR$(0);
190 PRINT #1,CHR$(3)+CHR$(0)+CHR$(0);
200 PRINT #1,CHR$(1)+CHR$(132)+CHR$(0);
210 PRINT #1,CHR$(0)+CHR$(120)+CHR$(0);
220 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0);
230 REM---(Index Table Entry to ASCII "B")
240 PRINT #1,CHR$(27)+"="+CHR$(12)+CHR$(0)+CHR$(35);
250 PRINT #1,CHR$(&H64)+CHR$(&H8B);
260 PRINT #1,CHR$(&HB0)+CHR$(&H0)+CHR$(14);
270 PRINT #1,CHR$(35)+CHR$(124)+CHR$(90);
280 PRINT #1,CHR$(85)+CHR$(47)+CHR$(240);
290 REM---(Download Character print)
300 PRINT #1,CHR$(27)+"I"+CHR$(6);
310 FOR I=1 TO 10
320 PRINT #1,"B";
330 NEXT
340 PRINT #1,CHR$(13);CHR$(10);
350 CLOSE #1
360 END
Note:
The left most column of adjacent identical columns has its
compression mask bit set to 0, and that bit in the other columns
is set to 1.
Entry data can designate any character data image whether resident
or downloaded. Multiple table entries can designate the same
character. The address of an undefined entry should be 000.
An undefined entry is printed as a space.
Location 0 (00HEX) normally stores the slashed zero. If a character
is downloaded into this location, when the slashed zero is selected
through the initial setup disk, the downloaded character will print
in place of any zero.
ASCII character in location 255 (FFHEX) cannot be defined.
<BELL>
Sounds the buzzer for approximately 0.5 second.
Name: BEL
Dec.: 7
Hex.: 07
<ALL CHARACTER CHART PRINTING (Continuous)>
Prints continuously from the All Character Chart.
Name: ESC \ n1 n2
Dec.: 27 92 n1 n2
Hex.: 1B 5C n1 n2
Comments:
*The values specified for n1 and n2 indicate how many
characters to print from All Character Chart, calculating
the total count with this formula; Total count=n2x256+n1.
*The data following this command will be printed as characters
from the All Character Chart.
*Refer to IBM All Character Chart in appendix of the operating
instruction manual.
<ALL CHARACTER CHART PRINTING (Single)>
Prints a single character from the All Character Chart.
Name: ESC ^
Dec.: 27 94
Hex.: 1B 5E
Comments:
*Only the first byte of data following this command will
be printed as a character from the All Character Chart.
*Refer to IBM All Character Chart in appendix of the operating
instruction manual.
<SETS OFF LINE MODE>
Stops printing and sets printer to OFF LINE mode.
Name: ESC j
Dec.: 27 106
Hex.: 1B 6A
Comment:
*When you desire to print again, press the ON LINE switch.
<INITIAL STATE>
Resets to initial state.
Name: ESC [ K n1 0 m 36 p1 p2
Dec.: 27 91 75 n1 0 m 36 p1 p2
Hex.: 1B 5B 4B n1 00 m 24 p1 p2
Comments:
*The following values of n1 can be used.
n1=1: Initialize only
n1=3: Initialize and set by p1
n1=4: Initialize and set by p1 and p2
*The following table illustrates the various modes based
upon the value of m.
m Initialization Download
---------------------------------------------------------
0 Current setting Not cleared Not saved
1 Current setting Cleared Not saved
4 FACTORY setting Not Cleared Not saved
5 FACTORY setting Cleared Not saved
254 Current setting Cleared Saved
255 FACTORY setting Cleared Saved
*The following tables illustrate the parameter specifications.
p1 (Parameter 1)
Bit OFF ON
----------------------------------------------------------
7 Discard byte Process this byte Ignore this byte
6 Not used
5 Paper out alarm Enable Disable
4 Auto CR OFF ON
3 Auto LF OFF ON
2 Form length 11" 12"
1 Zero slash Normal Slashed Zero
0 Character set Set 1 Set 2
p2 (Parameter 2):
Bit OFF ON
----------------------------------------------------------
7 Discard byte Process this byte Ignore this byte
6 Select code page USA Multilingual
5 Not used --- ---
4 Not used --- ---
3 Not used --- ---
2 Not used --- ---
1 Not used --- ---
0 Cut sheet feeder Disable Enable
<PRINT COLOR>
Select printing color
SET :
NAME: ESC r n
Dec.: 27 114 n
Hex.: 1B 72 n
Comment:
*The following values of n can be used:
n=0 Black
n=1 Red (Magenta)
n=2 Blue (Cyan)
n=3 Violet
n=4 Yellow
n=5 Orange (Red)
n=6 Green
Notes:
*This command is operational only when the color kit (KX-PC11) is
installed.
*Print yellow first when overlapping colors.
< IBM Mode Characters (USA)>
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 30 30 30 30 30 36 30 36 42 36 30 30 30 30 30 30
1 1 30 30 30 30 42 42 30 36 36 42 18 30 30 30 36 30
2 2 30 30 30 30 42 42 36 30 30 42 30 30 30 30 36 30
3 3 30 30 30 30 42 36 30 30 30 30 36 30 30 30 36 30
4 4 30 30 30 30 42 42 36 24 30 30 36 30 30 30 42 30
5 5 30 30 30 30 36 42 30 36 30 30 42 30 30 30 36 30
6 6 30 30 36 30 36 42 24 36 30 36 30 30 30 30 36 30
7 7 30 30 18 30 42 42 36 42 30 36 30 30 30 30 30 30
8 8 30 30 30 30 42 42 36 36 30 36 30 30 30 30 42 30
9 9 30 30 30 30 24 42 18 36 30 42 30 30 30 30 42 30
10 A 30 30 30 30 30 36 18 30 30 42 30 30 30 30 42 30
11 B 30 30 30 30 42 30 36 30 18 30 30 30 30 30 30 30
12 C 30 30 30 30 36 30 18 30 18 30 30 30 30 30 30 30
13 D 30 30 30 30 42 30 42 30 18 30 30 30 30 30 42 30
14 E 30 30 30 30 42 30 36 30 42 42 42 30 30 30 30 30
15 F 30 30 30 30 42 30 30 30 42 30 42 30 30 30 30 30
Compressed PS width is 1/2 of Normal PS.
Unit:1/360 inch (0.07 mm)
< IBM Mode Characters (Multilingual)>
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 30 30 30 30 30 36 30 36 42 36 30 30 30 36 42 30
1 1 30 30 30 30 42 42 30 36 36 42 18 30 30 42 36 30
2 2 30 30 30 30 42 42 30 30 30 42 30 30 30 36 42 30
3 3 30 30 30 30 42 36 30 30 30 30 36 30 30 36 42 30
4 4 30 30 30 30 42 42 36 24 30 30 36 30 30 36 30 30
5 5 30 30 36 30 36 42 30 36 30 30 42 42 30 18 42 30
6 6 30 30 36 30 36 42 24 36 30 36 30 42 30 24 36 30
7 7 30 30 18 30 42 42 36 42 30 36 30 42 42 24 36 30
8 8 30 30 30 30 42 42 36 36 30 36 30 30 30 24 42 30
9 9 30 30 30 30 24 42 18 36 30 42 30 30 30 30 42 30
10 A 30 30 30 30 30 36 18 30 30 42 30 30 30 30 42 30
11 B 30 30 30 30 42 30 36 30 18 30 30 30 30 30 42 30
12 C 30 30 30 30 36 30 18 30 18 30 30 30 30 30 36 30
13 D 30 30 30 30 42 30 42 30 18 42 30 30 30 30 42 30
14 E 30 30 30 30 42 30 36 30 42 30 42 30 30 24 30 30
15 F 30 30 30 30 42 30 30 30 42 30 42 30 30 30 30 30
Compressed PS width is 1/2 of Normal PS.
Unit:1/360 inch (0.07 mm)
< IBM Mode Characters (Portugal)>
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 30 30 30 30 30 36 30 36 42 36 30 30 30 30 30 30
1 1 30 30 30 30 42 42 30 36 36 42 18 30 30 30 36 30
2 2 30 30 30 30 42 42 36 30 30 36 30 30 30 30 36 30
3 3 30 30 30 30 42 36 30 30 30 30 36 30 30 30 36 30
4 4 30 30 30 30 42 42 36 24 30 30 36 30 30 30 42 30
5 5 30 30 36 30 36 42 30 36 30 30 42 30 30 30 36 30
6 6 30 30 36 30 36 42 24 36 42 42 30 30 30 30 36 30
7 7 30 30 18 30 42 42 36 42 30 36 30 30 30 30 30 30
8 8 30 30 30 30 42 42 36 30 30 24 30 30 30 30 42 30
9 9 30 30 30 30 24 42 18 36 36 42 42 30 30 30 42 30
10 A 30 30 30 30 30 36 18 30 30 42 30 30 30 30 42 30
11 B 30 30 30 30 42 30 36 30 24 30 30 30 30 30 30 30
12 C 30 30 30 30 36 30 18 30 42 30 30 30 30 30 30 30
13 D 30 30 30 30 42 30 42 30 18 42 30 30 30 30 42 30
14 E 30 30 30 30 42 30 36 30 42 42 42 30 30 30 30 30
15 F 30 30 30 30 42 30 30 30 42 42 42 30 30 30 30 30
Compressed PS width is 1/2 of Normal PS.
Unit:1/360 inch (0.07 mm)
< IBM Mode Characters (Canada-French)>
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 30 30 30 30 30 36 30 36 42 36 30 30 30 30 30 30
1 1 30 30 30 30 42 42 30 36 36 36 30 30 30 30 36 30
2 2 30 30 30 30 42 42 36 30 30 36 30 30 30 30 36 30
3 3 30 30 30 30 42 36 30 30 30 30 36 30 30 30 36 30
4 4 30 30 30 30 42 42 36 24 42 36 30 30 30 30 42 30
5 5 30 30 30 30 36 42 30 36 30 24 30 30 30 30 36 30
6 6 30 30 36 30 36 42 24 36 30 36 30 30 30 30 36 30
7 7 30 30 18 30 42 42 36 42 30 36 30 30 30 30 30 30
8 8 30 30 30 30 42 42 36 36 30 30 24 30 30 30 42 30
9 9 30 30 30 30 24 42 18 36 30 42 30 30 30 30 42 30
10 A 30 30 30 30 30 36 18 30 30 42 30 30 30 30 42 30
11 B 30 30 30 30 42 30 36 30 18 30 30 30 30 30 30 30
12 C 30 30 30 30 36 30 18 30 18 30 30 30 30 30 30 30
13 D 30 30 30 30 42 30 42 30 30 42 30 30 30 30 42 30
14 E 30 30 30 30 42 30 36 30 42 42 42 30 30 30 30 30
15 F 30 30 30 30 42 30 30 30 30 30 42 30 30 30 30 30
Compressed PS width is 1/2 of Normal PS.
Unit:1/360 inch (0.07 mm)
< IBM Mode Characters (Norway)>
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 30 30 30 30 30 36 30 36 42 36 30 30 30 30 30 30
1 1 30 30 30 30 42 42 30 36 36 42 18 30 30 30 36 30
2 2 30 30 30 30 42 42 36 30 30 42 30 30 30 30 36 30
3 3 30 30 30 30 42 36 30 30 30 30 36 30 30 30 36 30
4 4 30 30 30 30 42 42 36 24 30 30 36 30 30 30 42 30
5 5 30 30 30 30 36 42 30 36 30 30 42 30 30 30 36 30
6 6 30 30 36 30 36 42 24 36 30 36 30 30 30 30 36 30
7 7 30 30 18 30 42 42 36 42 30 36 30 30 30 30 30 30
8 8 30 30 30 30 42 42 36 36 30 36 30 30 30 30 42 30
9 9 30 30 30 30 24 42 18 36 30 42 30 30 30 30 42 30
10 A 30 30 30 30 30 36 18 30 30 42 30 30 30 30 42 30
11 B 30 30 30 30 42 30 36 30 18 30 30 30 30 30 30 30
12 C 30 30 30 30 36 30 18 30 18 30 30 30 30 30 30 30
13 D 30 30 30 30 42 30 42 30 18 42 30 30 30 30 42 30
14 E 30 30 30 30 42 30 36 30 42 42 42 30 30 30 30 30
15 F 30 30 30 30 42 30 30 30 42 30 30 30 30 30 30 30
Compressed PS width is 1/2 of Normal PS.
Unit:1/360 inch (0.07 mm)
< IBM Mode Characters (Turkey)>
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 30 30 30 30 30 36 30 36 42 36 30 30 30 30 30 30
1 1 30 30 30 30 42 42 30 36 36 42 18 30 30 30 36 30
2 2 30 30 30 30 42 42 36 30 30 42 30 30 30 30 36 30
3 3 30 30 30 30 42 36 30 30 30 30 36 30 30 30 36 30
4 4 30 30 30 30 42 42 36 24 30 30 36 30 30 30 42 30
5 5 30 30 30 30 36 42 30 36 30 30 42 30 30 30 36 30
6 6 30 30 36 30 36 42 24 36 30 36 42 30 30 30 36 30
7 7 30 30 18 30 42 42 36 42 30 36 36 30 30 30 30 30
8 8 30 30 30 30 42 42 36 36 30 24 30 30 30 30 42 30
9 9 30 30 30 30 24 42 18 36 30 42 30 30 30 30 42 30
10 A 30 30 30 30 30 36 18 30 30 42 30 30 30 30 42 30
11 B 30 30 30 30 42 30 36 30 30 30 30 30 30 30 30 30
12 C 30 30 30 30 36 30 18 30 18 30 30 30 30 30 30 30
13 D 30 30 30 30 42 30 42 30 18 30 30 30 30 30 42 30
14 E 30 30 30 30 42 30 36 30 42 36 42 30 30 30 30 30
15 F 30 30 30 30 42 30 30 30 42 30 42 30 30 30 30 30
Compressed PS width is 1/2 of Normal PS.
Unit:1/360 inch (0.07 mm)
Download Driver Pack
After your driver has been downloaded, follow these simple steps to install it.
Expand the archive file (if the download file is in zip or rar format).
If the expanded file has an .exe extension, double click it and follow the installation instructions.
Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.
Find the device and model you want to update in the device list.
Double-click on it to open the Properties dialog box.
From the Properties dialog box, select the Driver tab.
Click the Update Driver button, then follow the instructions.
Very important: You must reboot your system to ensure that any driver updates have taken effect.
For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.