RTM184R V1.0
;*****************************************************************************
;* << Raven PR-9100 >> *
;* COMMAND REFERENCE *
;*****************************************************************************
; *********************************
; ***** EPSON Mode Commands *****
; *********************************
<PRINT QUALITY>
Selects print quality.
Name: ESC x n
Dec.: 27 120 n
Hex.: 1B 78 n
Comment:
*The following values of n can be used:
n=0:Draft font
n=1:NLQ font
<FONT STYLE>
Selects NLQ font style.
Name: ESC k n
Dec.: 27 107 n
Hex.: 1B 6B n
Comments:
*The following values of n can be used:
n=0: Roman
n=1: Sans Serif
n=2: Courier
n=6: Bold PS
*This command is effective only in near letter quality mode (ESC+x+1).
<SUB/SUPERSCRIPT FONT>
Selects sub/superscript font with characters printed in the
lower/upper area of the line.
Set:
Name: ESC S n
Dec.: 27 83 n
Hex.: 1B 53 n
Release:
Name: ESC T
Dec.: 27 84
Hex.: 1B 54
Comments:
*The following values of n can be used:
n=0: Superscript
n=1: Subscript
*Sub/superscript font is 1/2 normal character height.
<PICA PITCH>
Sets printing to 10 characters per inch (up to 80 characters per line).
Name: ESC P
Dec.: 27 80
Hex.: 1B 50
Comment:
*When pica and compressed are set simultaneously, output is
17 CPI (up to 137 CPL).
<ELITE PITCH>
Sets printing to 12 characters per inch (up to 96 characters per line).
Name: ESC M
Dec.: 27 77
Hex.: 1B 4D
Comment:
*When elite and compressed are set simultaneously, output is
20 CPI (up to 160 CPL).
<MICRON PITCH>
Sets printing to 15 characters per inch (up to 120 characters per line).
Name: ESC g
Dec.: 27 103
Hex.: 1B 67
Comment:
*When micron and compressed are set simultaneously, output is
15 CPI (up to 120 CPL).
<COMPRESSED PITCH>
Sets printing to 17 characters per inch (up to 137 characters per line).
Set:
Name: SI or ESC SI
Dec.: 15 or 27 15
Hex.: 0F or 1B 0F
Release:
Name: DC2
Dec.: 18
Hex.: 12
Comments:
*When pica and compressed are set simultaneously, output is
17 CPI (up to 137 characters per line).
*When elite and compressed are set simultaneously, output is
20 CPI (up to 160 CPL).
*When micron and compressed are set simultaneously, output is
15 CPI (up to 120 CPL).
*If proportional spacing is set together with compressed
printing, compressed printing is ineffective.
<PROPORTIONAL SPACING>
Sets proportional spacing between characters.
Set:
Name: ESC p 1
Dec.: 27 112 1
Hex.: 1B 70 01
Release:
Name: ESC p 0
Dec.: 27 112 0
Hex.: 1B 70 00
Comments:
*Proportional spacing overrides pica, elite, and micron
pitch setting.
*If proportional spacing is set together with compressed
printing, compressed printing is ineffective.
*This command is effective only in near letter quality mode (ESC+x+1).
<PROGRAMMABLE PITCH/HIGHLIGHTING>
Sets a combination of character pitch and/or highlighting.
Name: ESC ! n (n = 0 to 255)DEC
Dec.: 27 33 n
Hex.: 1B 21 n
Comments:
*The value of n determines the pitch and highlight combinations.
*To find the value of n, add up the decimal numbers below for
the print modes you wish to select:
0: Pica
1: Elite
2: PS
4: Compressed
8: Emphasized
16: Double-strike
32: Double-wide
64: Italic
128: Underlining
*Invalid values of n follow rules noted in individual commands.
*When elite and compressed are set simultaneously output is
20 CPI (up to 160 CPL).
<EMPHASIZED PRINTING>
Sets printing to twice the original horizontal dot density.
Set:
Name: ESC E
Dec.: 27 69
Hex.: 1B 45
Release:
Name: ESC F
Dec.: 27 70
Hex.: 1B 46
Comment:
*Emphasized characters are printed at half speed.
<DOUBLE HIGH PRINTING>
Sets double high printing.
Set:
Name: ESC w 1
Dec.: 27 119 1
Hex.: 1B 77 01
Release:
Name: ESC w 0
Dec.: 27 119 0
Hex.: 1B 77 00
Comments:
*Sub/superscript and compressed modes are not valid with double height
printing(10 and 12 cpi only)
*ESC+"!"+n can also be used to release double height printing(see
Programmable Pitch for valid "n" values).
<DOUBLE WIDE PRINTING (SINGLE LINE)>
Sets double wide (expanded) printing for one line only.
Set:
Name: SO or ESC SO
Dec.: 14 or 27 14
Hex.: 0E or 1B 0E
Release:
Name: DC4 or ESC W 0
Dec.: 20 or 27 87 0
Hex.: 14 or 1B 57 00
Comment:
*Single line double wide printing is released when:
- a LF, FF or VT is executed.
- the printer is initialized.
- DC4 or ESC+W+0 is executed.
- ESC+!+0 is executed.
<DOUBLE WIDE PRINTING>
Sets double wide (expanded) printing.
Set:
Name: ESC W 1
Dec.: 27 87 1
Hex.: 1B 57 01
Release:
Name: ESC W 0
Dec.: 27 87 0
Hex.: 1B 57 00
Comments:
*DC4 will not release the double wide printing set by ESC+W+1.
*Expanded pica output is 5 CPI.
*Expanded elite output is 6 CPI.
*Expanded micron output is 7.5 CPI.
*Expanded compressed output is 8.5 CPI.
<DOUBLE STRIKE PRINTING>
Sets double printing.
Set:
Name: ESC G
Dec.: 27 71
Hex.: 1B 47
Release:
Name: ESC H
Dec.: 27 72
Hex.: 1B 48
Comment:
*Double strike printing prints each line twice, with the second
line slightly below the first to create a bold appearance.
<UNDERLINING>
Sets continuous underlining of characters.
Set:
Name: ESC - 1
Dec.: 27 45 1
Hex.: 1B 2D 01
Release:
Name: ESC - 0
Dec.: 27 45 0
Hex.: 1B 2D 00
Comment:
*Bit image data, spaces set by the HT code, and IBM graphic
characters will not be underlined.
<WORD PROCESSING MODE SELECTION>
Name: ESC a n
Dec.: 27 97 n
Hex.: 1B 61 n
Comment:
*The following values of n can be used.
n=0: Releases word processing mode.
n=1: Selects centering mode.
n=2: Selects right alignment mode.
n=3: Selects justification mode.
<CHARACTER DOT SPACING>
Sets character dot spacing
Name: ESC SP n (n = 0 to 127)DEC
Dec.: 27 32 n
Hex.: 1B 20 n
Comment:
*Sets the amount of dot space (Draft: n/120 inch,
NLQ: n/180 inch) added to the right of each character
to allow for micro justification.
<ITALIC FONT>
Selects italic character printing.
Set:
Name: ESC 4
Dec.: 27 52
Hex.: 1B 34
Release:
Name: ESC 5
Dec.: 27 53
Hex.: 1B 35
Comments:
*Italic characters are printed in place of characters
in character set locations 32DEC to 126DEC (20 HEX to 7E HEX).
*This command is effective regardless of character set
selected by ESC+t+n.
<INTERNATIONAL CHARACTER SET>
Selects international character set.
Name: ESC R n
Dec.: 27 82 n
Hex.: 1B 52 n
Comments:
*The following values of n can be used:
n=0 to 13: Selects one of 14 language character sets.
n=64 : Selects Legal character set.
*Character set tables in the appendix of the operating instruction
manual identifies the characters generated by the appropriate
codes.
*International character sets can be set through the setup disk.
<ENABLE UPPER CONTROL CODES>
Assigns character codes 128 to 159 as control codes
Name: ESC 7
Dec.: 27 55
Hex.: 1B 37
Comments:
*Refer to character set tables in appendix of the operating
instruction manual.
*This command is not operational when the Italic character
set is selected by ESC+t+n.
<ENABLE PRINTING OF UPPER CONTROL CODES>
Assigns character codes 128 to 159 as printable characters
Name: ESC 6
Dec.: 27 54
Hex.: 1B 36
Comments:
*Refer to character set tables in appendix of the operating
instruction manual.
*This command is not operational when the Italic character
set is selected by ESC+t+n.
<ALTERNATE CHARACTER TABLE>
Selects alternate character table.
Name: ESC t n
Dec.: 27 116 n
Hex.: 1B 74 n
Comments:
*The following values of n can be used:
n=0: Character table 0 : default = Italic
n=1: Character table 1 : default = PC437 (USA)
n=2: Character table 2 : default = User defined
n=3: Character table 3 : default = PC437 (USA)
*To copy user-defined characters to the upper half of the character
table use the ESC+t+2 command. This command will not work if you
have assigned another character table to table 2.
<BIT IMAGE>
* Bit Image (Graphics)
The bit image (Graphics) enables you to control the firing
of each pin of the printhead to create virtually any graphics
design you desire.
1. Dot Density
Dot density (dot resolution) refers to the maximum number of dots
that can be printed in an inch or on a line. This printer enables
you to access a variety of dot densities through specific control
commands. The various dot densities and corresponding control
commands appear as follows:
Command Function Dots/Inch Dots/Line
ESC+"K"+n1+n2 Standard density 60 480
ESC+"L"+n1+n2 Double density 120 960
ESC+"Y"+n1+n2 Double speed,Double density 120 960
ESC+"Z"+n1+n2 Quadruple density 240 1920
ESC+"*"+m+n1+n2 8-Pin Mode Selection:
m=0 (Standard) 60 480
m=1 (Double) 120 960
m=2 (Double speed,Double density) 120 960
m=3 (Quadruple density) 240 1920
m=4 (CRT I) 80 640
m=5 (Plotter) 72 576
m=6 (CRT II) 90 720
m=7 (Double density plotter) 144 1152
ESC+"^"+m+n1+n2 9-Pin Mode Selection:
m=0 (Standard) 60 480
m=1 (Double) 120 960
m=2 (Double speed,Double density) 120 960
m=3 (Quadruple density) 240 1920
m=4 (CRT I) 80 640
m=5 (Plotter) 72 576
m=6 (CRT II) 90 720
m=7 (Double density plotter) 144 1152
ESC+"?"+n+m Bit Image Mode Reassignment:
n= "K", "L", "Y", "Z"
m=0 (Standard) 60 480
m=1 (Double) 120 960
m=2 (Double speed,Double density) 120 960
m=3 (Quadruple density) 240 1920
m=4 (CRT I) 80 640
m=5 (Plotter) 72 576
m=6 (CRT II) 90 720
m=7 (Double density plotter) 144 1152
2. 8-Pin Bit Image Mode
Of the 9-pins in the printhead, the 8-pin bit image graphics
mode uses the upper eight pins only. Each pin corresponds to
a power of two. By summing the powers of two corresponding
to each of the pins you wish to fire, you will obtain a
numerical value which instructs the printer to print one column
of dots. Through such techniques in BASIC as looping, numerical
values for each column on a line are input and processed. The
result is one line of graphics.
8-Bit 7-Bit
Pin No. Pins Interface Interface
-------------------------------------------------
1 O 2^7=128 Not used
2 O 2^6=64 2^6=64
3 O 2^5=32 2^5=32
4 O 2^4=16 2^4=16
5 O 2^3=8 2^3=8
6 O 2^2=4 2^2=4
7 O 2^1=2 2^1=2
8 O 2^0=1 2^1=1
9 O Not used Not used
As an example, suppose you want to fire pin-blocks 1, 2, 5 and
8 simultaneously. Then you compute the following sum:
Input code = Pin 1 code + Pin 2 code + Pin 5 code + Pin 8 code
= 2^7 + 2^6 + 2^3 + 2^0
= 128 + 64 + 8 + 1
= 201
Thus, the value 201 is entered in the CHR$ function in order to
print a single column of dots resulting from firing pin-blocks
1, 2, 5, and 8.
For our final example, refer to the standard density designation
in Table above. This setting is given by ESC+"K"+n1+n2. Suppose
you wish to print 100 columns of dots, where every column fires
pin 1 and 8 only.
You first compute the values of n1 and n2.
This is done by finding values for n1 and n2, as follows:
Divide the total number of columns you select, by 256 (max # of
columns). The result is n1 and the remainder is n2.
n1 = 100 MOD 256 = 100
n2 = 100 / 256 = 0 so, n2=0 and n1=100
Our control code ESC+"K"+n1+n2 now translates into:
LPRINT CHR$(27)+"K"+CHR$(100)+CHR$(0);
Next compute the code for firing pins 1 and 8 simultaneously:
Input Code = Pin 1 code + Pin 8 code
= 2^7 + 2^0
= 128 + 1
= 129
Finally, we incorporate our two calculations into the following
program. Note that lines 20 and 30 are necessary for the proper
execution of this program on many IBM-compatible computers.
Such BASIC statements suppress CR and LF codes and enable
printing on a full line without unwanted "breaks". Programs
which include statements such as lines 20 and 30 cannot use
LPRINTs to print data. In such cases, PRINT # statements must
be used. Line 90 is necessary to CLOSE all open files.
A programming example is as follows:
10 REM STANDARD DENSITY
20 WIDTH "LPT1:",255
30 OPEN "LPT1:" AS #1
40 PRINT #1,CHR$(27)+"K"+CHR$(100)+CHR$(0);
50 FOR I=1 TO 100
60 PRINT #1, CHR$(129);
70 NEXT I
80 PRINT #1,CHR$(10);
90 CLOSE
100 END
3. 9-Pin Bit Image Mode
In the 9-pin bit image mode, all 9 pins of the printhead may
be fired. The 9 pins in the printhead are divided into two
portions, the upper 8 pins and the bottom pin.
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
these 8 pins represents 1 bytes of data. When fired, it is
represented by the value 0. Together, these two bytes determine
the dot configuration for a single column of graphics.
Pin No. Pins Interface Byte
1 O 2^7=128
2 O 2^6=64
3 O 2^5=32
4 O 2^4=16 1
5 O 2^3=8
6 O 2^2=4
7 O 2^1=2
8 O 2^0=1
--------------------------------------------------------------------------
9 O 2^7=128
NOT USED 2
--------------------------------------------------------------------------
As an example, suppose you want to fire pins 1,2,5,8 and 9
simultaneously. Then you determine the following two values:
Byte 1: Input code = Pin 1 code + Pin 2 code + Pin 3 code +
Pin 5 code + Pin 8 code
= 2^7 + 2^6 + 2^3 + 2^0
= 128 + 64 + 8 + 1
= 201
Byte 2: Input code = Pin 9 code
= 2^7 = 128
Thus, the two bytes for a single column of dots are entered as:
CHR$(201); CHR$(128)
Refer to the 9-pin standard density designation in the table.
This setting is given by ESC+"^"+m+n1+n2, where m=0.
Suppose you wish to print 100 columns of dots, where every column
fires pins 1,2,5,8, and 9 as above.
As in the 8-pin example , n1=100 and n2=0. Our control code
ESC+^+m+n1+n2 now translate into:
LPRINT CHR$(27)+"^"+CHR$(0)+CHR$(100)+CHR$(0);
If we incorporate this information into a program, we might
have the following:
10 REM 9-PIN STANDARD DENSITY
20 WIDTH "LPT1:",255
30 OPEN "LPT1:" AS #1
40 PRINT #1,CHR$(27)+"^"+CHR$(0)+CHR$(100)+CHR$(0);
50 FOR I=1 TO 100
60 PRINT #1, CHR$(201)+CHR$(128);
70 NEXT I
80 PRINT #1,CHR$(10);
90 CLOSE
100 END
<STANDARD DENSITY GRAPHICS>
Sets standard density graphics mode [60 dots per inch
(25.4 mm)].
Name: ESC K n1 n2 Data
Dec.: 27 75 n1 n2 Data
Hex.: 1B 4B n1 n2 Data
Comment:
*Refer to "BIT IMAGE(GRAPHICS)".
<DOUBLE DENSITY GRAPHICS>
Sets double density graphics mode [120 dots per inch
(25.4 mm)].
Name: ESC L n1 n2 Data
Dec.: 27 76 n1 n2 Data
Hex.: 1B 4C n1 n2 Data
Comment:
*Refer to "BIT IMAGE(GRAPHICS)".
<DOUBLE SPEED/DOUBLE DENSITY GRAPHICS>
Sets double speed double density graphics mode
[120 dots per inch (25.4 mm)].
Name: ESC Y n1 n2 Data
Dec.: 27 89 n1 n2 Data
Hex.: 1B 59 n1 n2 Data
Comments:
*Horizontal adjacent dots cannot be printed.
*Refer to "BIT IMAGE(GRAPHICS)".
<QUADRUPLE DENSITY GRAPHICS>
Sets quadruple density graphics mode
[240 dots per inch (25.4 mm)].
Name: ESC Z n1 n2 Data
Dec.: 27 90 n1 n2 Data
Hex.: 1B 5A n1 n2 Data
Comments:
*Horizontal adjacent dots cannot be printed.
*Refer to "BIT IMAGE(GRAPHICS)".
<8-PIN BIT IMAGE MODE SELECTION>
Selects one of the 8-pin bit image graphic modes.
Name: ESC * m n1 n2 Data
Dec.: 27 42 m n1 n2 Data
Hex.: 1B 2A m n1 n2 Data
Comments:
*The following table illustrates the various modes based upon the
values of m.
m dpi dpl
----------------------------------------------------
0 60 480 Standard Density
1 120 960 Double Density
2 120 960 Double Speed, Double Density
3 240 1920 Quadruple Density
4 80 640 CRT I
5 72 576 Plotter
6 90 720 CRT II
7 144 1152 Double density plotter
*When m=2, 3 horizontal adjacent dots cannot be printed.
*The values n1 and n2 indicate the number of graphic columns
to be printed.
*Refer to "BIT IMAGE(GRAPHICS)".
<9-PIN BIT IMAGE MODE SELECTION>
Selects one of the 9-pin bit image graphic modes.
Name: ESC ^ m n1 n2 Data
Dec.: 27 94 m n1 n2 Data
Hex.: 1B 5E m n1 n2 Data
Comments:
*Refer to "BIT IMAGE(GRAPHICS)".
*The value of m specifies the graphics mode to which the
original is to be reassigned. Refer to the table in the
8-PIN BIT IMAGE MODE SELECTION section for values of m.
<BIT IMAGE MODE REASSIGNMENT>
Reassigns bit image graphics mode density.
Name: ESC ? n m
Dec.: 27 63 n m
Hex.: 1B 3F n m
Comments:
*The value of n specifies the graphics mode which is
to be reassigned:
n=75: Reassign Standard Density (ESC+K+n1+n2)
n=76: Reassign Double Density (ESC+L+n1+n2)
n=89: Reassign Double Speed, Double Density (ESC+Y+n1+n2)
n=90: Reassign Quadruple Density (ESC+Z+n1+n2)
*The value of m specifies the graphics mode to which the
original is to be reassigned. Refer to the table in the
8-PIN BIT IMAGE MODE SELECTION section for values of m.
<1/8 INCH PAPER FEED>
Sets paper feed amount to 1/8 inch (3.2 mm).
Name: ESC 0
Dec.: 27 48
Hex.: 1B 30
<7/72 INCH PAPER FEED>
Sets paper feed amount to 7/72 inch (2.47 mm).
Name: ESC 1
Dec.: 27 49
Hex.: 1B 31
<1/6 INCH PAPER FEED>
Sets paper feed amount to 1/6 inch (4.23 mm).
Name: ESC 2
Dec.: 27 50
Hex.: 1B 32
Comment:
*ESC+2 sets 1/6 inch paper feed.
<n/72 INCH PAPER FEED>
Sets paper feed amount to n/72 inch.
Name: ESC A n (n = 0 to 85)DEC
Dec.: 27 65 n
Hex.: 1B 41 n
<n/216 INCH PAPER FEED>
Sets programmable paper feed amount to n/216 inch.
Name: ESC 3 n
Dec.: 27 51 n
Hex.: 1B 33 n
Comment:
*n/216 inch paper feed is valid for n = 0 to 255.
<LINE FEED (LF)>
Feeds paper to next line position after printing data in the line buffer.
Name: LF
Dec.: 10
Hex.: 0A
Comments:
*The amount of spacing generated by LF is determined by the
paper feed commands.
*When the new line position falls within the perforation skip
area, the paper advances to the next top of form position.
<FORM FEED (FF)>
Feeds paper to next top of form position after printing data
in the line buffer.
Name: FF
Dec.: 12
Hex.: 0C
Comment:
*The amount of spacing generated by FF is determined
by the page length commands.
<n/216 INCH SINGLE LINE FEED>
Feeds paper n/216 inch after printing data in the line buffer.
Name: ESC J n (n = 0 to 255)DEC
Dec.: 27 74 n
Hex.: 1B 4A n
Comments:
*This command sets the paper feed for ONE line only.
Subsequent paper feed returns to previous setting.
However, the carriage does not return to the left margin
position. Instead, printing of the next line begins where
previous printing left off.
*This command does not release single-line double width printing.
<n/216 INCH REVERSE DIRECTION SINGLE LINE FEED>
Prints data in the line buffer and feeds the paper n/216 inch
in the reverse direction.
Name: ESC j n (n = 0 to 255)DEC
Dec.: 27 106 n
Hex.: 1B 6A n
Comments:
*This command sets reverse direction paper feed for one line
only. The carriage will not return, however, to the left
margin position. Instead, the printing of the next line begins
where the previous printing left off.
*This command does not release single-line double width printing.
<PAGE LENGTH (INCHES)>
Sets page length in inches.
Name: ESC C 0 n (n = 1 to 22)DEC
Dec.: 27 67 0 n
Hex.: 1B 43 00 n
Comments:
*Upon receipt of ESC+C+0+n, the present line position becomes
the top of form position.
*ESC+C+0+n releases the VT,VFU and skip perforation settings.
*The page length does not change even if the paper feed amount
is changed.
*The terms "form" and "page" are interchangeable.
<PAGE LENGTH (LINES)>
Sets page length in number of lines.
Name: ESC C n (n = 1 to 127)DEC
Dec.: 27 67 n
Hex.: 1B 43 n
Comments:
*Upon receipt of ESC+C+n, the present line position becomes
the top of form position.
*If n=0, page length returns to the inch designation.
*ESC+C+n releases the VT, VFU and skip perforation settings.
*The page length does not change even if the paper feed amount
is changed
*The terms "form" and "page" are interchangeable.
<LEFT MARGIN>
Sets position of left margin.
Name: ESC l n
Dec.: 27 108 n
Hex.: 1B 6C n
Comments:
*The following values of n can be used:
Pica print n = 0 to 78
Elite print n = 0 to 93
Micron print n = 0 to 117
Compressed print n = 0 to 133
Elite compressed n = 0 to 156
*If the value of n exceeds the right margin value, ESC+l+n
is ineffective and the left margin does not change.
*Setting the left margin clears all data in the line buffer.
*In proportional spacing, the value of n is based on 10 CPI.
*Once the left margin position is set, a change in the
character mode will not alter this left margin setting.
<RIGHT MARGIN>
Sets position of right margin.
Name: ESC Q n
Dec.: 27 81 n
Hex.: 1B 51 n
Comments:
The following values of n can be used:
Pica print n = 2 to 80
Elite print n = 3 to 96
Micron print n = 3 to 120
Compressed print n = 4 to 137
Elite compressed n = 4 to 160
*If the value n exceeds the left margin value, ESC+Q+n is
ignored.
*Setting the right margin clears all data in the line buffer.
*In proportional spacing, the value of n is based on 10 CPI.
*Once the right margin position is set, a change in the
character mode will not alter this right margin setting.
<SKIP PERFORATION>
Sets skip perforation.
Set:
Name: ESC N n (n = 1 to 127)DEC
Dec.: 27 78 n
Hex.: 1B 4E n
Release:
Name: ESC O
Dec.: 27 79
Hex.: 1B 4F
Comments:
*The value of n specifies the number of lines (or n times the current
line spacing amount) to be skipped at the bottom of the page.
*If n>128, the value is processed as n-128. If n=128 the command
is ignored.
*The skip perforation amount does not change even if the paper feed
amount is changed following a skip perforation designation.
*The skip perforation setting is released upon receipt of the page
length designation command.
<HORIZONTAL TAB STOP SETTING>
Sets horizontal tabulations to specified values.
Set:
Name: ESC D n1 n2...nx 0
Dec.: 27 68 n1 n2...nx 0
Hex.: 1B 44 n1 n2...nx 00
Release:
Name: ESC D 0
Dec.: 27 68 0
Hex.: 1B 44 00
Comments:
*Horizontal tabs are set from the left margin position.
*Horizontal tabs must be designated such that n1<n<2<...<nx.
*A maximum of 32 tabs may be set on a single line.
*ESC+D+n1+n2+...+nx+0 sets horizontal tab stops. The HT command
executes the tab designation.
*In proportional spacing, horizontal tabs are set based on 10 CPI.
*When the left margin is changed, horizontal tabs will be moved
based on new margin setting.
*When the printer is powered up, tabs are automatically set every
8 characters.
*If the pitch is altered after designation of horizontal tabs,
the tab positions do not move.
<HORIZONTAL TAB EXECUTION>
Executes the horizontal TAB as designated by ESC+D+n1+n2...+nx+0.
Name: HT
Dec.: 9
Hex.: 09
Comments:
*If the value of horizontal TAB is less than present column
position, then HT is ignored.
*When in underline mode, the blank spaces between consecutive
HT print positions are not underlined.
<VERTICAL TAB STOP SETTING>
Sets vertical tabulation to specified values.
Set:
Name: ESC B n1 n2...nx 0
Dec.: 27 66 n1 n2...nx 0
Hex.: 1B 42 n1 n2...nx 00
Release:
Name: ESC B 0
Dec.: 27 66 0
Hex.: 1B 42 00
Comments:
*VT is set from the top of form position.
*Vertical tabs must be designed such that n1<n2...<nx.
*ESC+B+n1+n2+...+nx+0 sets vertical tab stops. The VT
command executes the tab designation.
*If the paper feed amount is changed after a designation
of vertical tabs, the positions do not change.
*VT settings are released by page length designation commands.
*A maximum of 16 tabs may be set.
<VERTICAL TAB EXECUTION>
Executes the vertical TAB as designated by
ESC+B+n1+n2+...+nx+0, ESC+b+m+n1+n2+...nx+0.
Name: VT
Dec.: 11
Hex.: 0B
Comments:
*When TABs are set with VT or VFU setting command and when
there is no tab setting on a position exceeding the present
line, data in the line buffer is printed and the paper is
fed to the next top of form position (same as FF).
*On power up no vertical tabs have been set; therefore, when
a VT is sent, the paper advances one line.
*When vertical TAB is cleared by ESC+B+0, execution of VT
causes data in the line buffer to be printed and does not
advance the paper.
<VFU CHANNEL SELECTION>
Selects one of eight channels in Vertical Format Unit(VFU).
Name: ESC / n (n = 0 to 7)DEC
Dec.: 27 47 n
Hex.: 1B 2F n
Comments:
*The value of n selects one of eight channels (0 to 7).
*Channel 0 is the default setting.
<VFU SETTING>
Sets the tab position of any channel in the VFU (Vertical Format Unit).
Set:
Name: ESC b m n1 n2...nx 0
Dec.: 27 98 m n1 n2...nx 0
Hex.: 1B 62 m n1 n2...nx 00
(m=0 to 7) (x=1 to 16)
Release:
Name: ESC b m 0
Dec.: 27 98 m 0
Hex.: 1B 62 m 00
Comments:
*The value of m selects one of eight channels (0 to 7).
*A maximum of 16 vertical tabs can be set by each channel.
*Any VFU setting exceeding the page length is ineffective.
*To operate the VFU, input the VT code (11 DEC) after selecting
the channel via channel selection command (ESC+/+n).
*The VFU position does not change even if paper feed amount is
altered after VFU setting.
*The VFU setting is also released by the page length designation
commands.
*The vertical tab specified with ESC+B+n1+n2+...nx+0 is set
to VFU channel 0.
<BACKSPACE>
Prints data in the line buffer and backspaces one space.
Name: BS
Dec.: 8
Hex.: 08
Comments:
*The backspacing amount will depend upon the pitch set when
the BS code is executed.
*This command is ignored in the word processing mode
(ESC+"a"+1, ESC+"a"+2, or ESC+"a"+3).
<CARRIAGE RETURN>
Prints data in the line buffer and returns the printhead
to the left margin position.
Name: CR
Dec.: 13
Hex.: 0D
Comments:
*Certain computers issue an automatic line feed with
a carriage return. Check your computer manual for details.
*When automatic LF is set to ON through the initial setup mode
or through setup disk, a LF is executed whenever a CR code is
executed.
<ONE LINE UNI-DIRECTION>
Causes printhead to move to its left margin position.
Name: ESC <
Dec.: 27 60
Hex.: 1B 3C
<UNI-DIRECTION>
Sets uni-directional printing mode.
Set:
Name: ESC U 1
Dec.: 27 85 1
Hex.: 1B 55 01
Release:
Name: ESC U 0
Dec.: 27 85 0
Hex.: 1B 55 00
<HALF SPEED PRINTING>
Sets printing to half speed.
Set:
Name: ESC s 1
Dec.: 27 115 1
Hex.: 1B 73 01
Release:
Name: ESC s 0
Dec.: 27 115 0
Hex.: 1B 73 00
Comment:
*Half speed printing can be set only in the draft pica,
draft elite, standard density image, double-speed
double-density image, CRT II image modes.
<ABSOLUTE HORIZONTAL POSITION>
Moves the printhead to an absolute horizontal position.
Name: ESC $ n1 n2
Dec.: 27 36 n1 n2
Hex.: 1B 24 n1 n2
Comments:
*This command moves the print position to a position
n1+256xn2 dots (units) from the left margin. Each unit
equals 1/60th of an inch.
*To calculate n1 and n2 first determine the total increments
of 1/60 inch to move the print position from the left margin.
Let this value = m then
n1=m MOD 256
n2=int(m/256)
<RELATIVE HORIZONTAL POSITION>
Moves the printhead left or right to a relative horizontal position.
Name: ESC \ n1 n2
Dec.: 27 92 n1 n2
Hex.: 1B 5C n1 n2
Comments:
*This command moves the print position n/120 (in draft mode) or
n/180 (in NLQ mode) of an inch from current position.
*To calculate n1 and n2 first determine the total increments of
1/120 (in draft mode) or n/180 (in NLQ mode) of an inch to move
the print position from its current position.
*If the head movement will be to the left subtract this number
from 65536.
*To move n/120 (draft) or n/180 (NLQ) of an inch to right: m=n
To move n/120 (draft) or n/180 (NLQ) of an inch to left: m=65536-n
n1=m MOD 256 n2=int(m/256)
*If the resulting movement would place the printhead outside
current margins, the command is ignored.
<CANCEL>
Clears all data in the line buffer.
Name: CAN
Dec.: 24
Hex.: 18
<REMOTE PRINTER SELECT>
Selects printer after it has been deselected by DC3.
Name: DC1 (Device Control 1)
Dec.: 17
Hex.: 11
Comment:
*All data sent to the printer between DC3 and DC1 is lost.
<REMOTE PRINTER DESELECT>
Deselects printer until it has been selected by DC1.
Name: DC3 (Device Control 3)
Dec.: 19
Hex.: 13
Comment:
*All data sent to the printer between DC3 and DC1 is lost.
<DELETE>
Deletes the last character stored in the line buffer.
Name: DEL
Dec.: 127
Hex.: 7F
Comments:
*Only text characters may be deleted. Bit image data, spacing
generated by consecutive TABs, and commands cannot be deleted.
*This command is ignored in the word processing mode
(ESC+a+1, ESC+a+2, or ESC+a+3).
<MSB ON>
Sets the Most Significant Bit to 1.
Name: ESC >
Dec.: 27 62
Hex.: 1B 3E
Comments:
*ESC+> has no effect on bit image data.
*This setting can be released by ESC+#.
<MSB OFF>
Sets the Most Significant Bit to 0.
Name: ESC =
Dec.: 27 61
Hex.: 1B 3D
Comments:
*ESC+= has no effect on bit image data.
*This setting can be released by ESC+#.
<CANCELS MSB SETTING>
Sets printer to receive 8th bit as is.
Name: ESC #
Dec.: 27 35
Hex.: 1B 23
Comment:
*This setting has no effect on bit image data.
<UNDEFINED CODE PRINTING>
Designates undefined codes in locations 0 to 31 DEC,128 to 159 DEC
as printing codes for international characters.
Set:
Name: ESC I 1
Dec.: 27 73 1
Hex.: 1B 49 01
Release:
Name: ESC I 0
Dec.: 27 73 0
Hex.: 1B 49 00
<DRAFT FONT DOWNLOADING>
Defines download characters into specified address location in RAM.
Name: ESC & 0 Cs Ce At P1 P2 ... P11
Dec.: 27 38 0 Cs Ce At P1 P2 ... P11
Hex.: 1B 26 00 Cs Ce At P1 P2 ... P11
Example:
100 REM DEFINITION OF DOWNLOAD CHARACTERS IN DRAFT MODE
110 WIDTH "LPT1:",255
120 OPEN "LPT1:" AS #1
130 PRINT #1,CHR$(27)+"&"+CHR$(0)+CHR$(65)+CHR$(66);
140 REM STORE IN PLACE OF "A" - ASCII CODE 65
150 PRINT #1,CHR$(170);
160 RESTORE 340
170 FOR I=1 TO 11
180 READ A :PRINT #1,CHR$(A);
190 NEXT I
200 REM STORE IN PLACE OF "B" - ASCII CODE 66
210 PRINT #1,CHR$(42);
220 RESTORE 340
230 FOR I=1 TO 11
240 READ A :PRINT #1,CHR$(A);
250 NEXT I
260 REM SELECT DOWNLOAD CHARACTER
270 PRINT #1,CHR$(27)+"%"+CHR$(1);
280 PRINT #1,"ABABABABABAB"+CHR$(10)+CHR$(10);
290 REM DOUBLE HEIGHT DOUBLE WIDE PRINT
300 PRINT #1,CHR$(27)+"W"+CHR$(1)+CHR$(27)+"w"+CHR$(1);
310 PRINT #1,"ABABABABABAB"+CHR$(10);
320 CLOSE
330 END
340 DATA 0,0,3,3,7,6,254,0,64,48,0
Explanation:
To download a character into RAM, you must first design the
character. You must quantity each dot column, P1-P11, by
summing the powers of two represented by each dot, Consider
the design of the musical note.
2^7 . . . . . . O . . . .
2^6 . . . . . . O . O . .
2^5 . . . . . . O . . O .
2^4 . . . . . . O . . O .
2^3 . . . . . . O . . . .
2^2 . . . . O X O . . . .
2^1 . . O X O X O . . . .
2^1 . . O X O . . . . . .
: : : : : : : : : : :
P1=0 ..........: : : : : : : : : : :
: : : : : : : : : :
P2=0 ............: : : : : : : : : :
: : : : : : : : :
P3=3 ..............: : : : : : : : :
: : : : : : : :
P4=3 ................: : : : : : : :
: : : : : : :
P5=7 ..................: : : : : : :
: : : : : :
P6=6 ....................: : : : : :
: : : : :
P7=254 ......................: : : : :
: : : :
P8=0 ........................: : : :
: : :
P9=64 ..........................: : :
: :
P10=48 ............................: :
:
P11=0 ..............................:
In our sample program lines 130-170, use the eleven values
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
of the print head. Program lines 190-230 define the same
shape and size, but for the lower 8-pins of the printhead.
Next you must determine where in RAM the character(s) should
be stored. The variable "Cs" and "Ce" are used for this purpose.
The value specified for "Cs" indicates the ASCII location into
which the starting downloaded character will be stored. The
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.
In our sample program, we created two musical note characters,
one using the upper 8 pins of the printhead, and the other using
the lower 8 pins. These two distinct characters were stored in
the ASCII locations where characters "A" and "B" are normally
stored (see program line 110). Since "A" resides in the ASCII
location 65 DEC and "B" resides in ASCII location 66 DEC, the
following program lines are equivalent.
110 LPRINT CHR$(27)+"&"+CHR$(0)+"AB";
or
110 LPRINT CHR$(27)+"&"+CHR$(0)+CHR$(65)+CHR$(66);
Notice that Cs=65, Ce=66. Also note that CHR$(65)="A" and CHR$(66)="B".
We must next define the value of "At", which specifies the attribute
information.
The illustration below shows the role of each bit in the specification
of the attribute information. Attribute information is stored in
one byte
Bit No. Function
----------------------------------------------------------------
MSB 7 Bit=1: use upper 8 pins
Bit=0: use lower 8 pins
----------------------------------------------------------------
6 Derives print start (Ps) position
5 for proportional spacing,
4 0=<Ps=<7
----------------------------------------------------------------
3 Derived print end (Pe) position
2 for proportional spacing,
1 0=<Pe=<11
LSB 0 Ps<Pe
----------------------------------------------------------------
Suppose we wish to create the character (musical note) in
proportional spacing mode.
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.
When printing characters from print column P3 to P11 in proportional
spacing mode, Ps=2=(010)BIN and Pe =10=(1010)BIN. Thus, the attribute
byte is as following:
Bit No. Function
----------------------------------------------------------------
MSB 7 Use lower 8 pins
----------------------------------------------------------------
6 Start of printing in
5 column 3 (3-1)
4
----------------------------------------------------------------
3 End of printing in
2 column 11 (11-1)
1
LSB 0
----------------------------------------------------------------
We the set "At"=2^1+2^3+2^5=2+8+32=42.
Comments:
*When you select an NLQ font (Courier, Roman, Sans Serif, Bold PS)
through setup disk or Front Panel, the printer will print draft
download characters in NLQ mode.
*The downloadable draft font actually consists of 12 columns of dots,
but P12 is always set to zero.
*Downloaded draft characters require 12 bytes per character: 1 byte
for attribute information and 11 bytes for the character design.
*Avoid continuous printing of download characters with high dot
densities. 1 line has 8 pin x 11 columns x 136 character dot (11968
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 adjacent
columns, otherwise, the pin in the second column of the pair will not
be fired. In double height print mode, the musical note will print
like the figure below. Pins will be fired in all the specified dot
positions (O and X) and printer add dots(*). If you select draft mode
specified dots (X) are not printed. However, you have to specify
these dots (O) in order to print the character in double height mode
or when NLQ is set from setup disk or Front Panel.
2^7 . . . . . . O . . . .
* *
2^6 . . . . . . O . O . .
* *
2^5 . . . . . . O . . O .
* *
2^4 . . . . . . O . . O .
*
2^3 . . . . . . O . . . .
*
2^2 . . . . O X O . . . .
* * *
2^1 . . O X O X O . . . .
* * *
2^1 . . O X O . . . . . .
: : : : : : : : : : :
P1 ..........: : : : : : : : : : :
: : : : : : : : : :
P2 ............: : : : : : : : : :
: : : : : : : : :
P3 ..............: : : : : : : : :
: : : : : : : :
P4 ................: : : : : : : :
: : : : : : :
P5 ..................: : : : : : :
: : : : : :
P6 ....................: : : : : :
: : : : :
P7 ......................: : : : :
: : : :
P8 ........................: : : :
: : :
P9 ..........................: : :
: :
P10 ............................: :
:
P11 ..............................:
<NLQ FONT DOWNLOADING>
Defines download NLQ font.
Name: ESC & 2 Cs Ce At P1h P1l ... P23l
Dec.: 27 38 2 Cs Ce At P1h P1l ... P23l
Hex.: 1B 26 02 Cs Ce At P1h P1l ... P23l
Example:
100 REM DEFINITION OF DOWNLOAD CHARACTERS IN NLQ MODE
110 WIDTH "LPT1:",255
120 OPEN "LPT1:" AS #1
130 PRINT #1,CHR$(27)+"&"+CHR$(2)+CHR$(65)+CHR$(65);
140 REM STORE IN PLACE OF "A" - ASCII CODE 65
150 PRINT #1,CHR$(11);
160 RESTORE 290
170 FOR I=1 TO 23*2
180 READ A : PRINT #1,CHR$(A);
190 NEXT I
200 REM SELECT DOWNLOAD CHARACTER
210 PRINT #1,CHR$(27)+"%"+CHR$(1);
220 PRINT #1,CHR$(27)+"x"+CHR$(1);
230 PRINT #1,"AAAAAAAAAA"+CHR$(10)+CHR$(10);
240 REM DOUBLE HEIGHT DOUBLE WIDE PRINT
250 PRINT #1,CHR$(27)+"W"+CHR$(1)+CHR$(27)+"w"+CHR$(1);
260 PRINT #1,"AAAAAAAAAA"+CHR$(10);
270 CLOSE
280 END
290 DATA 0,12,0,18,0,2,0,2,15,1,16,129,32,129,64,129
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
Explanation:
An NLQ font downloaded character uses 23 columns and 16 rows of dots.
Since a given column contains 16 dots, each column is divided into
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 the
upper 8 dots and P23l for the lower 8 dots. Column 24 is always set to
zero; thus, we are working with P1h-P23h and P1l-P23l. Additionally,
since each column contains 16 dots which overlap, the printing of an
entire character is accomplished with two passes of the printhead.
------ . . . . . . . . . O X O X O . . . . . . . . .
. . . . . . . O . . . . . . O . . . . . . . .
. . . . . . O . . . . . . . . O . O . . . . .
Upper 8 . . . . . O . . . . . . . . . . O . . . . . .
. . . . O . . . . . . . . . . . O . . . . . .
. . . . O . . . . . . . . . . . O . . . . . .
. . . . O . . . . . . . . . . . O . . . . . .
. . . . O . . . . . . . . . O . O . . . . . .
------ . . . . . O X O X O X O X O X O . . . . . . .
. . . . . . . . . . . . . . . O . . . . . . .
. . . . . . . . . . . . . . . O . . . . . . .
Lower 8 . O . . . . . . . . . . . . . O . . . . . . .
O . . . . . . . . . . . . . . . O . . . . . .
O . . . . . . . . . . . . . . . O . . . . . .
. O X O . . . . . . . . . O X O . . . . . . .
. . . . O X O X O X O X O . . . . . . . . . .
------
Upper 8 Lower 8
: : : : : : : : : : : : : : : : : : : : : : :
P1h=0 P1l=12 ........: : : : : : : : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : : : : : : : :
P2h=0 P2l=18 ..........: : : : : : : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : : : : : : :
P3h=0 P3l=2 ............: : : : : : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : : : : : :
P4h=0 P4l=2 ..............: : : : : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : : : : :
P5h=15 P5l=1 ................: : : : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : : : :
P6h=16 P6l=129 ..................: : : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : : :
P7h=32 P7l=129 ....................: : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : :
P8h=64 P8l=129 ......................: : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : :
P9h=0 P9l=129 ........................: : : : : : : : : : : : : : :
: : : : : : : : : : : : : :
P10h=128 P10l=129 ..........................: : : : : : : : : : : : : :
: : : : : : : : : : : : :
P11h=128 P11l=129 ............................: : : : : : : : : : : : :
: : : : : : : : : : : :
P12h=128 P12l=129 ..............................: : : : : : : : : : : :
: : : : : : : : : : :
P13h=128 P13l=129 ................................: : : : : : : : : : :
: : : : : : : : : :
P14h=128 P14l=130 ..................................: : : : : : : : : :
: : : : : : : : :
P15h=65 P15l=130 ....................................: : : : : : : : :
: : : : : : : :
P16h=32 P16l=242 ......................................: : : : : : : :
: : : : : : :
P17h=31 P17l=12 ........................................: : : : : : :
: : : : : :
P18h=32 P18l=0 ..........................................: : : : : :
: : : : :
P19h=0 P19l=0 ............................................: : : : :
: : : :
P20h=0 P20l=0 ..............................................: : : :
: : :
P21h=0 P21l=0 ................................................: : :
: :
P22h=0 P22l=0 ..................................................: :
:
P23h=0 P23l=0 ....................................................:
Program line 130-170, use the values P1h-P23h and P1l-P23l to
define the shape and size of the character using the lower 8 pins
of the printhead.
Downloading NLQ font characters require 1 byte of attribute information
which is input as the value of "At". Same as attribute information of
draft font.
The values Ps and Pe of NLQ attribute information are derived from n
and m (starting and ending print positions respectively) using the
equation Ps=(n-1)/2 and Pe=(m-1)/2. To ensure that Ps and Pe are
integers, the character must be designed so that n and m are odd.
In this example, the "g" starts in column 1 and ends in column 23,
and Ps=0=(000)BIN and Pe=11=(1011)BIN. Thus, the attribute byte is
as following:
Bit No. Binary Form Function
----------------------------------------------------------------
MSB 7 0 Use lower 8 pins
----------------------------------------------------------------
6 0 Start of printing in
5 0 column 1 (1-1)/2
4 0
----------------------------------------------------------------
3 1 End of printing in
2 0 column 23 (23-1)/2
1 1
LSB 0 1
----------------------------------------------------------------
We the set "At"=2^3+2^1+2^0=8+2+1=11.
Refer to program line 130
Comments:
*This command is operational only when the 32K buffer option
(KX-P43) is installed.
*Downloaded NLQ font characters require 47 bytes per character: 1 byte
for attribute information and 46 bytes for the character design.
<SELECTS ROM CG OR DOWNLOADED CG>
Name: ESC % n
Dec.: 27 37 n
Hex.: 1B 25 n
Comment:
*The following values of n can be used.
n=0: Select ROM Character Generator (CG)
n=1: Select download CG
<ROM CHARACTER GENERATION SET COPY>
Copies both draft and NLQ internal ROM CG font into the
downloadable font area.
Name: ESC : 0 n 0 (n = 0 through 6)
Dec.: 27 58 0 n 0
Hex.: 1B 3A 00 n 00
Example:
100 REM CHARACTER GENERATOR SELECTION
110 WIDTH "LPT1:",255
120 OPEN "LPT1:" AS #1
130 REM ROM CG SET COPY TO DOWNLOAD BUFFER
140 PRINT #1,CHR$(27)+":"+CHR$(0)+CHR$(2)+CHR$(0);
150 REM DOWNLOAD TO TO "!" IN DRAFT FONT
160 PRINT #1,CHR$(27)+"&"+CHR$(0)+"!!";
170 PRINT #1,CHR$(11);
180 RESTORE 420
190 FOR I=1 TO 11
200 READ A : PRINT #1,CHR$(A);
210 NEXT I
220 REM DOWNLOAD TO "!" IN NLQ FONT
230 PRINT #1, CHR$(27)+"&"+CHR$(2)+"!!";
240 PRINT #1,CHR$(11);
250 RESTORE 430
260 FOR I=1 TO 46
270 READ A : PRINT #1,CHR$(A);
280 NEXT I
290 REM SELECT DOWNLOAD CG
300 PRINT #1,CHR$(27)+"%"+CHR$(1);
310 PRINT #!,"SELECT DRAFT FONT DOWNLOAD CG !!!"+CHR$(10);
320 PRINT #1,CHR$(27)+"x"+CHR$(1);
330 PRINT #!,"SELECT NLQ FONT DOWNLOAD CG !!!"+CHR$(10);
340 PRINT #1,CHR$(27)+"x"+CHR$(0);
350 REM SELECT ROM CG
360 PRINT #1,CHR$(27)+"%"+CHR$(0);
370 PRINT #!,"SELECT DRAFT FONT ROM CG !!!"+CHR$(10);
380 PRINT #1,CHR$(27)+"x"+CHR$(1);
390 PRINT #!,"SELECT NLQ FONT ROM CG !!!"+CHR$(10);
400 CLOSE
410 END
420 DATA 0,0,3,3,7,6,254,0,64,48,0
430 DATA 0,12,0,18,0,2,0,2,15,1,16,129,32,129,64,129
440 DATA 0,129,128,129,128,129,128,129,128,129,128,130
450 DATA 65,130,32,242,31,12,32,0,0,0,0,0,0,0,0,0,0,0
Comments:
*The value of n specifies the NLQ font to download.
Refer to Font Style command ESC+"k"+n.
*Upon receipt of the command, all previous downloaded fonts
are cleared.
*When altering only part of the ROM CG, use this command
before font downloading.
<RESET PRINTER>
Initializes printer, causing data in the line buffer,
but not in the receive buffer, to be cleared.
Name: ESC @
Dec.: 27 64
Hex.: 1B 40
<PAPER OUT DETECTION>
Enables paper out detector.
Set:
Name: ESC 9
Dec.: 27 57
Hex.: 1B 39
Release:
Name: ESC 8
Dec.: 27 56
Hex.: 1B 38
Comment:
*Disabling of the paper out detector causes printing to
continue after paper end.
<SELECTS CSF>
Selects Cut Sheet Feeder (CSF) mode ON/OFF.
Name: ESC EM n
Dec.: 27 25 n
Hex.: 1B 19 n
Comment:
*The following values of n can be used.
n=R: Eject a sheet
n=0: Cut Sheet Feeder mode is OFF
n=4: Cut Sheet Feeder mode is ON
Note:
*If the Cut Sheet Feeder mode is set to ON without
installing the CSF, the paper will not feed correctly.
< Epson Mode Italic Characters (USA) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 12 12 12 12 5 11 12 12 11 12 12 12 12 12
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
3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10
4 4 - - 11 12 12 12 12 10 11 11 12 12 12 12 12 12
5 5 - - 12 12 12 12 11 11 11 11 12 12 12 12 12 12
6 6 - - 12 11 12 11 12 10 11 11 11 12 12 12 12 12
7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12
8 8 - - 8 12 12 12 11 12 12 11 11 12 12 12 12 8
9 9 - - 8 11 10 12 9 11 11 12 12 12 12 12 12 6
10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6
11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12
12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 12 8
13 D - - 12 11 12 11 11 10 8 12 10 12 12 12 11 8
14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8
15 F - - 10 11 12 12 11 - 12 12 12 12 12 12 12 12
Unit:1/120 inch (0.21 mm)
< Epson Mode Italic Characters (Multilingual) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 12 12 12 12 5 11 12 12 11 12 12 11 11 12
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 11
3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 11 12
4 4 - - 11 12 12 12 12 10 11 11 12 12 12 12 11 12
5 5 - - 12 12 12 12 11 11 11 11 12 12 12 9 12 12
6 6 - - 12 11 12 11 12 10 11 11 11 12 12 10 12 12
7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 9
8 8 - - 8 12 12 12 11 12 12 11 11 12 12 10 12 8
9 9 - - 8 11 10 12 9 11 11 12 12 12 12 12 12 10
10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6
11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 12 8
12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 10 7
13 D - - 12 11 12 11 11 10 8 12 10 11 12 9 11 8
14 E - - 7 9 12 10 10 12 12 12 12 12 12 10 11 8
15 F - - 10 11 12 12 11 - 12 12 12 12 12 12 5 12
Unit:1/120 inch (0.21 mm)
< Epson Mode Italic Characters (Portugal) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 12 12 12 12 5 11 12 12 11 12 12 12 12 12
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
3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10
4 4 - - 11 12 12 12 12 10 12 11 12 12 12 12 12 12
5 5 - - 12 12 12 12 11 11 11 11 12 12 12 12 12 12
6 6 - - 12 11 12 11 12 10 12 12 11 12 12 12 12 12
7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12
8 8 - - 8 12 12 12 11 12 12 10 11 12 12 12 12 8
9 9 - - 8 11 10 12 9 11 12 12 11 12 12 12 12 6
10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6
11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12
12 C - - 8 10 10 7 9 9 12 12 12 12 12 12 12 8
13 D - - 12 11 12 11 11 10 8 12 10 12 12 12 11 8
14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8
15 F - - 10 11 12 12 11 - 12 11 12 12 12 12 12 12
Unit:1/120 inch (0.21 mm)
< Epson Mode Italic Characters (Canada-French) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 12 12 12 12 5 11 12 12 9 12 12 12 12 12
1 1 - - 10 9 12 12 11 11 12 12 5 12 12 12 11 12
2 2 - - 10 12 12 12 11 10 11 12 12 12 12 12 12 10
3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10
4 4 - - 11 12 12 12 12 10 12 12 10 12 12 12 12 12
5 5 - - 12 12 12 12 11 11 11 10 9 12 12 12 12 12
6 6 - - 12 11 12 11 12 10 12 11 7 12 12 12 12 12
7 7 - - 5 12 12 12 11 12 11 11 11 12 12 12 12 12
8 8 - - 8 12 12 12 11 12 12 12 12 12 12 12 12 8
9 9 - - 8 11 10 12 9 11 11 12 12 12 12 12 12 6
10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6
11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12
12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 12 8
13 D - - 12 11 12 11 11 10 11 12 12 12 12 12 11 8
14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8
15 F - - 10 11 12 12 11 - 12 12 12 12 12 12 12 12
Unit:1/120 inch (0.21 mm)
< Epson Mode Italic Characters (Norway) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 12 12 12 12 5 11 12 12 11 12 12 12 12 12
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
3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10
4 4 - - 11 12 12 12 12 10 11 11 12 12 12 12 12 12
5 5 - - 12 12 12 12 11 11 11 11 12 12 12 12 12 12
6 6 - - 12 11 12 11 12 10 11 11 11 12 12 12 12 12
7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12
8 8 - - 8 12 12 12 11 12 12 11 11 12 12 12 12 8
9 9 - - 8 11 10 12 9 11 11 12 12 12 12 12 12 6
10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6
11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12
12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 12 8
13 D - - 12 11 12 11 11 10 8 12 10 12 12 12 11 8
14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8
15 F - - 10 11 12 12 11 - 12 12 12 12 12 12 12 12
Unit:1/120 inch (0.21 mm)
< Epson Mode Italic Characters (Turkey) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 12 12 12 12 5 11 12 12 11 12 12 12 12 12
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
3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10
4 4 - - 11 12 12 12 12 10 11 11 12 12 12 12 12 12
5 5 - - 12 12 12 12 11 11 11 11 12 12 12 12 12 12
6 6 - - 12 11 12 11 12 10 11 11 12 12 12 12 12 12
7 7 - - 5 12 12 12 11 12 11 11 11 12 12 12 12 12
8 8 - - 8 12 12 12 11 12 12 9 11 12 12 12 12 8
9 9 - - 8 11 10 12 9 11 11 12 12 12 12 12 12 6
10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6
11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12
12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 12 8
13 D - - 12 11 12 11 11 10 10 12 10 12 12 12 11 8
14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8
15 F - - 10 11 12 12 11 - 12 11 12 12 12 12 12 12
Unit:1/120 inch (0.21 mm)
< Epson Mode Normal Characters (USA) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 12 12 12 12 5 11 12 12 12 12 12 12 12 12
1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12
2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10
3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10
4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 12
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
7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12
8 8 - - 6 12 12 10 11 10 12 12 12 12 12 12 10 8
9 9 - - 6 12 8 12 8 12 12 12 12 12 12 12 12 6
10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6
11 B - - 12 6 12 8 10 9 8 11 12 12 12 12 12 12
12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 12 8
13 D - - 12 12 12 8 12 9 8 12 5 12 12 12 12 8
14 E - - 6 10 12 12 11 12 12 12 12 12 12 12 10 8
15 F - - 10 12 12 12 12 - 12 11 12 12 12 12 10 12
Unit:1/120 inch (0.21 mm)
< Epson Mode Normal Characters (Multilingual) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 12 12 12 12 5 11 12 12 12 12 12 10 10 12
1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12
2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 12 12
3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 10 12
4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 11
5 5 - - 12 12 12 12 12 12 12 10 12 12 12 8 12 10
6 6 - - 12 12 12 12 10 12 12 11 12 12 12 8 11 12
7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 11 7
8 8 - - 6 12 12 10 11 10 12 12 12 12 12 8 11 8
9 9 - - 6 12 8 12 8 12 12 12 12 12 12 12 11 8
10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 11 6
11 B - - 12 6 12 8 10 9 8 10 12 12 12 12 11 8
12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 10 7
13 D - - 12 12 12 8 12 9 8 11 5 11 12 5 11 8
14 E - - 6 10 12 12 11 12 12 12 12 12 12 8 11 8
15 F - - 10 12 12 12 12 - 12 11 12 12 12 12 5 12
Unit:1/120 inch (0.21 mm)
< Epson Mode Normal Characters (Portugal) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 12 12 12 12 5 11 12 12 12 12 12 12 12 12
1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12
2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10
3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10
4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 12
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
7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12
8 8 - - 6 12 12 10 11 10 12 8 12 12 12 12 10 8
9 9 - - 6 12 8 12 8 12 12 12 10 12 12 12 12 6
10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6
11 B - - 12 6 12 8 10 9 8 11 12 12 12 12 12 12
12 C - - 7 10 12 10 8 5 12 12 12 12 12 12 12 8
13 D - - 12 12 12 8 12 9 8 11 5 12 12 12 12 8
14 E - - 6 10 12 12 11 12 12 12 12 12 12 12 10 8
15 F - - 10 12 12 12 12 - 12 10 12 12 12 12 10 12
Unit:1/120 inch (0.21 mm)
< Epson Mode Normal Characters (Canada-French) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 12 12 12 12 5 11 12 12 5 12 12 12 12 12
1 1 - - 5 8 12 12 12 11 11 12 5 12 12 12 11 12
2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10
3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10
4 4 - - 12 12 12 12 11 11 12 12 8 12 12 12 10 12
5 5 - - 12 12 12 12 12 12 12 8 7 12 12 12 11 12
6 6 - - 12 12 12 12 10 12 11 11 7 12 12 12 11 12
7 7 - - 5 12 12 12 11 12 11 11 11 12 12 12 12 12
8 8 - - 6 12 12 10 11 10 12 12 12 12 12 12 10 8
9 9 - - 6 12 8 12 8 12 12 12 12 12 12 12 12 6
10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6
11 B - - 12 6 12 8 10 9 8 11 12 12 12 12 12 12
12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 12 8
13 D - - 12 12 12 8 12 9 12 11 12 12 12 12 12 8
14 E - - 6 10 12 12 11 12 12 11 12 12 12 12 10 8
15 F - - 10 12 12 12 12 - 10 11 12 12 12 12 10 12
Unit:1/120 inch (0.21 mm)
< Epson Mode Normal Characters (Norway) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 12 12 12 12 5 11 12 12 12 12 12 12 12 12
1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12
2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10
3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10
4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 12
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
7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12
8 8 - - 6 12 12 10 11 10 12 12 12 12 12 12 10 8
9 9 - - 6 12 8 12 8 12 12 12 12 12 12 12 12 6
10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6
11 B - - 12 6 12 8 10 9 8 10 12 12 12 12 12 12
12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 12 8
13 D - - 12 12 12 8 12 9 8 11 5 12 12 12 12 8
14 E - - 6 10 12 12 11 12 12 12 12 12 12 12 10 8
15 F - - 10 12 12 12 12 - 12 11 12 12 12 12 10 12
Unit:1/120 inch (0.21 mm)
< Epson Mode Normal Characters (Turkey) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 - - 12 12 12 12 5 11 12 12 12 12 12 12 12 12
1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12
2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10
3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10
4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 12
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
7 7 - - 5 12 12 12 11 12 11 11 11 12 12 12 12 12
8 8 - - 6 12 12 10 11 10 12 8 12 12 12 12 10 8
9 9 - - 6 12 8 12 8 12 12 12 12 12 12 12 12 6
10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6
11 B - - 12 6 12 8 10 9 8 11 12 12 12 12 12 12
12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 12 8
13 D - - 12 12 12 8 12 9 8 12 5 12 12 12 12 8
14 E - - 6 10 12 12 11 12 12 12 12 12 12 12 10 8
15 F - - 10 12 12 12 12 - 12 12 12 12 12 12 10 12
Unit:1/120 inch (0.21 mm)
;
; *******************************
; ***** IBM Mode Commands *****
; *******************************
<PRINT QUALITY>
Name: ESC I n
Dec.: 27 73 n
Hex.: 1B 49 n
Comments:
*The following values of n can be used.
n= 0: Internal Draft fonts
n= 1: Internal Draft 12 CPI Height Speed fonts
n= 2: Internal Sans Serif fonts (IBM NLQ)
n= 3: Internal NLQ fonts (IBM NLQ II)
n= 4: Download Draft fonts
n= 5: Download Draft 12 CPI Height Speed fonts
n= 6: Download Text fonts (IBM download NLQ)
n= 7: Download NLQ fonts (IBM download NLQ II)
n=11: NLQ II Italic fonts
n=15: Download NLQ Italic fonts
*When n=4 (Download Draft font), the second of two horizontal
adjacent columns will not be fired. When n=6 (Download Text
font), both columns will be fired.
*When you select n=3 (Internal NLQ font), initial setting is
Courier. You can change font with ESC+"k"+n command.
*Text Matrix is 18 x 9.
<TYPEFACE>
Selects NLQ Typeface.
Name: ESC k n
Dec.: 27 107 n
Hex.: 1B 6B n
Comments:
*The following values can be used.
n=0: Roman
n=1: Sans Serif
n=2: Courier
n=6: Bold PS
*Typeface must be reselected after any pitch change.
*IBM characters in locations from 0 to 31 DEC (except 19,
20, 21 DEC) from 00 to 1F HEX (except 13, 14, 15 HEX) and
from 250 to 255 DEC (from F0 to FF HEX) are printed in
Courier font, regardless of font selection.
*This command is effective only in near letter quality mode.
<SUB/SUPERSCRIPT FONT>
Selects sub/superscript font with characters printed
in the lower/upper 1/2 area of the line.
Set:
Name: ESC S n
Dec.: 27 83 n
Hex.: 1B 53 n
Release:
Name: ESC T
Dec.: 27 84
Hex.: 1B 54
Comments:
*The following values of n can be used:
n=0: Superscript
n=1: Subscript
*Sub/superscript font is 1/2 normal character height.
*Sub/superscript characters are normal width.
<ELITE PITCH>
Sets printing to 12 characters per inch.
Set:
Name: ESC :
Dec.: 27 58
Hex.: 1B 3A
Release:
Name: DC2
Dec.: 18
Hex.: 12
*Comment:
It "SI" and "ESC+:" are combined while 20 cpi is Enable,
printing will be performed in 20 cpi.
<COMPRESSED PITCH>
Sets printing to 17 characters per inch.
Set:
Name: SI or ESC SI
Dec.: 15 or 27 15
Hex.: 0F or 1B 0F
Release:
Name: DC2
Dec.: 18
Hex.: 12
*Comment:
It "SI" and "ESC+:" are combined while 20 cpi is Enable,
printing will be performed in 20 cpi.
<PROPORTIONAL SPACING>
Sets proportional spacing between characters.
Set:
Name: ESC P 1
Dec.: 27 80 1
Hex.: 1B 50 01
Release:
Name: ESC P 0
Dec.: 27 80 0
Hex.: 1B 50 00
<EMPHASIZED PRINTING>
Sets printing to twice the original horizontal dot density.
Set:
Name: ESC E
Dec.: 27 69
Hex.: 1B 45
Release:
Name: ESC F
Dec.: 27 70
Hex.: 1B 46
Comment:
*Emphasized characters are printed at half speed.
<DOUBLE STRIKE PRINTING>
Sets double strike character printing.
Set:
Name: ESC G
Dec.: 27 71
Hex.: 1B 47
Release:
Name: ESC H
Dec.: 27 72
Hex.: 1B 48
Comment:
*Double strike printing prints each line twice,
with the second line slightly below the first
to create a bold appearance.
<DOUBLE WIDE PRINTING SINGLE LINE>
Sets double wide expanded printing for one line only.
Set:
Name: SO or ESC SO
Dec.: 14 27 14
Hex.: 0E 1B 0E
Release:
Name: DC4 or ESC W 0
Dec.: 20 27 87 0
Hex.: 14 1B 57 00
Comment:
*Single line double wide printing is released when:
- a LF,FF or VT is executed.
- a CR is executed.
- DC4 or ESC+W+0 is executed.
<DOUBLE WIDE PRINTING>
Sets double wide expanded printing.
Set:
Name: ESC W 1
Dec.: 27 87 1
Hex.: 1B 57 01
Release:
Name: ESC W 0
Dec.: 27 87 0
Hex.: 1B 57 00
Comment:
*DC4 will not release the double wide printing set by ESC+W+1.
<DOUBLE HIGH AND DOUBLE WIDE PRINTING>
Sets printing to double high, double wide or both at the same time.
Name: ESC [ @ 4 0 0 0 m1 m2
Dec.: 27 91 64 4 0 0 0 m1 m2
Hex.: 1B 5B 40 04 00 00 00 m1 m2
Comments:
*The value of m1 selects both the line feed and character
height as follows:
Function
m1 Line feed Character height
----------------------------------------
0 Unchanged Unchanged
1 Unchanged Single-line
2 Unchanged Double-high
16 Single Unchanged
17 Single Single-high
18 Single Double-high
32 Double Unchanged
33 Double Single-high
34 Double Double-high
*The value of m4 selects the character width as follows:
m2=0: No change
m2=1: Single-width
m2=2: Double-width
<UNDERLINING>
Sets continuous underlining of characters.
Set:
Name: ESC - 1
Dec.: 27 45 1
Hex.: 1B 2D 01
Release:
Name: ESC - 0
Dec.: 27 45 0
Hex.: 1B 2D 00
Comment:
*Bit image data, spaces set by the HT code and IBM Graphic
characters will not be underlined.
<OVERLINING>
Sets continuous overlining of characters.
Set:
Name: ESC _ 1
Dec.: 27 95 1
Hex.: 1B 5F 01
Release:
Name: ESC _ 0
Dec.: 27 95 0
Hex.: 1B 5F 00
Comment:
*Bit image data, spaces set by the HT code, IBM graphic
characters will not be overlined.
<IBM CHARACTER SET 1>
Selects IBM Character Set 1.
Name: ESC 7
Dec.: 27 55
Hex.: 1B 37
Comment:
*Refer to character set tables in appendix of the operating
instruction manual.
<IBM CHARACTER SET 2>
Selects IBM Character Set 2.
Name: ESC 6
Dec.: 27 54
Hex.: 1B 36
Comment:
*Refer to character set tables in appendix of the operating
instruction manual.
<SETS CODE PAGE>
Changes the current code page.
Name: ESC [ T 4 0 0 0 n1 n2
Dec.: 27 91 84 4 0 0 0 n1 n2
Hex.: 1B 5B 54 04 00 00 00 n1 n2
Comments:
*The values of n1 and n2 select the code pages as follows:
n1=00H and n2=00H: Current
n1=01H and n2=B5H: USA
n1=03H and n2=52H: Multilingual
n1=03H and n2=5CH: Portugal
n1=03H and n2=5FH: Canada French
n1=03H and n2=61H: Norway
n1=03H and n2=59H: Turkey
Except the above: Downloaded font
*Refer to character set tables in appendix of the operating
instruction manual.
<BIT IMAGE>
* Bit Image (Graphics)
The bit image (Graphics) enables you to control the firing
of each pin of the printhead to create virtually any graphics
design you desire.
1. Dot Density
Dot density (dot resolution) refers to the maximum number of dots
that can be printed in an inch or on a line. This printer enables
you to access a variety of dot densities through specific control
commands. The various dot densities and corresponding control
commands appear as follows:
Command Function Dots/Inch Dots/Line
ESC+"K"+n1+n2 Standard density 60 480
ESC+"L"+n1+n2 Double density 120 960
ESC+"Y"+n1+n2 Double speed,Double density 120 960
ESC+"Z"+n1+n2 Quadruple density 240 1920
2. 8-Pin Bit Image Mode
Of the 9-pins in the printhead, the 8-pin bit image graphics
mode uses the upper eight pins only. Each pin corresponds to
a power of two. By summing the powers of two corresponding
to each of the pins you wish to fire, you will obtain a
numerical value which instructs the printer to print one column
of dots. Through such techniques in BASIC as looping, numerical
values for each column on a line are input and processed. The
result is one line of graphics.
8-Bit 7-Bit
Pin No. Pins Interface Interface
-------------------------------------------------
1 O 2^7=128 Not used
2 O 2^6=64 2^6=64
3 O 2^5=32 2^5=32
4 O 2^4=16 2^4=16
5 O 2^3=8 2^3=8
6 O 2^2=4 2^2=4
7 O 2^1=2 2^1=2
8 O 2^0=1 2^1=1
9 O Not used Not used
As an example, suppose you want to fire pin-blocks 1, 2, 5 and
8 simultaneously. Then you compute the following sum:
Input code = Pin 1 code + Pin 2 code + Pin 5 code + Pin 8 code
= 2^7 + 2^6 + 2^3 + 2^0
= 128 + 64 + 8 + 1
= 201
Thus, the value 201 is entered in the CHR$ function in order to
print a single column of dots resulting from firing pin-blocks
1, 2, 5, and 8.
For our final example, refer to the standard density designation
in Table above. This setting is given by ESC+"K"+n1+n2. Suppose
you wish to print 100 columns of dots, where every column fires
pin 1 and 8 only.
You first compute the values of n1 and n2.
This is done by finding values for n1 and n2, as follows:
Divide the total number of columns you select, by 256 (max # of
columns). The result is n1 and the remainder is n2.
n1 = 100 MOD 256 = 100
n2 = 100 / 256 = 0 so, n2=0 and n1=100
Our control code ESC+"K"+n1+n2 now translates into:
LPRINT CHR$(27)+"K"+CHR$(100)+CHR$(0);
Next compute the code for firing pins 1 and 8 simultaneously:
Input Code = Pin 1 code + Pin 8 code
= 2^7 + 2^0
= 128 + 1
= 129
Finally, we incorporate our two calculations into the following
program. Note that lines 20 and 30 are necessary for the proper
execution of this program on many IBM-compatible computers.
Such BASIC statements suppress CR and LF codes and enable
printing on a full line without unwanted "breaks". Programs
which include statements such as lines 20 and 30 cannot use
LPRINTs to print data. In such cases, PRINT # statements must
be used. Line 90 is necessary to CLOSE all open files.
A programming example is as follows:
10 REM STANDARD DENSITY
20 WIDTH "LPT1:",255
30 OPEN "LPT1:" AS #1
40 PRINT #1,CHR$(27)+"K"+CHR$(100)+CHR$(0);
50 FOR I=1 TO 100
60 PRINT #1, CHR$(129);
70 NEXT I
80 PRINT #1,CHR$(10);
90 CLOSE
100 END
<STANDARD DENSITY GRAPHICS>
Sets standard density graphic mode [60 dots per inch].
Name: ESC K n1 n2 Data
Dec.: 27 75 n1 n2 Data
Hex.: 1B 4B n1 n2 Data
Comment:
*Refer to "BIT IMAGE(GRAPHICS)".
<DOUBLE DENSITY GRAPHICS>
Sets double density graphic mode [120 dots per inch].
Name: ESC L n1 n2 Data
Dec.: 27 76 n1 n2 Data
Hex.: 1B 4C n1 n2 Data
Comment:
*Refer to "BIT IMAGE(GRAPHICS)".
<DOUBLE SPEED, DOUBLE DENSITY GRAPHICS>
Sets double speed, double density graphics mode [120 dots per inch].
Name: ESC Y n1 n2 Data
Dec.: 27 89 n1 n2 Data
Hex.: 1B 59 n1 n2 Data
Comments:
*Horizontal adjacent dots cannot be printed.
*Refer to "BIT IMAGE(GRAPHICS)".
<QUADRUPLE DENSITY GRAPHICS>
Sets quadruple density graphics mode [240 dots per inch].
Name: ESC Z n1 n2 Data
Dec.: 27 90 n1 n2 Data
Hex.: 1B 5A n1 n2 Data
Comments:
*Horizontal adjacent dots cannot be printed.
*Refer to "BIT IMAGE(GRAPHICS)".
<1/8 INCH PAPER FEED>
Sets paper feed amount to 1/8 inch (3.2 mm).
Name: ESC 0
Dec.: 27 48
Hex.: 1B 30
<7/72 INCH PAPER FEED>
Sets paper feed amount to 7/72 inch (2.47 mm).
Name: ESC 1
Dec.: 27 49
Hex.: 1B 31
<LINE SPACING>
Executes line spacing set by ESC+A+n.
Name: ESC 2
Dec.: 27 50
Hex.: 1B 32
Comment:
*Use ESC+A+n, n=12, to set 1/6 inch paper feed and use ESC+2
to activate the ESC+a+n setting. The defaults to 1/6.
<n/72 INCH PAPER FEED SELECTION>
Sets paper feed amount to n/72 inch.
Name: ESC A n (n = 0 to 85)DEC
Dec.: 27 65 n
Hex.: 1B 41 n
Comments:
*ESC+2 must be input after ESC+A+n for n/72 inch paper feed
to become effective.
*n=0 is ineffective.
<n/216 INCH PAPER FEED>
Sets paper feed amount to n/216 inch.
Name: ESC 3 n (n = 0 to 255)DEC
Dec.: 27 51 n
Hex.: 1B 33 n
Comments:
*The paper feed amount is not exactly n/216 inch.
*n=0 is ineffective.
<AUTOMATIC LINE FEED MODE>
Automatically executes a line feed following a carriage return.
Set:
Name: ESC 5 1
Dec.: 27 53 1
Hex.: 1B 35 01
Release:
Name: ESC 5 0
Dec.: 27 53 0
Hex.: 1B 35 00
<LINE FEED (LF)>
Feeds paper to next line position after printing data in the line buffer.
Name: LF
Dec.: 10
Hex.: 0A
Comments:
*The amount of spacing generated by LF is determined
by the paper feed commands.
*When the new line position falls within the skip perforation
area, the paper advances to the next top of form position.
*When Auto CR is set to ON through the initial setup disk,
a Carriage Return command (CR) is added to each Line Feed (LF).
<FORM FEED (FF)>
Feeds paper to next top of form position after printing data in the line buffer.
Name: FF
Dec.: 12
Hex.: 0C
Comment:
*The amount of spacing generated by FF is determined
by the page length commands.
<n/216 INCH SINGLE LINE FEED>
Feeds paper n/216 inch after printing data in the line buffer.
Name: ESC J n (n = 0 to 255)DEC
Dec.: 27 74 n
Hex.: 1B 4A n
Comments:
*When Auto CR is set to ON through the setup disk, a carriage
return command (CR) is added to each line feed.
*The paper feed amount is not exactly n/216 inch.
<PAGE LENGTH (INCHES)>
Sets page length in inches.
Name: ESC C 0 n (n = 1 to 255)DEC
Dec.: 27 67 0 n
Hex.: 1B 43 00 n
Comments:
*Upon receipt of ESC+C+0+n, the present line position
becomes the top of form position.
*ESC+C+0+n releases the skip perforation settings.
*The page length does not change even if the paper feed
amount is changed.
*The terms "form" and "page" are interchangeable.
<PAGE LENGTH (LINES)>
Sets page length in number of lines.
Name: ESC C n (n = 1 to 255)DEC
Dec.: 27 67 n
Hex.: 1B 43 n
Comments:
*Upon receipt of ESC+C+n, the present line position
becomes the top of form position.
*If n=0, page length returns to the inch designation.
*ESC+C+n releases the skip perforation settings.
*The page length does not change even if the paper feed
amount is changed.
*The terms "form" and "page" are interchangeable.
<MARGIN SET>
Sets positions of left and right margins.
Name: ESC X n1 n2
Dec.: 27 88 n1 n2
Hex.: 1B 58 n1 n2
Comments:
*The following values of n1 (left) and n2 (right) can be used:
Pica n1=1 to 79 n2=2 to 80
Elite n1=1 to 94 n2=3 to 96
Compressed n1=1 to 134 n2=4 to 137
*To keep current left or right margin, set n1=0 or n2=0.
*Any right margin designation to the left of the left margin
position is ignored.
*Setting the margin clears all data in the line buffer.
*Once the margin position is set, a change in the pitch will
not alter this margin setting.
<SKIP PERFORATION>
Sets skip perforation.
Set:
Name: ESC N n (n = 1 to 255)
Dec.: 27 78 n
Hex.: 1B 4E n
Release:
Name: ESC O
Dec.: 27 79
Hex.: 1B 4F
Comments:
*The value of n specifies the number of lines (or n times
the current line spacing amount) to be skipped at the bottom
of the page.
*The skip perforation amount does not change even if the paper
feed amount is changed following a skip perforation designation.
*The skip perforation is released upon receipt of the page
length designation command.
<TOP OF FORM>
Sets current paper position as the new top of form.
Name: ESC 4
Dec.: 27 52
Hex.: 1B 34
<HORIZONTAL TAB STOP SETTING>
Sets horizontal tabulations to specified values.
Set:
Name: ESC D n1 n2...nx 0
Dec.: 27 68 n1 n2...nx 0
Hex.: 1B 44 n1 n2...nx 00
Release:
Name: ESC D 0
Dec.: 27 68 0
Hex.: 1B 44 00
Comments:
*Horizontal tabs are set from the left margin position.
*Horizontal tabs must be designated such that n1<n2...<nx.
*A maximum of 32 tabs may be set on a single line.
*ESC+D+n1+n2+...+nx+0 sets horizontal tab stops.
*The HT command executes the tab designation.
*In proportional spacing, horizontal tabs are set based on 10 CPI.
*If the character pitch is altered after designation of
horizontal tabs, the tab positions change.
*When the left margin is changed, horizontal tabs will be
moved based on the new margin setting.
*When the printer is powered up, tabs are automatically set
every 8 characters.
<HORIZONTAL TAB EXECUTION>
Executes the horizontal TAB as designated by ESC+D+n1+n2+...nx+0.
Name: HT
Dec.: 9
Hex.: 09
Comments:
*If the value of the horizontal TAB is less than the
present column position, that HT is ignored.
*When in underline mode, the blank spaces between
consecutive HT print positions are not underlined.
<VERTICAL TAB STOP SETTING>
Sets vertical tabulation to specified values.
Set:
Name: ESC B n1 n2...nx 0
Dec.: 27 66 n1 n2...nx 0
Hex.: 1B 42 n1 n2...nx 00
Release:
Name: ESC B 0
Dec.: 27 66 0
Hex.: 1B 42 00
Comments:
*VT is set from the top of form position.
*Vertical tabs must be designed such that n1<n2...<nx.
*ESC+B+n1+n2+...nx+0 sets vertical tab stops. The VT command
executes the tab designation.
*If the paper feed amount is changed after a designation of
vertical tabs, the tab positions do not change.
*A maximum of 64 tabs may be set.
<VERTICAL TAB EXECUTION>
Executes the vertical TAB as designated by ESC+B+n1+n2+...+nx+0.
Name: VT
Dec.: 11
Hex.: 0B
Comments:
*When TABs are set with VT setting command and there is
no tab setting on a position exceeding the present line,
data in the line buffer is printed and the paper is fed
one line (same as LF).
*When vertical TAB has not been set by ESC+B+n1+n2+...+nx+0,
execution of VT causes data in the line buffer to be printed
and advances the paper one line (same function as LF).
<ALL TAB INITIAL CLEAR>
Sets all tabs to power on settings.
Name: ESC R
Dec.: 27 82
Hex.: 1B 52
Comment:
*This command sets horizontal tabs at every 8th position
and clears all vertical tabs.
<BACKSPACE>
Prints data in the line buffer and backspaces one space.
Name: BS
Dec.: 8
Hex.: 08
Comment:
*The backspacing amount will depend upon the pitch set when
the BS code is executed.
<CARRIAGE RETURN>
Prints all data in the line buffer and returns the printhead
to the left margin position.
Name: CR
Dec.: 13
Hex.: 0D
Comments:
*Certain computers issue an automatic line feed with
a carriage return. Check your computer manual for details.
*When Auto LF is set to ON through the setup disk, a Line
Feed command (LF) is added to each Carriage Return (CR)
double width printing set.
<UNI-DIRECTION>
Sets uni-directional printing mode.
Set:
Name: ESC U 1
Dec.: 27 85 1
Hex.: 1B 55 01
Release:
Name: ESC U 0
Dec.: 27 85 0
Hex.: 1B 55 00
<CANCEL>
Clears all data in the line buffer.
Name: CAN
Dec.: 24
Hex.: 18
<REMOTE PRINTER SELECT>
Selects printer after it has been deselected by ESC+"Q"+3.
Name: DC1 (Device Control 1)
Dec.: 17
Hex.: 11
Comment:
*All data sent to the printer between ESC+"Q"+3 and DC1 is lost.
<REMOTE DESELECT PRINTER>
Deselects printer until it has been selected by DC1.
Name: ESC Q 3
Dec.: 27 81 3
Hex.: 1B 51 03
Comment:
*All data sent to the printer between ESC+"Q"+3 and DC1 is lost.
<DRAFT AND TEXT FONT DOWNLOADING>
Defines draft and text download characters into specified address locations
in RAM.
Name: ESC = n1 n2 20 Cs At1 At2 P1 P2 ...P11
Dec.: 27 61 n1 n2 20 Cs At1 At2 P1 P2 ...P11
Hex.: 1B 3D n1 n2 14 Cs At1 At2 P1 P2 ...P11
Comments:
*n1,n2 indicate the number of bytes of character data to be loaded.
*Total count=(total charactersx13)+2 and n2=integer portion of total
count/256 and n1=remainder.
For example, to find n1 and n2 for 32 characters:
Total count=(32x13)+2=418
Divide the total number of columns you select, by 256 (max # of
columns). The result is n1 and the remainder is n2.
n1 = 418 MOD 256 = 162
n2 = 418 / 256 = 1 so, n2=1 and n1=162
Note:
*If n1=n2=0 all download characters are cleared.
*20 is a fixed number.
"Cs" indicates the first character potion for loading characters.
For example to load a character into the position occupied by the
ASCII character "A", Cs=65
At1 is attribute byte 1
Attribute byte 1 specifies:
Bit
---------------------------------------------------------------
7 0: Print using upper 8 pins
1: Print using lower 8 pins
---------------------------------------------------------------
6
5
4 Ignored
3
2
---------------------------------------------------------------
1 00: Normal character
0 01: Line drawing character. The printer
repeats the dots of row 8 in rows 9 to
12 as shown in Figure 1 on page 5-16.
10: Shading character. The dots in rows 1
to 4 are repeated in rows 9 to 12 as
shown in Figure 2 on page 5-16.
NLQ mode is ignored.
11: Not supported.
---------------------------------------------------------------
Note:
Bit 7 of attribute byte 1 is effective only if bits 0, 1 are 00.
. . . . . . . . . . . . . . . . . . . . . . ...
:
. . . . . . . . O O O . O O O . . . O O O . :
:...
. . . . . O O O . . . . O O O . . . O O O . : :
: :
. . . O O O . . . . . . . . . . . . . . . . ..: :
:
. . O . . . . . . . . . . . . . . . . . . . :R
:e
. . O . . . . . O O O . O O O . . . O O O . :p
:e
. O . . . . . O . . . . O O O . . . O O O . :a
:t
. O . . . . O . . . . ... . . . . . . . . . . . :
: :
. O . . . . O . . . . ..: . . . . . . . . . . . .. :
: : :
. O . . . . O . . . . ..:Repeat . O O O . . . O O O . :..:
: :
. O . . . . O . . . . ..: . O O O . . . O O O . :
: :
. O . . . . O . . . . ..: . . . . . . . . . . . .:
Figure 1 Figure 2
At2 is attribute byte 2
Attribute byte 2 specifies proportional spacing information about
the character:
Bit
---------------------------------------------------------------
7 Reserved
---------------------------------------------------------------
6 Specifies the number of column data bytes to
5 ignore (up to 7 leading columns can be
4 ignored).
---------------------------------------------------------------
3 Specifies the total number of dot columns to
2 be printed. Each character includes a blank
1 column which must be printed. This column is
0 not included by bits 3-0, e.g. For a character
10 columns wide (9 printable+1 blank) bits 3-0
would be 1001. Widths specified greater than
11 are truncated to 11.
--------------------------------------------------------------
Note:
To print all 11 columns, bits 6-0 may be set to 0.
Designing Draft and Text download characters
When designing characters to print in both Draft and Text you
should consider how the printer adds dots to create NLQ characters.
The figures that follow show how the printer treats various situations.
Open circle dots (O) shown must be specified by the font design.
Asterisks (*) represent dots that are automatically added by the
printer in NLQ mode. Note horizontally adjacent dots specified in
the font design do not print in draft mode.
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.
2^7 O . . . . . . . O . . 2^7 O . . . . . . . O . .
* * * * *
2^6 O . O . . . . . O . . 2^6 O . . . . . O . . . .
* * * * *
2^5 O . . O . . . . O . . 2^5 O . . . O . . . . . .
* * * * *
2^4 O . . . O . . . O . . 2^4 O O O . . . . . . . .
* * * * *
2^3 O . . . . O . . O . . 2^3 O . . . O . . . . . .
* * * * *
2^2 O . . . . . O . O . . 2^2 O . . . . . O . . . .
* * * * *
2^1 O . . . . . . . O . . 2^1 O . . . . . . . O . .
2^0 . . . . . . . . . . . 2^0 . . . . . . . . . . .
: : : : : : : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : : : : : : : :
P1.....: : : : : : : : : : : P1.....: : : : : : : : : : :
: : : : : : : : : : : : : : : : : : : :
P2.......: : : : : : : : : : P2.......: : : : : : : : : :
: : : : : : : : : : : : : : : : : :
P3.........: : : : : : : : : P3.........: : : : : : : : :
: : : : : : : : : : : : : : : :
P4...........: : : : : : : : P4...........: : : : : : : :
: : : : : : : : : : : : : :
P5.............: : : : : : : P5.............: : : : : : :
: : : : : : : : : : : :
P6...............: : : : : : P6...............: : : : : :
: : : : : : : : : :
P7.................: : : : : P7.................: : : : :
: : : : : : : :
P8...................: : : : P8...................: : : :
: : : : : :
P9.....................: : : P9.....................: : :
: : : :
P10......................: : P10......................: :
: :
P11........................: P11........................:
Figure 1 Figure 2
Figure 3 is an example of the intersection of vertical and horizontal
lines.
2^7 O O O O O O O O O . .
*
2^6 O . . . . . . . . . .
*
2^5 O . . . . . . . . . .
*
2^4 O O O O O . . . . . .
*
2^3 O . . . . . . . . . .
*
2^2 O . . . . . . . . . .
*
2^1 O . . . . . . . . . .
2^0 . . . . . . . . . . .
: : : : : : : : : : :
: : : : : : : : : : :
P1.....: : : : : : : : : : :
: : : : : : : : : :
P2.......: : : : : : : : : :
: : : : : : : : :
P3.........: : : : : : : : :
: : : : : : : :
P4...........: : : : : : : :
: : : : : : :
P5.............: : : : : : :
: : : : : :
P6...............: : : : : :
: : : : :
P7.................: : : : :
: : : :
P8...................: : : :
: : :
P9.....................: : :
: :
P10......................: :
:
P11........................:
Figure 3
The intersection of diagonal and horizontal lines is printed out
as two vertical dots, as shown in Figure 4.
2^7 O O O O O O O O . . .
*
2^6 . . . . . . . O . . .
*
2^5 . . . . . . O . . . .
*
2^4 . . . . . O . . . . .
*
2^3 . . . . O . . . . . .
*
2^2 . . . O . . . . . . .
*
2^1 . . O . . . . . . . .
2^0 . . . . . . . . . . .
: : : : : : : : : : :
: : : : : : : : : : :
P1.....: : : : : : : : : : :
: : : : : : : : : :
P2.......: : : : : : : : : :
: : : : : : : : :
P3.........: : : : : : : : :
: : : : : : : :
P4...........: : : : : : : :
: : : : : : :
P5.............: : : : : : :
: : : : : :
P6...............: : : : : :
: : : : :
P7.................: : : : :
: : : :
P8...................: : : :
: : :
P9.....................: : :
: :
P10......................: :
:
P11........................:
Figure 4
When you add the dots , you can select the position
of added dots as shown in Figure 5.
2^7 . O . . . . . . . . .
*
2^6 . . O . . . . . . . .
*
2^5 . . . O . . . . . . .
2^4 . . . . . . . . O . .
*
2^3 . . . . . . O . . . .
*
2^2 . . . . O . . . . . .
*
2^1 . . O . . . . . . . .
2^0 . . . . . . . . . . .
: : : : : : : : : : :
: : : : : : : : : : :
P1.....: : : : : : : : : : :
: : : : : : : : : :
P2.......: : : : : : : : : :
: : : : : : : : :
P3.........: : : : : : : : :
: : : : : : : :
P4...........: : : : : : : :
: : : : : : :
P5.............: : : : : : :
: : : : : :
P6...............: : : : : :
: : : : :
P7.................: : : : :
: : : :
P8...................: : : :
: : :
P9.....................: : :
: :
P10......................: :
:
P11........................:
Figure 5
As an example we will provide a basic program that loads
and prints in draft mode, the greek gamma character is shown below:
2^7 . . O . . . . . O . .
P1 =0
2^6 . . . O . . O . . . . P2 =2^2+2^3=4+8=12
P3 =2^1+2^4+2^7=2+16+128=146
2^5 . . . . O . . . . . . P4 =2^0+2^6=1+64=65
P5 =2^1+2^5=2+32=34
2^4 . . O . . O . . . . . P6 =2^2+2^3+2^4=4+8+16=28
P7 =2^6=64
2^3 . O . . . O . . . . . P8 =0
P9 =2^7=128
2^2 . O . . . O . . . . . P10=0
P11=0
2^1 . . O . O . . . . . .
2^0 . . . O . . . . . . .
: : : : : : : : : : :
: : : : : : : : : : :
P1.....: : : : : : : : : : :
: : : : : : : : : :
P2.......: : : : : : : : : :
: : : : : : : : :
P3.........: : : : : : : : :
: : : : : : : :
P4...........: : : : : : : :
: : : : : : :
P5.............: : : : : : :
: : : : : :
P6...............: : : : : :
: : : : :
P7.................: : : : :
: : : :
P8...................: : : :
: : :
P9.....................: : :
: :
P10......................: :
:
P11........................:
Example:
100 REM DRAFT DOWNLOAD CHARACTER
110 WIDTH "LPT1:",255
120 OPEN "LPT1:" AS #1
130 PRINT #1,CHR$(27)+"="+CHR$(15)+CHR$(0)+CHR$(20)+"A";
140 PRINT #1,CHR$(0)+CHR$(11);
150 RESTORE 270
160 FOR I=1 TO 11
170 READ A : PRINT #1,CHR$(A);
180 NEXT I
190 REM PRINT DRAFT DOWNLOAD
200 PRINT #1,CHR$(27)+"I"+CHR$(4);
210 PRINT #1,"A A A A A"+CHR$(10)+CHR$(13);
220 REM PRINT TEXT DOWNLOAD
230 PRINT #1,CHR$(27)+"I"+CHR$(6);
240 PRINT #1,"A A A A A"+CHR$(10)+CHR$(13);
250 CLOSE
260 END
270 DATA 0,12,146,65,34,28,64,0,128,0,0
<NLQ FONT DOWNLOADING>
Defines near letter quality download characters into
specified address locations in RAM.
Name: ESC = n1 n2 21 Cs At1 At2 P1h P1l ...P23l
Dec.: 27 61 n1 n2 21 Cs At1 At2 P1h P1l ...P23l
Hex.: 1B 3D n1 n2 15 Cs At1 At2 P1h P1l ...P23l
Example:
100 REM NLQ DOWNLOAD CHARACTER
110 WIDTH "LPT1:",255
120 OPEN "LPT1:" AS #1
130 PRINT #1,CHR$(27)+"="+CHR$(50)+CHR$(0)+CHR$(21)+"A";
140 PRINT #1,CHR$(0)+CHR$(11);
150 RESTORE 240
160 FOR I=1 TO 23*2
170 READ A : PRINT #1,CHR$(A);
180 NEXT I
190 REM PRINT NLQ DOWNLOAD
200 PRINT #1,CHR$(27)+"I"+CHR$(7);
210 PRINT #1,"A A A A A"+CHR$(10)+CHR$(13);
220 CLOSE
230 END
240 DATA 2,2,1,4,1,0,1,0,48,49,8,65,72,1,8,129
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
Explanation:
An NLQ font download character uses 23 columns and 18 rows of dots.
Column 24 is always blank. Ph specifies the contents of odd rows, Pl
the even rows. Of the 18 rows of dots available for each character,
only 16 can be printed for normal characters.
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.
NLQ font downloading
1 . . . . . . . . . . . . . . . . . . . . . . .
2 . . . . . . . . . . . . . . . . . . . . . . .
3 . . . . . . . . . O X O X O . . . . . . . . .
4 . . . . . . . O . . . . . . O . . . . . . . .
5 . . . . . . O . . . . . . . . O . O . . . . .
6 . . . . . O . . . . . . . . . . O . . . . . .
7 . . . . O . . . . . . . . . . . O . . . . . .
8 . . . . O . . . . . . . . . . . O . . . . . .
9 . . . . O . . . . . . . . . . . O . . . . . .
10 . . . . O . . . . . . . . . O . O . . . . . .
11 . . . . . O X O X O X O X O X O . . . . . . .
12 . . . . . . . . . . . . . . . O . . . . . . .
13 . . . . . . . . . . . . . . . O . . . . . . .
14 . O . . . . . . . . . . . . . O . . . . . . .
15 O . . . . . . . . . . . . . . . O . . . . . .
16 O . . . . . . . . . . . . . . . O . . . . . .
17 . O X O . . . . . . . . . O X O . . . . . . .
18 . . . . O X O X O X O X O . . . . . . . . . .
: : : : : : : : : : : : : : : : : : : : : : :
P1h=2 P1l=2 ........: : : : : : : : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : : : : : : : :
P2h=1 P2l=4 ..........: : : : : : : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : : : : : : :
P3h=1 P3l=0 ............: : : : : : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : : : : : :
P4h=1 P4l=0 ..............: : : : : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : : : : :
P5h=48 P5l=49 ................: : : : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : : : :
P6h=8 P6l=65 ..................: : : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : : :
P7h=72 P7l=1 ....................: : : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : : :
P8h=8 P8l=129 ......................: : : : : : : : : : : : : : : :
: : : : : : : : : : : : : : :
P9h=8 P9l=1 ........................: : : : : : : : : : : : : : :
: : : : : : : : : : : : : :
P10h=136 P10l=1 ..........................: : : : : : : : : : : : : :
: : : : : : : : : : : : :
P11h=136 P11l=1 ............................: : : : : : : : : : : : :
: : : : : : : : : : : :
P12h=136 P12l=1 ..............................: : : : : : : : : : : :
: : : : : : : : : : :
P13h=136 P13l=1 ................................: : : : : : : : : : :
: : : : : : : : : :
P14h=137 P14l=0 ..................................: : : : : : : : : :
: : : : : : : : :
P15h=9 P15l=144 ....................................: : : : : : : : :
: : : : : : : :
P16h=77 P16l=12 ......................................: : : : : : : :
: : : : : : :
P17h=50 P17l=114 ........................................: : : : : : :
: : : : : :
P18h=64 P18l=0 ..........................................: : : : : :
: : : : :
P19h=0 P19l=0 ............................................: : : : :
: : : :
P20h=0 P20l=0 ..............................................: : : :
: : :
P21h=0 P21l=0 ................................................: : :
: :
P22h=0 P22l=0 ..................................................: :
:
P23h=0 P23l=0 ....................................................:
NLQ downloading characters require 48 bytes per character. There
are 2 bytes for the attribute information and 46 bytes for the
character design.
Attribute information 1
Bit No. Function
----------------------------------------------------------------
7 0: Normal character
1: Descending character
----------------------------------------------------------------
6
5
4 Ignored
3
2
----------------------------------------------------------------
1 00: Normal character print mode.
0 (no block graphic character)
01: Line-drawing character.
The printer repeats dots of row
15 in 17, 19, 21, and 23,row 16
in 18, 20, 22 and 24.
10: Shading character.
The printer repeats dots of rows
1, 3, 5 and 7 on 17, 19, 21 and 23,
rows 2, 4, 6 and 8 on 18, 20, 22
and 24.
11: Not supported.
----------------------------------------------------------------
Attribute information 2 is reserved. Always set attribute 2 to zero.
<ALL CHARACTER CHART PRINTING (Continuous)>
Prints continuously from the All Character Chart.
Name: ESC \ n1 n2
Dec.: 27 92 n1 n2
Hex.: 1B 5C n1 n2
Comments:
*The values specified for n1 and n2 indicate how many
characters to print from All Character Chart, calculating
the total count with this formula; Total count=n2x256+n1.
*The data following this command will be printed as characters
from the All Character Chart.
*Refer to IBM All Character Chart in appendix of the operating
instruction manual.
<ALL CHARACTER CHART PRINTING (Single)>
Prints a single character from the All Character Chart.
Name: ESC ^
Dec.: 27 94
Hex.: 1B 5E
Comments:
*Only the first byte of data following this command will
be printed as a character from the All Character Chart.
*Refer to IBM All Character Chart in appendix of the operating
instruction manual.
<PAPER OUT DETECTION>
Enables paper out detector.
Set:
Name: ESC 9
Dec.: 27 57
Hex.: 1B 39
Release:
Name: ESC 8
Dec.: 27 56
Hex.: 1B 38
Comment:
*Disabling of the paper out detector causes printing to
continue after paper end.
<INITIAL STATE>
Resets to initial state.
Name: ESC [ K n1 0 m 3 p1 p2
Dec.: 27 91 75 n1 0 m 3 p1 p2
Hex.: 1B 5B 4B n1 00 m 03 p1 p2
Comments:
*The following values of n1 can be used.
n1=1: Initialize only
n1=3: Initialize and set by p1
n1=4: Initialize and set by p1 and p2
*The following table illustrates the various modes based
upon the value of m.
m Initialization Download
---------------------------------------------------------
0 Current setting Not cleared Not saved
1 Current setting Cleared Not saved
4 FACTORY setting Not Cleared Not saved
5 FACTORY setting Cleared Not saved
254 Current setting Cleared Saved
255 FACTORY setting Cleared Saved
*The following tables illustrate the parameter specifications.
p1 (Parameter 1)
Bit OFF ON
----------------------------------------------------------
7 Discard byte Process this byte Ignore this byte
6 Not used
5 Not used
4 Auto CR OFF ON
3 Auto LF OFF ON
2 Form length 11" 12"
1 Zero slash Normal Slashed Zero
0 Character set Set 1 Set 2
p2 (Parameter 2):
Bit OFF ON
----------------------------------------------------------
7 Discard byte Process this byte Ignore this byte
6 Select code page USA Multilingual
5 Not used --- ---
4 20 cpi mode Enable Disable
3 Not used --- ---
2 FF at top of form Enable Disable
1 Not used --- ---
0 Cut sheet feeder Disable Enable
< IBM Mode Characters (USA) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 12 12 12
1 1 12 12 5 8 12 12 12 11 12 12 12 12 12 12 12 12
2 2 12 12 8 12 12 12 11 11 12 12 12 12 12 12 11 10
3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 12 12 10
4 4 10 12 12 12 12 12 11 10 12 11 12 12 12 12 12 12
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 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
13 D 12 12 12 12 12 8 12 9 8 12 12 12 12 12 12 8
14 E 12 12 6 10 12 12 12 12 12 12 12 12 12 12 10 8
15 F 12 12 10 10 12 12 11 12 12 12 12 12 12 12 12 12
Unit:1/120 inch (0.21 mm)
< IBM Mode Characters (Multilingual) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 10 10 12
1 1 12 12 5 8 12 12 12 11 12 12 12 12 12 11 12 12
2 2 12 12 8 12 12 12 11 11 12 12 12 12 12 11 12 11
3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 11 10 12
4 4 10 12 12 12 12 12 11 10 12 11 12 12 12 11 10 12
5 5 12 12 12 12 12 12 12 12 12 11 12 11 12 8 11 12
6 6 12 12 12 12 12 12 12 12 12 12 12 11 11 8 12 12
7 7 12 12 6 12 12 12 11 12 12 12 12 11 11 12 11 7
8 8 12 12 6 12 12 10 12 10 12 11 12 12 12 9 11 8
9 9 12 12 6 12 8 12 8 12 12 11 12 12 12 12 11 11
10 A 12 12 12 6 12 12 8 10 12 12 12 12 12 12 11 6
11 B 12 12 12 6 12 8 10 9 9 10 12 12 12 12 11 8
12 C 12 12 6 10 12 10 8 4 10 12 12 12 12 12 10 7
13 D 12 12 12 12 12 8 12 9 8 11 12 12 12 4 11 8
14 E 12 12 6 10 12 12 12 12 12 12 12 12 12 8 11 8
15 F 12 12 10 10 12 12 11 12 12 12 12 12 10 12 5 12
Unit:1/120 inch (0.21 mm)
< IBM Mode Characters (Portugal) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 12 12 12
1 1 12 12 5 8 12 12 12 11 12 11 12 12 12 12 12 12
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
4 4 10 12 12 12 12 12 11 10 11 10 12 12 12 12 12 12
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 11 11 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 8 12 12 12 12 12 8
9 9 12 12 6 12 8 12 8 12 11 11 10 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 8 12 12 12 12 12 12 12
12 C 12 12 6 10 12 10 8 4 12 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 11 12 12 12 12 12 10 8
15 F 12 12 10 10 12 12 11 12 11 10 12 12 12 12 12 12
Unit:1/120 inch (0.21 mm)
< IBM Mode Characters (Canada-French) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 12 12 12 12 12 12 6 11 12 12 4 12 12 12 12 12
1 1 12 12 5 8 12 12 12 11 12 11 5 12 12 12 12 12
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
4 4 10 12 12 12 12 12 11 10 11 11 11 12 12 12 12 12
5 5 12 12 12 12 12 12 12 12 12 9 7 12 12 12 12 12
6 6 12 12 12 12 12 12 12 12 12 12 7 12 12 12 12 12
7 7 12 12 6 12 12 12 11 12 12 12 11 12 12 12 11 11
8 8 12 12 6 12 12 10 12 10 12 10 12 12 12 12 12 8
9 9 12 12 6 12 8 12 8 12 12 12 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 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
13 D 12 12 12 12 12 8 12 9 11 11 12 12 12 12 12 8
14 E 12 12 6 10 12 12 12 12 11 11 12 12 12 12 10 8
15 F 12 12 10 10 12 12 11 12 12 12 12 12 12 12 12 12
Unit:1/120 inch (0.21 mm)
< IBM Mode Characters (Norway) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 12 12 12
1 1 12 12 5 8 12 12 12 11 12 12 12 12 12 12 12 12
2 2 12 12 8 12 12 12 11 11 12 12 12 12 12 12 11 10
3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 12 12 10
4 4 10 12 12 12 12 12 11 10 12 11 12 12 12 12 12 12
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
15 F 12 12 10 10 12 12 11 12 12 12 10 12 12 12 12 12
Unit:1/120 inch (0.21 mm)
< IBM Mode Characters (Turkey) >
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 12 12 12
1 1 12 12 5 8 12 12 12 11 12 12 12 12 12 12 12 12
2 2 12 12 8 12 12 12 11 11 12 12 12 12 12 12 11 10
3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 12 12 10
4 4 10 12 12 12 12 12 11 10 12 11 12 12 12 12 12 12
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 11 12 12 12 11 11
8 8 12 12 6 12 12 10 12 10 12 8 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 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
13 D 12 12 12 12 12 8 12 9 8 12 12 12 12 12 12 8
14 E 12 12 6 10 12 12 12 12 12 12 12 12 12 12 10 8
15 F 12 12 10 10 12 12 11 12 12 12 12 12 12 12 12 12
Unit:1/120 inch (0.21 mm)
Download Driver Pack
After your driver has been downloaded, follow these simple steps to install it.
Expand the archive file (if the download file is in zip or rar format).
If the expanded file has an .exe extension, double click it and follow the installation instructions.
Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.
Find the device and model you want to update in the device list.
Double-click on it to open the Properties dialog box.
From the Properties dialog box, select the Driver tab.
Click the Update Driver button, then follow the instructions.
Very important: You must reboot your system to ensure that any driver updates have taken effect.
For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.