Professional Documents
Culture Documents
Name: ESC M
<PRINT QUALITY>
Dec.: 27 77
Selects print quality.
Hex.: 1B 4D
Name: ESC x n
Comment:
Dec.: 27 120 n
*When elite and compressed are set simultaneously, output is
Hex.: 1B 78 n
20 CPI (up to 160 CPL).
Comment:
<MICRON PITCH>
*The following values of n can be used:
Sets printing to 15 characters per inch (up to 120 characters per
n=0:Draft font
line).
n=1:NLQ font
Name: ESC g
<FONT STYLE>
Dec.: 27 103
Selects NLQ font style.
Hex.: 1B 67
Name: ESC k n
Comment:
Dec.: 27 107 n
*When micron and compressed are set simultaneously, output is
Hex.: 1B 6B n
15 CPI (up to 120 CPL).
Comments:
<COMPRESSED PITCH>
*The following values of n can be used:
Sets printing to 17 characters per inch (up to 137 characters per
n=0: Roman
line).
n=1: Sans Serif
n=2: Courier
Set:
n=6: Bold PS
Name: SI or ESC SI
*This command is effective only in near letter quality mode
Dec.: 15 or 27 15
(ESC+x+1).
Hex.: 0F or 1B 0F
<SUB/SUPERSCRIPT FONT>
Release:
Selects sub/superscript font with characters printed in the
Name: DC2
lower/upper area of the line.
Dec.: 18
Hex.: 12
Set:
Name: ESC S n
Comments:
Dec.: 27 83 n
*When pica and compressed are set simultaneously, output is
Hex.: 1B 53 n
17 CPI (up to 137 characters per line).
*When elite and compressed are set simultaneously, output is
Release:
20 CPI (up to 160 CPL).
Name: ESC T
*When micron and compressed are set simultaneously, output is
Dec.: 27 84
15 CPI (up to 120 CPL).
Hex.: 1B 54
*If proportional spacing is set together with compressed
printing, compressed printing is ineffective. <DOUBLE HIGH PRINTING>
Sets double high printing.
<PROPORTIONAL SPACING>
Sets proportional spacing between characters. Set:
Name: ESC w 1
Set: Dec.: 27 119 1
Name: ESC p 1 Hex.: 1B 77 01
Dec.: 27 112 1
Hex.: 1B 70 01 Release:
Name: ESC w 0
Release: Dec.: 27 119 0
Name: ESC p 0 Hex.: 1B 77 00
Dec.: 27 112 0
Hex.: 1B 70 00 Comments:
*Sub/superscript and compressed modes are not valid with double
Comments: height
*Proportional spacing overrides pica, elite, and micron printing(10 and 12 cpi only)
pitch setting. *ESC+"!"+n can also be used to release double height printing(see
*If proportional spacing is set together with compressed Programmable Pitch for valid "n" values).
printing, compressed printing is ineffective.
*This command is effective only in near letter quality mode <DOUBLE WIDE PRINTING (SINGLE LINE)>
(ESC+x+1). Sets double wide (expanded) printing for one line only.
Release: Comments:
Name: ESC H *Italic characters are printed in place of characters
Dec.: 27 72 in character set locations 32DEC to 126DEC (20 HEX to 7E HEX).
Hex.: 1B 48 *This command is effective regardless of character set
selected by ESC+t+n.
Comment:
*Double strike printing prints each line twice, with the second <INTERNATIONAL CHARACTER SET>
line slightly below the first to create a bold appearance. Selects international character set.
2. 8-Pin Bit Image Mode Finally, we incorporate our two calculations into the following
program. Note that lines 20 and 30 are necessary for the proper
Of the 9-pins in the printhead, the 8-pin bit image graphics execution of this program on many IBM-compatible computers.
mode uses the upper eight pins only. Each pin corresponds to Such BASIC statements suppress CR and LF codes and enable
a power of two. By summing the powers of two corresponding printing on a full line without unwanted "breaks". Programs
to each of the pins you wish to fire, you will obtain a which include statements such as lines 20 and 30 cannot use
LPRINTs to print data. In such cases, PRINT # statements must Suppose you wish to print 100 columns of dots, where every
be used. Line 90 is necessary to CLOSE all open files. column
fires pins 1,2,5,8, and 9 as above.
A programming example is as follows:
As in the 8-pin example , n1=100 and n2=0. Our control code
10 REM STANDARD DENSITY ESC+^+m+n1+n2 now translate into:
20 WIDTH "LPT1:",255
30 OPEN "LPT1:" AS #1 LPRINT CHR$(27)+"^"+CHR$(0)+CHR$(100)+CHR$(0);
40 PRINT #1,CHR$(27)+"K"+CHR$(100)+CHR$(0);
50 FOR I=1 TO 100 If we incorporate this information into a program, we might
60 PRINT #1, CHR$(129); have the following:
70 NEXT I
80 PRINT #1,CHR$(10); 10 REM 9-PIN STANDARD DENSITY
90 CLOSE 20 WIDTH "LPT1:",255
100 END 30 OPEN "LPT1:" AS #1
40 PRINT #1,CHR$(27)+"^"+CHR$(0)+CHR$(100)+CHR$(0);
3. 9-Pin Bit Image Mode 50 FOR I=1 TO 100
60 PRINT #1, CHR$(201)+CHR$(128);
In the 9-pin bit image mode, all 9 pins of the printhead may 70 NEXT I
be fired. The 9 pins in the printhead are divided into two 80 PRINT #1,CHR$(10);
portions, the upper 8 pins and the bottom pin. 90 CLOSE
100 END
As in the 8-pin mode, the upper 8 pins correspond to powers
of two, ranging from 2^0 to 2^7. The firing of one or more of <STANDARD DENSITY GRAPHICS>
these 8 pins represents 1 bytes of data. When fired, it is Sets standard density graphics mode [60 dots per inch
represented by the value 0. Together, these two bytes determine (25.4 mm)].
the dot configuration for a single column of graphics.
Name: ESC K n1 n2 Data
Dec.: 27 75 n1 n2 Data
Pin No. Pins Interface Byte Hex.: 1B 4B n1 n2 Data
1 O 2^7=128 Comment:
2 O 2^6=64 *Refer to "BIT IMAGE(GRAPHICS)".
3 O 2^5=32
4 O 2^4=16 1 <DOUBLE DENSITY GRAPHICS>
5 O 2^3=8 Sets double density graphics mode [120 dots per inch
6 O 2^2=4 (25.4 mm)].
7 O 2^1=2
8 O 2^0=1 Name: ESC L n1 n2 Data
-------------------------------------------------------------------------- Dec.: 27 76 n1 n2 Data
9 O 2^7=128 Hex.: 1B 4C n1 n2 Data
Byte 1: Input code = Pin 1 code + Pin 2 code + Pin 3 code + Name: ESC Y n1 n2 Data
Pin 5 code + Pin 8 code Dec.: 27 89 n1 n2 Data
= 2^7 + 2^6 + 2^3 + 2^0 Hex.: 1B 59 n1 n2 Data
= 128 + 64 + 8 + 1
= 201 Comments:
*Horizontal adjacent dots cannot be printed.
Byte 2: Input code = Pin 9 code *Refer to "BIT IMAGE(GRAPHICS)".
= 2^7 = 128
<QUADRUPLE DENSITY GRAPHICS>
Thus, the two bytes for a single column of dots are entered as: Sets quadruple density graphics mode
[240 dots per inch (25.4 mm)].
CHR$(201); CHR$(128)
Name: ESC Z n1 n2 Data
Refer to the 9-pin standard density designation in the table. Dec.: 27 90 n1 n2 Data
This setting is given by ESC+"^"+m+n1+n2, where m=0. Hex.: 1B 5A n1 n2 Data
Sets paper feed amount to 1/8 inch (3.2 mm).
Comments:
*Horizontal adjacent dots cannot be printed. Name: ESC 0
*Refer to "BIT IMAGE(GRAPHICS)". Dec.: 27 48
Hex.: 1B 30
<8-PIN BIT IMAGE MODE SELECTION>
Selects one of the 8-pin bit image graphic modes. <7/72 INCH PAPER FEED>
Sets paper feed amount to 7/72 inch (2.47 mm).
Name: ESC * m n1 n2 Data
Dec.: 27 42 m n1 n2 Data Name: ESC 1
Hex.: 1B 2A m n1 n2 Data Dec.: 27 49
Hex.: 1B 31
Comments:
*The following table illustrates the various modes based upon the <1/6 INCH PAPER FEED>
values of m. Sets paper feed amount to 1/6 inch (4.23 mm).
Comment: 2^7 . . . . . . O . . . .
*This setting has no effect on bit image data.
2^6 . . . . . . O . O . .
<UNDEFINED CODE PRINTING>
Designates undefined codes in locations 0 to 31 DEC,128 to 159 2^5 . . . . . . O . . O .
DEC
as printing codes for international characters. 2^4 . . . . . . O . . O .
Set: 2^3 . . . . . . O . . . .
Name: ESC I 1
Dec.: 27 73 1 2^2 . . . . O X O . . . .
Hex.: 1B 49 01
2^1 . . O X O X O . . . .
Release:
Name: ESC I 0 2^1 . . O X O . . . . . .
Dec.: 27 73 0
Hex.: 1B 49 00 :::::::::::
P1=0 ..........: : : : : : : : : : :
<DRAFT FONT DOWNLOADING> ::::::::::
Defines download characters into specified address location in P2=0 ............: : : : : : : : : :
::::::::: 3 Derived print end (Pe) position
P3=3 ..............: : : : : : : : : 2 for proportional spacing,
:::::::: 1 0=<Pe=<11
P4=3 ................: : : : : : : : LSB 0 Ps<Pe
::::::: ----------------------------------------------------------------
P5=7 ..................: : : : : : :
:::::: Suppose we wish to create the character (musical note) in
P6=6 ....................: : : : : : proportional spacing mode.
:::::
P7=254 ......................: : : : : The values for Ps and Pe and derived from n and m (starting and
:::: ending print positions respectively) where Ps=n-1 and Pe=m-1.
P8=0 ........................: : : : When printing characters from print column P3 to P11 in
::: proportional
P9=64 ..........................: : : spacing mode, Ps=2=(010)BIN and Pe =10=(1010)BIN. Thus, the
:: attribute
P10=48 ............................: : byte is as following:
:
P11=0 ..............................: Bit No. Function
----------------------------------------------------------------
In our sample program lines 130-170, use the eleven values MSB 7 Use lower 8 pins
P1-P11 (Program line 310 is data of P1-P11) to define the ----------------------------------------------------------------
shape and size of the musical note using the upper 8-pins 6 Start of printing in
of the print head. Program lines 190-230 define the same 5 column 3 (3-1)
shape and size, but for the lower 8-pins of the printhead. 4
----------------------------------------------------------------
Next you must determine where in RAM the character(s) should 3 End of printing in
be stored. The variable "Cs" and "Ce" are used for this purpose. 2 column 11 (11-1)
The value specified for "Cs" indicates the ASCII location into 1
which the starting downloaded character will be stored. The LSB 0
value specified for "Ce" indicates that ASCII location into ----------------------------------------------------------------
which the ending downloaded character will be stored. If you are
storing a single character, then Cs=Ce. We the set "At"=2^1+2^3+2^5=2+8+32=42.
Program line 130-170, use the values P1h-P23h and P1l-P23l to 100 REM CHARACTER GENERATOR SELECTION
define the shape and size of the character using the lower 8 pins 110 WIDTH "LPT1:",255
of the printhead. 120 OPEN "LPT1:" AS #1
130 REM ROM CG SET COPY TO DOWNLOAD BUFFER
Downloading NLQ font characters require 1 byte of attribute 140 PRINT #1,CHR$(27)+":"+CHR$(0)+CHR$(2)+CHR$(0);
information 150 REM DOWNLOAD TO TO "!" IN DRAFT FONT
which is input as the value of "At". Same as attribute information of 160 PRINT #1,CHR$(27)+"&"+CHR$(0)+"!!";
draft font. 170 PRINT #1,CHR$(11);
180 RESTORE 420
The values Ps and Pe of NLQ attribute information are derived 190 FOR I=1 TO 11
from n 200 READ A : PRINT #1,CHR$(A);
and m (starting and ending print positions respectively) using the 210 NEXT I
equation Ps=(n-1)/2 and Pe=(m-1)/2. To ensure that Ps and Pe are 220 REM DOWNLOAD TO "!" IN NLQ FONT
integers, the character must be designed so that n and m are odd. 230 PRINT #1, CHR$(27)+"&"+CHR$(2)+"!!";
240 PRINT #1,CHR$(11);
In this example, the "g" starts in column 1 and ends in column 23, 250 RESTORE 430
and Ps=0=(000)BIN and Pe=11=(1011)BIN. Thus, the attribute 260 FOR I=1 TO 46
byte is 270 READ A : PRINT #1,CHR$(A);
as following: 280 NEXT I
290 REM SELECT DOWNLOAD CG
Bit No. Binary Form Function 300 PRINT #1,CHR$(27)+"%"+CHR$(1);
---------------------------------------------------------------- 310 PRINT #!,"SELECT DRAFT FONT DOWNLOAD
MSB 7 0 Use lower 8 pins CG !!!"+CHR$(10);
---------------------------------------------------------------- 320 PRINT #1,CHR$(27)+"x"+CHR$(1);
6 0 Start of printing in 330 PRINT #!,"SELECT NLQ FONT DOWNLOAD
5 0 column 1 (1-1)/2 CG !!!"+CHR$(10);
40 340 PRINT #1,CHR$(27)+"x"+CHR$(0);
---------------------------------------------------------------- 350 REM SELECT ROM CG
3 1 End of printing in 360 PRINT #1,CHR$(27)+"%"+CHR$(0);
2 0 column 23 (23-1)/2 370 PRINT #!,"SELECT DRAFT FONT ROM CG !!!"+CHR$(10);
11 380 PRINT #1,CHR$(27)+"x"+CHR$(1);
LSB 0 1 390 PRINT #!,"SELECT NLQ FONT ROM CG !!!"+CHR$(10);
---------------------------------------------------------------- 400 CLOSE
410 END
We the set "At"=2^3+2^1+2^0=8+2+1=11. 420 DATA 0,0,3,3,7,6,254,0,64,48,0
Refer to program line 130 430 DATA 0,12,0,18,0,2,0,2,15,1,16,129,32,129,64,129
Comments: 440 DATA 0,129,128,129,128,129,128,129,128,129,128,130
*This command is operational only when the 32K buffer option 450 DATA 65,130,32,242,31,12,32,0,0,0,0,0,0,0,0,0,0,0
(KX-P43) is installed.
*Downloaded NLQ font characters require 47 bytes per character: Comments:
1 byte *The value of n specifies the NLQ font to download.
for attribute information and 46 bytes for the character design. Refer to Font Style command ESC+"k"+n.
*Upon receipt of the command, all previous downloaded fonts
are cleared. 6 6 - - 12 11 12 11 12 10 11 11 11 12 12 12 12 12
*When altering only part of the ROM CG, use this command
before font downloading. 7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12
<RESET PRINTER> 8 8 - - 8 12 12 12 11 12 12 11 11 12 12 12 12 8
Initializes printer, causing data in the line buffer,
but not in the receive buffer, to be cleared. 9 9 - - 8 11 10 12 9 11 11 12 12 12 12 12 12 6
Name: ESC @ 10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6
Dec.: 27 64
Hex.: 1B 40 11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12
Name: ESC EM n 2 2 - - 10 12 12 12 11 10 11 12 12 12 12 12 12 11
Dec.: 27 25 n
Hex.: 1B 19 n 3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 11 12
Comment: 4 4 - - 11 12 12 12 12 10 11 11 12 12 12 12 11 12
*The following values of n can be used.
n=R: Eject a sheet 5 5 - - 12 12 12 12 11 11 11 11 12 12 12 9 12 12
n=0: Cut Sheet Feeder mode is OFF
n=4: Cut Sheet Feeder mode is ON 6 6 - - 12 11 12 11 12 10 11 11 11 12 12 10 12 12
Note: 7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 9
*If the Cut Sheet Feeder mode is set to ON without
installing the CSF, the paper will not feed correctly. 8 8 - - 8 12 12 12 11 12 12 11 11 12 12 10 12 8
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 12 8
0 0 - - 12 12 12 12 5 11 12 12 11 12 12 12 12 12 12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 10 7
1 1 - - 10 9 12 12 11 11 12 12 10 12 12 12 11 12 13 D - - 12 11 12 11 11 10 8 12 10 11 12 9 11 8
2 2 - - 10 12 12 12 11 10 11 12 12 12 12 12 12 10 14 E - - 7 9 12 10 10 12 12 12 12 12 12 10 11 8
3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10 15 F - - 10 11 12 12 11 - 12 12 12 12 12 12 5 12
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12
0 0 - - 12 12 12 12 5 11 12 12 11 12 12 12 12 12 12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 12 8
1 1 - - 10 9 12 12 11 11 12 12 10 12 12 12 11 12 13 D - - 12 11 12 11 11 10 11 12 12 12 12 12 11 8
2 2 - - 10 12 12 12 11 10 11 12 12 12 12 12 12 10 14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8
3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10 15 F - - 10 11 12 12 11 - 12 12 12 12 12 12 12 12
6 6 - - 12 11 12 11 12 10 12 12 11 12 12 12 12 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
8 8 - - 8 12 12 12 11 12 12 10 11 12 12 12 12 8 0 0 - - 12 12 12 12 5 11 12 12 11 12 12 12 12 12
9 9 - - 8 11 10 12 9 11 12 12 11 12 12 12 12 6 1 1 - - 10 9 12 12 11 11 12 12 10 12 12 12 11 12
10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6 2 2 - - 10 12 12 12 11 10 11 12 12 12 12 12 12 10
11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12 3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10
12 C - - 8 10 10 7 9 9 12 12 12 12 12 12 12 8 4 4 - - 11 12 12 12 12 10 11 11 12 12 12 12 12 12
13 D - - 12 11 12 11 11 10 8 12 10 12 12 12 11 8 5 5 - - 12 12 12 12 11 11 11 11 12 12 12 12 12 12
14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8 6 6 - - 12 11 12 11 12 10 11 11 11 12 12 12 12 12
15 F - - 10 11 12 12 11 - 12 11 12 12 12 12 12 12 7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12
0 0 - - 12 12 12 12 5 11 12 12 9 12 12 12 12 12 12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 12 8
1 1 - - 10 9 12 12 11 11 12 12 5 12 12 12 11 12 13 D - - 12 11 12 11 11 10 8 12 10 12 12 12 11 8
2 2 - - 10 12 12 12 11 10 11 12 12 12 12 12 12 10 14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8
3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10 15 F - - 10 11 12 12 11 - 12 12 12 12 12 12 12 12
6 6 - - 12 11 12 11 12 10 12 11 7 12 12 12 12 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
7 7 - - 5 12 12 12 11 12 11 11 11 12 12 12 12 12 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
8 8 - - 8 12 12 12 11 12 12 12 12 12 12 12 12 8 0 0 - - 12 12 12 12 5 11 12 12 11 12 12 12 12 12
9 9 - - 8 11 10 12 9 11 11 12 12 12 12 12 12 6 1 1 - - 10 9 12 12 11 11 12 12 10 12 12 12 11 12
2 2 - - 10 12 12 12 11 10 11 12 12 12 12 12 12 10 14 E - - 6 10 12 12 11 12 12 12 12 12 12 12 10 8
3 3 - - 12 12 12 12 11 11 12 12 11 12 12 12 12 10 15 F - - 10 12 12 12 12 - 12 11 12 12 12 12 10 12
6 6 - - 12 11 12 11 12 10 11 11 12 12 12 12 12 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
7 7 - - 5 12 12 12 11 12 11 11 11 12 12 12 12 12 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
8 8 - - 8 12 12 12 11 12 12 9 11 12 12 12 12 8 0 0 - - 12 12 12 12 5 11 12 12 12 12 12 10 10 12
9 9 - - 8 11 10 12 9 11 11 12 12 12 12 12 12 6 1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12
10 A - - 12 8 12 12 10 12 11 12 12 12 12 12 12 6 2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 12 12
11 B - - 12 9 12 11 11 10 10 11 12 12 12 12 11 12 3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 10 12
12 C - - 8 10 10 7 9 9 11 12 12 12 12 12 12 8 4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 11
13 D - - 12 11 12 11 11 10 10 12 10 12 12 12 11 8 5 5 - - 12 12 12 12 12 12 12 10 12 12 12 8 12 10
14 E - - 7 9 12 10 10 12 12 12 12 12 12 12 10 8 6 6 - - 12 12 12 12 10 12 12 11 12 12 12 8 11 12
15 F - - 10 11 12 12 11 - 12 11 12 12 12 12 12 12 7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 11 7
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 11 6
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B - - 12 6 12 8 10 9 8 10 12 12 12 12 11 8
0 0 - - 12 12 12 12 5 11 12 12 12 12 12 12 12 12 12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 10 7
1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12 13 D - - 12 12 12 8 12 9 8 11 5 11 12 5 11 8
2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10 14 E - - 6 10 12 12 11 12 12 12 12 12 12 8 11 8
3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10 15 F - - 10 12 12 12 12 - 12 11 12 12 12 12 5 12
6 6 - - 12 12 12 12 10 12 12 11 12 12 12 12 11 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
8 8 - - 6 12 12 10 11 10 12 12 12 12 12 12 10 8 0 0 - - 12 12 12 12 5 11 12 12 12 12 12 12 12 12
9 9 - - 6 12 8 12 8 12 12 12 12 12 12 12 12 6 1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12
10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6 2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10
11 B - - 12 6 12 8 10 9 8 11 12 12 12 12 12 12 3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10
12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 12 8 4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 12
13 D - - 12 12 12 8 12 9 8 12 5 12 12 12 12 8 5 5 - - 12 12 12 12 12 12 12 10 12 12 12 12 11 12
6 6 - - 12 12 12 12 10 12 12 11 12 12 12 12 11 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
8 8 - - 6 12 12 10 11 10 12 8 12 12 12 12 10 8 0 0 - - 12 12 12 12 5 11 12 12 12 12 12 12 12 12
9 9 - - 6 12 8 12 8 12 12 12 10 12 12 12 12 6 1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12
10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6 2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10
11 B - - 12 6 12 8 10 9 8 11 12 12 12 12 12 12 3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10
12 C - - 7 10 12 10 8 5 12 12 12 12 12 12 12 8 4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 12
13 D - - 12 12 12 8 12 9 8 11 5 12 12 12 12 8 5 5 - - 12 12 12 12 12 12 12 10 12 12 12 12 11 12
14 E - - 6 10 12 12 11 12 12 12 12 12 12 12 10 8 6 6 - - 12 12 12 12 10 12 12 11 12 12 12 12 11 12
15 F - - 10 12 12 12 12 - 12 10 12 12 12 12 10 12 7 7 - - 5 12 12 12 11 12 11 11 12 12 12 12 12 12
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B - - 12 6 12 8 10 9 8 10 12 12 12 12 12 12
0 0 - - 12 12 12 12 5 11 12 12 5 12 12 12 12 12 12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 12 8
1 1 - - 5 8 12 12 12 11 11 12 5 12 12 12 11 12 13 D - - 12 12 12 8 12 9 8 11 5 12 12 12 12 8
2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10 14 E - - 6 10 12 12 11 12 12 12 12 12 12 12 10 8
3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10 15 F - - 10 12 12 12 12 - 12 11 12 12 12 12 10 12
6 6 - - 12 12 12 12 10 12 11 11 7 12 12 12 11 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
7 7 - - 5 12 12 12 11 12 11 11 11 12 12 12 12 12 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
8 8 - - 6 12 12 10 11 10 12 12 12 12 12 12 10 8 0 0 - - 12 12 12 12 5 11 12 12 12 12 12 12 12 12
9 9 - - 6 12 8 12 8 12 12 12 12 12 12 12 12 6 1 1 - - 5 8 12 12 12 11 11 12 8 12 12 12 11 12
10 A - - 12 6 11 10 9 10 12 12 12 12 12 12 12 6 2 2 - - 8 12 12 12 11 11 12 12 10 12 12 12 10 10
11 B - - 12 6 12 8 10 9 8 11 12 12 12 12 12 12 3 3 - - 12 12 12 12 11 12 12 10 11 12 12 12 12 10
12 C - - 7 10 12 10 8 5 10 12 12 12 12 12 12 8 4 4 - - 12 12 12 12 11 11 12 10 11 12 12 12 10 12
13 D - - 12 12 12 8 12 9 12 11 12 12 12 12 12 8 5 5 - - 12 12 12 12 12 12 12 10 12 12 12 12 11 12
14 E - - 6 10 12 12 11 12 12 11 12 12 12 12 10 8 6 6 - - 12 12 12 12 10 12 12 11 12 12 12 12 11 12
15 F - - 10 12 12 12 12 - 10 11 12 12 12 12 10 12 7 7 - - 5 12 12 12 11 12 11 11 11 12 12 12 12 12
15 F - - 10 12 12 12 12 - 12 12 12 12 12 12 10 12 Release:
Name: ESC T
Unit:1/120 inch (0.21 mm) Dec.: 27 84
; Hex.: 1B 54
; *******************************
; ***** IBM Mode Commands ***** Comments:
; ******************************* *The following values of n can be used:
n=0: Superscript
n=1: Subscript
<PRINT QUALITY> *Sub/superscript font is 1/2 normal character height.
*Sub/superscript characters are normal width.
Name: ESC I n
Dec.: 27 73 n <ELITE PITCH>
Hex.: 1B 49 n Sets printing to 12 characters per inch.
Comments: Set:
*The following values of n can be used. Name: ESC :
n= 0: Internal Draft fonts Dec.: 27 58
n= 1: Internal Draft 12 CPI Height Speed fonts Hex.: 1B 3A
n= 2: Internal Sans Serif fonts (IBM NLQ)
n= 3: Internal NLQ fonts (IBM NLQ II) Release:
n= 4: Download Draft fonts Name: DC2
n= 5: Download Draft 12 CPI Height Speed fonts Dec.: 18
n= 6: Download Text fonts (IBM download NLQ) Hex.: 12
n= 7: Download NLQ fonts (IBM download NLQ II)
n=11: NLQ II Italic fonts *Comment:
n=15: Download NLQ Italic fonts It "SI" and "ESC+:" are combined while 20 cpi is Enable,
printing will be performed in 20 cpi.
*When n=4 (Download Draft font), the second of two horizontal
adjacent columns will not be fired. When n=6 (Download Text <COMPRESSED PITCH>
font), both columns will be fired. Sets printing to 17 characters per inch.
*When you select n=3 (Internal NLQ font), initial setting is
Courier. You can change font with ESC+"k"+n command. Set:
*Text Matrix is 18 x 9. Name: SI or ESC SI
Dec.: 15 or 27 15
<TYPEFACE> Hex.: 0F or 1B 0F
Selects NLQ Typeface.
Release:
Name: ESC k n Name: DC2
Dec.: 27 107 n Dec.: 18
Hex.: 1B 6B n Hex.: 12
Comments: *Comment:
*The following values can be used. It "SI" and "ESC+:" are combined while 20 cpi is Enable,
n=0: Roman printing will be performed in 20 cpi.
n=1: Sans Serif
n=2: Courier <PROPORTIONAL SPACING>
n=6: Bold PS Sets proportional spacing between characters.
*Typeface must be reselected after any pitch change.
*IBM characters in locations from 0 to 31 DEC (except 19, Set:
20, 21 DEC) from 00 to 1F HEX (except 13, 14, 15 HEX) and Name: ESC P 1
from 250 to 255 DEC (from F0 to FF HEX) are printed in Dec.: 27 80 1
Courier font, regardless of font selection. Hex.: 1B 50 01
Dec.: 27 87 1
Release: Hex.: 1B 57 01
Name: ESC P 0
Dec.: 27 80 0 Release:
Hex.: 1B 50 00 Name: ESC W 0
Dec.: 27 87 0
<EMPHASIZED PRINTING> Hex.: 1B 57 00
Sets printing to twice the original horizontal dot density.
Comment:
Set: *DC4 will not release the double wide printing set by ESC+W+1.
Name: ESC E
Dec.: 27 69 <DOUBLE HIGH AND DOUBLE WIDE PRINTING>
Hex.: 1B 45 Sets printing to double high, double wide or both at the same time.
Set: Set:
Name: SO or ESC SO Name: ESC - 1
Dec.: 14 27 14 Dec.: 27 45 1
Hex.: 0E 1B 0E Hex.: 1B 2D 01
Release: Release:
Name: DC4 or ESC W 0 Name: ESC - 0
Dec.: 20 27 87 0 Dec.: 27 45 0
Hex.: 14 1B 57 00 Hex.: 1B 2D 00
Comment: Comment:
*Single line double wide printing is released when: *Bit image data, spaces set by the HT code and IBM Graphic
- a LF,FF or VT is executed. characters will not be underlined.
- a CR is executed.
- DC4 or ESC+W+0 is executed. <OVERLINING>
Sets continuous overlining of characters.
<DOUBLE WIDE PRINTING>
Sets double wide expanded printing. Set:
Name: ESC _ 1
Set: Dec.: 27 95 1
Name: ESC W 1 Hex.: 1B 5F 01
commands. The various dot densities and corresponding control
Release: commands appear as follows:
Name: ESC _ 0
Dec.: 27 95 0 Command Function Dots/Inch Dots/Line
Hex.: 1B 5F 00 ESC+"K"+n1+n2 Standard density 60 480
ESC+"L"+n1+n2 Double density 120 960
Comment: ESC+"Y"+n1+n2 Double speed,Double density 120 960
*Bit image data, spaces set by the HT code, IBM graphic ESC+"Z"+n1+n2 Quadruple density 240 1920
characters will not be overlined.
* Bit Image (Graphics) This is done by finding values for n1 and n2, as follows:
The bit image (Graphics) enables you to control the firing
of each pin of the printhead to create virtually any graphics Divide the total number of columns you select, by 256 (max # of
design you desire. columns). The result is n1 and the remainder is n2.
1. Dot Density
n1 = 100 MOD 256 = 100
Dot density (dot resolution) refers to the maximum number of dots n2 = 100 / 256 = 0 so, n2=0 and n1=100
that can be printed in an inch or on a line. This printer enables
you to access a variety of dot densities through specific control Our control code ESC+"K"+n1+n2 now translates into:
LPRINT CHR$(27)+"K"+CHR$(100)+CHR$(0); <QUADRUPLE DENSITY GRAPHICS>
Sets quadruple density graphics mode [240 dots per inch].
Next compute the code for firing pins 1 and 8 simultaneously:
Name: ESC Z n1 n2 Data
Input Code = Pin 1 code + Pin 8 code Dec.: 27 90 n1 n2 Data
= 2^7 + 2^0 Hex.: 1B 5A n1 n2 Data
= 128 + 1
= 129 Comments:
*Horizontal adjacent dots cannot be printed.
Finally, we incorporate our two calculations into the following *Refer to "BIT IMAGE(GRAPHICS)".
program. Note that lines 20 and 30 are necessary for the proper
execution of this program on many IBM-compatible computers. <1/8 INCH PAPER FEED>
Such BASIC statements suppress CR and LF codes and enable Sets paper feed amount to 1/8 inch (3.2 mm).
printing on a full line without unwanted "breaks". Programs
which include statements such as lines 20 and 30 cannot use Name: ESC 0
LPRINTs to print data. In such cases, PRINT # statements must Dec.: 27 48
be used. Line 90 is necessary to CLOSE all open files. Hex.: 1B 30
Set: Name: VT
Name: ESC D n1 n2...nx 0 Dec.: 11
Dec.: 27 68 n1 n2...nx 0 Hex.: 0B
Hex.: 1B 44 n1 n2...nx 00
Comments:
Release: *When TABs are set with VT setting command and there is
Name: ESC D 0 no tab setting on a position exceeding the present line,
Dec.: 27 68 0 data in the line buffer is printed and the paper is fed
Hex.: 1B 44 00 one line (same as LF).
*When vertical TAB has not been set by ESC+B+n1+n2+...+nx+0,
Comments: execution of VT causes data in the line buffer to be printed
*Horizontal tabs are set from the left margin position. and advances the paper one line (same function as LF).
*Horizontal tabs must be designated such that n1<n2...<nx.
*A maximum of 32 tabs may be set on a single line. <ALL TAB INITIAL CLEAR>
*ESC+D+n1+n2+...+nx+0 sets horizontal tab stops. Sets all tabs to power on settings.
*The HT command executes the tab designation.
*In proportional spacing, horizontal tabs are set based on 10 CPI. Name: ESC R
*If the character pitch is altered after designation of Dec.: 27 82
horizontal tabs, the tab positions change. Hex.: 1B 52
*When the left margin is changed, horizontal tabs will be
moved based on the new margin setting. Comment:
*When the printer is powered up, tabs are automatically set *This command sets horizontal tabs at every 8th position
every 8 characters. and clears all vertical tabs.
Figure 1 Figure 2
n1 = 418 MOD 256 = 162
n2 = 418 / 256 = 1 so, n2=1 and n1=162 At2 is attribute byte 2
Note: 2^7 O O O O O O O O O . .
To print all 11 columns, bits 6-0 may be set to 0. *
2^6 O . . . . . . . . . .
Designing Draft and Text download characters *
2^5 O . . . . . . . . . .
When designing characters to print in both Draft and Text you *
should consider how the printer adds dots to create NLQ 2^4 O O O O O . . . . . .
characters. *
The figures that follow show how the printer treats various 2^3 O . . . . . . . . . .
situations. *
Open circle dots (O) shown must be specified by the font design. 2^2 O . . . . . . . . . .
Asterisks (*) represent dots that are automatically added by the *
printer in NLQ mode. Note horizontally adjacent dots specified in 2^1 O . . . . . . . . . .
the font design do not print in draft mode.
2^0 . . . . . . . . . . .
Figure 1 illustrate how dots are added to vertical lines and how
intersection of vertical and diagonal lines are treated. Figure 2 :::::::::::
shows the intersection of two diagonal lines. :::::::::::
P1.....: : : : : : : : : : :
2^7 O . . . . . . . O . . 2^7 O . . . . . . . O . . ::::::::::
***** P2.......: : : : : : : : : :
2^6 O . O . . . . . O . . 2^6 O . . . . . O . . . . :::::::::
***** P3.........: : : : : : : : :
2^5 O . . O . . . . O . . 2^5 O . . . O . . . . . . ::::::::
***** P4...........: : : : : : : :
2^4 O . . . O . . . O . . 2^4 O O O . . . . . . . . :::::::
***** P5.............: : : : : : :
2^3 O . . . . O . . O . . 2^3 O . . . O . . . . . . ::::::
***** P6...............: : : : : :
2^2 O . . . . . O . O . . 2^2 O . . . . . O . . . . :::::
***** P7.................: : : : :
2^1 O . . . . . . . O . . 2^1 O . . . . . . . O . . ::::
P8...................: : : :
2^0 . . . . . . . . . . . 2^0 . . . . . . . . . . . :::
P9.....................: : :
:::::::::::::::::::::: ::
:::::::::::::::::::::: P10......................: :
P1.....: : : : : : : : : : : P1.....: : : : : : : : : : : :
:::::::::::::::::::: P11........................:
P2.......: : : : : : : : : : P2.......: : : : : : : : : :
:::::::::::::::::: Figure 3
P3.........: : : : : : : : : P3.........: : : : : : : : :
:::::::::::::::: The intersection of diagonal and horizontal lines is printed out
P4...........: : : : : : : : P4...........: : : : : : : : as two vertical dots, as shown in Figure 4.
::::::::::::::
P5.............: : : : : : : P5.............: : : : : : : 2^7 O O O O O O O O . . .
:::::::::::: *
P6...............: : : : : : P6...............: : : : : : 2^6 . . . . . . . O . . .
:::::::::: *
P7.................: : : : : P7.................: : : : : 2^5 . . . . . . O . . . .
:::::::: *
P8...................: : : : P8...................: : : : 2^4 . . . . . O . . . . .
:::::: *
P9.....................: : : P9.....................: : : 2^3 . . . . O . . . . . .
:::: *
2^2 . . . O . . . . . . . :::::
* P7.................: : : : :
2^1 . . O . . . . . . . . ::::
P8...................: : : :
2^0 . . . . . . . . . . . :::
P9.....................: : :
::::::::::: ::
::::::::::: P10......................: :
P1.....: : : : : : : : : : : :
:::::::::: P11........................:
P2.......: : : : : : : : : :
::::::::: Figure 5
P3.........: : : : : : : : :
:::::::: As an example we will provide a basic program that loads
P4...........: : : : : : : : and prints in draft mode, the greek gamma character is shown
::::::: below:
P5.............: : : : : : :
:::::: 2^7 . . O . . . . . O . .
P6...............: : : : : : P1 =0
::::: 2^6 . . . O . . O . . . . P2 =2^2+2^3=4+8=12
P7.................: : : : : P3 =2^1+2^4+2^7=2+16+128=146
:::: 2^5 . . . . O . . . . . . P4 =2^0+2^6=1+64=65
P8...................: : : : P5 =2^1+2^5=2+32=34
::: 2^4 . . O . . O . . . . . P6 =2^2+2^3+2^4=4+8+16=28
P9.....................: : : P7 =2^6=64
:: 2^3 . O . . . O . . . . . P8 =0
P10......................: : P9 =2^7=128
: 2^2 . O . . . O . . . . . P10=0
P11........................: P11=0
2^1 . . O . O . . . . . .
Figure 4
2^0 . . . O . . . . . . .
When you add the dots , you can select the position
of added dots as shown in Figure 5. :::::::::::
:::::::::::
2^7 . O . . . . . . . . . P1.....: : : : : : : : : : :
* ::::::::::
2^6 . . O . . . . . . . . P2.......: : : : : : : : : :
* :::::::::
2^5 . . . O . . . . . . . P3.........: : : : : : : : :
::::::::
2^4 . . . . . . . . O . . P4...........: : : : : : : :
* :::::::
2^3 . . . . . . O . . . . P5.............: : : : : : :
* ::::::
2^2 . . . . O . . . . . . P6...............: : : : : :
* :::::
2^1 . . O . . . . . . . . P7.................: : : : :
::::
2^0 . . . . . . . . . . . P8...................: : : :
:::
::::::::::: P9.....................: : :
::::::::::: ::
P1.....: : : : : : : : : : : P10......................: :
:::::::::: :
P2.......: : : : : : : : : : P11........................:
:::::::::
P3.........: : : : : : : : : Example:
::::::::
P4...........: : : : : : : : 100 REM DRAFT DOWNLOAD CHARACTER
::::::: 110 WIDTH "LPT1:",255
P5.............: : : : : : : 120 OPEN "LPT1:" AS #1
:::::: 130 PRINT
P6...............: : : : : : #1,CHR$(27)+"="+CHR$(15)+CHR$(0)+CHR$(20)+"A";
140 PRINT #1,CHR$(0)+CHR$(11); 7....O...........O......
150 RESTORE 270 8....O...........O......
160 FOR I=1 TO 11 9....O...........O......
170 READ A : PRINT #1,CHR$(A); 10 . . . . O . . . . . . . . . O . O . . . . . .
180 NEXT I 11 . . . . . O X O X O X O X O X O . . . . . . .
190 REM PRINT DRAFT DOWNLOAD 12 . . . . . . . . . . . . . . . O . . . . . . .
200 PRINT #1,CHR$(27)+"I"+CHR$(4); 13 . . . . . . . . . . . . . . . O . . . . . . .
210 PRINT #1,"A A A A A"+CHR$(10)+CHR$(13); 14 . O . . . . . . . . . . . . . O . . . . . . .
220 REM PRINT TEXT DOWNLOAD 15 O . . . . . . . . . . . . . . . O . . . . . .
230 PRINT #1,CHR$(27)+"I"+CHR$(6); 16 O . . . . . . . . . . . . . . . O . . . . . .
240 PRINT #1,"A A A A A"+CHR$(10)+CHR$(13); 17 . O X O . . . . . . . . . O X O . . . . . . .
250 CLOSE 18 . . . . O X O X O X O X O . . . . . . . . . .
260 END
270 DATA 0,12,146,65,34,28,64,0,128,0,0 :::::::::::::::::::::::
P1h=2 P1l=2 ........: : : : : : : : : : : : : : : : : : : : : : :
<NLQ FONT DOWNLOADING> ::::::::::::::::::::::
Defines near letter quality download characters into P2h=1 P2l=4 ..........: : : : : : : : : : : : : : : : : : : : : :
specified address locations in RAM. :::::::::::::::::::::
P3h=1 P3l=0 ............: : : : : : : : : : : : : : : : : : : : :
Name: ESC = n1 n2 21 Cs At1 At2 P1h P1l ...P23l ::::::::::::::::::::
Dec.: 27 61 n1 n2 21 Cs At1 At2 P1h P1l ...P23l P4h=1 P4l=0 ..............: : : : : : : : : : : : : : : : : : : :
Hex.: 1B 3D n1 n2 15 Cs At1 At2 P1h P1l ...P23l :::::::::::::::::::
P5h=48 P5l=49 ................: : : : : : : : : : : : : : : : : : :
Example: ::::::::::::::::::
P6h=8 P6l=65 ..................: : : : : : : : : : : : : : : : : :
100 REM NLQ DOWNLOAD CHARACTER :::::::::::::::::
110 WIDTH "LPT1:",255 P7h=72 P7l=1 ....................: : : : : : : : : : : : : : : : :
120 OPEN "LPT1:" AS #1 ::::::::::::::::
130 PRINT P8h=8 P8l=129 ......................: : : : : : : : : : : : : : : :
#1,CHR$(27)+"="+CHR$(50)+CHR$(0)+CHR$(21)+"A"; :::::::::::::::
140 PRINT #1,CHR$(0)+CHR$(11); P9h=8 P9l=1 ........................: : : : : : : : : : : : : : :
150 RESTORE 240 ::::::::::::::
160 FOR I=1 TO 23*2 P10h=136 P10l=1 ..........................: : : : : : : : : : : : : :
170 READ A : PRINT #1,CHR$(A); :::::::::::::
180 NEXT I P11h=136 P11l=1 ............................: : : : : : : : : : : : :
190 REM PRINT NLQ DOWNLOAD ::::::::::::
200 PRINT #1,CHR$(27)+"I"+CHR$(7); P12h=136 P12l=1 ..............................: : : : : : : : : : : :
210 PRINT #1,"A A A A A"+CHR$(10)+CHR$(13); :::::::::::
220 CLOSE P13h=136 P13l=1 ................................: : : : : : : : : : :
230 END ::::::::::
240 DATA 2,2,1,4,1,0,1,0,48,49,8,65,72,1,8,129 P14h=137 P14l=0 ..................................: : : : : : : : : :
250 DATA 8,1,136,1,136,1,136,1,136,1,137,0,9,144 :::::::::
260 DATA 77,12,50,114,64,0,0,0,0,0,0,0,0,0,0,0 P15h=9 P15l=144 ....................................: : : : : : : : :
::::::::
Explanation: P16h=77 P16l=12 ......................................: : : : : : : :
:::::::
An NLQ font download character uses 23 columns and 18 rows of P17h=50 P17l=114 ........................................: : : : : : :
dots. ::::::
Column 24 is always blank. Ph specifies the contents of odd rows, P18h=64 P18l=0 ..........................................: : : : : :
Pl :::::
the even rows. Of the 18 rows of dots available for each character, P19h=0 P19l=0 ............................................: : : : :
only 16 can be printed for normal characters. ::::
P20h=0 P20l=0 ..............................................: : : :
If bit 7 of attribute byte 1 is 0, rows 1-16 will print; if it is :::
set to 1, rows 3-18 will print. P21h=0 P21l=0 ................................................: : :
::
NLQ font downloading P22h=0 P22l=0 ..................................................: :
:
1....................... P23h=0 P23l=0 ....................................................:
2.......................
3.........OXOXO......... NLQ downloading characters require 48 bytes per character. There
4.......O......O........ are 2 bytes for the attribute information and 46 bytes for the
5......O........O.O..... character design.
6.....O..........O......
Attribute information 1 Hex.: 1B 39
0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 12 12 12 12 C 12 12 6 10 12 10 8 4 10 12 12 12 12 12 10 7
1 1 12 12 5 8 12 12 12 11 12 12 12 12 12 12 12 12 13 D 12 12 12 12 12 8 12 9 8 11 12 12 12 4 11 8
2 2 12 12 8 12 12 12 11 11 12 12 12 12 12 12 11 10 14 E 12 12 6 10 12 12 12 12 12 12 12 12 12 8 11 8
3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 12 12 10 15 F 12 12 10 10 12 12 11 12 12 12 12 12 10 12 5 12
6 6 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
7 7 12 12 6 12 12 12 11 12 12 12 12 12 12 12 11 11 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
8 8 12 12 6 12 12 10 12 10 12 11 12 12 12 12 12 8 0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 12 12 12
9 9 12 12 6 12 8 12 8 12 12 11 12 12 12 12 12 6 1 1 12 12 5 8 12 12 12 11 12 11 12 12 12 12 12 12
10 A 12 12 12 6 12 12 8 10 12 12 12 12 12 12 12 6 2 2 12 12 8 12 12 12 11 11 12 11 12 12 12 12 11 10
11 B 12 12 12 6 12 8 10 9 9 12 12 12 12 12 12 12 3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 12 12 10
12 C 12 12 6 10 12 10 8 4 10 12 12 12 12 12 12 10 4 4 10 12 12 12 12 12 11 10 11 10 12 12 12 12 12 12
13 D 12 12 12 12 12 8 12 9 8 12 12 12 12 12 12 8 5 5 12 12 12 12 12 12 12 12 12 11 12 12 12 12 12 12
14 E 12 12 6 10 12 12 12 12 12 12 12 12 12 12 10 8 6 6 12 12 12 12 12 12 12 12 11 11 12 12 12 12 12 12
15 F 12 12 10 10 12 12 11 12 12 12 12 12 12 12 12 12 7 7 12 12 6 12 12 12 11 12 12 12 12 12 12 12 11 11
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 10 A 12 12 12 6 12 12 8 10 12 12 12 12 12 12 12 6
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B 12 12 12 6 12 8 10 9 8 12 12 12 12 12 12 12
0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 10 10 12 12 C 12 12 6 10 12 10 8 4 12 12 12 12 12 12 12 10
1 1 12 12 5 8 12 12 12 11 12 12 12 12 12 11 12 12 13 D 12 12 12 12 12 8 12 9 8 11 12 12 12 12 12 8
2 2 12 12 8 12 12 12 11 11 12 12 12 12 12 11 12 11 14 E 12 12 6 10 12 12 12 12 11 12 12 12 12 12 10 8
3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 11 10 12 15 F 12 12 10 10 12 12 11 12 11 10 12 12 12 12 12 12
6 6 12 12 12 12 12 12 12 12 12 12 12 11 11 8 12 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
7 7 12 12 6 12 12 12 11 12 12 12 12 11 11 12 11 7 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
8 8 12 12 6 12 12 10 12 10 12 11 12 12 12 9 11 8 0 0 12 12 12 12 12 12 6 11 12 12 4 12 12 12 12 12
9 9 12 12 6 12 8 12 8 12 12 11 12 12 12 12 11 11 1 1 12 12 5 8 12 12 12 11 12 11 5 12 12 12 12 12
10 A 12 12 12 6 12 12 8 10 12 12 12 12 12 12 11 6 2 2 12 12 8 12 12 12 11 11 12 11 12 12 12 12 11 10
3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 12 12 10 15 F 12 12 10 10 12 12 11 12 12 12 10 12 12 12 12 12
6 6 12 12 12 12 12 12 12 12 12 12 7 12 12 12 12 12 Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
7 7 12 12 6 12 12 12 11 12 12 12 11 12 12 12 11 11 Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F
8 8 12 12 6 12 12 10 12 10 12 10 12 12 12 12 12 8 0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 12 12 12
9 9 12 12 6 12 8 12 8 12 12 12 12 12 12 12 12 6 1 1 12 12 5 8 12 12 12 11 12 12 12 12 12 12 12 12
10 A 12 12 12 6 12 12 8 10 12 12 12 12 12 12 12 6 2 2 12 12 8 12 12 12 11 11 12 12 12 12 12 12 11 10
11 B 12 12 12 6 12 8 10 9 9 12 12 12 12 12 12 12 3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 12 12 10
12 C 12 12 6 10 12 10 8 4 10 12 12 12 12 12 12 10 4 4 10 12 12 12 12 12 11 10 12 11 12 12 12 12 12 12
13 D 12 12 12 12 12 8 12 9 11 11 12 12 12 12 12 8 5 5 12 12 12 12 12 12 12 12 12 11 12 12 12 12 12 12
14 E 12 12 6 10 12 12 12 12 11 11 12 12 12 12 10 8 6 6 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12
15 F 12 12 10 10 12 12 11 12 12 12 12 12 12 12 12 12 7 7 12 12 6 12 12 12 11 12 12 12 11 12 12 12 11 11
Dec. 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 10 A 12 12 12 6 12 12 8 10 12 12 12 12 12 12 12 6
Hex. 0 1 2 3 4 5 6 7 8 9 A B C D E F 11 B 12 12 12 6 12 8 10 9 9 12 12 12 12 12 12 12
0 0 12 12 12 12 12 12 6 11 12 12 12 12 12 12 12 12 12 C 12 12 6 10 12 10 8 4 10 12 12 12 12 12 12 10
1 1 12 12 5 8 12 12 12 11 12 12 12 12 12 12 12 12 13 D 12 12 12 12 12 8 12 9 8 12 12 12 12 12 12 8
2 2 12 12 8 12 12 12 11 11 12 12 12 12 12 12 11 10 14 E 12 12 6 10 12 12 12 12 12 12 12 12 12 12 10 8
3 3 12 12 12 12 12 12 11 12 12 11 12 12 12 12 12 10 15 F 12 12 10 10 12 12 11 12 12 12 12 12 12 12 12 12
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