You are on page 1of 30

Esta es una guía de modo de uso de caracteres ESC para impresorasComments: de

matriz *The following values of n can be used:


de puntos n=0: Superscript
n=1: Subscript
P.Ej Chr(27) + 15 = Caracter comprimido *Sub/superscript font is 1/2 normal character height.
Chr(27) + "C" + 25 = Largo de pagina a 25 lineas
<PICA PITCH>
Sets printing to 10 characters per inch (up to 80 characters per
line).
RTM184 V1.0
;***************************************************************************
Name: ESC P
**
Dec.: 27 80
;* << Panasonic KX-P1150 >> *
Hex.: 1B 50
;* COMMAND REFERENCE *
;***************************************************************************
Comment:
**
*When pica and compressed are set simultaneously, output is
17 CPI (up to 137 CPL).
; *********************************
<ELITE PITCH>
; ***** EPSON Mode Commands *****
Sets printing to 12 characters per inch (up to 96 characters per
; *********************************
line).

Name: ESC M
<PRINT QUALITY>
Dec.: 27 77
Selects print quality.
Hex.: 1B 4D
Name: ESC x n
Comment:
Dec.: 27 120 n
*When elite and compressed are set simultaneously, output is
Hex.: 1B 78 n
20 CPI (up to 160 CPL).
Comment:
<MICRON PITCH>
*The following values of n can be used:
Sets printing to 15 characters per inch (up to 120 characters per
n=0:Draft font
line).
n=1:NLQ font
Name: ESC g
<FONT STYLE>
Dec.: 27 103
Selects NLQ font style.
Hex.: 1B 67
Name: ESC k n
Comment:
Dec.: 27 107 n
*When micron and compressed are set simultaneously, output is
Hex.: 1B 6B n
15 CPI (up to 120 CPL).
Comments:
<COMPRESSED PITCH>
*The following values of n can be used:
Sets printing to 17 characters per inch (up to 137 characters per
n=0: Roman
line).
n=1: Sans Serif
n=2: Courier
Set:
n=6: Bold PS
Name: SI or ESC SI
*This command is effective only in near letter quality mode
Dec.: 15 or 27 15
(ESC+x+1).
Hex.: 0F or 1B 0F
<SUB/SUPERSCRIPT FONT>
Release:
Selects sub/superscript font with characters printed in the
Name: DC2
lower/upper area of the line.
Dec.: 18
Hex.: 12
Set:
Name: ESC S n
Comments:
Dec.: 27 83 n
*When pica and compressed are set simultaneously, output is
Hex.: 1B 53 n
17 CPI (up to 137 characters per line).
*When elite and compressed are set simultaneously, output is
Release:
20 CPI (up to 160 CPL).
Name: ESC T
*When micron and compressed are set simultaneously, output is
Dec.: 27 84
15 CPI (up to 120 CPL).
Hex.: 1B 54
*If proportional spacing is set together with compressed
printing, compressed printing is ineffective. <DOUBLE HIGH PRINTING>
Sets double high printing.
<PROPORTIONAL SPACING>
Sets proportional spacing between characters. Set:
Name: ESC w 1
Set: Dec.: 27 119 1
Name: ESC p 1 Hex.: 1B 77 01
Dec.: 27 112 1
Hex.: 1B 70 01 Release:
Name: ESC w 0
Release: Dec.: 27 119 0
Name: ESC p 0 Hex.: 1B 77 00
Dec.: 27 112 0
Hex.: 1B 70 00 Comments:
*Sub/superscript and compressed modes are not valid with double
Comments: height
*Proportional spacing overrides pica, elite, and micron printing(10 and 12 cpi only)
pitch setting. *ESC+"!"+n can also be used to release double height printing(see
*If proportional spacing is set together with compressed Programmable Pitch for valid "n" values).
printing, compressed printing is ineffective.
*This command is effective only in near letter quality mode <DOUBLE WIDE PRINTING (SINGLE LINE)>
(ESC+x+1). Sets double wide (expanded) printing for one line only.

<PROGRAMMABLE PITCH/HIGHLIGHTING> Set:


Sets a combination of character pitch and/or highlighting. Name: SO or ESC SO
Dec.: 14 or 27 14
Name: ESC ! n (n = 0 to 255)DEC Hex.: 0E or 1B 0E
Dec.: 27 33 n
Hex.: 1B 21 n Release:
Name: DC4 or ESC W 0
Comments: Dec.: 20 or 27 87 0
*The value of n determines the pitch and highlight combinations. Hex.: 14 or 1B 57 00
*To find the value of n, add up the decimal numbers below for
the print modes you wish to select: Comment:
0: Pica *Single line double wide printing is released when:
1: Elite - a LF, FF or VT is executed.
2: PS - the printer is initialized.
4: Compressed - DC4 or ESC+W+0 is executed.
8: Emphasized - ESC+!+0 is executed.
16: Double-strike
32: Double-wide <DOUBLE WIDE PRINTING>
64: Italic Sets double wide (expanded) printing.
128: Underlining
Set:
*Invalid values of n follow rules noted in individual commands. Name: ESC W 1
*When elite and compressed are set simultaneously output is Dec.: 27 87 1
20 CPI (up to 160 CPL). Hex.: 1B 57 01

<EMPHASIZED PRINTING> Release:


Sets printing to twice the original horizontal dot density. Name: ESC W 0
Dec.: 27 87 0
Set: Hex.: 1B 57 00
Name: ESC E
Dec.: 27 69 Comments:
Hex.: 1B 45 *DC4 will not release the double wide printing set by ESC+W+1.
*Expanded pica output is 5 CPI.
Release: *Expanded elite output is 6 CPI.
Name: ESC F *Expanded micron output is 7.5 CPI.
Dec.: 27 70 *Expanded compressed output is 8.5 CPI.
Hex.: 1B 46
<DOUBLE STRIKE PRINTING>
Comment: Sets double printing.
*Emphasized characters are printed at half speed.
Set:
Name: ESC G Name: ESC 5
Dec.: 27 71 Dec.: 27 53
Hex.: 1B 47 Hex.: 1B 35

Release: Comments:
Name: ESC H *Italic characters are printed in place of characters
Dec.: 27 72 in character set locations 32DEC to 126DEC (20 HEX to 7E HEX).
Hex.: 1B 48 *This command is effective regardless of character set
selected by ESC+t+n.
Comment:
*Double strike printing prints each line twice, with the second <INTERNATIONAL CHARACTER SET>
line slightly below the first to create a bold appearance. Selects international character set.

<UNDERLINING> Name: ESC R n


Sets continuous underlining of characters. Dec.: 27 82 n
Hex.: 1B 52 n
Set:
Name: ESC - 1 Comments:
Dec.: 27 45 1 *The following values of n can be used:
Hex.: 1B 2D 01 n=0 to 13: Selects one of 14 language character sets.
n=64 : Selects Legal character set.
Release: *Character set tables in the appendix of the operating instruction
Name: ESC - 0 manual identifies the characters generated by the appropriate
Dec.: 27 45 0 codes.
Hex.: 1B 2D 00 *International character sets can be set through the setup disk.

Comment: <ENABLE UPPER CONTROL CODES>


*Bit image data, spaces set by the HT code, and IBM graphic Assigns character codes 128 to 159 as control codes
characters will not be underlined.
Name: ESC 7
<WORD PROCESSING MODE SELECTION> Dec.: 27 55
Hex.: 1B 37
Name: ESC a n
Dec.: 27 97 n Comments:
Hex.: 1B 61 n *Refer to character set tables in appendix of the operating
instruction manual.
Comment: *This command is not operational when the Italic character
*The following values of n can be used. set is selected by ESC+t+n.
n=0: Releases word processing mode.
n=1: Selects centering mode. <ENABLE PRINTING OF UPPER CONTROL CODES>
n=2: Selects right alignment mode. Assigns character codes 128 to 159 as printable characters
n=3: Selects justification mode.
Name: ESC 6
<CHARACTER DOT SPACING> Dec.: 27 54
Sets character dot spacing Hex.: 1B 36

Name: ESC SP n (n = 0 to 127)DEC Comments:


Dec.: 27 32 n *Refer to character set tables in appendix of the operating
Hex.: 1B 20 n instruction manual.
*This command is not operational when the Italic character
Comment: set is selected by ESC+t+n.
*Sets the amount of dot space (Draft: n/120 inch,
NLQ: n/180 inch) added to the right of each character <ALTERNATE CHARACTER TABLE>
to allow for micro justification. Selects alternate character table.

<ITALIC FONT> Name: ESC t n


Selects italic character printing. Dec.: 27 116 n
Hex.: 1B 74 n
Set:
Name: ESC 4 Comments:
Dec.: 27 52 *The following values of n can be used:
Hex.: 1B 34 n=0: Character table 0 : default = Italic
n=1: Character table 1 : default = PC437 (USA)
Release: n=2: Character table 2 : default = User defined
n=3: Character table 3 : default = PC437 (USA) numerical value which instructs the printer to print one column
*Use the ESC+(+t command to assign a pre-defined character set of dots. Through such techniques in BASIC as looping, numerical
to a character table. The character set charts are found in the values for each column on a line are input and processed. The
appendix of the operating instruction manual. result is one line of graphics.
*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 8-Bit 7-Bit
you Pin No. Pins Interface Interface
have assigned another character table to table 2. -------------------------------------------------
1 O 2^7=128 Not used
<BIT IMAGE> 2 O 2^6=64 2^6=64
3 O 2^5=32 2^5=32
* Bit Image (Graphics) 4 O 2^4=16 2^4=16
The bit image (Graphics) enables you to control the firing 5 O 2^3=8 2^3=8
of each pin of the printhead to create virtually any graphics 6 O 2^2=4 2^2=4
design you desire. 7 O 2^1=2 2^1=2
8 O 2^0=1 2^1=1
1. Dot Density 9 O Not used Not used

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 As an example, suppose you want to fire pin-blocks 1, 2, 5 and
you to access a variety of dot densities through specific control 8 simultaneously. Then you compute the following sum:
commands. The various dot densities and corresponding control
commands appear as follows: Input code = Pin 1 code + Pin 2 code + Pin 5 code + Pin 8 code
= 2^7 + 2^6 + 2^3 + 2^0
Command Function Dots/Inch Dots/Line = 128 + 64 + 8 + 1
ESC+"K"+n1+n2 Standard density 60 480 = 201
ESC+"L"+n1+n2 Double density 120 960
ESC+"Y"+n1+n2 Double speed,Double density 120 960 Thus, the value 201 is entered in the CHR$ function in order to
ESC+"Z"+n1+n2 Quadruple density 240 1920 print a single column of dots resulting from firing pin-blocks
ESC+"*"+m+n1+n2 8-Pin Mode Selection: 1, 2, 5, and 8.
m=0 (Standard) 60 480
m=1 (Double) 120 960 For our final example, refer to the standard density designation
m=2 (Double speed,Double density) 120 960 in Table above. This setting is given by ESC+"K"+n1+n2. Suppose
m=3 (Quadruple density) 240 1920 you wish to print 100 columns of dots, where every column fires
m=4 (CRT I) 80 640 pin 1 and 8 only.
m=5 (Plotter) 72 576
m=6 (CRT II) 90 720 You first compute the values of n1 and n2.
m=7 (Double density plotter) 144 1152
ESC+"^"+m+n1+n2 9-Pin Mode Selection: This is done by finding values for n1 and n2, as follows:
m=0 (Standard) 60 480
m=1 (Double) 120 960 Divide the total number of columns you select, by 256 (max # of
m=2 (Double speed,Double density) 120 960 columns). The result is n1 and the remainder is n2.
m=3 (Quadruple density) 240 1920
m=4 (CRT I) 80 640
m=5 (Plotter) 72 576 n1 = 100 MOD 256 = 100
m=6 (CRT II) 90 720 n2 = 100 / 256 = 0 so, n2=0 and n1=100
m=7 (Double density plotter) 144 1152
ESC+"?"+n+m Bit Image Mode Reassignment: Our control code ESC+"K"+n1+n2 now translates into:
n= "K", "L", "Y", "Z"
m=0 (Standard) 60 480 LPRINT CHR$(27)+"K"+CHR$(100)+CHR$(0);
m=1 (Double) 120 960
m=2 (Double speed,Double density) 120 960 Next compute the code for firing pins 1 and 8 simultaneously:
m=3 (Quadruple density) 240 1920
m=4 (CRT I) 80 640 Input Code = Pin 1 code + Pin 8 code
m=5 (Plotter) 72 576 = 2^7 + 2^0
m=6 (CRT II) 90 720 = 128 + 1
m=7 (Double density plotter) 144 1152 = 129

2. 8-Pin Bit Image Mode Finally, we incorporate our two calculations into the following
program. Note that lines 20 and 30 are necessary for the proper
Of the 9-pins in the printhead, the 8-pin bit image graphics execution of this program on many IBM-compatible computers.
mode uses the upper eight pins only. Each pin corresponds to Such BASIC statements suppress CR and LF codes and enable
a power of two. By summing the powers of two corresponding printing on a full line without unwanted "breaks". Programs
to each of the pins you wish to fire, you will obtain a which include statements such as lines 20 and 30 cannot use
LPRINTs to print data. In such cases, PRINT # statements must Suppose you wish to print 100 columns of dots, where every
be used. Line 90 is necessary to CLOSE all open files. column
fires pins 1,2,5,8, and 9 as above.
A programming example is as follows:
As in the 8-pin example , n1=100 and n2=0. Our control code
10 REM STANDARD DENSITY ESC+^+m+n1+n2 now translate into:
20 WIDTH "LPT1:",255
30 OPEN "LPT1:" AS #1 LPRINT CHR$(27)+"^"+CHR$(0)+CHR$(100)+CHR$(0);
40 PRINT #1,CHR$(27)+"K"+CHR$(100)+CHR$(0);
50 FOR I=1 TO 100 If we incorporate this information into a program, we might
60 PRINT #1, CHR$(129); have the following:
70 NEXT I
80 PRINT #1,CHR$(10); 10 REM 9-PIN STANDARD DENSITY
90 CLOSE 20 WIDTH "LPT1:",255
100 END 30 OPEN "LPT1:" AS #1
40 PRINT #1,CHR$(27)+"^"+CHR$(0)+CHR$(100)+CHR$(0);
3. 9-Pin Bit Image Mode 50 FOR I=1 TO 100
60 PRINT #1, CHR$(201)+CHR$(128);
In the 9-pin bit image mode, all 9 pins of the printhead may 70 NEXT I
be fired. The 9 pins in the printhead are divided into two 80 PRINT #1,CHR$(10);
portions, the upper 8 pins and the bottom pin. 90 CLOSE
100 END
As in the 8-pin mode, the upper 8 pins correspond to powers
of two, ranging from 2^0 to 2^7. The firing of one or more of <STANDARD DENSITY GRAPHICS>
these 8 pins represents 1 bytes of data. When fired, it is Sets standard density graphics mode [60 dots per inch
represented by the value 0. Together, these two bytes determine (25.4 mm)].
the dot configuration for a single column of graphics.
Name: ESC K n1 n2 Data
Dec.: 27 75 n1 n2 Data
Pin No. Pins Interface Byte Hex.: 1B 4B n1 n2 Data

1 O 2^7=128 Comment:
2 O 2^6=64 *Refer to "BIT IMAGE(GRAPHICS)".
3 O 2^5=32
4 O 2^4=16 1 <DOUBLE DENSITY GRAPHICS>
5 O 2^3=8 Sets double density graphics mode [120 dots per inch
6 O 2^2=4 (25.4 mm)].
7 O 2^1=2
8 O 2^0=1 Name: ESC L n1 n2 Data
-------------------------------------------------------------------------- Dec.: 27 76 n1 n2 Data
9 O 2^7=128 Hex.: 1B 4C n1 n2 Data

NOT USED 2 Comment:


*Refer to "BIT IMAGE(GRAPHICS)".
--------------------------------------------------------------------------
<DOUBLE SPEED/DOUBLE DENSITY GRAPHICS>
As an example, suppose you want to fire pins 1,2,5,8 and 9 Sets double speed double density graphics mode
simultaneously. Then you determine the following two values: [120 dots per inch (25.4 mm)].

Byte 1: Input code = Pin 1 code + Pin 2 code + Pin 3 code + Name: ESC Y n1 n2 Data
Pin 5 code + Pin 8 code Dec.: 27 89 n1 n2 Data
= 2^7 + 2^6 + 2^3 + 2^0 Hex.: 1B 59 n1 n2 Data
= 128 + 64 + 8 + 1
= 201 Comments:
*Horizontal adjacent dots cannot be printed.
Byte 2: Input code = Pin 9 code *Refer to "BIT IMAGE(GRAPHICS)".
= 2^7 = 128
<QUADRUPLE DENSITY GRAPHICS>
Thus, the two bytes for a single column of dots are entered as: Sets quadruple density graphics mode
[240 dots per inch (25.4 mm)].
CHR$(201); CHR$(128)
Name: ESC Z n1 n2 Data
Refer to the 9-pin standard density designation in the table. Dec.: 27 90 n1 n2 Data
This setting is given by ESC+"^"+m+n1+n2, where m=0. Hex.: 1B 5A n1 n2 Data
Sets paper feed amount to 1/8 inch (3.2 mm).
Comments:
*Horizontal adjacent dots cannot be printed. Name: ESC 0
*Refer to "BIT IMAGE(GRAPHICS)". Dec.: 27 48
Hex.: 1B 30
<8-PIN BIT IMAGE MODE SELECTION>
Selects one of the 8-pin bit image graphic modes. <7/72 INCH PAPER FEED>
Sets paper feed amount to 7/72 inch (2.47 mm).
Name: ESC * m n1 n2 Data
Dec.: 27 42 m n1 n2 Data Name: ESC 1
Hex.: 1B 2A m n1 n2 Data Dec.: 27 49
Hex.: 1B 31
Comments:
*The following table illustrates the various modes based upon the <1/6 INCH PAPER FEED>
values of m. Sets paper feed amount to 1/6 inch (4.23 mm).

m dpi dpl Name: ESC 2


---------------------------------------------------- Dec.: 27 50
0 60 480 Standard Density Hex.: 1B 32
1 120 960 Double Density
2 120 960 Double Speed, Double Density Comment:
3 240 1920 Quadruple Density *ESC+2 sets 1/6 inch paper feed.
4 80 640 CRT I
5 72 576 Plotter <n/72 INCH PAPER FEED>
6 90 720 CRT II Sets paper feed amount to n/72 inch.
7 144 1152 Double density plotter
Name: ESC A n (n = 0 to 85)DEC
*When m=2, 3 horizontal adjacent dots cannot be printed. Dec.: 27 65 n
*The values n1 and n2 indicate the number of graphic columns Hex.: 1B 41 n
to be printed.
*Refer to "BIT IMAGE(GRAPHICS)". <n/216 INCH PAPER FEED>
Sets programmable paper feed amount to n/216 inch.
<9-PIN BIT IMAGE MODE SELECTION>
Selects one of the 9-pin bit image graphic modes. Name: ESC 3 n
Dec.: 27 51 n
Name: ESC ^ m n1 n2 Data Hex.: 1B 33 n
Dec.: 27 94 m n1 n2 Data
Hex.: 1B 5E m n1 n2 Data Comment:
*n/216 inch paper feed is valid for n = 0 to 255.
Comments:
*Refer to "BIT IMAGE(GRAPHICS)". <LINE FEED (LF)>
*The value of m specifies the graphics mode to which the Feeds paper to next line position after printing data in the line
original is to be reassigned. Refer to the table in the buffer.
8-PIN BIT IMAGE MODE SELECTION section for values of m.
Name: LF
<BIT IMAGE MODE REASSIGNMENT> Dec.: 10
Reassigns bit image graphics mode density. Hex.: 0A

Name: ESC ? n m Comments:


Dec.: 27 63 n m *The amount of spacing generated by LF is determined by the
Hex.: 1B 3F n m paper feed commands.
*When the new line position falls within the perforation skip
Comments: area, the paper advances to the next top of form position.
*The value of n specifies the graphics mode which is
to be reassigned: <FORM FEED (FF)>
n=75: Reassign Standard Density (ESC+K+n1+n2) Feeds paper to next top of form position after printing data
n=76: Reassign Double Density (ESC+L+n1+n2) in the line buffer.
n=89: Reassign Double Speed, Double Density (ESC+Y+n1+n2)
n=90: Reassign Quadruple Density (ESC+Z+n1+n2) Name: FF
*The value of m specifies the graphics mode to which the Dec.: 12
original is to be reassigned. Refer to the table in the Hex.: 0C
8-PIN BIT IMAGE MODE SELECTION section for values of m.
Comment:
<1/8 INCH PAPER FEED> *The amount of spacing generated by FF is determined
by the page length commands. Sets position of left margin.

<n/216 INCH SINGLE LINE FEED> Name: ESC l n


Feeds paper n/216 inch after printing data in the line buffer. Dec.: 27 108 n
Hex.: 1B 6C n
Name: ESC J n (n = 0 to 255)DEC
Dec.: 27 74 n Comments:
Hex.: 1B 4A n *The following values of n can be used:
Pica print n = 0 to 78
Comments: Elite print n = 0 to 93
*This command sets the paper feed for ONE line only. Micron print n = 0 to 117
Subsequent paper feed returns to previous setting. Compressed print n = 0 to 133
However, the carriage does not return to the left margin Elite compressed n = 0 to 156
position. Instead, printing of the next line begins where
previous printing left off. *If the value of n exceeds the right margin value, ESC+l+n
*This command does not release single-line double width printing. is ineffective and the left margin does not change.
*Setting the left margin clears all data in the line buffer.
<n/216 INCH REVERSE DIRECTION SINGLE LINE FEED> *In proportional spacing, the value of n is based on 10 CPI.
Prints data in the line buffer and feeds the paper n/216 inch *Once the left margin position is set, a change in the
in the reverse direction. character mode will not alter this left margin setting.

Name: ESC j n (n = 0 to 255)DEC <RIGHT MARGIN>


Dec.: 27 106 n Sets position of right margin.
Hex.: 1B 6A n
Name: ESC Q n
Comments: Dec.: 27 81 n
*This command sets reverse direction paper feed for one line Hex.: 1B 51 n
only. The carriage will not return, however, to the left
margin position. Instead, the printing of the next line begins Comments:
where the previous printing left off. The following values of n can be used:
*This command does not release single-line double width printing. Pica print n = 2 to 80
Elite print n = 3 to 96
<PAGE LENGTH (INCHES)> Micron print n = 3 to 120
Sets page length in inches. Compressed print n = 4 to 137
Elite compressed n = 4 to 160
Name: ESC C 0 n (n = 1 to 22)DEC
Dec.: 27 67 0 n *If the value n exceeds the left margin value, ESC+Q+n is
Hex.: 1B 43 00 n ignored.
*Setting the right margin clears all data in the line buffer.
Comments: *In proportional spacing, the value of n is based on 10 CPI.
*Upon receipt of ESC+C+0+n, the present line position becomes *Once the right margin position is set, a change in the
the top of form position. character mode will not alter this right margin setting.
*ESC+C+0+n releases the VT,VFU and skip perforation settings.
*The page length does not change even if the paper feed amount <SKIP PERFORATION>
is changed. Sets skip perforation.
*The terms "form" and "page" are interchangeable.
Set:
<PAGE LENGTH (LINES)> Name: ESC N n (n = 1 to 127)DEC
Sets page length in number of lines. Dec.: 27 78 n
Hex.: 1B 4E n
Name: ESC C n (n = 1 to 127)DEC
Dec.: 27 67 n Release:
Hex.: 1B 43 n Name: ESC O
Dec.: 27 79
Comments: Hex.: 1B 4F
*Upon receipt of ESC+C+n, the present line position becomes
the top of form position. Comments:
*If n=0, page length returns to the inch designation. *The value of n specifies the number of lines (or n times the current
*ESC+C+n releases the VT, VFU and skip perforation settings. line spacing amount) to be skipped at the bottom of the page.
*The page length does not change even if the paper feed amount *If n>128, the value is processed as n-128. If n=128 the command
is changed is ignored.
*The terms "form" and "page" are interchangeable. *The skip perforation amount does not change even if the paper
feed
<LEFT MARGIN> amount is changed following a skip perforation designation.
*The skip perforation setting is released upon receipt of the page of vertical tabs, the positions do not change.
length designation command. *VT settings are released by page length designation commands.
*A maximum of 16 tabs may be set.
<HORIZONTAL TAB STOP SETTING>
Sets horizontal tabulations to specified values. <VERTICAL TAB EXECUTION>
Executes the vertical TAB as designated by
Set: ESC+B+n1+n2+...+nx+0, ESC+b+m+n1+n2+...nx+0.
Name: ESC D n1 n2...nx 0
Dec.: 27 68 n1 n2...nx 0 Name: VT
Hex.: 1B 44 n1 n2...nx 00 Dec.: 11
Hex.: 0B
Release:
Name: ESC D 0 Comments:
Dec.: 27 68 0 *When TABs are set with VT or VFU setting command and when
Hex.: 1B 44 00 there is no tab setting on a position exceeding the present
line, data in the line buffer is printed and the paper is
Comments: fed to the next top of form position (same as FF).
*Horizontal tabs are set from the left margin position. *On power up no vertical tabs have been set; therefore, when
*Horizontal tabs must be designated such that n1<n<2<...<nx. a VT is sent, the paper advances one line.
*A maximum of 32 tabs may be set on a single line. *When vertical TAB is cleared by ESC+B+0, execution of VT
*ESC+D+n1+n2+...+nx+0 sets horizontal tab stops. The HT causes data in the line buffer to be printed and does not
command advance the paper.
executes the tab designation.
*In proportional spacing, horizontal tabs are set based on 10 CPI. <VFU CHANNEL SELECTION>
*When the left margin is changed, horizontal tabs will be moved Selects one of eight channels in Vertical Format Unit(VFU).
based on new margin setting.
*When the printer is powered up, tabs are automatically set every Name: ESC / n (n = 0 to 7)DEC
8 characters. Dec.: 27 47 n
*If the pitch is altered after designation of horizontal tabs, Hex.: 1B 2F n
the tab positions do not move.
Comments:
<HORIZONTAL TAB EXECUTION> *The value of n selects one of eight channels (0 to 7).
Executes the horizontal TAB as designated by *Channel 0 is the default setting.
ESC+D+n1+n2...+nx+0.
<VFU SETTING>
Name: HT Sets the tab position of any channel in the VFU (Vertical Format
Dec.: 9 Unit).
Hex.: 09
Set:
Comments: Name: ESC b m n1 n2...nx 0
*If the value of horizontal TAB is less than present column Dec.: 27 98 m n1 n2...nx 0
position, then HT is ignored. Hex.: 1B 62 m n1 n2...nx 00
*When in underline mode, the blank spaces between consecutive (m=0 to 7) (x=1 to 16)
HT print positions are not underlined.
Release:
<VERTICAL TAB STOP SETTING> Name: ESC b m 0
Sets vertical tabulation to specified values. Dec.: 27 98 m 0
Hex.: 1B 62 m 00
Set:
Name: ESC B n1 n2...nx 0 Comments:
Dec.: 27 66 n1 n2...nx 0 *The value of m selects one of eight channels (0 to 7).
Hex.: 1B 42 n1 n2...nx 00 *A maximum of 16 vertical tabs can be set by each channel.
*Any VFU setting exceeding the page length is ineffective.
Release: *To operate the VFU, input the VT code (11 DEC) after selecting
Name: ESC B 0 the channel via channel selection command (ESC+/+n).
Dec.: 27 66 0 *The VFU position does not change even if paper feed amount is
Hex.: 1B 42 00 altered after VFU setting.
*The VFU setting is also released by the page length designation
Comments: commands.
*VT is set from the top of form position. *The vertical tab specified with ESC+B+n1+n2+...nx+0 is set
*Vertical tabs must be designed such that n1<n2...<nx. to VFU channel 0.
*ESC+B+n1+n2+...+nx+0 sets vertical tab stops. The VT
command executes the tab designation. <BACKSPACE>
*If the paper feed amount is changed after a designation Prints data in the line buffer and backspaces one space.
<ABSOLUTE HORIZONTAL POSITION>
Name: BS Moves the printhead to an absolute horizontal position.
Dec.: 8
Hex.: 08 Name: ESC $ n1 n2
Dec.: 27 36 n1 n2
Comments: Hex.: 1B 24 n1 n2
*The backspacing amount will depend upon the pitch set when
the BS code is executed. Comments:
*This command is ignored in the word processing mode *This command moves the print position to a position
(ESC+"a"+1, ESC+"a"+2, or ESC+"a"+3). n1+256xn2 dots (units) from the left margin. Each unit
equals 1/60th of an inch.
<CARRIAGE RETURN> *To calculate n1 and n2 first determine the total increments
Prints data in the line buffer and returns the printhead of 1/60 inch to move the print position from the left margin.
to the left margin position. Let this value = m then
n1=m MOD 256
Name: CR n2=int(m/256)
Dec.: 13
Hex.: 0D <RELATIVE HORIZONTAL POSITION>
Moves the printhead left or right to a relative horizontal position.
Comments:
*Certain computers issue an automatic line feed with Name: ESC \ n1 n2
a carriage return. Check your computer manual for details. Dec.: 27 92 n1 n2
*When automatic LF is set to ON through the initial setup mode Hex.: 1B 5C n1 n2
or through setup disk, a LF is executed whenever a CR code is
executed. Comments:
*This command moves the print position n/120 (in draft mode) or
<ONE LINE UNI-DIRECTION> n/180 (in NLQ mode) of an inch from current position.
Causes printhead to move to its left margin position. *To calculate n1 and n2 first determine the total increments of
1/120 (in draft mode) or n/180 (in NLQ mode) of an inch to move
Name: ESC < the print position from its current position.
Dec.: 27 60 *If the head movement will be to the left subtract this number
Hex.: 1B 3C from 65536.
*To move n/120 (draft) or n/180 (NLQ) of an inch to right: m=n
<UNI-DIRECTION> To move n/120 (draft) or n/180 (NLQ) of an inch to left: m=65536-n
Sets uni-directional printing mode. n1=m MOD 256 n2=int(m/256)
*If the resulting movement would place the printhead outside
Set: current margins, the command is ignored.
Name: ESC U 1
Dec.: 27 85 1 <CANCEL>
Hex.: 1B 55 01 Clears all data in the line buffer.

Release: Name: CAN


Name: ESC U 0 Dec.: 24
Dec.: 27 85 0 Hex.: 18
Hex.: 1B 55 00
<REMOTE PRINTER SELECT>
<HALF SPEED PRINTING> Selects printer after it has been deselected by DC3.
Sets printing to half speed.
Name: DC1 (Device Control 1)
Set: Dec.: 17
Name: ESC s 1 Hex.: 11
Dec.: 27 115 1
Hex.: 1B 73 01 Comment:
*All data sent to the printer between DC3 and DC1 is lost.
Release:
Name: ESC s 0 <REMOTE PRINTER DESELECT>
Dec.: 27 115 0 Deselects printer until it has been selected by DC1.
Hex.: 1B 73 00
Name: DC3 (Device Control 3)
Comment: Dec.: 19
*Half speed printing can be set only in the draft pica, Hex.: 13
draft elite, standard density image, double-speed
double-density image, CRT II image modes. Comment:
*All data sent to the printer between DC3 and DC1 is lost.
RAM.
<DELETE>
Deletes the last character stored in the line buffer. Name: ESC & 0 Cs Ce At P1 P2 ... P11
Dec.: 27 38 0 Cs Ce At P1 P2 ... P11
Name: DEL Hex.: 1B 26 00 Cs Ce At P1 P2 ... P11
Dec.: 127
Hex.: 7F Example:

Comments: 100 REM DEFINITION OF DOWNLOAD CHARACTERS IN


*Only text characters may be deleted. Bit image data, spacing DRAFT MODE
generated by consecutive TABs, and commands cannot be 110 WIDTH "LPT1:",255
deleted. 120 OPEN "LPT1:" AS #1
*This command is ignored in the word processing mode 130 PRINT #1,CHR$(27)+"&"+CHR$(0)+CHR$(65)+CHR$(66);
(ESC+a+1, ESC+a+2, or ESC+a+3). 140 REM STORE IN PLACE OF "A" - ASCII CODE 65
150 PRINT #1,CHR$(170);
<MSB ON> 160 RESTORE 340
Sets the Most Significant Bit to 1. 170 FOR I=1 TO 11
180 READ A :PRINT #1,CHR$(A);
Name: ESC > 190 NEXT I
Dec.: 27 62 200 REM STORE IN PLACE OF "B" - ASCII CODE 66
Hex.: 1B 3E 210 PRINT #1,CHR$(42);
220 RESTORE 340
Comments: 230 FOR I=1 TO 11
*ESC+> has no effect on bit image data. 240 READ A :PRINT #1,CHR$(A);
*This setting can be released by ESC+#. 250 NEXT I
260 REM SELECT DOWNLOAD CHARACTER
<MSB OFF> 270 PRINT #1,CHR$(27)+"%"+CHR$(1);
Sets the Most Significant Bit to 0. 280 PRINT #1,"ABABABABABAB"+CHR$(10)+CHR$(10);
290 REM DOUBLE HEIGHT DOUBLE WIDE PRINT
Name: ESC = 300 PRINT
Dec.: 27 61 #1,CHR$(27)+"W"+CHR$(1)+CHR$(27)+"w"+CHR$(1);
Hex.: 1B 3D 310 PRINT #1,"ABABABABABAB"+CHR$(10);
320 CLOSE
Comments: 330 END
*ESC+= has no effect on bit image data. 340 DATA 0,0,3,3,7,6,254,0,64,48,0
*This setting can be released by ESC+#.
Explanation:
<CANCELS MSB SETTING>
Sets printer to receive 8th bit as is. To download a character into RAM, you must first design the
character. You must quantity each dot column, P1-P11, by
Name: ESC # summing the powers of two represented by each dot, Consider
Dec.: 27 35 the design of the musical note.
Hex.: 1B 23

Comment: 2^7 . . . . . . O . . . .
*This setting has no effect on bit image data.
2^6 . . . . . . O . O . .
<UNDEFINED CODE PRINTING>
Designates undefined codes in locations 0 to 31 DEC,128 to 159 2^5 . . . . . . O . . O .
DEC
as printing codes for international characters. 2^4 . . . . . . O . . O .

Set: 2^3 . . . . . . O . . . .
Name: ESC I 1
Dec.: 27 73 1 2^2 . . . . O X O . . . .
Hex.: 1B 49 01
2^1 . . O X O X O . . . .
Release:
Name: ESC I 0 2^1 . . O X O . . . . . .
Dec.: 27 73 0
Hex.: 1B 49 00 :::::::::::
P1=0 ..........: : : : : : : : : : :
<DRAFT FONT DOWNLOADING> ::::::::::
Defines download characters into specified address location in P2=0 ............: : : : : : : : : :
::::::::: 3 Derived print end (Pe) position
P3=3 ..............: : : : : : : : : 2 for proportional spacing,
:::::::: 1 0=<Pe=<11
P4=3 ................: : : : : : : : LSB 0 Ps<Pe
::::::: ----------------------------------------------------------------
P5=7 ..................: : : : : : :
:::::: Suppose we wish to create the character (musical note) in
P6=6 ....................: : : : : : proportional spacing mode.
:::::
P7=254 ......................: : : : : The values for Ps and Pe and derived from n and m (starting and
:::: ending print positions respectively) where Ps=n-1 and Pe=m-1.
P8=0 ........................: : : : When printing characters from print column P3 to P11 in
::: proportional
P9=64 ..........................: : : spacing mode, Ps=2=(010)BIN and Pe =10=(1010)BIN. Thus, the
:: attribute
P10=48 ............................: : byte is as following:
:
P11=0 ..............................: Bit No. Function
----------------------------------------------------------------
In our sample program lines 130-170, use the eleven values MSB 7 Use lower 8 pins
P1-P11 (Program line 310 is data of P1-P11) to define the ----------------------------------------------------------------
shape and size of the musical note using the upper 8-pins 6 Start of printing in
of the print head. Program lines 190-230 define the same 5 column 3 (3-1)
shape and size, but for the lower 8-pins of the printhead. 4
----------------------------------------------------------------
Next you must determine where in RAM the character(s) should 3 End of printing in
be stored. The variable "Cs" and "Ce" are used for this purpose. 2 column 11 (11-1)
The value specified for "Cs" indicates the ASCII location into 1
which the starting downloaded character will be stored. The LSB 0
value specified for "Ce" indicates that ASCII location into ----------------------------------------------------------------
which the ending downloaded character will be stored. If you are
storing a single character, then Cs=Ce. We the set "At"=2^1+2^3+2^5=2+8+32=42.

In our sample program, we created two musical note characters, Comments:


one using the upper 8 pins of the printhead, and the other using *When you select an NLQ font (Courier, Roman, Sans Serif, Bold
the lower 8 pins. These two distinct characters were stored in PS)
the ASCII locations where characters "A" and "B" are normally through setup disk or Front Panel, the printer will print draft
stored (see program line 110). Since "A" resides in the ASCII download characters in NLQ mode.
location 65 DEC and "B" resides in ASCII location 66 DEC, the *The downloadable draft font actually consists of 12 columns of
following program lines are equivalent. dots,
but P12 is always set to zero.
110 LPRINT CHR$(27)+"&"+CHR$(0)+"AB"; *Downloaded draft characters require 12 bytes per character: 1
or byte
110 LPRINT CHR$(27)+"&"+CHR$(0)+CHR$(65)+CHR$(66); for attribute information and 11 bytes for the character design.
*Avoid continuous printing of download characters with high dot
Notice that Cs=65, Ce=66. Also note that CHR$(65)="A" and densities. 1 line has 8 pin x 11 columns x 136 character dot (11968
CHR$(66)="B". dot/line). Keep the line density to 25% of maximum (2992 dot /line).
*In single height print mode, avoid using the same pin in two
We must next define the value of "At", which specifies the attribute adjacent
information. columns, otherwise, the pin in the second column of the pair will
not
The illustration below shows the role of each bit in the specification be fired. In double height print mode, the musical note will print
of the attribute information. Attribute information is stored in like the figure below. Pins will be fired in all the specified dot
one byte positions (O and X) and printer add dots(*). If you select draft mode
specified dots (X) are not printed. However, you have to specify
Bit No. Function these dots (O) in order to print the character in double height mode
---------------------------------------------------------------- or when NLQ is set from setup disk or Front Panel.
MSB 7 Bit=1: use upper 8 pins
Bit=0: use lower 8 pins 2^7 . . . . . . O . . . .
---------------------------------------------------------------- **
6 Derives print start (Ps) position 2^6 . . . . . . O . O . .
5 for proportional spacing, **
4 0=<Ps=<7 2^5 . . . . . . O . . O .
---------------------------------------------------------------- **
2^4 . . . . . . O . . O . 300 DATA 0,129,128,129,128,129,128,129,128,129,128,130
* 310 DATA 65,130,32,242,31,12,32,0,0,0,0,0,0,0,0,0,0,0
2^3 . . . . . . O . . . .
* Explanation:
2^2 . . . . O X O . . . .
*** An NLQ font downloaded character uses 23 columns and 16 rows
2^1 . . O X O X O . . . . of dots.
*** Since a given column contains 16 dots, each column is divided into
2^1 . . O X O . . . . . . 2 bytes. For example, column 1 is labeled P1h for the upper 8 dots
and
::::::::::: P1l for the lower 8 dots. Similarly, column 23 is labeled P23h for
P1 ..........: : : : : : : : : : : the
:::::::::: upper 8 dots and P23l for the lower 8 dots. Column 24 is always
P2 ............: : : : : : : : : : set to
::::::::: zero; thus, we are working with P1h-P23h and P1l-P23l.
P3 ..............: : : : : : : : : Additionally,
:::::::: since each column contains 16 dots which overlap, the printing of
P4 ................: : : : : : : : an
::::::: entire character is accomplished with two passes of the printhead.
P5 ..................: : : : : : :
::::::
P6 ....................: : : : : : ------ . . . . . . . . . O X O X O . . . . . . . . .
::::: .......O......O........
P7 ......................: : : : : ......O........O.O.....
:::: Upper 8 . . . . . O . . . . . . . . . . O . . . . . .
P8 ........................: : : : ....O...........O......
::: ....O...........O......
P9 ..........................: : : ....O...........O......
:: ....O.........O.O......
P10 ............................: : ------ . . . . . O X O X O X O X O X O . . . . . . .
: ...............O.......
P11 ..............................: ...............O.......
Lower 8 . O . . . . . . . . . . . . . O . . . . . . .
<NLQ FONT DOWNLOADING> O...............O......
Defines download NLQ font. O...............O......
.OXO.........OXO.......
Name: ESC & 2 Cs Ce At P1h P1l ... P23l ....OXOXOXOXO..........
Dec.: 27 38 2 Cs Ce At P1h P1l ... P23l ------
Hex.: 1B 26 02 Cs Ce At P1h P1l ... P23l Upper 8 Lower 8
:::::::::::::::::::::::
Example: P1h=0 P1l=12 ........: : : : : : : : : : : : : : : : : : : : : : :
::::::::::::::::::::::
100 REM DEFINITION OF DOWNLOAD CHARACTERS IN NLQ P2h=0 P2l=18 ..........: : : : : : : : : : : : : : : : : : : : : :
MODE :::::::::::::::::::::
110 WIDTH "LPT1:",255 P3h=0 P3l=2 ............: : : : : : : : : : : : : : : : : : : : :
120 OPEN "LPT1:" AS #1 ::::::::::::::::::::
130 PRINT #1,CHR$(27)+"&"+CHR$(2)+CHR$(65)+CHR$(65); P4h=0 P4l=2 ..............: : : : : : : : : : : : : : : : : : : :
140 REM STORE IN PLACE OF "A" - ASCII CODE 65 :::::::::::::::::::
150 PRINT #1,CHR$(11); P5h=15 P5l=1 ................: : : : : : : : : : : : : : : : : : :
160 RESTORE 290 ::::::::::::::::::
170 FOR I=1 TO 23*2 P6h=16 P6l=129 ..................: : : : : : : : : : : : : : : : : :
180 READ A : PRINT #1,CHR$(A); :::::::::::::::::
190 NEXT I P7h=32 P7l=129 ....................: : : : : : : : : : : : : : : : :
200 REM SELECT DOWNLOAD CHARACTER ::::::::::::::::
210 PRINT #1,CHR$(27)+"%"+CHR$(1); P8h=64 P8l=129 ......................: : : : : : : : : : : : : : : :
220 PRINT #1,CHR$(27)+"x"+CHR$(1); :::::::::::::::
230 PRINT #1,"AAAAAAAAAA"+CHR$(10)+CHR$(10); P9h=0 P9l=129 ........................: : : : : : : : : : : : : : :
240 REM DOUBLE HEIGHT DOUBLE WIDE PRINT ::::::::::::::
250 PRINT P10h=128 P10l=129 ..........................: : : : : : : : : : : : : :
#1,CHR$(27)+"W"+CHR$(1)+CHR$(27)+"w"+CHR$(1); :::::::::::::
260 PRINT #1,"AAAAAAAAAA"+CHR$(10); P11h=128 P11l=129 ............................: : : : : : : : : : : : :
270 CLOSE ::::::::::::
280 END P12h=128 P12l=129 ..............................: : : : : : : : : : : :
290 DATA 0,12,0,18,0,2,0,2,15,1,16,129,32,129,64,129 :::::::::::
P13h=128 P13l=129 ................................: : : : : : : : : : :
:::::::::: <SELECTS ROM CG OR DOWNLOADED CG>
P14h=128 P14l=130 ..................................: : : : : : : : : :
::::::::: Name: ESC % n
P15h=65 P15l=130 ....................................: : : : : : : : : Dec.: 27 37 n
:::::::: Hex.: 1B 25 n
P16h=32 P16l=242 ......................................: : : : : : : :
::::::: Comment:
P17h=31 P17l=12 ........................................: : : : : : : *The following values of n can be used.
:::::: n=0: Select ROM Character Generator (CG)
P18h=32 P18l=0 ..........................................: : : : : : n=1: Select download CG
:::::
P19h=0 P19l=0 ............................................: : : : : <ROM CHARACTER GENERATION SET COPY>
:::: Copies both draft and NLQ internal ROM CG font into the
P20h=0 P20l=0 ..............................................: : : : downloadable font area.
:::
P21h=0 P21l=0 ................................................: : : Name: ESC : 0 n 0 (n = 0 through 6)
:: Dec.: 27 58 0 n 0
P22h=0 P22l=0 ..................................................: : Hex.: 1B 3A 00 n 00
:
P23h=0 P23l=0 ....................................................: Example:

Program line 130-170, use the values P1h-P23h and P1l-P23l to 100 REM CHARACTER GENERATOR SELECTION
define the shape and size of the character using the lower 8 pins 110 WIDTH "LPT1:",255
of the printhead. 120 OPEN "LPT1:" AS #1
130 REM ROM CG SET COPY TO DOWNLOAD BUFFER
Downloading NLQ font characters require 1 byte of attribute 140 PRINT #1,CHR$(27)+":"+CHR$(0)+CHR$(2)+CHR$(0);
information 150 REM DOWNLOAD TO TO "!" IN DRAFT FONT
which is input as the value of "At". Same as attribute information of 160 PRINT #1,CHR$(27)+"&"+CHR$(0)+"!!";
draft font. 170 PRINT #1,CHR$(11);
180 RESTORE 420
The values Ps and Pe of NLQ attribute information are derived 190 FOR I=1 TO 11
from n 200 READ A : PRINT #1,CHR$(A);
and m (starting and ending print positions respectively) using the 210 NEXT I
equation Ps=(n-1)/2 and Pe=(m-1)/2. To ensure that Ps and Pe are 220 REM DOWNLOAD TO "!" IN NLQ FONT
integers, the character must be designed so that n and m are odd. 230 PRINT #1, CHR$(27)+"&"+CHR$(2)+"!!";
240 PRINT #1,CHR$(11);
In this example, the "g" starts in column 1 and ends in column 23, 250 RESTORE 430
and Ps=0=(000)BIN and Pe=11=(1011)BIN. Thus, the attribute 260 FOR I=1 TO 46
byte is 270 READ A : PRINT #1,CHR$(A);
as following: 280 NEXT I
290 REM SELECT DOWNLOAD CG
Bit No. Binary Form Function 300 PRINT #1,CHR$(27)+"%"+CHR$(1);
---------------------------------------------------------------- 310 PRINT #!,"SELECT DRAFT FONT DOWNLOAD
MSB 7 0 Use lower 8 pins CG !!!"+CHR$(10);
---------------------------------------------------------------- 320 PRINT #1,CHR$(27)+"x"+CHR$(1);
6 0 Start of printing in 330 PRINT #!,"SELECT NLQ FONT DOWNLOAD
5 0 column 1 (1-1)/2 CG !!!"+CHR$(10);
40 340 PRINT #1,CHR$(27)+"x"+CHR$(0);
---------------------------------------------------------------- 350 REM SELECT ROM CG
3 1 End of printing in 360 PRINT #1,CHR$(27)+"%"+CHR$(0);
2 0 column 23 (23-1)/2 370 PRINT #!,"SELECT DRAFT FONT ROM CG !!!"+CHR$(10);
11 380 PRINT #1,CHR$(27)+"x"+CHR$(1);
LSB 0 1 390 PRINT #!,"SELECT NLQ FONT ROM CG !!!"+CHR$(10);
---------------------------------------------------------------- 400 CLOSE
410 END
We the set "At"=2^3+2^1+2^0=8+2+1=11. 420 DATA 0,0,3,3,7,6,254,0,64,48,0
Refer to program line 130 430 DATA 0,12,0,18,0,2,0,2,15,1,16,129,32,129,64,129
Comments: 440 DATA 0,129,128,129,128,129,128,129,128,129,128,130
*This command is operational only when the 32K buffer option 450 DATA 65,130,32,242,31,12,32,0,0,0,0,0,0,0,0,0,0,0
(KX-P43) is installed.
*Downloaded NLQ font characters require 47 bytes per character: Comments:
1 byte *The value of n specifies the NLQ font to download.
for attribute information and 46 bytes for the character design. Refer to Font Style command ESC+"k"+n.
*Upon receipt of the command, all previous downloaded fonts
are cleared. 6 6 - - 12 11 12 11 12 10 11 11 11 12 12 12 12 12
*When altering only part of the ROM CG, use this command
before font downloading. 7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12

<RESET PRINTER> 8 8 - - 8 12 12 12 11 12 12 11 11 12 12 12 12 8
Initializes printer, causing data in the line buffer,
but not in the receive buffer, to be cleared. 9 9 - - 8 11 10 12 9 11 11 12 12 12 12 12 12 6

Name: ESC @ 10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6
Dec.: 27 64
Hex.: 1B 40 11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12

<PAPER OUT DETECTION> 12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 12 8


Enables paper out detector.
13 D - - 12 11 12 11 11 10 8 12 10 12 12 12 11 8
Set:
Name: ESC 9 14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8
Dec.: 27 57
Hex.: 1B 39 15 F - - 10 11 12 12 11 - 12 12 12 12 12 12 12 12

Release: Unit:1/120 inch (0.21 mm)


Name: ESC 8
Dec.: 27 56 < Epson Mode Italic Characters (Multilingual) >
Hex.: 1B 38
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Comment:
*Disabling of the paper out detector causes printing to Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
continue after paper end.
0 0 - - 12 12 12 12 5 11 12 12 11 12 12 11 11 12
<SELECTS CSF>
Selects Cut Sheet Feeder (CSF) mode ON/OFF. 1 1 - - 10 9 12 12 11 11 12 12 10 12 12 12 11 12

Name: ESC EM n 2 2 - - 10 12 12 12 11 10 11 12 12 12 12 12 12 11
Dec.: 27 25 n
Hex.: 1B 19 n 3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 11 12

Comment: 4 4 - - 11 12 12 12 12 10 11 11 12 12 12 12 11 12
*The following values of n can be used.
n=R: Eject a sheet 5 5 - - 12 12 12 12 11 11 11 11 12 12 12 9 12 12
n=0: Cut Sheet Feeder mode is OFF
n=4: Cut Sheet Feeder mode is ON 6 6 - - 12 11 12 11 12 10 11 11 11 12 12 10 12 12

Note: 7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 9
*If the Cut Sheet Feeder mode is set to ON without
installing the CSF, the paper will not feed correctly. 8 8 - - 8 12 12 12 11 12 12 11 11 12 12 10 12 8

< Epson Mode Italic Characters (USA) > 9 9 - - 8 11 10 12 9 11 11 12 12 12 12 12 12 10

Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6

Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 12 8

0 0 - - 12 12 12 12 5 11 12 12 11 12 12 12 12 12 12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 10 7

1 1 - - 10 9 12 12 11 11 12 12 10 12 12 12 11 12 13 D - - 12 11 12 11 11 10 8 12 10 11 12 9 11 8

2 2 - - 10 12 12 12 11 10 11 12 12 12 12 12 12 10 14 E - - 7 9 12 10 10 12 12 12 12 12 12 10 11 8

3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10 15 F - - 10 11 12 12 11 - 12 12 12 12 12 12 5 12

4 4 - - 11 12 12 12 12 10 11 11 12 12 12 12 12 12 Unit:1/120 inch (0.21 mm)

5 5 - - 12 12 12 12 11 11 11 11 12 12 12 12 12 12 < Epson Mode Italic Characters (Portugal) >


Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6

Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12

0 0 - - 12 12 12 12 5 11 12 12 11 12 12 12 12 12 12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 12 8

1 1 - - 10 9 12 12 11 11 12 12 10 12 12 12 11 12 13 D - - 12 11 12 11 11 10 11 12 12 12 12 12 11 8

2 2 - - 10 12 12 12 11 10 11 12 12 12 12 12 12 10 14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8

3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10 15 F - - 10 11 12 12 11 - 12 12 12 12 12 12 12 12

4 4 - - 11 12 12 12 12 10 12 11 12 12 12 12 12 12 Unit:1/120 inch (0.21 mm)

5 5 - - 12 12 12 12 11 11 11 11 12 12 12 12 12 12 < Epson Mode Italic Characters (Norway) >

6 6 - - 12 11 12 11 12 10 12 12 11 12 12 12 12 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240

7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F

8 8 - - 8 12 12 12 11 12 12 10 11 12 12 12 12 8 0 0 - - 12 12 12 12 5 11 12 12 11 12 12 12 12 12

9 9 - - 8 11 10 12 9 11 12 12 11 12 12 12 12 6 1 1 - - 10 9 12 12 11 11 12 12 10 12 12 12 11 12

10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6 2 2 - - 10 12 12 12 11 10 11 12 12 12 12 12 12 10

11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12 3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10

12 C - - 8 10 10 7 9 9 12 12 12 12 12 12 12 8 4 4 - - 11 12 12 12 12 10 11 11 12 12 12 12 12 12

13 D - - 12 11 12 11 11 10 8 12 10 12 12 12 11 8 5 5 - - 12 12 12 12 11 11 11 11 12 12 12 12 12 12

14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8 6 6 - - 12 11 12 11 12 10 11 11 11 12 12 12 12 12

15 F - - 10 11 12 12 11 - 12 11 12 12 12 12 12 12 7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12

Unit:1/120 inch (0.21 mm) 8 8 - - 8 12 12 12 11 12 12 11 11 12 12 12 12 8

< Epson Mode Italic Characters (Canada-French) > 9 9 - - 8 11 10 12 9 11 11 12 12 12 12 12 12 6

Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6

Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12

0 0 - - 12 12 12 12 5 11 12 12 9 12 12 12 12 12 12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 12 8

1 1 - - 10 9 12 12 11 11 12 12 5 12 12 12 11 12 13 D - - 12 11 12 11 11 10 8 12 10 12 12 12 11 8

2 2 - - 10 12 12 12 11 10 11 12 12 12 12 12 12 10 14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8

3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10 15 F - - 10 11 12 12 11 - 12 12 12 12 12 12 12 12

4 4 - - 11 12 12 12 12 10 12 12 10 12 12 12 12 12 Unit:1/120 inch (0.21 mm)

5 5 - - 12 12 12 12 11 11 11 10 9 12 12 12 12 12 < Epson Mode Italic Characters (Turkey) >

6 6 - - 12 11 12 11 12 10 12 11 7 12 12 12 12 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240

7 7 - - 5 12 12 12 11 12 11 11 11 12 12 12 12 12 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F

8 8 - - 8 12 12 12 11 12 12 12 12 12 12 12 12 8 0 0 - - 12 12 12 12 5 11 12 12 11 12 12 12 12 12

9 9 - - 8 11 10 12 9 11 11 12 12 12 12 12 12 6 1 1 - - 10 9 12 12 11 11 12 12 10 12 12 12 11 12
2 2 - - 10 12 12 12 11 10 11 12 12 12 12 12 12 10 14 E - - 6 10 12 12 11 12 12 12 12 12 12 12 10 8

3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10 15 F - - 10 12 12 12 12 - 12 11 12 12 12 12 10 12

4 4 - - 11 12 12 12 12 10 11 11 12 12 12 12 12 12 Unit:1/120 inch (0.21 mm)

5 5 - - 12 12 12 12 11 11 11 11 12 12 12 12 12 12 < Epson Mode Normal Characters (Multilingual) >

6 6 - - 12 11 12 11 12 10 11 11 12 12 12 12 12 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240

7 7 - - 5 12 12 12 11 12 11 11 11 12 12 12 12 12 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F

8 8 - - 8 12 12 12 11 12 12 9 11 12 12 12 12 8 0 0 - - 12 12 12 12 5 11 12 12 12 12 12 10 10 12

9 9 - - 8 11 10 12 9 11 11 12 12 12 12 12 12 6 1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12

10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6 2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 12 12

11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12 3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 10 12

12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 12 8 4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 11

13 D - - 12 11 12 11 11 10 10 12 10 12 12 12 11 8 5 5 - - 12 12 12 12 12 12 12 10 12 12 12 8 12 10

14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8 6 6 - - 12 12 12 12 10 12 12 11 12 12 12 8 11 12

15 F - - 10 11 12 12 11 - 12 11 12 12 12 12 12 12 7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 11 7

Unit:1/120 inch (0.21 mm) 8 8 - - 6 12 12 10 11 10 12 12 12 12 12 8 11 8

< Epson Mode Normal Characters (USA) > 9 9 - - 6 12 8 12 8 12 12 12 12 12 12 12 11 8

Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 11 6

Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B - - 12 6 12 8 10 9 8 10 12 12 12 12 11 8

0 0 - - 12 12 12 12 5 11 12 12 12 12 12 12 12 12 12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 10 7

1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12 13 D - - 12 12 12 8 12 9 8 11 5 11 12 5 11 8

2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10 14 E - - 6 10 12 12 11 12 12 12 12 12 12 8 11 8

3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10 15 F - - 10 12 12 12 12 - 12 11 12 12 12 12 5 12

4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 12 Unit:1/120 inch (0.21 mm)

5 5 - - 12 12 12 12 12 12 12 10 12 12 12 12 11 12 < Epson Mode Normal Characters (Portugal) >

6 6 - - 12 12 12 12 10 12 12 11 12 12 12 12 11 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240

7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F

8 8 - - 6 12 12 10 11 10 12 12 12 12 12 12 10 8 0 0 - - 12 12 12 12 5 11 12 12 12 12 12 12 12 12

9 9 - - 6 12 8 12 8 12 12 12 12 12 12 12 12 6 1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12

10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6 2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10

11 B - - 12 6 12 8 10 9 8 11 12 12 12 12 12 12 3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10

12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 12 8 4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 12

13 D - - 12 12 12 8 12 9 8 12 5 12 12 12 12 8 5 5 - - 12 12 12 12 12 12 12 10 12 12 12 12 11 12
6 6 - - 12 12 12 12 10 12 12 11 12 12 12 12 11 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240

7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F

8 8 - - 6 12 12 10 11 10 12 8 12 12 12 12 10 8 0 0 - - 12 12 12 12 5 11 12 12 12 12 12 12 12 12

9 9 - - 6 12 8 12 8 12 12 12 10 12 12 12 12 6 1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12

10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6 2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10

11 B - - 12 6 12 8 10 9 8 11 12 12 12 12 12 12 3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10

12 C - - 7 10 12 10 8 5 12 12 12 12 12 12 12 8 4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 12

13 D - - 12 12 12 8 12 9 8 11 5 12 12 12 12 8 5 5 - - 12 12 12 12 12 12 12 10 12 12 12 12 11 12

14 E - - 6 10 12 12 11 12 12 12 12 12 12 12 10 8 6 6 - - 12 12 12 12 10 12 12 11 12 12 12 12 11 12

15 F - - 10 12 12 12 12 - 12 10 12 12 12 12 10 12 7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12

Unit:1/120 inch (0.21 mm) 8 8 - - 6 12 12 10 11 10 12 12 12 12 12 12 10 8

< Epson Mode Normal Characters (Canada-French) > 9 9 - - 6 12 8 12 8 12 12 12 12 12 12 12 12 6

Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6

Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B - - 12 6 12 8 10 9 8 10 12 12 12 12 12 12

0 0 - - 12 12 12 12 5 11 12 12 5 12 12 12 12 12 12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 12 8

1 1 - - 5 8 12 12 12 11 11 12 5 12 12 12 11 12 13 D - - 12 12 12 8 12 9 8 11 5 12 12 12 12 8

2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10 14 E - - 6 10 12 12 11 12 12 12 12 12 12 12 10 8

3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10 15 F - - 10 12 12 12 12 - 12 11 12 12 12 12 10 12

4 4 - - 12 12 12 12 11 11 12 12 8 12 12 12 10 12 Unit:1/120 inch (0.21 mm)

5 5 - - 12 12 12 12 12 12 12 8 7 12 12 12 11 12 < Epson Mode Normal Characters (Turkey) >

6 6 - - 12 12 12 12 10 12 11 11 7 12 12 12 11 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240

7 7 - - 5 12 12 12 11 12 11 11 11 12 12 12 12 12 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F

8 8 - - 6 12 12 10 11 10 12 12 12 12 12 12 10 8 0 0 - - 12 12 12 12 5 11 12 12 12 12 12 12 12 12

9 9 - - 6 12 8 12 8 12 12 12 12 12 12 12 12 6 1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12

10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6 2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10

11 B - - 12 6 12 8 10 9 8 11 12 12 12 12 12 12 3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10

12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 12 8 4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 12

13 D - - 12 12 12 8 12 9 12 11 12 12 12 12 12 8 5 5 - - 12 12 12 12 12 12 12 10 12 12 12 12 11 12

14 E - - 6 10 12 12 11 12 12 11 12 12 12 12 10 8 6 6 - - 12 12 12 12 10 12 12 11 12 12 12 12 11 12

15 F - - 10 12 12 12 12 - 10 11 12 12 12 12 10 12 7 7 - - 5 12 12 12 11 12 11 11 11 12 12 12 12 12

Unit:1/120 inch (0.21 mm) 8 8 - - 6 12 12 10 11 10 12 8 12 12 12 12 10 8

< Epson Mode Normal Characters (Norway) > 9 9 - - 6 12 8 12 8 12 12 12 12 12 12 12 12 6


*This command is effective only in near letter quality mode.
10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6
<SUB/SUPERSCRIPT FONT>
11 B - - 12 6 12 8 10 9 8 11 12 12 12 12 12 12 Selects sub/superscript font with characters printed
in the lower/upper 1/2 area of the line.
12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 12 8
Set:
13 D - - 12 12 12 8 12 9 8 12 5 12 12 12 12 8 Name: ESC S n
Dec.: 27 83 n
14 E - - 6 10 12 12 11 12 12 12 12 12 12 12 10 8 Hex.: 1B 53 n

15 F - - 10 12 12 12 12 - 12 12 12 12 12 12 10 12 Release:
Name: ESC T
Unit:1/120 inch (0.21 mm) Dec.: 27 84
; Hex.: 1B 54
; *******************************
; ***** IBM Mode Commands ***** Comments:
; ******************************* *The following values of n can be used:
n=0: Superscript
n=1: Subscript
<PRINT QUALITY> *Sub/superscript font is 1/2 normal character height.
*Sub/superscript characters are normal width.
Name: ESC I n
Dec.: 27 73 n <ELITE PITCH>
Hex.: 1B 49 n Sets printing to 12 characters per inch.

Comments: Set:
*The following values of n can be used. Name: ESC :
n= 0: Internal Draft fonts Dec.: 27 58
n= 1: Internal Draft 12 CPI Height Speed fonts Hex.: 1B 3A
n= 2: Internal Sans Serif fonts (IBM NLQ)
n= 3: Internal NLQ fonts (IBM NLQ II) Release:
n= 4: Download Draft fonts Name: DC2
n= 5: Download Draft 12 CPI Height Speed fonts Dec.: 18
n= 6: Download Text fonts (IBM download NLQ) Hex.: 12
n= 7: Download NLQ fonts (IBM download NLQ II)
n=11: NLQ II Italic fonts *Comment:
n=15: Download NLQ Italic fonts It "SI" and "ESC+:" are combined while 20 cpi is Enable,
printing will be performed in 20 cpi.
*When n=4 (Download Draft font), the second of two horizontal
adjacent columns will not be fired. When n=6 (Download Text <COMPRESSED PITCH>
font), both columns will be fired. Sets printing to 17 characters per inch.
*When you select n=3 (Internal NLQ font), initial setting is
Courier. You can change font with ESC+"k"+n command. Set:
*Text Matrix is 18 x 9. Name: SI or ESC SI
Dec.: 15 or 27 15
<TYPEFACE> Hex.: 0F or 1B 0F
Selects NLQ Typeface.
Release:
Name: ESC k n Name: DC2
Dec.: 27 107 n Dec.: 18
Hex.: 1B 6B n Hex.: 12

Comments: *Comment:
*The following values can be used. It "SI" and "ESC+:" are combined while 20 cpi is Enable,
n=0: Roman printing will be performed in 20 cpi.
n=1: Sans Serif
n=2: Courier <PROPORTIONAL SPACING>
n=6: Bold PS Sets proportional spacing between characters.
*Typeface must be reselected after any pitch change.
*IBM characters in locations from 0 to 31 DEC (except 19, Set:
20, 21 DEC) from 00 to 1F HEX (except 13, 14, 15 HEX) and Name: ESC P 1
from 250 to 255 DEC (from F0 to FF HEX) are printed in Dec.: 27 80 1
Courier font, regardless of font selection. Hex.: 1B 50 01
Dec.: 27 87 1
Release: Hex.: 1B 57 01
Name: ESC P 0
Dec.: 27 80 0 Release:
Hex.: 1B 50 00 Name: ESC W 0
Dec.: 27 87 0
<EMPHASIZED PRINTING> Hex.: 1B 57 00
Sets printing to twice the original horizontal dot density.
Comment:
Set: *DC4 will not release the double wide printing set by ESC+W+1.
Name: ESC E
Dec.: 27 69 <DOUBLE HIGH AND DOUBLE WIDE PRINTING>
Hex.: 1B 45 Sets printing to double high, double wide or both at the same time.

Release: Name: ESC [ @ 4 0 0 0 m1 m2


Name: ESC F Dec.: 27 91 64 4 0 0 0 m1 m2
Dec.: 27 70 Hex.: 1B 5B 40 04 00 00 00 m1 m2
Hex.: 1B 46
Comments:
Comment: *The value of m1 selects both the line feed and character
*Emphasized characters are printed at half speed. height as follows:

<DOUBLE STRIKE PRINTING> Function


Sets double strike character printing. m1 Line feed Character height
----------------------------------------
Set: 0 Unchanged Unchanged
Name: ESC G 1 Unchanged Single-line
Dec.: 27 71 2 Unchanged Double-high
Hex.: 1B 47 16 Single Unchanged
17 Single Single-high
Release: 18 Single Double-high
Name: ESC H 32 Double Unchanged
Dec.: 27 72 33 Double Single-high
Hex.: 1B 48 34 Double Double-high

Comment: *The value of m4 selects the character width as follows:


*Double strike printing prints each line twice, m2=0: No change
with the second line slightly below the first m2=1: Single-width
to create a bold appearance. m2=2: Double-width

<DOUBLE WIDE PRINTING SINGLE LINE> <UNDERLINING>


Sets double wide expanded printing for one line only. Sets continuous underlining of characters.

Set: Set:
Name: SO or ESC SO Name: ESC - 1
Dec.: 14 27 14 Dec.: 27 45 1
Hex.: 0E 1B 0E Hex.: 1B 2D 01

Release: Release:
Name: DC4 or ESC W 0 Name: ESC - 0
Dec.: 20 27 87 0 Dec.: 27 45 0
Hex.: 14 1B 57 00 Hex.: 1B 2D 00

Comment: Comment:
*Single line double wide printing is released when: *Bit image data, spaces set by the HT code and IBM Graphic
- a LF,FF or VT is executed. characters will not be underlined.
- a CR is executed.
- DC4 or ESC+W+0 is executed. <OVERLINING>
Sets continuous overlining of characters.
<DOUBLE WIDE PRINTING>
Sets double wide expanded printing. Set:
Name: ESC _ 1
Set: Dec.: 27 95 1
Name: ESC W 1 Hex.: 1B 5F 01
commands. The various dot densities and corresponding control
Release: commands appear as follows:
Name: ESC _ 0
Dec.: 27 95 0 Command Function Dots/Inch Dots/Line
Hex.: 1B 5F 00 ESC+"K"+n1+n2 Standard density 60 480
ESC+"L"+n1+n2 Double density 120 960
Comment: ESC+"Y"+n1+n2 Double speed,Double density 120 960
*Bit image data, spaces set by the HT code, IBM graphic ESC+"Z"+n1+n2 Quadruple density 240 1920
characters will not be overlined.

<IBM CHARACTER SET 1> 2. 8-Pin Bit Image Mode


Selects IBM Character Set 1.
Of the 9-pins in the printhead, the 8-pin bit image graphics
Name: ESC 7 mode uses the upper eight pins only. Each pin corresponds to
Dec.: 27 55 a power of two. By summing the powers of two corresponding
Hex.: 1B 37 to each of the pins you wish to fire, you will obtain a
numerical value which instructs the printer to print one column
Comment: of dots. Through such techniques in BASIC as looping, numerical
*Refer to character set tables in appendix of the operating values for each column on a line are input and processed. The
instruction manual. result is one line of graphics.

<IBM CHARACTER SET 2> 8-Bit 7-Bit


Selects IBM Character Set 2. Pin No. Pins Interface Interface
-------------------------------------------------
Name: ESC 6 1 O 2^7=128 Not used
Dec.: 27 54 2 O 2^6=64 2^6=64
Hex.: 1B 36 3 O 2^5=32 2^5=32
4 O 2^4=16 2^4=16
Comment: 5 O 2^3=8 2^3=8
*Refer to character set tables in appendix of the operating 6 O 2^2=4 2^2=4
instruction manual. 7 O 2^1=2 2^1=2
8 O 2^0=1 2^1=1
<SETS CODE PAGE> 9 O Not used Not used
Changes the current code page.

Name: ESC [ T 4 0 0 0 n1 n2 As an example, suppose you want to fire pin-blocks 1, 2, 5 and


Dec.: 27 91 84 4 0 0 0 n1 n2 8 simultaneously. Then you compute the following sum:
Hex.: 1B 5B 54 04 00 00 00 n1 n2
Input code = Pin 1 code + Pin 2 code + Pin 5 code + Pin 8 code
Comments: = 2^7 + 2^6 + 2^3 + 2^0
*The values of n1 and n2 select the code pages as follows: = 128 + 64 + 8 + 1
n1=00H and n2=00H: Current = 201
n1=01H and n2=B5H: USA
n1=03H and n2=52H: Multilingual Thus, the value 201 is entered in the CHR$ function in order to
n1=03H and n2=5CH: Portugal print a single column of dots resulting from firing pin-blocks
n1=03H and n2=5FH: Canada French 1, 2, 5, and 8.
n1=03H and n2=61H: Norway
n1=03H and n2=59H: Turkey For our final example, refer to the standard density designation
Except the above: Downloaded font in Table above. This setting is given by ESC+"K"+n1+n2. Suppose
*Refer to character set tables in appendix of the operating you wish to print 100 columns of dots, where every column fires
instruction manual. pin 1 and 8 only.

<BIT IMAGE> You first compute the values of n1 and n2.

* Bit Image (Graphics) This is done by finding values for n1 and n2, as follows:
The bit image (Graphics) enables you to control the firing
of each pin of the printhead to create virtually any graphics Divide the total number of columns you select, by 256 (max # of
design you desire. columns). The result is n1 and the remainder is n2.

1. Dot Density
n1 = 100 MOD 256 = 100
Dot density (dot resolution) refers to the maximum number of dots n2 = 100 / 256 = 0 so, n2=0 and n1=100
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 Our control code ESC+"K"+n1+n2 now translates into:
LPRINT CHR$(27)+"K"+CHR$(100)+CHR$(0); <QUADRUPLE DENSITY GRAPHICS>
Sets quadruple density graphics mode [240 dots per inch].
Next compute the code for firing pins 1 and 8 simultaneously:
Name: ESC Z n1 n2 Data
Input Code = Pin 1 code + Pin 8 code Dec.: 27 90 n1 n2 Data
= 2^7 + 2^0 Hex.: 1B 5A n1 n2 Data
= 128 + 1
= 129 Comments:
*Horizontal adjacent dots cannot be printed.
Finally, we incorporate our two calculations into the following *Refer to "BIT IMAGE(GRAPHICS)".
program. Note that lines 20 and 30 are necessary for the proper
execution of this program on many IBM-compatible computers. <1/8 INCH PAPER FEED>
Such BASIC statements suppress CR and LF codes and enable Sets paper feed amount to 1/8 inch (3.2 mm).
printing on a full line without unwanted "breaks". Programs
which include statements such as lines 20 and 30 cannot use Name: ESC 0
LPRINTs to print data. In such cases, PRINT # statements must Dec.: 27 48
be used. Line 90 is necessary to CLOSE all open files. Hex.: 1B 30

A programming example is as follows: <7/72 INCH PAPER FEED>


Sets paper feed amount to 7/72 inch (2.47 mm).
10 REM STANDARD DENSITY
20 WIDTH "LPT1:",255 Name: ESC 1
30 OPEN "LPT1:" AS #1 Dec.: 27 49
40 PRINT #1,CHR$(27)+"K"+CHR$(100)+CHR$(0); Hex.: 1B 31
50 FOR I=1 TO 100
60 PRINT #1, CHR$(129); <LINE SPACING>
70 NEXT I Executes line spacing set by ESC+A+n.
80 PRINT #1,CHR$(10);
90 CLOSE Name: ESC 2
100 END Dec.: 27 50
Hex.: 1B 32
<STANDARD DENSITY GRAPHICS>
Sets standard density graphic mode [60 dots per inch]. Comment:
*Use ESC+A+n, n=12, to set 1/6 inch paper feed and use ESC+2
Name: ESC K n1 n2 Data to activate the ESC+a+n setting. The defaults to 1/6.
Dec.: 27 75 n1 n2 Data
Hex.: 1B 4B n1 n2 Data <n/72 INCH PAPER FEED SELECTION>
Sets paper feed amount to n/72 inch.
Comment:
*Refer to "BIT IMAGE(GRAPHICS)". Name: ESC A n (n = 0 to 85)DEC
Dec.: 27 65 n
Hex.: 1B 41 n
<DOUBLE DENSITY GRAPHICS>
Sets double density graphic mode [120 dots per inch]. Comments:
*ESC+2 must be input after ESC+A+n for n/72 inch paper feed
Name: ESC L n1 n2 Data to become effective.
Dec.: 27 76 n1 n2 Data *n=0 is ineffective.
Hex.: 1B 4C n1 n2 Data
<n/216 INCH PAPER FEED>
Comment: Sets paper feed amount to n/216 inch.
*Refer to "BIT IMAGE(GRAPHICS)".
Name: ESC 3 n (n = 0 to 255)DEC
<DOUBLE SPEED, DOUBLE DENSITY GRAPHICS> Dec.: 27 51 n
Sets double speed, double density graphics mode [120 dots per Hex.: 1B 33 n
inch].
Comments:
Name: ESC Y n1 n2 Data *The paper feed amount is not exactly n/216 inch.
Dec.: 27 89 n1 n2 Data *n=0 is ineffective.
Hex.: 1B 59 n1 n2 Data
<AUTOMATIC LINE FEED MODE>
Comments: Automatically executes a line feed following a carriage return.
*Horizontal adjacent dots cannot be printed.
*Refer to "BIT IMAGE(GRAPHICS)". Set:
Name: ESC 5 1 Sets page length in number of lines.
Dec.: 27 53 1
Hex.: 1B 35 01 Name: ESC C n (n = 1 to 255)DEC
Dec.: 27 67 n
Release: Hex.: 1B 43 n
Name: ESC 5 0
Dec.: 27 53 0 Comments:
Hex.: 1B 35 00 *Upon receipt of ESC+C+n, the present line position
becomes the top of form position.
<LINE FEED (LF)> *If n=0, page length returns to the inch designation.
Feeds paper to next line position after printing data in the line *ESC+C+n releases the skip perforation settings.
buffer. *The page length does not change even if the paper feed
amount is changed.
Name: LF *The terms "form" and "page" are interchangeable.
Dec.: 10
Hex.: 0A <MARGIN SET>
Sets positions of left and right margins.
Comments:
*The amount of spacing generated by LF is determined Name: ESC X n1 n2
by the paper feed commands. Dec.: 27 88 n1 n2
*When the new line position falls within the skip perforation Hex.: 1B 58 n1 n2
area, the paper advances to the next top of form position.
*When Auto CR is set to ON through the initial setup disk, Comments:
a Carriage Return command (CR) is added to each Line Feed (LF). *The following values of n1 (left) and n2 (right) can be used:

<FORM FEED (FF)> Pica n1=1 to 79 n2=2 to 80


Feeds paper to next top of form position after printing data in the Elite n1=1 to 94 n2=3 to 96
line buffer. Compressed n1=1 to 134 n2=4 to 137
Name: FF
Dec.: 12 *To keep current left or right margin, set n1=0 or n2=0.
Hex.: 0C *Any right margin designation to the left of the left margin
position is ignored.
Comment: *Setting the margin clears all data in the line buffer.
*The amount of spacing generated by FF is determined *Once the margin position is set, a change in the pitch will
by the page length commands. not alter this margin setting.

<n/216 INCH SINGLE LINE FEED> <SKIP PERFORATION>


Feeds paper n/216 inch after printing data in the line buffer. Sets skip perforation.

Name: ESC J n (n = 0 to 255)DEC Set:


Dec.: 27 74 n Name: ESC N n (n = 1 to 255)
Hex.: 1B 4A n Dec.: 27 78 n
Hex.: 1B 4E n
Comments:
*When Auto CR is set to ON through the setup disk, a carriage Release:
return command (CR) is added to each line feed. Name: ESC O
*The paper feed amount is not exactly n/216 inch. Dec.: 27 79
Hex.: 1B 4F
<PAGE LENGTH (INCHES)>
Sets page length in inches. Comments:
*The value of n specifies the number of lines (or n times
Name: ESC C 0 n (n = 1 to 255)DEC the current line spacing amount) to be skipped at the bottom
Dec.: 27 67 0 n of the page.
Hex.: 1B 43 00 n *The skip perforation amount does not change even if the paper
feed amount is changed following a skip perforation designation.
Comments: *The skip perforation is released upon receipt of the page
*Upon receipt of ESC+C+0+n, the present line position length designation command.
becomes the top of form position.
*ESC+C+0+n releases the skip perforation settings. <TOP OF FORM>
*The page length does not change even if the paper feed Sets current paper position as the new top of form.
amount is changed.
*The terms "form" and "page" are interchangeable. Name: ESC 4
Dec.: 27 52
<PAGE LENGTH (LINES)> Hex.: 1B 34
<VERTICAL TAB EXECUTION>
<HORIZONTAL TAB STOP SETTING> Executes the vertical TAB as designated by ESC+B+n1+n2+...
Sets horizontal tabulations to specified values. +nx+0.

Set: Name: VT
Name: ESC D n1 n2...nx 0 Dec.: 11
Dec.: 27 68 n1 n2...nx 0 Hex.: 0B
Hex.: 1B 44 n1 n2...nx 00
Comments:
Release: *When TABs are set with VT setting command and there is
Name: ESC D 0 no tab setting on a position exceeding the present line,
Dec.: 27 68 0 data in the line buffer is printed and the paper is fed
Hex.: 1B 44 00 one line (same as LF).
*When vertical TAB has not been set by ESC+B+n1+n2+...+nx+0,
Comments: execution of VT causes data in the line buffer to be printed
*Horizontal tabs are set from the left margin position. and advances the paper one line (same function as LF).
*Horizontal tabs must be designated such that n1<n2...<nx.
*A maximum of 32 tabs may be set on a single line. <ALL TAB INITIAL CLEAR>
*ESC+D+n1+n2+...+nx+0 sets horizontal tab stops. Sets all tabs to power on settings.
*The HT command executes the tab designation.
*In proportional spacing, horizontal tabs are set based on 10 CPI. Name: ESC R
*If the character pitch is altered after designation of Dec.: 27 82
horizontal tabs, the tab positions change. Hex.: 1B 52
*When the left margin is changed, horizontal tabs will be
moved based on the new margin setting. Comment:
*When the printer is powered up, tabs are automatically set *This command sets horizontal tabs at every 8th position
every 8 characters. and clears all vertical tabs.

<HORIZONTAL TAB EXECUTION> <BACKSPACE>


Executes the horizontal TAB as designated by Prints data in the line buffer and backspaces one space.
ESC+D+n1+n2+...nx+0.
Name: BS
Name: HT Dec.: 8
Dec.: 9 Hex.: 08
Hex.: 09
Comment:
Comments: *The backspacing amount will depend upon the pitch set when
*If the value of the horizontal TAB is less than the the BS code is executed.
present column position, that HT is ignored.
*When in underline mode, the blank spaces between <CARRIAGE RETURN>
consecutive HT print positions are not underlined. Prints all data in the line buffer and returns the printhead
to the left margin position.
<VERTICAL TAB STOP SETTING>
Sets vertical tabulation to specified values. Name: CR
Dec.: 13
Set: Hex.: 0D
Name: ESC B n1 n2...nx 0
Dec.: 27 66 n1 n2...nx 0 Comments:
Hex.: 1B 42 n1 n2...nx 00 *Certain computers issue an automatic line feed with
a carriage return. Check your computer manual for details.
Release: *When Auto LF is set to ON through the setup disk, a Line
Name: ESC B 0 Feed command (LF) is added to each Carriage Return (CR)
Dec.: 27 66 0 double width printing set.
Hex.: 1B 42 00
<UNI-DIRECTION>
Comments: Sets uni-directional printing mode.
*VT is set from the top of form position.
*Vertical tabs must be designed such that n1<n2...<nx. Set:
*ESC+B+n1+n2+...nx+0 sets vertical tab stops. The VT command Name: ESC U 1
executes the tab designation. Dec.: 27 85 1
*If the paper feed amount is changed after a designation of Hex.: 1B 55 01
vertical tabs, the tab positions do not change.
*A maximum of 64 tabs may be set. Release:
Name: ESC U 0
Dec.: 27 85 0 Bit
Hex.: 1B 55 00 ---------------------------------------------------------------
7 0: Print using upper 8 pins
<CANCEL> 1: Print using lower 8 pins
Clears all data in the line buffer. ---------------------------------------------------------------
6
Name: CAN 5
Dec.: 24 4 Ignored
Hex.: 18 3
2
<REMOTE PRINTER SELECT> ---------------------------------------------------------------
Selects printer after it has been deselected by ESC+"Q"+3. 1 00: Normal character
0 01: Line drawing character. The printer
Name: DC1 (Device Control 1) repeats the dots of row 8 in rows 9 to
Dec.: 17 12 as shown in Figure 1 on page 5-16.
Hex.: 11 10: Shading character. The dots in rows 1
to 4 are repeated in rows 9 to 12 as
Comment: shown in Figure 2 on page 5-16.
*All data sent to the printer between ESC+"Q"+3 and DC1 is lost. NLQ mode is ignored.
11: Not supported.
<REMOTE DESELECT PRINTER> ---------------------------------------------------------------
Deselects printer until it has been selected by DC1.
Note:
Name: ESC Q 3 Bit 7 of attribute byte 1 is effective only if bits 0, 1 are 00.
Dec.: 27 81 3
Hex.: 1B 51 03 . . . . . . . . . . . . . . . . . . . . . . ...
:
Comment: ........OOO.OOO...OOO.:
*All data sent to the printer between ESC+"Q"+3 and DC1 is lost. :...
.....OOO....OOO...OOO.::
<DRAFT AND TEXT FONT DOWNLOADING> ::
Defines draft and text download characters into specified address . . . O O O . . . . . . . . . . . . . . . . ..: :
locations :
in RAM. . . O . . . . . . . . . . . . . . . . . . . :R
:e
Name: ESC = n1 n2 20 Cs At1 At2 P1 P2 ...P11 . . O . . . . . O O O . O O O . . . O O O . :p
Dec.: 27 61 n1 n2 20 Cs At1 At2 P1 P2 ...P11 :e
Hex.: 1B 3D n1 n2 14 Cs At1 At2 P1 P2 ...P11 . O . . . . . O . . . . O O O . . . O O O . :a
:t
Comments: . O . . . . O . . . . ... . . . . . . . . . . . :
*n1,n2 indicate the number of bytes of character data to be loaded. ::
*Total count=(total charactersx13)+2 and n2=integer portion of total . O . . . . O . . . . ..: . . . . . . . . . . . .. :
count/256 and n1=remainder. :::
For example, to find n1 and n2 for 32 characters: . O . . . . O . . . . ..:Repeat . O O O . . . O O O . :..:
Total count=(32x13)+2=418 ::
. O . . . . O . . . . ..: . O O O . . . O O O . :
Divide the total number of columns you select, by 256 (max # of ::
columns). The result is n1 and the remainder is n2. . O . . . . O . . . . ..: . . . . . . . . . . . .:

Figure 1 Figure 2
n1 = 418 MOD 256 = 162
n2 = 418 / 256 = 1 so, n2=1 and n1=162 At2 is attribute byte 2

Attribute byte 2 specifies proportional spacing information about


Note: the character:
*If n1=n2=0 all download characters are cleared.
*20 is a fixed number. Bit
---------------------------------------------------------------
"Cs" indicates the first character potion for loading characters. 7 Reserved
For example to load a character into the position occupied by the ---------------------------------------------------------------
ASCII character "A", Cs=65 6 Specifies the number of column data bytes to
5 ignore (up to 7 leading columns can be
At1 is attribute byte 1 4 ignored).
Attribute byte 1 specifies: ---------------------------------------------------------------
3 Specifies the total number of dot columns to P10......................: : P10......................: :
2 be printed. Each character includes a blank ::
1 column which must be printed. This column is P11........................: P11........................:
0 not included by bits 3-0, e.g. For a character
10 columns wide (9 printable+1 blank) bits 3-0 Figure 1 Figure 2
would be 1001. Widths specified greater than
11 are truncated to 11. Figure 3 is an example of the intersection of vertical and horizontal
-------------------------------------------------------------- lines.

Note: 2^7 O O O O O O O O O . .
To print all 11 columns, bits 6-0 may be set to 0. *
2^6 O . . . . . . . . . .
Designing Draft and Text download characters *
2^5 O . . . . . . . . . .
When designing characters to print in both Draft and Text you *
should consider how the printer adds dots to create NLQ 2^4 O O O O O . . . . . .
characters. *
The figures that follow show how the printer treats various 2^3 O . . . . . . . . . .
situations. *
Open circle dots (O) shown must be specified by the font design. 2^2 O . . . . . . . . . .
Asterisks (*) represent dots that are automatically added by the *
printer in NLQ mode. Note horizontally adjacent dots specified in 2^1 O . . . . . . . . . .
the font design do not print in draft mode.
2^0 . . . . . . . . . . .
Figure 1 illustrate how dots are added to vertical lines and how
intersection of vertical and diagonal lines are treated. Figure 2 :::::::::::
shows the intersection of two diagonal lines. :::::::::::
P1.....: : : : : : : : : : :
2^7 O . . . . . . . O . . 2^7 O . . . . . . . O . . ::::::::::
***** P2.......: : : : : : : : : :
2^6 O . O . . . . . O . . 2^6 O . . . . . O . . . . :::::::::
***** P3.........: : : : : : : : :
2^5 O . . O . . . . O . . 2^5 O . . . O . . . . . . ::::::::
***** P4...........: : : : : : : :
2^4 O . . . O . . . O . . 2^4 O O O . . . . . . . . :::::::
***** P5.............: : : : : : :
2^3 O . . . . O . . O . . 2^3 O . . . O . . . . . . ::::::
***** P6...............: : : : : :
2^2 O . . . . . O . O . . 2^2 O . . . . . O . . . . :::::
***** P7.................: : : : :
2^1 O . . . . . . . O . . 2^1 O . . . . . . . O . . ::::
P8...................: : : :
2^0 . . . . . . . . . . . 2^0 . . . . . . . . . . . :::
P9.....................: : :
:::::::::::::::::::::: ::
:::::::::::::::::::::: P10......................: :
P1.....: : : : : : : : : : : P1.....: : : : : : : : : : : :
:::::::::::::::::::: P11........................:
P2.......: : : : : : : : : : P2.......: : : : : : : : : :
:::::::::::::::::: Figure 3
P3.........: : : : : : : : : P3.........: : : : : : : : :
:::::::::::::::: The intersection of diagonal and horizontal lines is printed out
P4...........: : : : : : : : P4...........: : : : : : : : as two vertical dots, as shown in Figure 4.
::::::::::::::
P5.............: : : : : : : P5.............: : : : : : : 2^7 O O O O O O O O . . .
:::::::::::: *
P6...............: : : : : : P6...............: : : : : : 2^6 . . . . . . . O . . .
:::::::::: *
P7.................: : : : : P7.................: : : : : 2^5 . . . . . . O . . . .
:::::::: *
P8...................: : : : P8...................: : : : 2^4 . . . . . O . . . . .
:::::: *
P9.....................: : : P9.....................: : : 2^3 . . . . O . . . . . .
:::: *
2^2 . . . O . . . . . . . :::::
* P7.................: : : : :
2^1 . . O . . . . . . . . ::::
P8...................: : : :
2^0 . . . . . . . . . . . :::
P9.....................: : :
::::::::::: ::
::::::::::: P10......................: :
P1.....: : : : : : : : : : : :
:::::::::: P11........................:
P2.......: : : : : : : : : :
::::::::: Figure 5
P3.........: : : : : : : : :
:::::::: As an example we will provide a basic program that loads
P4...........: : : : : : : : and prints in draft mode, the greek gamma character is shown
::::::: below:
P5.............: : : : : : :
:::::: 2^7 . . O . . . . . O . .
P6...............: : : : : : P1 =0
::::: 2^6 . . . O . . O . . . . P2 =2^2+2^3=4+8=12
P7.................: : : : : P3 =2^1+2^4+2^7=2+16+128=146
:::: 2^5 . . . . O . . . . . . P4 =2^0+2^6=1+64=65
P8...................: : : : P5 =2^1+2^5=2+32=34
::: 2^4 . . O . . O . . . . . P6 =2^2+2^3+2^4=4+8+16=28
P9.....................: : : P7 =2^6=64
:: 2^3 . O . . . O . . . . . P8 =0
P10......................: : P9 =2^7=128
: 2^2 . O . . . O . . . . . P10=0
P11........................: P11=0
2^1 . . O . O . . . . . .
Figure 4
2^0 . . . O . . . . . . .
When you add the dots , you can select the position
of added dots as shown in Figure 5. :::::::::::
:::::::::::
2^7 . O . . . . . . . . . P1.....: : : : : : : : : : :
* ::::::::::
2^6 . . O . . . . . . . . P2.......: : : : : : : : : :
* :::::::::
2^5 . . . O . . . . . . . P3.........: : : : : : : : :
::::::::
2^4 . . . . . . . . O . . P4...........: : : : : : : :
* :::::::
2^3 . . . . . . O . . . . P5.............: : : : : : :
* ::::::
2^2 . . . . O . . . . . . P6...............: : : : : :
* :::::
2^1 . . O . . . . . . . . P7.................: : : : :
::::
2^0 . . . . . . . . . . . P8...................: : : :
:::
::::::::::: P9.....................: : :
::::::::::: ::
P1.....: : : : : : : : : : : P10......................: :
:::::::::: :
P2.......: : : : : : : : : : P11........................:
:::::::::
P3.........: : : : : : : : : Example:
::::::::
P4...........: : : : : : : : 100 REM DRAFT DOWNLOAD CHARACTER
::::::: 110 WIDTH "LPT1:",255
P5.............: : : : : : : 120 OPEN "LPT1:" AS #1
:::::: 130 PRINT
P6...............: : : : : : #1,CHR$(27)+"="+CHR$(15)+CHR$(0)+CHR$(20)+"A";
140 PRINT #1,CHR$(0)+CHR$(11); 7....O...........O......
150 RESTORE 270 8....O...........O......
160 FOR I=1 TO 11 9....O...........O......
170 READ A : PRINT #1,CHR$(A); 10 . . . . O . . . . . . . . . O . O . . . . . .
180 NEXT I 11 . . . . . O X O X O X O X O X O . . . . . . .
190 REM PRINT DRAFT DOWNLOAD 12 . . . . . . . . . . . . . . . O . . . . . . .
200 PRINT #1,CHR$(27)+"I"+CHR$(4); 13 . . . . . . . . . . . . . . . O . . . . . . .
210 PRINT #1,"A A A A A"+CHR$(10)+CHR$(13); 14 . O . . . . . . . . . . . . . O . . . . . . .
220 REM PRINT TEXT DOWNLOAD 15 O . . . . . . . . . . . . . . . O . . . . . .
230 PRINT #1,CHR$(27)+"I"+CHR$(6); 16 O . . . . . . . . . . . . . . . O . . . . . .
240 PRINT #1,"A A A A A"+CHR$(10)+CHR$(13); 17 . O X O . . . . . . . . . O X O . . . . . . .
250 CLOSE 18 . . . . O X O X O X O X O . . . . . . . . . .
260 END
270 DATA 0,12,146,65,34,28,64,0,128,0,0 :::::::::::::::::::::::
P1h=2 P1l=2 ........: : : : : : : : : : : : : : : : : : : : : : :
<NLQ FONT DOWNLOADING> ::::::::::::::::::::::
Defines near letter quality download characters into P2h=1 P2l=4 ..........: : : : : : : : : : : : : : : : : : : : : :
specified address locations in RAM. :::::::::::::::::::::
P3h=1 P3l=0 ............: : : : : : : : : : : : : : : : : : : : :
Name: ESC = n1 n2 21 Cs At1 At2 P1h P1l ...P23l ::::::::::::::::::::
Dec.: 27 61 n1 n2 21 Cs At1 At2 P1h P1l ...P23l P4h=1 P4l=0 ..............: : : : : : : : : : : : : : : : : : : :
Hex.: 1B 3D n1 n2 15 Cs At1 At2 P1h P1l ...P23l :::::::::::::::::::
P5h=48 P5l=49 ................: : : : : : : : : : : : : : : : : : :
Example: ::::::::::::::::::
P6h=8 P6l=65 ..................: : : : : : : : : : : : : : : : : :
100 REM NLQ DOWNLOAD CHARACTER :::::::::::::::::
110 WIDTH "LPT1:",255 P7h=72 P7l=1 ....................: : : : : : : : : : : : : : : : :
120 OPEN "LPT1:" AS #1 ::::::::::::::::
130 PRINT P8h=8 P8l=129 ......................: : : : : : : : : : : : : : : :
#1,CHR$(27)+"="+CHR$(50)+CHR$(0)+CHR$(21)+"A"; :::::::::::::::
140 PRINT #1,CHR$(0)+CHR$(11); P9h=8 P9l=1 ........................: : : : : : : : : : : : : : :
150 RESTORE 240 ::::::::::::::
160 FOR I=1 TO 23*2 P10h=136 P10l=1 ..........................: : : : : : : : : : : : : :
170 READ A : PRINT #1,CHR$(A); :::::::::::::
180 NEXT I P11h=136 P11l=1 ............................: : : : : : : : : : : : :
190 REM PRINT NLQ DOWNLOAD ::::::::::::
200 PRINT #1,CHR$(27)+"I"+CHR$(7); P12h=136 P12l=1 ..............................: : : : : : : : : : : :
210 PRINT #1,"A A A A A"+CHR$(10)+CHR$(13); :::::::::::
220 CLOSE P13h=136 P13l=1 ................................: : : : : : : : : : :
230 END ::::::::::
240 DATA 2,2,1,4,1,0,1,0,48,49,8,65,72,1,8,129 P14h=137 P14l=0 ..................................: : : : : : : : : :
250 DATA 8,1,136,1,136,1,136,1,136,1,137,0,9,144 :::::::::
260 DATA 77,12,50,114,64,0,0,0,0,0,0,0,0,0,0,0 P15h=9 P15l=144 ....................................: : : : : : : : :
::::::::
Explanation: P16h=77 P16l=12 ......................................: : : : : : : :
:::::::
An NLQ font download character uses 23 columns and 18 rows of P17h=50 P17l=114 ........................................: : : : : : :
dots. ::::::
Column 24 is always blank. Ph specifies the contents of odd rows, P18h=64 P18l=0 ..........................................: : : : : :
Pl :::::
the even rows. Of the 18 rows of dots available for each character, P19h=0 P19l=0 ............................................: : : : :
only 16 can be printed for normal characters. ::::
P20h=0 P20l=0 ..............................................: : : :
If bit 7 of attribute byte 1 is 0, rows 1-16 will print; if it is :::
set to 1, rows 3-18 will print. P21h=0 P21l=0 ................................................: : :
::
NLQ font downloading P22h=0 P22l=0 ..................................................: :
:
1....................... P23h=0 P23l=0 ....................................................:
2.......................
3.........OXOXO......... NLQ downloading characters require 48 bytes per character. There
4.......O......O........ are 2 bytes for the attribute information and 46 bytes for the
5......O........O.O..... character design.
6.....O..........O......
Attribute information 1 Hex.: 1B 39

Bit No. Function Release:


---------------------------------------------------------------- Name: ESC 8
7 0: Normal character Dec.: 27 56
1: Descending character Hex.: 1B 38
----------------------------------------------------------------
6 Comment:
5 *Disabling of the paper out detector causes printing to
4 Ignored continue after paper end.
3
2 <INITIAL STATE>
---------------------------------------------------------------- Resets to initial state.
1 00: Normal character print mode.
0 (no block graphic character) Name: ESC [ K n1 0 m 3 p1 p2
01: Line-drawing character. Dec.: 27 91 75 n1 0 m 3 p1 p2
The printer repeats dots of row Hex.: 1B 5B 4B n1 00 m 03 p1 p2
15 in 17, 19, 21, and 23,row 16
in 18, 20, 22 and 24. Comments:
10: Shading character. *The following values of n1 can be used.
The printer repeats dots of rows n1=1: Initialize only
1, 3, 5 and 7 on 17, 19, 21 and 23, n1=3: Initialize and set by p1
rows 2, 4, 6 and 8 on 18, 20, 22 n1=4: Initialize and set by p1 and p2
and 24. *The following table illustrates the various modes based
11: Not supported. upon the value of m.
----------------------------------------------------------------
m Initialization Download
Attribute information 2 is reserved. Always set attribute 2 to zero. ---------------------------------------------------------
0 Current setting Not cleared Not saved
<ALL CHARACTER CHART PRINTING (Continuous)> 1 Current setting Cleared Not saved
Prints continuously from the All Character Chart. 4 FACTORY setting Not Cleared Not saved
5 FACTORY setting Cleared Not saved
Name: ESC \ n1 n2 254 Current setting Cleared Saved
Dec.: 27 92 n1 n2 255 FACTORY setting Cleared Saved
Hex.: 1B 5C n1 n2
*The following tables illustrate the parameter specifications.
Comments:
*The values specified for n1 and n2 indicate how many p1 (Parameter 1)
characters to print from All Character Chart, calculating Bit OFF ON
the total count with this formula; Total count=n2x256+n1. ----------------------------------------------------------
*The data following this command will be printed as characters 7 Discard byte Process this byte Ignore this byte
from the All Character Chart. 6 Not used
*Refer to IBM All Character Chart in appendix of the operating 5 Not used
instruction manual. 4 Auto CR OFF ON
3 Auto LF OFF ON
<ALL CHARACTER CHART PRINTING (Single)> 2 Form length 11" 12"
Prints a single character from the All Character Chart. 1 Zero slash Normal Slashed Zero
0 Character set Set 1 Set 2
Name: ESC ^
Dec.: 27 94 p2 (Parameter 2):
Hex.: 1B 5E Bit OFF ON
----------------------------------------------------------
Comments: 7 Discard byte Process this byte Ignore this byte
*Only the first byte of data following this command will 6 Select code page USA Multilingual
be printed as a character from the All Character Chart. 5 Not used --- ---
*Refer to IBM All Character Chart in appendix of the operating 4 20 cpi mode Enable Disable
instruction manual. 3 Not used --- ---
2 FF at top of form Enable Disable
<PAPER OUT DETECTION> 1 Not used --- ---
Enables paper out detector. 0 Cut sheet feeder Disable Enable

Set: < IBM Mode Characters (USA) >


Name: ESC 9
Dec.: 27 57 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 11 B 12 12 12 6 12 8 10 9 9 10 12 12 12 12 11 8

0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 12 12 12 12 C 12 12 6 10 12 10 8 4 10 12 12 12 12 12 10 7

1 1 12 12 5 8 12 12 12 11 12 12 12 12 12 12 12 12 13 D 12 12 12 12 12 8 12 9 8 11 12 12 12 4 11 8

2 2 12 12 8 12 12 12 11 11 12 12 12 12 12 12 11 10 14 E 12 12 6 10 12 12 12 12 12 12 12 12 12 8 11 8

3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 12 12 10 15 F 12 12 10 10 12 12 11 12 12 12 12 12 10 12 5 12

4 4 10 12 12 12 12 12 11 10 12 11 12 12 12 12 12 12 Unit:1/120 inch (0.21 mm)

5 5 12 12 12 12 12 12 12 12 12 11 12 12 12 12 12 12 < IBM Mode Characters (Portugal) >

6 6 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240

7 7 12 12 6 12 12 12 11 12 12 12 12 12 12 12 11 11 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F

8 8 12 12 6 12 12 10 12 10 12 11 12 12 12 12 12 8 0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 12 12 12

9 9 12 12 6 12 8 12 8 12 12 11 12 12 12 12 12 6 1 1 12 12 5 8 12 12 12 11 12 11 12 12 12 12 12 12

10 A 12 12 12 6 12 12 8 10 12 12 12 12 12 12 12 6 2 2 12 12 8 12 12 12 11 11 12 11 12 12 12 12 11 10

11 B 12 12 12 6 12 8 10 9 9 12 12 12 12 12 12 12 3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 12 12 10

12 C 12 12 6 10 12 10 8 4 10 12 12 12 12 12 12 10 4 4 10 12 12 12 12 12 11 10 11 10 12 12 12 12 12 12

13 D 12 12 12 12 12 8 12 9 8 12 12 12 12 12 12 8 5 5 12 12 12 12 12 12 12 12 12 11 12 12 12 12 12 12

14 E 12 12 6 10 12 12 12 12 12 12 12 12 12 12 10 8 6 6 12 12 12 12 12 12 12 12 11 11 12 12 12 12 12 12

15 F 12 12 10 10 12 12 11 12 12 12 12 12 12 12 12 12 7 7 12 12 6 12 12 12 11 12 12 12 12 12 12 12 11 11

Unit:1/120 inch (0.21 mm) 8 8 12 12 6 12 12 10 12 10 12 8 12 12 12 12 12 8

< IBM Mode Characters (Multilingual) > 9 9 12 12 6 12 8 12 8 12 11 11 10 12 12 12 12 6

Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 10 A 12 12 12 6 12 12 8 10 12 12 12 12 12 12 12 6

Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B 12 12 12 6 12 8 10 9 8 12 12 12 12 12 12 12

0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 10 10 12 12 C 12 12 6 10 12 10 8 4 12 12 12 12 12 12 12 10

1 1 12 12 5 8 12 12 12 11 12 12 12 12 12 11 12 12 13 D 12 12 12 12 12 8 12 9 8 11 12 12 12 12 12 8

2 2 12 12 8 12 12 12 11 11 12 12 12 12 12 11 12 11 14 E 12 12 6 10 12 12 12 12 11 12 12 12 12 12 10 8

3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 11 10 12 15 F 12 12 10 10 12 12 11 12 11 10 12 12 12 12 12 12

4 4 10 12 12 12 12 12 11 10 12 11 12 12 12 11 10 12 Unit:1/120 inch (0.21 mm)

5 5 12 12 12 12 12 12 12 12 12 11 12 11 12 8 11 12 < IBM Mode Characters (Canada-French) >

6 6 12 12 12 12 12 12 12 12 12 12 12 11 11 8 12 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240

7 7 12 12 6 12 12 12 11 12 12 12 12 11 11 12 11 7 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F

8 8 12 12 6 12 12 10 12 10 12 11 12 12 12 9 11 8 0 0 12 12 12 12 12 12 6 11 12 12 4 12 12 12 12 12

9 9 12 12 6 12 8 12 8 12 12 11 12 12 12 12 11 11 1 1 12 12 5 8 12 12 12 11 12 11 5 12 12 12 12 12

10 A 12 12 12 6 12 12 8 10 12 12 12 12 12 12 11 6 2 2 12 12 8 12 12 12 11 11 12 11 12 12 12 12 11 10
3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 12 12 10 15 F 12 12 10 10 12 12 11 12 12 12 10 12 12 12 12 12

4 4 10 12 12 12 12 12 11 10 11 11 11 12 12 12 12 12 Unit:1/120 inch (0.21 mm)

5 5 12 12 12 12 12 12 12 12 12 9 7 12 12 12 12 12 < IBM Mode Characters (Turkey) >

6 6 12 12 12 12 12 12 12 12 12 12 7 12 12 12 12 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240

7 7 12 12 6 12 12 12 11 12 12 12 11 12 12 12 11 11 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F

8 8 12 12 6 12 12 10 12 10 12 10 12 12 12 12 12 8 0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 12 12 12

9 9 12 12 6 12 8 12 8 12 12 12 12 12 12 12 12 6 1 1 12 12 5 8 12 12 12 11 12 12 12 12 12 12 12 12

10 A 12 12 12 6 12 12 8 10 12 12 12 12 12 12 12 6 2 2 12 12 8 12 12 12 11 11 12 12 12 12 12 12 11 10

11 B 12 12 12 6 12 8 10 9 9 12 12 12 12 12 12 12 3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 12 12 10

12 C 12 12 6 10 12 10 8 4 10 12 12 12 12 12 12 10 4 4 10 12 12 12 12 12 11 10 12 11 12 12 12 12 12 12

13 D 12 12 12 12 12 8 12 9 11 11 12 12 12 12 12 8 5 5 12 12 12 12 12 12 12 12 12 11 12 12 12 12 12 12

14 E 12 12 6 10 12 12 12 12 11 11 12 12 12 12 10 8 6 6 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12

15 F 12 12 10 10 12 12 11 12 12 12 12 12 12 12 12 12 7 7 12 12 6 12 12 12 11 12 12 12 11 12 12 12 11 11

Unit:1/120 inch (0.21 mm) 8 8 12 12 6 12 12 10 12 10 12 8 12 12 12 12 12 8

< IBM Mode Characters (Norway) > 9 9 12 12 6 12 8 12 8 12 12 11 12 12 12 12 12 6

Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 10 A 12 12 12 6 12 12 8 10 12 12 12 12 12 12 12 6

Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B 12 12 12 6 12 8 10 9 9 12 12 12 12 12 12 12

0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 12 12 12 12 C 12 12 6 10 12 10 8 4 10 12 12 12 12 12 12 10

1 1 12 12 5 8 12 12 12 11 12 12 12 12 12 12 12 12 13 D 12 12 12 12 12 8 12 9 8 12 12 12 12 12 12 8

2 2 12 12 8 12 12 12 11 11 12 12 12 12 12 12 11 10 14 E 12 12 6 10 12 12 12 12 12 12 12 12 12 12 10 8

3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 12 12 10 15 F 12 12 10 10 12 12 11 12 12 12 12 12 12 12 12 12

4 4 10 12 12 12 12 12 11 10 12 11 12 12 12 12 12 12 Unit:1/120 inch (0.21 mm)

5 5 12 12 12 12 12 12 12 12 12 11 12 12 12 12 12 12

6 6 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12

7 7 12 12 6 12 12 12 11 12 12 12 12 12 12 12 11 11

8 8 12 12 6 12 12 10 12 10 12 11 12 12 12 12 12 8

9 9 12 12 6 12 8 12 8 12 12 11 12 12 12 12 12 6

10 A 12 12 12 6 12 12 8 10 12 12 12 12 12 12 12 6

11 B 12 12 12 6 12 8 10 9 9 10 12 12 12 12 12 12

12 C 12 12 6 10 12 10 8 4 10 12 12 12 12 12 12 10

13 D 12 12 12 12 12 8 12 9 8 11 12 12 12 12 12 8

14 E 12 12 6 10 12 12 12 12 12 12 12 12 12 12 10 8

You might also like