RTM105M V1.1 ;New text ;***************************************************************************** ;* << Panasonic KX-P2130/2135 >> * ;* COMMAND REFERENCE * ;***************************************************************************** ; ********************************* ; ***** EPSON Mode Commands ***** ; ********************************* Selects print quality. Name: ESC x n Dec.: 27 120 n Hex.: 1B 78 n Comments: *The following values of n can be used: ~n=0 : Draft font~ ~n=1 : LQ font~ Selects LQ font style. Name: ESC k n Dec.: 27 107 n Hex.: 1B 6B n Comments: *The following values of n can be used: ~n=0 : Roman~ ~n=1 : Sans Serif~ ~n=2 : Courier~ ~n=3 : Prestige~ ~n=4 : Script~ ~n=5 : OCR-B~ ~n=6 : Bold PS~ *This command is effective only in letter quality mode (ESC+x+1). Selects sub/superscript font with characters printed in the lower/upper area of the line. Set: Name: ESC S n Dec.: 27 83 n Hex.: 1B 53 n Release: Name: ESC T Dec.: 27 84 Hex.: 1B 54 Comments: *The following values of n can be used: n=0 : Superscript n=1 : Subscript *Sub/superscript font is 2/3 normal character height. *In draft mode, font is normal character width. *In LQ mode, font is 2/3 normal fixed character width. *In PS mode, font is 2/3 normal PS character width. Sets printing to 10 characters per inch (up to 80 characters per line). Name: ESC P Dec.: 27 80 Hex.: 1B 50 Comments: *When pica and compressed are set simultaneously, output is 17 CPI (up to 137 CPL). Sets printing to 12 characters per inch (up to 96 characters per line). Name: ESC M Dec.: 27 77 Hex.: 1B 4D Comments: *When elite and compressed are set simultaneously, output is 20 CPI (up to 160 CPL). Sets printing to 15 characters per inch (up to 120 characters per line). Name: ESC g Dec.: 27 103 Hex.: 1B 67 Comments: *When micron and compressed are set simultaneously, output is 15 CPI (up to 120 CPL). Sets printing to 17/20 characters per inch (up to 137/160 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). *When PS (Proportional Spacing) and compressed are set simultaneously, font is compressed PS character width. Sets proportional spacing between characters. Name: ESC p n Dec.: 27 112 n Hex.: 1B 70 n Comments: *The following values of n can be used: ~n=0 : Release~ ~n=1 : Set~ *Proportional spacing overrides pica, elite, and micron pitch setting. *When PS (Proportional Spacing) and compressed are set simultaneously, font is compressed PS character width. *This command is effective only in letter quality mode (ESC+x+1). 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: ~Bit ON OFF~ ~ 0 : Pitch Elite Pica~ ~ 1 : PS ON OFF~ ~ 2 : Compressed ON OFF~ ~ 3 : Emphasized ON OFF~ ~ 4 : Double-strike ON OFF~ ~ 5 : Double-wide ON OFF~ ~ 6 : Italic ON OFF~ ~ 7 : Underlining ON OFF~ *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). Sets printing to twice the original horizontal dot density. Set: Name: ESC E Dec.: 27 69 Hex.: 1B 45 Release: Name: ESC F Dec.: 27 70 Hex.: 1B 46 Comments: *Emphasized characters are printed at half speed. Sets double high printing. Name: ESC w n Dec.: 27 119 n Hex.: 1B 77 n Comments: *The following values of n can be used: ~n=0 : Release~ ~n=1 : Set~ *In the pull tractor mode, this command will not reverse feed paper correctly and the resulting printout may not be correct. Sets double wide (expanded) printing for one line only. Set: Name: SO or ESC SO Dec.: 14 or 27 14 Hex.: 0E or 1B 0E Release: Name: DC4 or ESC W 0 Dec.: 20 or 27 87 0 Hex.: 14 or 1B 57 00 Comments: *Single line double wide printing is released when: - a LF, FF or VT is executed. - the printer is initialized. - DC4 or ESC+W+0 is executed. - ESC+!+0 is executed. Sets double wide (expanded) printing. Name: ESC W n Dec.: 27 87 n Hex.: 1B 57 n Comments: *The following values of n can be used: ~n=0 : Release~ ~n=1 : Set~ *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. Sets outline and shadow printing. Name: ESC q n Dec.: 27 113 n Hex.: 1B 71 n Comments: *The following values of n can be used. ~n=0 : Releases~ outline/shadow printing ~n=1 : Outline~ ~n=2 : Shadow~ ~n=3 : Outline with Shadow~ Sets double printing. Set: Name: ESC G Dec.: 27 71 Hex.: 1B 47 Release: Name: ESC H Dec.: 27 72 Hex.: 1B 48 Comments: *Double strike printing prints each line twice, with the second line slightly below the first to create a bold appearance. Sets continuous underlining of characters. Name: ESC - n Dec.: 27 45 n Hex.: 1B 2D n Comment: *The following values of n can be used: ~n=0 : Release~ ~n=1 : Set~ *Bit image data, spaces set by the HT code, and IBM graphic characters will not be underlined. Sets/releases score. Name: ESC ( - 3 0 1 d1 d2 Dec.: 27 40 45 3 0 1 d1 d2 Hex.: 1B 28 2D 03 00 01 d1 d2 Comments: *The value of d1 determines the location of the score: ~d1=1: Underline~ ~d1=2: Strikethrough~ ~d1=3: Overscore~ *The value of d2 determines whether the score line is single, double, broken or continuous:~ ~ ~d2=0: Cancel the score line selected by d1~ ~d2=1: Single continuous line~ ~d2=2: Double continuous line~ ~d2=5: Single broken line~ ~d2=6: Double broken line~ Selects alignment of characters across print line. 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.~ Sets character dot spacing until changed. Name: ESC SP n (~n = 0 to 127~)DEC Dec.: 27 32 n Hex.: 1B 20 n Comment: *Sets the amount of dot space (Draft: n/120 inch, LQ: n/180 inch) added to the right of each character to allow for micro justification. 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 at character set locations 32DEC to 126DEC (20 HEX to 7E HEX). *This command is effective regardless of character set selected by ESC+t+n. 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: USA n=8: Japan~ ~n=1: France n=9: Norway~ ~n=2: Germany n=10: Denmark 2~ ~n=3: England n=11: Spain 2~ ~n=4: Denmark 1 n=12: Latin America~ ~n=5: Sweden n=13: Korea~ ~n=6: Italy n=64: Legal~ ~n=7: Spain 1~ *Character set tables in the appendix of the operating instruction manual identifies the characters generated by the appropriate codes. *International character sets can be set through the initial setup disk. Selects graphic character set 1. Name: ESC 7 Dec.: 27 55 Hex.: 1B 37 Comments: *Refer to character set tables in appendix of the operating instruction manual. *This command is not operational when the Italic character set is selected by ESC+t+n. Selects graphic character set 2. Name: ESC 6 Dec.: 27 54 Hex.: 1B 36 Comments: *Refer to character set tables in appendix of the operating instruction manual. *This command is not operational when the Italic character set is selected by ESC+t+n. 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,48: Italic~ ~n=1,49: Graphic Character Set~ ~n=2,50: User defined characters~ ~n=3,51: Graphic Character Set~ *Use the ESC ( t command to assign a pre-defined character set to a character table. The character set charts are found in the appendix of the operating instruction manual. *To copy user-defined characters to the upper half of the character table use the ESC t 2 command. This command will not work if you have assigned another character table to table 2. Assign character table SET : NAME: ESC ( t 3 0 d1 d2 0 Hex.: 1B 28 74 3 0 d1 d2 0 Dec.: 27 40 116 03 00 d1 d2 0 Comment: *n1 specifies the character table to re-assign. ~0<=d1<=3, 48<=d1<=51~~ ~ *n2 specifies the character set to assign to a character table. possible values are: ~d2=0 : Italic~ ~d2=1 : PC437(US)~ ~d2=3 : PC850(Multilingual)~ ~d2=5 : PC853(Turkey)~ ~d2=7 : PC860(Portugal)~ ~d2=8 : PC863(Canada-French)~ ~d2=9 : PC865(Norway)~ ~d2=25: BRASCII~ ~d2=26: Abicomp~ *Refer to the character set tables in the appendix of the operating instruction manual. *Character tables assigned to tables 0 and 1 with this command are not cleared by the ESC+@ (initialize printer) command. * Bit Image (Graphics) Bit image (Graphics) is used to produce pictures, graphs, charts or creative patterns. Many commercial software packages use bit images. This printer has six 8-pin bit image modes and five 24-pin bit image modes within Epson mode, and has four 8-pin/24-pin bit image modes within IBM mode, so that you have a wide variety of image printing. When you use a commercial software package, you should refer to your software instruction manual for the proper use. Each printer mode has its own bit image commands. Because differences between the two modes are few, only Epson mode is used here as an example of how to print bit images through software commands. 1. Dot Density Dot density (dot resolution) refers to the maximum number of dots that can be printed in an inch or on a line. This printer enables you to access a variety of dot densities through specific control commands. The various dot densities and corresponding control commands appear as follows: Maximum Command Function Dots/Inch Dots/Line ESC+"K"+n1+n2 Standard density 60 540 ESC+"L"+n1+n2 Double density 120 1080 ESC+"Y"+n1+n2 Double speed,Double density 120 1080 ESC+"Z"+n1+n2 Quadruple density 240 2160 ESC+"*"+m+n1+n2 8-Pin Mode Selection: m=0 (Standard) 60 540 m=1 (Double) 120 1080 m=2 (Double speed,Double density) 120 1080 m=3 (Quadruple density) 240 2160 m=4 (CRT I) 80 720 m=6 (CRT II) 90 810 24-Pin Mode Selection: m=32 (Standard) 60 540 m=33 (Double) 120 1080 m=38 (CRT III) 90 810 m=39 (Triple) 180 1620 m=40 (Hex) 360 3240 ESC+"["+"g"+n1+n2+m 8-Pin Mode Selection: m=0 (Standard) 60 540 m=1 (Double) 120 1080 m=2 (Double speed,Double density) 120 1080 m=3 (Quadruple density) 240 2160 24-Pin Mode Selection: m=8 (Standard) 60 540 m=9 (Double) 120 1080 m=11 (Triple) 180 1620 m=12 (Hex) 360 3240 2. 8-Pin Bit Image Mode This printer has 24 pins in the printhead. The distance between the centers of adjacent pins is 1/180inch (0.14 mm), and the diameter of each pin is 1/127 inch (0.2 mm). In 8-pin bit image mode the 24 pins of the printhead are grouped as follows. One byte is sent to the printer for each column to be printed. Each bit of that byte represents an individual pin-block. By summing the powers of two corresponding to each pin-block you wish to fire, you will obtain a numerical value for the column in question. By sending a string of bytes, numerical values for each column on a line are input and processed. The result is one line of graphics. Pin-block Pin-block Code Pins Pin No. Pin-block Code Pin-block __________________________ __________________________ O 1 2^7=128 1 1 2^7=128 O 2 __________________________ __________________________ O 3 ________________1_and_2___ O 4 2^6=64 2 2 2^6=64 O 5 __________________________ __________________________ O 6 2^5=32 3 O 7 __________________________ 3 2^5=32 O 8 ________________3_and_4___ __________________________ O 9 2^4=16 4 O 10 __________________________ 4 2^4=16 O 11 2^3=8 5 __________________________ O 12 __________________________ O 13 ________________5_and_6___ 5 2^3=8 O 14 2^2=4 6 __________________________ O 15 __________________________ O 16 2^1=2 7 6 2^2=4 O 17 __________________________ __________________________ O 18 ________________7_and_8___ O 19 2^0=1 8 7 2^1=2 O 20 __________________________ __________________________ O 21 Not used O 22 Not used 8 2^0=1 O 23 Not used __________________________ O 24 Not used Epson mode and IBM mode IBM mode (Alternate Graphic Mode: ON) (Alternate Graphic Mode: OFF) Note: In the Epson mode or IBM mode with Alternate Graphic Mode (AGM) set to ON through the initial setup disk, 8-pin bit image graphics is printed by using all 24 pins in the printhead. In IBM mode with Alternate Graphic Mode (AGM) set to OFF, 8-pin bit image graphics is printed by using upper 20 pins in the printhead. As an example, suppose you want to fire pin-blocks 1, 2, 5 and 8 simultaneously. Then you compute the following sum: Input code = Pin-block 1 code + Pin-block 2 code + Pin-block 5 code + Pin-block 8 code = 2^7 + 2^6 + 2^3 + 2^0 = 128 + 64 + 8 + 1 = 201 Thus, the value 201 is entered in the CHR$ function in order to print a single column of dots resulting from firing pin-blocks 1, 2, 5, and 8. For our final example, refer to the standard density designation in Table above. This setting is given by ESC+"K"+n1+n2. To print image graphics, you must specify to the printer how many columns are to be used. This is done by finding values for n1 and n2, as follows: Divide the total number of columns you select, by 256 (max # of columns). The result is n1 and the remainder is n2. n1 = 100 MOD 256 = 100 n2 = 100 / 256 = 0 so, n2=0 and n1=100 Our control code ESC+"K"+n1+n2 now translates into: LPRINT CHR$(27)+"K"+CHR$(100)+CHR$(0); If you use ESC+"["+"g"+n1+n2+m in IBM mode, compute the values of n1 and n2 as follows: n2 x 256 + n1 = Column x Bytes + 1 m=0, 1, 2, 3: Bytes=1 m=8, 9, 11, 12: Bytes=3 For example, 24-pin bit image of 100 column is: n2 x 256 + n1 = 100 x 3 + 1 = 301 so, n2=1 and n1=45. For example, you select 100 columns and double density (m=9), so your bytes are equal to 3. Now, use the following equation: 100 columns x 3 bytes + 1 = 301 (always add 1). Using the equation from above, we have: n1 = 301 MOD 256 = 45 n2 = 301 / 256 = 1 so, n2=1 and n1=45 A programming example is as follows: 10 REM STANDARD DENSITY 20 WIDTH "LPT1:",255 30 OPEN "LPT1:" AS #1 40 PRINT #1,CHR$(27)+"3"+CHR$(24); 50 PRINT #1,CHR$(27)+"K"+CHR$(100)+CHR$(0); 60 FOR I=1 TO 5 70 PRINT #1,CHR$(1)+CHR$(2)+CHR$(4)+CHR$(8)+CHR$(16); 80 PRINT #1,CHR$(32)+CHR$(64)+CHR$(128)+CHR$(64)+CHR$(128); 90 PRINT #1,CHR$(64)+CHR$(128)+CHR$(64)+CHR$(128)+CHR$(64); 100 PRINT #1,CHR$(32)+CHR$(16)+CHR$(8)+CHR$(4)+CHR$(2); 110 NEXT I 120 PRINT #1,CHR$(13)+CHR$(10); 130 PRINT #1,CHR$(27)+"K"+CHR$(100)+CHR$(0); 140 FOR I=1 TO 5 150 PRINT #1,CHR$(128)+CHR$(64)+CHR$(32)+CHR$(16)+CHR$(8); 160 PRINT #1,CHR$(4)+CHR$(2)+CHR$(1)+CHR$(2)+CHR$(1); 170 PRINT #1,CHR$(2)+CHR$(1)+CHR$(2)+CHR$(1)+CHR$(2); 180 PRINT #1,CHR$(4)+CHR$(8)+CHR$(16)+CHR$(32)+CHR$(64); 190 NEXT I 200 PRINT #1,CHR$(13)+CHR$(10); 210 CLOSE 220 END Note: Line 20 and 30 are necessary for the proper execution of this program on many IBM-compatible computers. Line 40 is necessary to set the line feed for printing in the bit image mode. In the IBM mode, when AGM is set to OFF through the initial setup disk, it will amount to 24/216inch. 3. 24-Pin Bit Image Mode In the 24-pin bit image mode, all 24-pins of the printhead may be fired. In this mode, 3 data bytes must be sent to the printer for each column. The 24 pins in the printhead are divided into three portions, the upper 8 pins, middle 8 pins and lower 8 pins. As an example, suppose you want to fire pins 1, 2, 5, 8, 9, 11, 12, 21 and 24 simultaneously. Then you compute the following three values: Byte 1: Input code=Pin 1 code+Pin 2 code+Pin 5 code+Pin 8 code =2^7 + 2^6 + 2^3 + 2^0 = 128 + 64 + 8 + 1 = 201 Byte 2: Input code=Pin 9 code+Pin 11 code+Pin 12 code =2^7 + 2^5 + 2^4 = 128 + 32 + 16 = 176 Byte 3: Input code=Pin 21 code+Pin 24 code =2^3 + 2^0 = 8 + 1 = 9 Thus, the three bytes for a single column of dots are entered as CHR$(201);CHR$(176);CHR$(9); Refer to the 24-pin standard density command. This setting is given by ESC+"*"+m+n1+n2, where m=32. Suppose you wish to print 100 columns of dots, where every column fires pins 1, 2, 5, 8, 9, 11, 12, 21 and 24 as above. As in the 8-pin example, n1=100 and n2=0. Our command ESC+"*"+m+n1+n2 now translates into LPRINT CHR$(27)+"*"+CHR$(32)+CHR$(100)+CHR$(0); If we incorporate this information into a program, we might have the following: 10 REM 24 PIN STANDARD DENSITY 20 WIDTH "LPT1:",255 30 OPEN "LPT1:" AS #1 40 PRINT #1,CHR$(27)+"*"+CHR$(32)+CHR$(100)+CHR$(0); 50 FOR I=1 TO 100 60 PRINT #1,CHR$(201); 70 PRINT #1,CHR$(176); 80 PRINT #1,CHR$(9); 90 NEXT I 100 PRINT #1,CHR$(13)+CHR$(10); 110 CLOSE 120 END Note: If in IBM mode, AGM must be set to ON. If you use ESC+"["+"g"+n1+n2+m in IBM mode, you must change line 40 as follows: 40 PRINT #1, CHR$(27)+"["+"g"+CHR$(45)+CHR$(1)+CHR$(8); Bit Image Graphics prints uni-directional for high precision printing. For high speed printing set the printer to bi-directional printing through initial setup mode or through the initial setup disk. Graphics mode is released immediately following the printing of all bit image data. Printing will return to text mode. Bit image data is not affected by MSB control commands. 4. Alternate Graphic Mode (AGM) There are two methods of graphic printing in IBM mode. You can set them through Alternate Graphic Mode setting through the initial setup disk. When AGM is set to OFF, 8-pin bit image graphic is printed by using pins 1 through 20. When AGM is set to ON, the printing of 8-pin graphic mode is the same as in Epson mode. Also, graphic printing command, ESC+"*" in Epson mode is effective in this mode. Therefore, you can use the same command as in Epson mode. The following table shows commands affected by AGM mode. AGM ON AGM OFF ESC+"K"+n1+n2 use 24 pin use 20 pin ESC+"L"+n1+n2 use 24 pin use 20 pin ESC+"Y"+n1+n2 use 24 pin use 20 pin ESC+"Z"+n1+n2 use 24 pin use 20 pin ESC+"["+"g"+ 8-pin mode use 24 pin use 20 pin n1+n2+m 24-pin mode use 24 pin use 24 pin ESC+"3"+n based on 1/180 inch based on 1/216 inch ESC+"A"+n based on 1/60 inch based on 1/72 inch ESC+"J"+n based on 1/180 inch based on 1/216 inch <8-PIN STANDARD DENSITY GRAPHICS> Sets standard density graphics mode [60 dots per inch (25.4 mm)]. Name: ESC K n1 n2 Data Dec.: 27 75 n1 n2 Data Hex.: 1B 4B n1 n2 Data Comment: *Refer to "BIT IMAGE(GRAPHICS)". <8-PIN DOUBLE DENSITY GRAPHICS> Sets double density graphics mode [120 dots per inch (25.4 mm)]. Name: ESC L n1 n2 Data Dec.: 27 76 n1 n2 Data Hex.: 1B 4C n1 n2 Data Comment: *Refer to "BIT IMAGE(GRAPHICS)". <8-PIN DOUBLE SPEED/DOUBLE DENSITY GRAPHICS> Sets double speed double density graphics mode [120 dots per inch (25.4 mm)]. Name: ESC Y n1 n2 Data Dec.: 27 89 n1 n2 Data Hex.: 1B 59 n1 n2 Data Comments: *Horizontal adjacent dots cannot be printed. *Refer to "BIT IMAGE(GRAPHICS)". <8-PIN QUADRUPLE DENSITY GRAPHICS> Sets quadruple density graphics mode [240 dots per inch (25.4 mm)]. Name: ESC Z n1 n2 Data Dec.: 27 90 n1 n2 Data Hex.: 1B 5A n1 n2 Data Comments: *Horizontal adjacent dots cannot be printed. *Refer to "BIT IMAGE(GRAPHICS)". Selects one of the 8-pin or 24-pin bit image graphic modes. Name: ESC * m n1 n2 Data Dec.: 27 42 m n1 n2 Data Hex.: 1B 2A m n1 n2 Data Comments: *The following table illustrates the various modes based upon the values of m. ~ m pin dpi dpl~ ~ ------------------------------------------------~ ~ 0 8 60 540 Standard Density~ ~ 1 8 120 1080 Double Density~ ~ 2 8 120 1080 Double Speed, Double Density~ ~ 3 8 240 2160 Quadruple Density~ ~ 4 8 80 720 CRT I~ ~ 6 8 90 810 CRT II~ ~ 32 24 60 540 Standard Density~ ~ 33 24 120 1080 Double Density~ ~ 38 24 90 810 CRT III~ ~ 39 24 180 1620 Triple Density~ ~ 40 24 360 3240 Hex Density~ ~ ------------------------------------------------~ *When m=2, 3 or 40, horizontal adjacent dots cannot be printed. *The values n1 and n2 indicate the number of graphic columns to be printed. *Refer to "BIT IMAGE(GRAPHICS)". 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 section for values of m. *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 <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 Sets paper feed amount to n/60 inch. Name: ESC A n (~n = 0 to 127~)DEC Dec.: 27 65 n Hex.: 1B 41 n Sets programmable paper feed amount to n/180 inch. Name: ESC 3 n Dec.: 27 51 n Hex.: 1B 33 n Comments: *n/180 inch paper feed is valid for ~n = 0 to 255~. Sets paper feed amount to n/360 inch. Name: ESC + n (~n = 0 to 255~)DEC Dec.: 27 43 n Hex.: 1B 2B n Feeds paper to next line position after printing data in the line buffer. Name: LF Dec.: 10 Hex.: 0A Comments: *The amount of spacing generated by LF is determined by the paper feed commands or the Function mode setting. *When the new line position falls within the perforation skip area, the paper advances to the next top of form position.
Feeds paper to next top of form position after printing data in the line buffer. Name: FF Dec.: 12 Hex.: 0C Comment: *The amount of spacing generated by FF is determined by the page length commands or the Function mode setting. Feeds paper n/180 inch after printing data in the line buffer. Name: ESC J n (~n = 0 to 255~)DEC Dec.: 27 74 n Hex.: 1B 4A n Prints data in the line buffer and feeds the paper n/180 inch in the reverse direction. Name: ESC j n (~n = 0 to 255~)DEC Dec.: 27 106 n Hex.: 1B 6A n Note: *Reverse paper feed cannot be executed in the area within 3.6inches (91.4 mm) of the bottom perforation. Additionally, the perforation should not be included in the area of reverse paper feed. *In the pull tractor mode, this command will not reverse feed paper correctly and resulting printout may not be correct. Sets page length in inches. Name: ESC C 0 n (~n = 0 to 22~)DEC Dec.: 27 67 0 n Hex.: 1B 43 00 n Comments: *Upon receipt of ESC+C+0+n, the present line position becomes the top of form position. *ESC+C+0+n releases the skip perforation settings. *The page length does not change even if the paper feed amount is changed. *The terms "form" and "page" are interchangeable. Sets page length in number of lines. Name: ESC C n (~n = 1 to 127~)DEC Dec.: 27 67 n Hex.: 1B 43 n Comments: *Upon receipt of ESC+C+n, the present line position becomes the top of form position. *If n=0, page length returns to the inch designation. *ESC+C+n releases the skip perforation settings. *The page length does not change even if the paper feed amount is changed *The terms "form" and "page" are interchangeable. Sets position of left margin. Name: ESC l n Dec.: 27 108 n Hex.: 1B 6C n Comments: *The following values of n can be used: 8" print line -------------------------------------- ~Pica print n = 0 to 78~ ~Elite print n = 0 to 93~ ~Micron print n = 0 to 117~ ~Compressed print n = 0 to 133~ *If the value of n exceeds the right margin value, ESC+l+n is ignored. *Setting the left margin clears all data in the line buffer. *In proportional spacing, the value of n is based on 10 CPI. *Once the left margin position is set, a change in the character mode will not alter this left margin setting. Sets position of right margin. Name: ESC Q n Dec.: 27 81 n Hex.: 1B 51 n Comments: The following values of n can be used: 8" print line -------------------------------------- ~Pica print n = 2 to 80 ~ ~Elite print n = 3 to 96 ~ ~Micron print n = 3 to 120~ ~Compressed print n = 4 to 137~ *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. Sets skip perforation. Set: Name: ESC N n (~n = 1 to 127~)DEC Dec.: 27 78 n Hex.: 1B 4E n Release: Name: ESC O Dec.: 27 79 Hex.: 1B 4F Comments: *The value of n specifies the number of lines (or n times the current line spacing amount) to be skipped at the bottom of the page. *If n>128, the value is processed as n-128. If n=128 the command is ignored. *The skip perforation amount does not change even if the paper feed amount is changed following a skip perforation designation. *The skip perforation setting is released upon receipt of the page length designation command. *The skip perforation command overrides the front panel Bottom margin setting. Sets horizontal tabulations to specified values. Set: Name: ESC D n1 n2...nx 0 (~x = 1 to 32~) 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 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. Sets vertical tabulation to specified values. Set: Name: ESC B n1 n2...nx 0 (~x = 1 to 16~) 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 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. 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. 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. 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. Prints data in the line buffer and returns the printhead to the left margin position. Name: CR Dec.: 13 Hex.: 0D Comments: *Certain computers issue an automatic line feed with a carriage return. Check your computer manual for details. *When automatic LF is set to ON through the initial setup mode or through initial setup disk, a LF is executed whenever a CR code is executed. Sets uni-directional (left to right) printing mode for one line only. Name: ESC < Dec.: 27 60 Hex.: 1B 3C Sets uni-directional (left to right) printing mode. Name: ESC U n Dec.: 27 85 n Hex.: 1B 55 n Comment: *The following values of n can be used: ~n=0 : Release~ ~n=1 : Set~ Sets printing to half speed. Name: ESC s n Dec.: 27 115 n Hex.: 1B 73 n Comment: *The following values of n can be used: ~n=0 : Release~ ~n=1 : Set~ *Half speed printing can be set only in the draft pica, draft elite, standard density image, double-speed double-density image, CRT I image and CRT II image modes. 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 ~m = n1 + (256 * n2)~ Moves the print position left or right to a relative horizontal position. Name: ESC \ n1 n2 Dec.: 27 92 n1 n2 Hex.: 1B 5C n1 n2 Comments: *This command moves the print position n/120 (in draft mode) or n/180 (in LQ mode) of an inch from current position. *To calculate n1 and n2 first determine the total increments of 1/120 (in draft mode) or n/180 (in LQ mode) of an inch to move the print position from its current position. *If the head movement will be to the left subtract this number from 65536. *To move n/120 (draft) or n/180 (LQ) of an inch to right: m=n To move n/120 (draft) or n/180 (LQ) of an inch to left: m=65536-n ~m = n1 + (256 * n2)~ *If the resulting movement would place the printhead outside current margins, the command is ignored. Clears all data in the line buffer. Name: CAN Dec.: 24 Hex.: 18 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. 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. Deletes the last character stored in the line buffer. Name: DEL Dec.: 127 Hex.: 7F Comment: *Only text characters may be deleted. Bit image data, spacing generated by consecutive TABs, and commands cannot be deleted. 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+#. 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+#. Sets printer to receive 8th bit as is. Name: ESC # Dec.: 27 35 Hex.: 1B 23 Comments: *This setting has no effect on bit image data. *Making Maximum Use of the Buffer: Epson mode: 18K (18,432) bytes are available and can be divided between draft and LQ characters in any combination, subject to hexadecimal address and buffer limits. Draft letters require 39 bytes maximum and LQ letters require 114 maximum. To determine if the desired combination will fit, use the formula: (# of draft characters x 39)+(# of LQ characters x 114) <= 18,432 For example: 120 draft and 120 LQ are desired. (120 x 39)+(120 x 114) = 4,680+13,680 = 18,360 Therefore this combination will fit. Because no more than 256 addresses can be identified in 1 byte (00h-FFh), 256 is the maximum number of draft characters that can be defined. The maximum number of LQ characters that can be loaded is 161. *Designing Download Characters 1. Draft Font To download a character you must first design the character. A draft font download character uses 9 columns and 24 rows of dots. Since a given column contains 24 dots, each column is divided into 3 portions, upper 8, middle 8 and lower 8 dots. Column 1 is labeled P1H for the upper 8 dots, P1M for the middle 8 and P1L for the lower 8 dots. Similarly, column 9 is labeled P9H for the upper 8 dots, P9M for the middle 8 and P9L for the lower 8 dots. Column 10, 11 and 12 are always set to zero, thus we are working with P1H through P9L. In the matrix below, the circles represent pins that may be fired. You may darken any circle, provided no two adjacent horizontal circles are filled in. Once you have designed the character, you must quantify each dot column, P1H-P9H, by summing the powers of two represented by each dot. Consider the design of the Greek character gamma. Character body Right space columns _____________ <---------------><----> 2^7 (128) . . . . . . . . . . . . 2^6 (64) . . . . . . . . . . . . 2^5 (32) . . . . . . . . . . . . Upper 2^4 (16) . . . . . . . . . . . . 8 dots (H) 2^3 (8) . . . . . . . . . . . . 2^2 (4) . . . . . . . . . . . . 2^1 (2) . . . . . . . . . . . . _____________2^0 (1) . . O . . . . . O . . . 2^7 (128) . O . O . . . . . . . . 2^6 (64) . . . . O . . . O . . . 2^5 (32) . . . . . . . . . . . . Middle 2^4 (16) . . . . . O . O . . . . 8 dots (M) 2^3 (8) . . . . . . . . . . . . 2^2 (4) . . . . . . O . . . . . 2^1 (2) . . . . . O . . . . . . _____________2^0 (1) . . . . O . O . . . . . 2^7 (128) . . . . . . . . . . . . 2^6 (64) . . . . O . O . . . . . 2^5 (32) . . . . . . . . . . . . Lower 2^4 (16) . . . . . O . . . . . . 8 dots (L) 2^3 (8) . . . . . . . . . . . . 2^2 (4) . . . . . . . . . . . . 2^1 (2) . . . . . . . . . . . . _____________2^0 (1) . . . . . . . . . . . . : : : : : : : : : P1H=0, P1M=0, P1L=0 ..........: : : : : : : : : : : : : : : : : P2H=0, P2M=128, P2L=0 ............: : : : : : : : : : : : : : : P3H=1, P3M=0, P3L=0 ..............: : : : : : : : : : : : : P4H=0, P4M=128, P4L=0 ................: : : : : : : : : : : P5H=0, P5M=65, P5L=64 ..................: : : : : : : : : P6H=0, P6M=18, P6L=16 ....................: : : : : : : P7H=0, P7M=5, P7L=64 ......................: : : : : P8H=0, P8M=16, P8L=0 ........................: : : P9H=1, P9M=64, P9L=0 ..........................: 2. LQ Font A LQ font download character uses 36 columns and 24 rows of dots. Designing and storing fonts can be performed in the same way as with draft fonts. Here, consider the design of the one-eighth-note character: Left space Character body Right space _____________ <----><------------------><--------> 2^7 (128) .................................... 2^6 (64) .................................... 2^5 (32) ................O................... Upper 2^4 (16) ................O................... 8 dots (H) 2^3 (8) ................O.O................. 2^2 (4) ................O.O.O............... 2^1 (2) ................O.O.O.O............. _____________2^0 (1) ................O.....O.O........... 2^7 (128) ................O.......O........... 2^6 (64) ................O........O.......... 2^5 (32) ................O........O.......... Middle 2^4 (16) ................O........O.......... 8 dots (M) 2^3 (8) ................O........O.......... 2^2 (4) ..........O.O...O.......O........... 2^1 (2) ........O.O.O.O.O................... _____________2^0 (1) .......O.O.O.O.O.................... 2^7 (128) ......O.O.O.O.O.O................... 2^6 (64) .......O.O.O.O.O.................... 2^5 (32) ........O.O.O.O..................... Lower 2^4 (16) ..........O.O....................... 8 dots (L) 2^3 (8) .................................... 2^2 (4) .................................... 2^1 (2) .................................... _____________2^0 (1) .................................... :::::::::::::::::::: P7H=0, P7M=0, P7L=128 ...........:::::::::::::::::::: ::::::::::::::::::: P8H=0, P8M=1, P8L=64 ............::::::::::::::::::: :::::::::::::::::: P9H=0, P9M=2, P9L=160 .............:::::::::::::::::: ::::::::::::::::: P10H=0, P10M=1, P10L=64 ..............::::::::::::::::: :::::::::::::::: P11H=0, P11M=6, P11L=176 ...............:::::::::::::::: ::::::::::::::: P12H=0, P12M=1, P12L=64 ................::::::::::::::: :::::::::::::: P13H=0, P13M=6, P13L=176 ...............:::::::::::::: ::::::::::::: P14H=0, P14M=1, P14L=64 .................::::::::::::: :::::::::::: P15H=0, P15M=2, P15L=160 ..................:::::::::::: ::::::::::: P16H=0, P16M=1, P16L=64 ...................::::::::::: :::::::::: P17H=63, P17M=254, P17L=128 ....................:::::::::: ::::::::: P18H=0, P18M=0, P18L=0 ......................::::::::: :::::::: P19H=14, P19M=0, P19L=0 .......................:::::::: ::::::: P20H=0, P20M=0, P20L=0 .........................::::::: :::::: P21H=6, P21M=0, P21L=0 .........................:::::: ::::: P22H=0, P22M=0, P22L=0 ...........................::::: :::: P23H=3, P23M=0, P23L=0 ...........................:::: ::: P24H=0, P24M=0, P24L=0 ............................::: :: P25H=1, P25M=132, P25L=0 .............................:: : P26H=0, P26M=120, P26L=0 ..............................: *Entering Download Data Epson mode: 1. Draft Font Download command in the Epson mode is: ESC+"&"+0+n+m+d0+d1+d2+DATA Input format for a download command is: LPRINT CHR$(27)+"&"+CHR$(0)+CHR$(n)+CHR$(m)+ CHR$(d0)+CHR$(d1)+CHR$(d2)+DATA Programming example for the Greek character gamma is as follows: 10 REM Draft Download Character 20 WIDTH "LPT1:",255 30 OPEN "LPT1:" AS #1 40 PRINT #1,CHR$(27)+"x0"; 50 PRINT #1,CHR$(27)+":"+CHR$(0)+CHR$(0)+CHR$(0); 60 PRINT #1,CHR$(27)+"&"+CHR$(0)+CHR$(65)+CHR$(65); 70 PRINT #1,CHR$(1)+CHR$(8)+CHR$(3); 80 PRINT #1,CHR$(0)+CHR$(128)+CHR$(0); 90 PRINT #1,CHR$(1)+CHR$(0)+CHR$(0); 100 PRINT #1,CHR$(0)+CHR$(128)+CHR$(0); 110 PRINT #1,CHR$(0)+CHR$(65)+CHR$(64); 120 PRINT #1,CHR$(0)+CHR$(18)+CHR$(16); 130 PRINT #1,CHR$(0)+CHR$(5)+CHR$(64); 140 PRINT #1,CHR$(0)+CHR$(16)+CHR$(0); 150 PRINT #1,CHR$(1)+CHR$(64)+CHR$(0); 160 REM Download Character Print 170 PRINT #1,CHR$(27)+"%"+CHR$(1); 180 PRINT #1,"A A A A A A A A A A";CHR$(10); 190 PRINT #1,CHR$(27)+"%"+CHR$(0); 200 END First determine where in RAM the character(s) should be stored. The variables "n" and "m" are used for this purpose. The value specified for n indicates the location into which the first download character will be stored. The value specified for "m" indicates the location into which the last download character will be stored. If you are storing a single character, then n=m. Next define the value of "d0", "d1" and "d2", which specify attribute information. The attribute information includes the following: d0=number of space dot columns to the left of the character body d1=number of character body dot columns d2=number of space dot columns to the right of the character body In our sample program, we created a gamma character. This character consists of 1 left space dot column, 8 body dot columns and 3 right space dot columns. Therefore, d0=1, d1=8 and d2=3. In general, d1 cannot exceed 9 and d0+d1+d2 cannot exceed 12. Note: Program line 40 is necessary for downloading the draft font and designates draft printing. Program lines 80-150 use the eight values P2H-P9L to define the shape and size of the gamma. Program line 170 selects download character generator. After this selection, by printing the download code [in this example, CHR$(65)="A"] the downloaded character is printed. Two horizontal adjacent columns cannot be printed in either draft or LQ mode. 2. LQ Font Input format is the same as with draft fonts. Programming example for the one-eighth-note character is as follows: 10 REM Define Download Letter Quality Character 20 WIDTH "LPT1:",255 30 OPEN "LPT1:" AS #1 40 PRINT #1,CHR$(27)+"x1"; 50 PRINT #1,CHR$(27)+":"+CHR$(0)+CHR$(0)+CHR$(0); 60 PRINT #1,CHR$(27)+"&"+CHR$(0)+CHR$(65)+CHR$(65); 70 PRINT #1,CHR$(6)+CHR$(20)+CHR$(10); 80 PRINT #1,CHR$(0)+CHR$(0)+CHR$(128); 90 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64); 100 PRINT #1,CHR$(0)+CHR$(2)+CHR$(160); 110 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64); 120 PRINT #1,CHR$(0)+CHR$(6)+CHR$(176); 130 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64); 140 PRINT #1,CHR$(0)+CHR$(6)+CHR$(176); 150 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64); 160 PRINT #1,CHR$(0)+CHR$(2)+CHR$(160); 170 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64); 180 PRINT #1,CHR$(63)+CHR$(254)+CHR$(128); 190 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0); 200 PRINT #1,CHR$(14)+CHR$(0)+CHR$(0); 210 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0); 220 PRINT #1,CHR$(6)+CHR$(0)+CHR$(0); 230 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0); 240 PRINT #1,CHR$(3)+CHR$(0)+CHR$(0); 250 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0); 260 PRINT #1,CHR$(1)+CHR$(132)+CHR$(0); 270 PRINT #1,CHR$(0)+CHR$(120)+CHR$(0); 280 REM Download Character Print 290 PRINT #1,CHR$(27)+"%"+CHR$(1); 300 PRINT #1,"A A A A A A A A A A";CHR$(10); 310 PRINT #1,CHR$(27)+"%"+CHR$(0); 320 END The number of printable columns for characters downloaded in the letter quality font is as follows: d0+d1+d2 LQ 10 CPI 36 LQ 12 CPI 30 Proportional Spacing 42 *Print Mode Combination: Draft Download characters can be printed only when the FONT is set to Draft through software commands or the Function mode. Letter quality download characters can be printed only when the FONT is set to Bold PS, Courier, Orator, Prestige, Roman, Sans Serif, Script or OCR-B through the Function mode or through software commands. Defines download characters into specified address locations in RAM. Name: ESC & 0 n m d0 d1 d2 Data Dec.: 27 38 0 n m d0 d1 d2 Data Hex.: 1B 26 00 n m d0 d1 d2 Data Comments: *The values ~n and m are the ASCII address~ locations of the ~first and last characters~ being defined.~ ~ *The values of d0, d1 and d2 define ~the character cell~. *~d0=Left Space~ ~d1=Body~ ~d2=Right Space~ *The values of d0,d1 and d2 vary with pitch as follows: d1 d0+d1+d2 (total) Draft 9 12 LQ 10 CPI 29 36 LQ 12 CPI 23 30 LQ 15 CPI 15 24 PS 37 42 *This command is operational only when DOWNLOAD is set to ON through the Function mode or setup disk. *Draft and Letter Quality (LQ) fonts can be downloaded simultaneously. Draft download characters are printed when the printer is in draft mode. LQ characters are printed when the printer is in LQ mode. Name: ESC % n Dec.: 27 37 n Hex.: 1B 25 n Comments: *The following values of n can be used. ~n=0: Select ROM Character Generator (CG)~ ~n=1: Select download CG~ Copies both draft and LQ internal ROM CG font into the downloadable font area. Name: ESC : 0 n 0 Dec.: 27 58 0 n 0 Hex.: 1B 3A 00 n 00 Comments: *The value of n specifies the LQ font to download. ~n=0 : Roman~ ~n=1 : Sans Serif~ ~n=2 : Courier~ ~n=3 : Prestige~ ~n=4 : Script~ ~n=5 : OCR-B~ ~n=6 : Bold PS~ *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. Initializes printer, causing data in the line buffer, but not in the receive buffer, to be cleared. Name: ESC @ Dec.: 27 64 Hex.: 1B 40 Selects Cut Sheet Feeder (CSF) mode ON/OFF. Name: ESC EM n Dec.: 27 25 n Hex.: 1B 19 n Comments: *The following values of n can be used. ~n="R": Eject a sheet~ ~n="0": Cut Sheet Feeder mode is OFF~ ~n="4": Cut Sheet Feeder mode is ON ~ Note: *If the Cut Sheet Feeder mode is set to ON without installing the CSF, the paper will not feed correctly. Selects color printing. SET : NAME: ESC r n Hex.: 1B 72 n Dec.: 27 114 n Comment: *The following values of n can be used: ~n=0 Black~ ~n=1 Red(Magenta)~ ~n=2 Blue(Cyan)~ ~n=3 Violet~ ~n=4 Yellow~ ~n=5 Orange~ ~n=6 Green~ Notes: *This command is operational only when the color kit (KX-PCK12) is installed. *Print yellow first when overlapping colors. < Epson Mode (ASCII) > Normal Characters Script Characters Hex. 1 2 3 4 5 6 7 8 Hex. 1 2 3 4 5 6 7 8 0 - - 30 30 36 36 18 36 0 - - 20 36 36 36 12 24 1 - - 18 30 36 36 30 36 1 - - 12 36 36 36 20 24 2 - - 30 30 36 36 36 30 2 - - 20 36 36 36 24 20 3 - - 30 30 36 36 30 30 3 - - 20 36 36 36 20 20 4 - - 30 30 36 36 36 24 4 - - 20 36 36 36 24 16 5 - - 36 30 36 42 30 36 5 - - 24 36 36 36 20 24 6 - - 36 30 36 36 24 36 6 - - 24 36 36 36 16 24 7 - - 18 30 36 42 36 42 7 - - 12 36 36 36 24 28 8 - - 24 30 36 36 36 30 8 - - 16 36 36 36 24 20 9 - - 24 30 24 36 18 36 9 - - 16 36 36 36 12 24 A - - 30 18 30 30 24 30 A - - 20 36 36 36 16 20 B - - 30 18 36 24 36 24 B - - 20 36 36 36 24 16 C - - 18 30 36 30 18 18 C - - 12 36 36 36 12 12 D - - 30 30 42 24 42 24 D - - 20 36 36 36 28 16 E - - 18 30 36 30 36 30 E - - 12 36 36 36 24 20 F - - 30 30 36 30 30 30 F - - 20 36 36 36 20 20 Unit:1/360 inch (0.07 mm) < Epson Mode (USA Normal) > Normal Characters Script Characters Hex. 8 9 A B C D E F Hex. 8 9 A B C D E F 0 36 36 30 30 30 30 30 30 0 24 24 20 30 30 30 20 20 1 36 42 18 30 30 30 30 30 1 24 28 12 30 30 30 20 20 2 30 42 30 30 30 30 30 30 2 20 28 20 30 30 30 20 20 3 30 30 36 30 30 30 30 30 3 20 20 24 30 30 30 20 20 4 30 30 36 30 30 30 30 30 4 20 20 24 30 30 30 20 30 5 30 30 36 30 30 30 30 30 5 20 20 24 30 30 30 20 30 6 30 36 30 30 30 30 30 30 6 20 24 20 30 30 30 20 20 7 30 36 30 30 30 30 30 30 7 20 24 20 30 30 30 20 20 8 30 36 30 30 30 30 30 30 8 20 24 20 30 30 30 20 20 9 30 36 30 30 30 30 30 30 9 20 24 20 30 30 30 20 20 A 30 42 30 30 30 30 30 30 A 20 28 20 30 30 30 20 20 B 18 30 30 30 30 30 30 30 B 12 20 20 30 30 30 20 20 C 18 30 30 30 30 30 30 30 C 12 20 20 30 30 30 20 20 D 18 36 30 30 30 30 30 30 D 12 24 20 30 30 30 20 20 E 36 42 30 30 30 30 30 30 E 24 28 20 30 30 30 20 20 F 36 30 30 30 30 30 30 30 F 24 20 20 30 30 30 20 20 Unit:1/360 inch (0.07 mm) < Epson Mode (Multilingual Normal) > Normal Characters Script Characters Hex. 8 9 A B C D E F Hex. 8 9 A B C D E F 0 36 36 30 30 30 36 36 30 0 24 24 20 30 30 24 24 20 1 36 42 18 30 30 36 30 30 1 24 28 12 30 30 24 20 20 2 30 42 30 30 30 36 36 30 2 20 28 20 30 30 24 24 20 3 30 30 36 30 30 36 36 30 3 20 20 24 30 30 24 24 20 4 30 30 36 30 30 36 30 30 4 20 20 24 30 30 24 20 20 5 30 30 36 36 30 18 36 30 5 20 20 24 24 30 12 24 20 6 30 36 30 36 30 24 30 30 6 20 24 20 24 20 16 20 20 7 30 36 30 36 36 24 36 30 7 20 24 20 24 24 16 24 20 8 30 36 30 36 30 24 36 30 8 20 24 20 24 30 16 24 20 9 30 36 36 30 30 30 42 30 9 20 24 24 30 30 30 28 20 A 30 42 30 30 30 30 42 30 A 20 28 20 30 30 30 28 20 B 18 30 30 30 30 30 42 24 B 12 20 20 30 30 30 28 16 C 18 30 30 30 30 30 36 24 C 12 20 20 30 30 30 24 16 D 18 36 30 30 30 18 36 30 D 12 24 20 20 30 12 24 20 E 36 30 30 36 30 24 30 30 E 24 20 20 24 30 16 20 20 F 36 30 30 30 30 30 18 30 F 24 20 20 30 20 30 12 20 Unit:1/360 inch (0.07 mm) < Epson Mode (Portugal Normal) > Normal Characters Script Characters Hex. 8 9 A B C D E F Hex. 8 9 A B C D E F 0 36 36 30 30 30 30 30 30 0 24 24 20 30 30 30 20 20 1 36 36 18 30 30 30 30 30 1 24 24 12 30 30 30 20 20 2 30 36 30 30 30 30 30 30 2 20 24 20 30 30 30 20 20 3 30 30 36 30 30 30 30 30 3 20 20 24 30 30 30 20 20 4 30 30 36 30 30 30 30 30 4 20 20 24 30 30 30 20 30 5 30 30 36 30 30 30 30 30 5 20 20 24 30 30 30 20 30 6 36 42 30 30 30 30 30 30 6 24 28 20 30 30 30 20 20 7 30 36 30 30 30 30 30 30 7 20 24 20 30 30 30 20 20 8 30 24 30 30 30 30 30 30 8 20 16 20 30 30 30 20 20 9 36 36 36 30 30 30 30 30 9 24 24 24 30 30 30 20 20 A 30 42 30 30 30 30 30 30 A 20 28 20 30 30 30 20 20 B 24 30 30 30 30 30 30 30 B 16 20 20 30 30 30 20 20 C 36 30 30 30 30 30 30 30 C 24 20 20 30 30 30 20 20 D 18 42 30 30 30 30 30 30 D 12 28 20 30 30 30 20 20 E 36 42 30 30 30 30 30 30 E 24 28 20 30 30 30 20 20 F 36 36 30 30 30 30 30 30 F 24 24 20 30 30 30 20 20 Unit:1/360 inch (0.07 mm) < Epson Mode (Canada-French Normal) > Normal Characters Script Characters Hex. 8 9 A B C D E F Hex. 8 9 A B C D E F 0 36 36 18 30 30 30 30 30 0 24 24 12 30 30 30 20 20 1 36 36 18 30 30 30 30 30 1 24 24 12 30 30 30 20 20 2 30 36 30 30 30 30 30 30 2 20 24 20 30 30 30 20 20 3 30 30 36 30 30 30 30 30 3 20 20 24 30 30 30 20 20 4 36 36 30 30 30 30 30 30 4 24 24 20 30 30 30 20 30 5 30 24 30 30 30 30 30 30 5 20 16 20 30 30 30 20 30 6 30 36 24 30 30 30 30 30 6 20 24 16 30 30 30 20 20 7 30 36 30 30 30 30 30 30 7 20 24 20 30 30 30 20 20 8 30 30 24 30 30 30 30 30 8 20 20 16 30 30 30 20 20 9 30 36 30 30 30 30 30 30 9 20 24 20 30 30 30 20 20 A 30 42 30 30 30 30 30 30 A 20 28 20 30 30 30 20 20 B 18 30 30 30 30 30 30 30 B 12 20 20 30 30 30 20 20 C 18 30 30 30 30 30 30 30 C 12 20 20 30 30 30 20 20 D 30 42 30 30 30 30 30 30 D 20 28 20 30 30 30 20 20 E 36 42 30 30 30 30 30 30 E 24 28 20 30 30 30 20 20 F 30 30 30 30 30 30 30 30 F 20 20 20 30 30 30 20 20 Unit:1/360 inch (0.07 mm) < Epson Mode (Norway Normal) > Normal Characters Script Characters Hex. 8 9 A B C D E F Hex. 8 9 A B C D E F 0 36 36 30 30 30 30 30 30 0 24 24 20 30 30 30 20 20 1 36 42 18 30 30 30 30 30 1 24 28 12 30 30 30 20 20 2 30 42 30 30 30 30 30 30 2 20 28 20 30 30 30 20 20 3 30 30 36 30 30 30 30 40 3 20 20 24 30 30 30 20 27 4 30 30 36 30 30 30 30 30 4 20 20 24 30 30 30 20 20 5 30 30 36 30 30 30 30 30 5 20 20 24 30 30 30 20 20 6 30 36 30 30 30 30 30 30 6 20 24 20 30 30 30 20 20 7 30 36 30 30 30 30 30 30 7 20 24 20 30 30 30 20 20 8 30 36 30 30 30 30 30 30 8 20 24 20 30 30 30 20 20 9 30 36 30 30 30 30 30 30 9 20 24 20 30 30 30 20 20 A 30 42 30 30 30 30 30 30 A 20 28 20 30 30 30 20 20 B 18 30 30 30 30 30 30 30 B 12 20 20 30 30 30 20 20 C 18 30 30 30 30 30 30 30 C 12 20 20 30 30 30 20 20 D 18 36 30 30 30 30 30 30 D 12 24 20 30 30 30 20 20 E 36 42 30 30 30 30 30 30 E 24 28 20 30 30 30 20 20 F 36 30 30 30 30 30 30 30 F 24 20 20 30 30 30 20 20 Unit:1/360 inch (0.07 mm) < Epson Mode (Turkey) > Normal Characters Script Characters Hex. 8 9 A B C D E F Hex. 8 9 A B C D E F 0 36 36 30 30 30 30 30 30 0 24 24 20 30 30 30 20 20 1 36 42 18 30 30 30 30 30 1 24 28 12 30 30 30 20 20 2 30 42 30 30 30 30 30 30 2 20 28 20 30 30 30 20 20 3 30 30 36 30 30 30 30 30 3 20 20 24 30 30 30 20 20 4 30 30 36 30 30 30 30 30 4 20 20 24 30 30 30 20 30 5 30 30 36 30 30 30 30 30 5 20 20 24 30 30 30 20 30 6 30 36 36 30 30 30 30 30 6 20 24 24 30 30 30 20 20 7 30 36 36 30 30 30 30 30 7 20 24 24 30 30 30 20 20 8 30 24 30 30 30 30 30 30 8 20 16 20 30 30 30 20 20 9 30 36 30 30 30 30 30 30 9 20 24 20 30 30 30 20 20 A 30 42 30 30 30 30 30 30 A 20 28 20 30 30 30 20 20 B 18 30 30 30 30 30 30 30 B 12 20 20 30 30 30 20 20 C 18 30 30 30 30 30 30 30 C 12 20 20 30 30 30 20 20 D 18 36 30 30 30 30 30 30 D 12 24 20 30 30 30 20 20 E 36 36 30 30 30 30 30 30 E 24 24 20 30 30 30 20 20 F 36 30 30 30 30 30 30 30 F 24 20 20 30 30 30 20 20 Unit:1/360 inch (0.07 mm) < Epson Mode (Brazil(BRASCII) Normal) > Normal Characters Script Characters Hex. 8 9 A B C D E F Hex. 8 9 A B C D E F 0 36 36 30 30 36 36 30 36 0 24 24 20 20 24 24 20 24 1 36 36 30 30 36 36 30 36 1 24 24 20 20 24 24 20 24 2 36 36 30 30 36 36 30 30 2 24 24 20 20 24 24 20 20 3 36 36 30 24 36 36 30 30 3 24 24 20 16 24 24 20 20 4 36 36 30 18 36 36 30 30 4 24 24 20 12 24 24 20 20 5 36 36 36 30 36 36 30 30 5 24 24 24 20 24 24 20 20 6 36 36 18 30 42 36 42 30 6 24 24 12 20 28 24 28 20 7 36 36 30 30 36 42 30 42 7 24 24 20 20 24 28 20 28 8 36 36 30 30 36 36 30 30 8 24 24 20 20 24 24 20 20 9 36 36 36 24 36 42 30 36 9 24 24 24 16 24 28 20 24 A 36 36 30 30 36 42 30 36 A 24 24 20 20 24 28 20 24 B 36 36 30 30 36 42 30 36 B 24 24 20 20 24 28 20 24 C 36 36 30 30 24 42 18 36 C 24 24 20 20 16 28 12 24 D 36 36 30 30 24 36 18 36 D 24 24 20 20 16 24 12 24 E 36 36 36 30 24 36 18 36 E 24 24 24 20 16 24 12 24 F 36 36 30 30 24 30 18 36 F 24 24 20 20 16 20 12 24 Unit:1/360 inch (0.07 mm) < Epson Mode (Brazil(Abicomp) Normal) > Normal Characters Script Characters Hex. 8 9 A B C D E F Hex. 8 9 A B C D E F 0 36 36 30 36 30 30 30 30 0 24 24 20 24 20 20 20 20 1 36 36 36 36 30 30 30 30 1 24 24 24 24 20 20 20 20 2 36 36 36 36 30 30 30 30 2 24 24 24 24 20 20 20 20 3 36 36 36 36 30 30 30 30 3 24 24 24 24 20 20 20 20 4 36 36 36 36 30 30 30 30 4 24 24 24 24 20 20 20 20 5 36 36 36 42 30 42 30 30 5 24 24 24 28 20 28 20 20 6 36 30 36 42 30 36 30 30 6 24 20 24 28 20 24 20 20 7 36 36 36 42 30 36 30 30 7 24 24 24 28 20 24 20 20 8 36 36 36 42 30 36 30 30 8 24 24 24 28 20 24 20 20 9 36 36 36 42 30 36 30 30 9 24 24 24 28 20 24 20 20 A 36 36 36 36 30 36 30 30 A 24 24 24 24 20 24 20 20 B 36 36 24 30 18 30 30 30 B 24 24 16 20 12 20 20 20 C 36 36 24 30 18 30 30 30 C 24 24 16 20 12 20 20 20 D 36 36 24 30 18 30 30 30 D 24 24 16 20 12 20 20 20 E 36 36 24 30 18 30 30 30 E 24 24 16 20 12 20 20 20 F 36 36 36 30 36 30 30 30 F 24 24 24 20 24 20 20 20 Unit:1/360 inch (0.07 mm) ; ; ******************************* ; ***** IBM Mode Commands ***** ; ******************************* Selects print quality and pitch. Name: ESC I n Dec.: 27 73 n Hex.: 1B 49 n Comments: *The following values of n can be used. ~n= 0: Internal Draft 10 CPI mode~ ~n= 2: Internal LQ 10 CPI mode~ ~n= 3: Internal Proportional LQ mode~ ~n= 4: Download Draft 10 CPI mode~ ~n= 6: Download LQ 10 CPI mode~ ~n= 7: Download Proportional LQ mode~ ~n= 8: Internal Draft 12 CPI mode~ ~n=10: Internal LQ 12 CPI mode~ ~n=12: Download Draft 12 CPI mode~ ~n=14: Download LQ 12 CPI mode~ ~n=16: Internal Draft 17 CPI mode~ ~n=18: Internal LQ 17 CPI mode~ ~n=20: Download Draft 17 CPI mode~ ~n=22: Download LQ 17 CPI mode~ Selects LQ Typeface. Name: ESC k n Dec.: 27 107 n Hex.: 1B 6B n Comments: *The following values can be used. ~n=0 : Roman ~ ~n=1 : Sans Serif ~ ~n=2 : Courier~ ~n=3 : Prestige ~ ~n=4 : Script~ ~n=5 : OCR-B ~ ~n=6 : Bold PS~ *Typeface must be reselected after any pitch change. *IBM characters in locations from 0 to 31DEC (except 19, 20, 21DEC) from 00 to 1FHEX (except 13, 14, 15HEX) and from 250 to 255DEC (from F0 to FFHEX) are printed in Courier font, regardless of font selection. Selects sub/superscript font with characters printed in the lower/upper 2/3 area of the line. Set: Name: ESC S n Dec.: 27 83 n Hex.: 1B 53 n Release: Name: ESC T Dec.: 27 84 Hex.: 1B 54 Comments: *The following values of n can be used: n=0 : Superscript n=1 : Subscript *Sub/superscript font is 2/3 normal character height. *Sub/superscript characters are normal width. Sets printing to 12 characters per inch. Set: Name: ESC : Dec.: 27 58 Hex.: 1B 3A Release: Name: DC2 Dec.: 18 Hex.: 12 Comments: *When in Letter Quality mode, ESC + : selects the Prestige Typeface (Refer to ESC+I+n). Sets printing to 17 characters per inch. Set: Name: SI or ESC SI Dec.: 15 or 27 15 Hex.: 0F or 1B 0F Release: Name: DC2 Dec.: 18 Hex.: 12 Comments: *When in Letter Quality mode, SI or ESC + SI selects the Courier Typeface (Refer to ESC+I+n). Sets proportional spacing between characters. Name: ESC P n Dec.: 27 80 n Hex.: 1B 50 n Comments: *The following values can be used. ~n=0 : Release ~ ~n=1 : Set ~ *When in Letter Quality mode, ESC + P + 1 selects the Bold PS Typeface (Refer to ESC+I+n). Sets printing to twice the original horizontal dot density. Set: Name: ESC E Dec.: 27 69 Hex.: 1B 45 Release: Name: ESC F Dec.: 27 70 Hex.: 1B 46 Comments: *Emphasized characters are printed at half speed (100 cps in draft pica pitch). Sets double strike character printing. Set: Name: ESC G Dec.: 27 71 Hex.: 1B 47 Release: Name: ESC H Dec.: 27 72 Hex.: 1B 48 Comments: *Double strike printing prints each line twice, with the second line slightly below the first to create a bold appearance. Sets double wide expanded printing for one line only. Set: Name: SO or ESC SO Dec.: 14 27 14 Hex.: 0E 1B 0E Release: Name: DC4 or ESC W 0 Dec.: 20 27 87 0 Hex.: 14 1B 57 00 Comments: *Single line double wide printing is released when: - a LF,FF or VT is executed. - a CR is executed. - DC4 or ESC+W+0 is executed. Sets double wide expanded printing. Name: ESC W n Dec.: 27 87 n Hex.: 1B 57 n Comments: *The following values can be used. ~n=0 : Release ~ ~n=1 : Set ~ *DC4 will not release the double wide printing set by ESC+W+1. 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 m2 selects the character width as follows: ~m2=0 : No change~ ~m2=1 : Single-width~ ~m2=2 : Double-width~ *In the pull tractor mode, this command will not reverse feed paper correctly and the resulting printout may not be correct. Sets continuous underlining of characters. Name: ESC - n Dec.: 27 45 n Hex.: 1B 2D n Comments: *The following values can be used. ~n=0 : Release ~ ~n=1 : Set ~ *Bit image data, spaces set by the HT code and IBM Graphic characters will not be underlined. *Pin No. 24 of the printhead is used for underlining. Sets continuous overlining of characters. Name: ESC _ n Dec.: 27 95 n Hex.: 1B 5F n Comments: *The following values can be used. ~n=0 : Release ~ ~n=1 : Set ~ *Bit image data, spaces set by the HT code, IBM graphic characters will not be overlined. *Pin No. 1 of the printhead is used for overlining. Selects IBM Character Set 1. Name: ESC 7 Dec.: 27 55 Hex.: 1B 37 Comments: *Refer to character set tables in appendix of the operating instruction manual. Selects IBM Character Set 2. Name: ESC 6 Dec.: 27 54 Hex.: 1B 36 Comments: *Refer to character set tables in appendix of the operating instruction manual. 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 n2 Code Page~ ~-----------------------------------~ ~ 00H 00H Current~ ~ 01H B5H USA~ ~ 03H 52H Multilingual~ ~ 03H 5CH Portugal~ ~ 03H 5FH Canada French~ ~ 03H 61H Norway~ ~ 03H 59H Turkey~ ~ 03H EDH BRASCII~ ~ 03H EEH Abicomp~ ~Except the above Downloaded font~ ~-----------------------------------~ *Refer to character set tables in appendix of the operating instruction manual. <8-PIN STANDARD DENSITY GRAPHICS> Sets standard density graphic mode [60 dots per inch]. Name: ESC K n1 n2 Data Dec.: 27 75 n1 n2 Data Hex.: 1B 4B n1 n2 Data Comment: *Refer to "ESC+*+m+n1+n2" command in Epson mode. <8-PIN DOUBLE DENSITY GRAPHICS> Sets double density graphic mode [120 dots per inch]. Name: ESC L n1 n2 Data Dec.: 27 76 n1 n2 Data Hex.: 1B 4C n1 n2 Data Comment: *Refer to "ESC+*+m+n1+n2" command in Epson mode. Sets double speed, double density graphics mode [120 dots per inch]. Name: ESC Y n1 n2 Data Dec.: 27 89 n1 n2 Data Hex.: 1B 59 n1 n2 Data Comments: *Horizontal adjacent dots cannot be printed. *Refer to "ESC+*+m+n1+n2" command in Epson mode. <8-PIN QUADRUPLE DENSITY GRAPHICS> Sets quadruple density graphics mode [240 dots per inch]. Name: ESC Z n1 n2 Data Dec.: 27 90 n1 n2 Data Hex.: 1B 5A n1 n2 Data Comments: *Horizontal adjacent dots cannot be printed. *Refer to "ESC+*+m+n1+n2" command in Epson mode. Selects one of the 8-pin and 24-pin bit image graphic modes (AGM only). Name: ESC * m n1 n2 Data Dec.: 27 42 m n1 n2 Data Hex.: 1B 2A m n1 n2 Data Comments: *The following table illustrates the various modes based upon the values of m. ~m pin dpi dpl~ ~------------------------------------------------~ ~ 0 8 60 540 Standard Density~ ~ 1 8 120 1080 Double Density~ ~ 2 8 120 1080 Double Speed, Double Density~ ~ 3 8 240 2160 Quadruple Density~ ~ 4 8 80 720 CRT I~ ~ 6 8 90 810 CRT II~ ~32 24 60 540 Standard Density~ ~33 24 120 1080 Double Density~ ~38 24 90 810 CRT III~ ~39 24 180 1620 Triple Density~ ~40 24 360 3240 Hex Density~ ~-------------------------------------------------~ *When m=2, 3, 40, horizontal adjacent dots cannot be printed. *The values n1 and n2 indicate the number of graphic columns to be printed. *This command is effective only when AGM mode is set to ON through the initial setup disk or the Function mode. *Refer to "ESC+*+m+n1+n2" command in Epson mode. Selects one of the 8-pin or 24-pin bit image graphic modes. Name: ESC [ g n1 n2 m Data Dec.: 27 91 103 n1 n2 m Data Hex.: 1B 5B 67 n1 n2 m Data Comments: *The following table illustrates the various modes based upon the values of m. ~m pin dpi dpl~ ~------------------------------------------------~ ~ 0 8 60 540 Standard Density~ ~ 1 8 120 1080 Double Density~ ~ 2 8 120 1080 Double Speed, Double Density~ ~ 3 8 240 2160 Quadruple Density~ ~ 8 24 60 540 Standard Density~ ~ 9 24 120 1080 Double Density~ ~11 24 180 1620 Triple Density~ ~12 24 360 3240 Hex Density~ ~------------------------------------------------~ *When m=2, 3, 12, horizontal adjacent dots cannot be printed. *The values n1 and n2 indicate the number of graphic columns to be printed. *Refer to "ESC+*+m+n1+n2" command in Epson mode. <1/8 INCH PAPER FEED> Sets paper feed amount to 1/8 inch (3.2 mm). Name: ESC 0 Dec.: 27 48 Hex.: 1B 30 <7/72 INCH PAPER FEED> Sets paper feed amount to 7/72 inch (2.5 mm). Name: ESC 1 Dec.: 27 49 Hex.: 1B 31 Executes line spacing set by ESC+A+n. Name: ESC 2 Dec.: 27 50 Hex.: 1B 32 Sets paper feed amount to n/72 inch or n/60 inch (AGM). Name: ESC A n (~n = 0 to 255~)DEC Dec.: 27 65 n Hex.: 1B 41 n Comments: *ESC+2 must be input after ESC+A+n for n/72 inch paper feed to become effective (when AGM is set to OFF only). *In the AGM mode, this command sets one line paper feed of n/60 inch. Sets paper feed amount to n/216 inch or n/180 inch (AGM). Name: ESC 3 n (~n = 0 to 255~)DEC Dec.: 27 51 n Hex.: 1B 33 n Comments: *The paper feed amount is not exactly n/216 inch, for the minimum unit is 1/360 inch. *In the AGM mode, this command sets one line paper feed of n/180 inch. Selects base unit for ESC+3 and ESC+J. Name: ESC [ \ 4 0 0 0 n 0 Dec.: 27 91 92 4 0 0 0 n 0 Hex.: 1B 5B 5C 04 00 00 00 n 00 Comments: *The following values of n can be used: ~n=180 1/180 inch base unit~ ~n=216 1/216 inch base unit~ Automatically executes a line feed following a carriage return. Name: ESC 5 n Dec.: 27 53 n Hex.: 1B 35 n Comments: *The following values can be used. ~n=0 : Release ~ ~n=1 : Set ~ Feeds paper to next line position after printing data in the line buffer. Name: LF Dec.: 10 Hex.: 0A Comments: *The amount of spacing generated by LF is determined by the paper feed commands or Function mode setting. *When the new line position falls within the skip perforation area, the paper advances to the next top of form position. *When Auto CR is set to ON through the initial setup disk or the Function mode,a Carriage Return command (CR) is added to each Line Feed (LF). Feeds paper to next top of form position after printing data in the line buffer. Name: FF Dec.: 12 Hex.: 0C Comment: *The amount of spacing generated by FF is determined by the page length commands or Function mode setting. Feeds paper n/216 inch or n/180 inch (AGM) after printing data in the line buffer. Name: ESC J n (~n = 0 to 255~)DEC Dec.: 27 74 n Hex.: 1B 4A n Comments: *When Auto CR is set to ON through the initial setup disk or the Function mode, a carriage return command (CR) is added to each line feed. *The paper feed amount is not exactly n/216 inch, for the minimum unit is 1/360 inch. *In the AGM mode, this command sets one line paper feed of n/180 inch. 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. 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. Sets positions of left and right margins. Name: ESC X n1 n2 Dec.: 27 88 n1 n2 Hex.: 1B 58 n1 n2 Comments: *The following values of n1 (left) and n2 (right) can be used: 8" print line -------------------------------------- ~Pica n1=1 to 78 n2=3 to 80 ~ ~Elite n1=1 to 93 n2=4 to 96 ~ ~Compressed n1=1 to 133 n2=5 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. Sets skip perforation. Set: Name: ESC N n (~n = 0 to 255~)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. *The skip perforation amount does not change even if the paper feed amount is changed following a skip perforation designation. *The skip perforation is released upon receipt of the page length designation command. *The skip perforation command overrides the front panel Bottom margin setting. Sets current paper position as the new top of form. Name: ESC 4 Dec.: 27 52 Hex.: 1B 34 Sets horizontal tabulations to specified values. Set: Name: ESC D n1 n2...nx 0 (~x = 1 to 32~) 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 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. Sets vertical tabulation to specified values. Set: Name: ESC B n1 n2...nx 0 (~x = 1 to 64~) 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 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). 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. 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. Prints all data in the line buffer and returns the printhead to the left margin position. Name: CR Dec.: 13 Hex.: 0D Comments: *Certain computers issue an automatic line feed with a carriage return. Check your computer manual for details. *When Auto LF is set to ON through the Function mode or the initial setup mode, a Line Feed command (LF) is added to each Carriage Return (CR) double width printing set. Sets uni-directional printing mode. Name: ESC U n Dec.: 27 85 n Hex.: 1B 55 n Comments: *The following values can be used. ~n=0 : Release ~ ~n=1 : Set ~ Moves the printhead toward the right n/120 inch. Name: ESC d n1 n2 Dec.: 27 100 n1 n2 Hex.: 1B 64 n1 n2 Comments: *Each unit equals n/120 of an inch *Let m=# of units Divide m by 256 using long division ~m = n1 + (256 * n2)~ The quotient=n2 The remainder=n1 *When underlining or overlining, spaces created by the move are underlined or overlined. Clears all data in the line buffer. Name: CAN Dec.: 24 Hex.: 18 Selects printer after it has been deselected by ESC+Q+36. Name: DC1 (Device Control 1) Dec.: 17 Hex.: 11 Comment: *All data sent to the printer between ESC+Q+36 and DC1 is lost. Deselects printer until it has been selected by DC1. Name: ESC Q 36 Dec.: 27 81 36 Hex.: 1B 51 24 Comment: *All data sent to the printer between DC3 and DC1 is lost. *Making Maximum Use of the Buffer: IBM mode: The 32K bytes available can be divided between draft and LQ characters in any combination. The download data also can be entered to RAM by compression. The maximum number of characters depends on the manner in which the characters are entered. *Entering Download Data IBM mode: Downloading fonts in IBM mode requires downloading character Dot Pattern data and character Index Table data. Dot pattern data controls which pins fire when printing a character. Index Table data is placed in a "look-up table" that provides information on where Dot Pattern data is stored in memory and defines certain attributes of the character. The format for the command to input download data is: ESC+"="+n1+n2+35+A1+A2+d1+d2+...+dx where n1+(256 x n2)=the number of data bytes to be downloaded, 35 is a fixed number that must always be sent, A1h and A2h indicate the low order and high order addresses in which data is to be stored, and d1, d2...is the data being downloaded. This data will be in one of two formats, depending on whether it is Dot Pattern or Index Table: 1. Index Table Addresses Starting memory addresses for Index Tables are: Draft (10 and 12 CPI) 8011HEX LQ 10 CPI 8912HEX LQ Proportional 9213HEX LQ 12 CPI 9B14HEX To calculate the address for an individual character Index Table Entry, use equation: Address=9 x ASCII character number+starting address. To find the address of the Index Table location for the draft letter "A": Multiply 9 x 65 (ASCII character number for "A")=585DEC Convert to hexadecimal=249HEX Add starting address for draft=8011HEX yielding 825AHEX making A1=5AHEX, and A2=82HEX. 2. Dot Pattern Data Dot Pattern data is sent for all columns that must be uniquely defined. If adjacent horizontal columns are identical (or can be made identical knowing that the printer will not print adjacent horizontal dots) data compression may be used and the duplicate data need not be sent. Dot Pattern data may be stored at any address from A414HEX to FFFFHEX inclusive. Dot columns for characters are as follows: Draft (10 and 12 CPI) 10 columns LQ 10 CPI 36 columns LQ 12 CPI 30 columns LQ Proportional 18-42 columns It is important to note that the last column is always blank. (e.g. A download draft character is defined by 9 columns. The printer automatically adds the tenth column.) Data=P1H+P1M+P1L+P2H+P2M+P2L+...+PnH+PnM+PnL 3. Index Table Data AA1+AA2+IT1+IT2+CM1+...+CM5 where AA1 and AA2 indicate the address where Dot Pattern data is stored. AA1 and AA2 are the high order and the low order bytes respectively. IT1 is Index Table byte #1. Bit designation is: Bit 0 1 7 Normal Character Graphic Character 6 Download Character Resident Character 5 to 0 Number of columns in the character memory IT2 is Index Table byte #2. Bit designation is: Bits 7, 6 Type of block graphic character 00 shading character 01 line drawing character 10 underscore character 11 not supported Bits 5 to 0 number of columns in the character less 1 [e.g. for draft characters, 10-1=9DEC=(001001)BIN bits 5 to 0=001001] From CM1 to CM5 are compression mask bits. (0=no compression, 1=compression) CM1 bit 7=1st dot column bit 6=2nd dot column . . . CM5 bit 3=37th dot column bit 2=38th dot column bit 1=39th dot column bit 0=40th dot column All block graphic characters are 30 dots high, even though only 24 dots are defined for each column. An underline is defined as a blank block graphic character (all zeros). The underline is generated by the printer during the second pass. A shadow character repeats dots 1 to 6 of each column as dots 25 through 30 respectively. A line draw character repeats dots 23 and 24 as the pairs 25 and 26, 27 and 28, and 29 and 30. Entry data can designate any character data image whether resident or downloaded. Multiple table entries can designate the same character. The address of an undefined entry should be 000. An undefined entry is printed as a space. Location 0 (00HEX) normally stores the slashed zero. If a character is downloaded into this location, when the slashed zero is selected through the initial setup disk, the downloaded character will print in place of any zero. 4. Data Compression Data Compression allows the efficient use of memory in storing downloaded characters, providing space for more characters than would be available without compression. The printer repeats the previous dot column in the current column when the current column compression mask bit is set to 1. 5. Resetting Download Area Issuing the command ESC+"="+0+0 initializes the download area. All previously downloaded characters are cleared and the Index Tables are loaded with information for resident fonts. 6. Programming Examples: To load the draft character used in the example for the Epson mode (Greek gamma), the following program may be used. 10 REM Greek Gamma Character Download and print 20 WIDTH "LPT1:",255 30 OPEN "LPT1:" AS #1 40 REM---(Initialize the Download Buffer) 50 PRINT #1,CHR$(27)+"="+CHR$(0)+CHR$(0); 60 REM---(Dot Pattern Data Entry to ASCII "A") 70 PRINT #1,CHR$(27)+"="+CHR$(30)+CHR$(0)+CHR$(35); 80 PRINT #1,CHR$(&H0)+CHR$(&HB0); 90 PRINT #1,CHR$(0)+CHR$(128)+CHR$(0); 100 PRINT #1,CHR$(1)+CHR$(0)+CHR$(0); 110 PRINT #1,CHR$(0)+CHR$(128)+CHR$(0); 120 PRINT #1,CHR$(0)+CHR$(65)+CHR$(64); 130 PRINT #1,CHR$(0)+CHR$(18)+CHR$(16); 140 PRINT #1,CHR$(0)+CHR$(5)+CHR$(64); 150 PRINT #1,CHR$(0)+CHR$(16)+CHR$(0); 160 PRINT #1,CHR$(1)+CHR$(64)+CHR$(0); 170 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0); 180 REM---(Index Table Entry to ASCII "A") 190 PRINT #1,CHR$(27)+"="+CHR$(12)+CHR$(0)+CHR$(35); 200 PRINT #1,CHR$(&H5A)+CHR$(&H82); 210 PRINT #1,CHR$(&HB0)+CHR$(&H0)+CHR$(8); 220 PRINT #1,CHR$(10)+CHR$(0)+CHR$(0); 230 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0); 240 REM---(Download Character print) 250 PRINT #1,CHR$(27)+"I"+CHR$(4); 260 FOR I=1 TO 10 270 PRINT #1,"A"; 280 NEXT 290 PRINT #1,CHR$(13);CHR$(10); 300 CLOSE #1 310 END In this example of Greek gamma, a character is not compressed, and data of CM1 through CM5 are all zeros. To load the LQ character used in the example for the one-eighth- note character, the following program may be used. Input format is the same as with draft fonts. Programming example for the one-eighth-note character is as follows: 10 REM One-eight-note Character Download and print 20 WIDTH "LPT1:",255 30 OPEN "LPT1:" AS #1 40 REM---(Initialize the Download Buffer) 50 PRINT #1,CHR$(27)+"="+CHR$(0)+CHR$(0); 60 REM---(Dot Pattern Data Entry to ASCII "B") 70 PRINT #1,CHR$(27)+"="+CHR$(45)+CHR$(0)+CHR$(35); 80 PRINT #1,CHR$(&H0)+CHR$(&HB0); 90 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0); 100 PRINT #1,CHR$(0)+CHR$(0)+CHR$(128); 110 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64); 120 PRINT #1,CHR$(0)+CHR$(3)+CHR$(224); 130 PRINT #1,CHR$(0)+CHR$(7)+CHR$(240); 140 PRINT #1,CHR$(0)+CHR$(3)+CHR$(224); 150 PRINT #1,CHR$(0)+CHR$(1)+CHR$(64); 160 PRINT #1,CHR$(63)+CHR$(254)+CHR$(128); 170 PRINT #1,CHR$(14)+CHR$(0)+CHR$(0); 180 PRINT #1,CHR$(6)+CHR$(0)+CHR$(0); 190 PRINT #1,CHR$(3)+CHR$(0)+CHR$(0); 200 PRINT #1,CHR$(1)+CHR$(132)+CHR$(0); 210 PRINT #1,CHR$(0)+CHR$(120)+CHR$(0); 220 PRINT #1,CHR$(0)+CHR$(0)+CHR$(0); 230 REM---(Index Table Entry to ASCII "B") 240 PRINT #1,CHR$(27)+"="+CHR$(12)+CHR$(0)+CHR$(35); 250 PRINT #1,CHR$(&H64)+CHR$(&H8B); 260 PRINT #1,CHR$(&HB0)+CHR$(&H0)+CHR$(14); 270 PRINT #1,CHR$(35)+CHR$(124)+CHR$(90); 280 PRINT #1,CHR$(85)+CHR$(47)+CHR$(240); 290 REM---(Download Character print) 300 PRINT #1,CHR$(27)+"I"+CHR$(6); 310 FOR I=1 TO 10 320 PRINT #1,"B"; 330 NEXT 340 PRINT #1,CHR$(13);CHR$(10); 350 CLOSE #1 360 END Note: The left most column of adjacent identical columns has its compression mask bit set to 0, and that bit in the other columns is set to 1. Entry data can designate any character data image whether resident or downloaded. Multiple table entries can designate the same character. The address of an undefined entry should be 000. An undefined entry is printed as a space. Location 0 (00HEX) normally stores the slashed zero. If a character is downloaded into this location, when the slashed zero is selected through the initial setup disk, the downloaded character will print in place of any zero. ASCII character in location 255 (FFHEX) cannot be defined. Defines download characters into specified address locations in RAM. Name: ESC = n1 n2 35 A1 A2 Data Dec.: 27 61 n1 n2 35 A1 A2 Data Hex.: 1B 3D n1 n2 23 A1 A2 Data Comments: *The values n1 and n2 indicate the number of data bytes to be downloaded. *The values A1 and A2 are the low order and high order address location of the character being defined. *When n1=n2=0, all previously downloaded characters are cleared. *This command is operational only when through Function mode or setup disk Draft and Letter Quality (LQ) fonts can be downloaded simultaneously. Draft download characters are printed when the printer is in draft mode. LQ characters are printed when the printer is in LQ mode. 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=n1 + (256 * n2)~. *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. 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. Stops printing and sets printer to OFF LINE mode. Name: ESC j Dec.: 27 106 Hex.: 1B 6A Comment: *When you desire to print again, press the ON LINE switch. Resets to initial state. Name: ESC [ K n1 0 m 36 p1 p2 Dec.: 27 91 75 n1 0 m 36 p1 p2 Hex.: 1B 5B 4B n1 00 m 24 p1 p2 Comments: *The following values of n1 can be used. n1=1 : Initialize only n1=3 : Initialize and set by p1 n1=4 : Initialize and set by p1 and p2 *The following table illustrates the various modes based upon the value of m. m Initialization Download --------------------------------------------------------- 0 Current setting Not cleared Not saved 1 Current setting Cleared Not saved 4 FACTORY setting Not Cleared Not saved 5 FACTORY setting Cleared Not saved 254 Current setting Cleared Saved 255 FACTORY setting Cleared Saved *The following tables illustrate the parameter specifications. p1 (Parameter 1) Bit OFF ON ---------------------------------------------------------- 7 Discard byte Process this byte Ignore this byte 6 Not used 5 Paper out alarm Enable Disable 4 Auto CR OFF ON 3 Auto LF OFF ON 2 Form length 11" 12" 1 Zero slash Normal Slashed Zero 0 Character set Set 1 Set 2 p2 (Parameter 2): Bit OFF ON ---------------------------------------------------------- 7 Discard byte Process this byte Ignore this byte 6 Select code page USA Multilingual 5 Not used --- --- 4 Not used --- --- 3 Not used --- --- 2 Not used --- --- 1 Not used --- --- 0 Cut sheet feeder Disable Enable Select printing color SET : NAME: ESC r n Dec.: 27 114 n Hex.: 1B 72 n Comment: *The following values of n can be used: ~n=0 Black~ ~n=1 Red(Magenta)~ ~n=2 Blue(Cyan)~ ~n=3 Violet~ ~n=4 Yellow~ ~n=5 Orange~ ~n=6 Green~ Notes: *This command is operational only when the color kit (KX-PCK12) is installed. *Print yellow first when overlapping colors. < IBM Mode (ASCII) > Hex. 1 2 3 4 5 6 7 8 0 - - 30 30 36 36 18 36 1 - - 18 30 36 36 30 36 2 - - 30 30 36 36 36 30 3 - - 30 30 36 36 30 30 4 - - 30 30 36 36 36 24 5 - - 36 30 36 42 30 36 6 - - 36 30 36 36 24 36 7 - - 18 30 36 42 36 42 8 - - 24 30 36 36 36 30 9 - - 24 30 24 36 18 36 A - - 30 18 30 30 24 30 B - - 30 18 36 24 36 24 C - - 18 30 36 30 18 18 D - - 30 30 42 24 42 24 E - - 18 30 36 30 36 30 F - - 30 30 36 30 30 30 Unit:1/360 inch (0.07 mm) < IBM Mode (USA Normal) > Hex. 8 9 A B C D E F 0 42 36 30 30 30 30 30 30 1 36 42 18 30 30 30 36 30 2 30 42 30 30 30 30 36 30 3 30 30 36 30 30 30 36 30 4 30 30 36 30 30 30 42 30 5 30 30 42 30 30 30 36 30 6 30 36 30 30 30 30 36 30 7 30 36 30 30 30 30 30 30 8 30 36 30 30 30 30 42 30 9 30 42 30 30 30 30 42 30 A 30 42 30 30 30 30 42 30 B 18 30 30 30 30 30 30 30 C 18 30 30 30 30 30 30 30 D 18 30 30 30 30 30 42 30 E 42 42 42 30 30 30 30 30 F 42 30 42 30 30 30 30 30 Unit:1/360 inch (0.07 mm) < IBM Mode (Multilingual Normal) > Hex. 8 9 A B C D E F 0 42 36 30 30 30 36 42 30 1 36 42 18 30 30 42 36 30 2 30 42 30 30 30 36 42 30 3 30 30 36 30 30 36 42 30 4 30 30 36 30 30 36 30 30 5 30 30 42 42 30 18 42 30 6 30 36 30 42 30 24 30 30 7 30 36 30 42 42 24 36 30 8 30 36 30 30 30 24 42 30 9 30 42 30 30 30 30 42 30 A 30 42 30 30 30 30 42 30 B 18 30 30 30 30 30 42 30 C 18 30 30 30 30 30 36 30 D 18 42 30 30 30 30 42 30 E 42 30 42 30 30 24 30 30 F 42 30 42 30 30 30 30 30 Unit:1/360 inch (0.07 mm) < IBM Mode (Portugal Normal) > Hex. 8 9 A B C D E F 0 42 36 30 30 30 30 30 30 1 36 42 18 30 30 30 36 30 2 30 36 30 30 30 30 36 30 3 30 30 36 30 30 30 36 30 4 30 30 36 30 30 30 42 30 5 30 30 42 30 30 30 36 30 6 42 42 30 30 30 30 36 30 7 30 36 30 30 30 30 30 30 8 30 24 30 30 30 30 42 30 9 36 42 42 30 30 30 42 30 A 30 42 30 30 30 30 42 30 B 24 30 30 30 30 30 30 30 C 42 30 30 30 30 30 30 30 D 18 42 30 30 30 30 42 30 E 42 42 42 30 30 30 30 30 F 42 42 42 30 30 30 30 30 Unit:1/360 inch (0.07 mm) < IBM Mode (Canada-French Normal) > Hex. 8 9 A B C D E F 0 42 36 30 30 30 30 30 30 1 36 36 30 30 30 30 36 30 2 30 36 30 30 30 30 36 30 3 30 30 36 30 30 30 36 30 4 42 36 30 30 30 30 42 30 5 30 24 30 30 30 30 36 30 6 30 36 30 30 30 30 36 30 7 30 36 30 30 30 30 30 30 8 30 30 24 30 30 30 42 30 9 30 42 30 30 30 30 42 30 A 30 42 30 30 30 30 42 30 B 18 30 30 30 30 30 30 30 C 18 30 30 30 30 30 30 30 D 30 42 30 30 30 30 42 30 E 42 42 42 30 30 30 30 30 F 30 30 42 30 30 30 30 30 Unit:1/360 inch (0.07 mm) < IBM Mode (Norway Normal) > Hex. 8 9 A B C D E F 0 42 36 30 30 30 30 30 30 1 36 42 18 30 30 30 36 30 2 30 42 30 30 30 30 36 30 3 30 30 36 30 30 30 36 30 4 30 30 36 30 30 30 42 30 5 30 30 42 30 30 30 36 30 6 30 36 30 30 30 30 36 30 7 30 36 30 30 30 30 30 30 8 30 36 30 30 30 30 42 30 9 30 42 30 30 30 30 42 30 A 30 42 30 30 30 30 42 30 B 18 30 30 30 30 30 30 30 C 18 30 30 30 30 30 30 30 D 18 42 30 30 30 30 42 30 E 42 42 42 30 30 30 30 30 F 42 30 30 30 30 30 30 30 Unit:1/360 inch (0.07 mm) < IBM Mode (Turkey) > Hex. 8 9 A B C D E F 0 42 36 30 30 30 30 30 30 1 36 42 18 30 30 30 36 30 2 30 42 30 30 30 30 36 30 3 30 30 36 30 30 30 36 30 4 30 30 36 30 30 30 42 30 5 30 30 42 30 30 30 36 30 6 30 36 30 30 30 30 36 30 7 30 36 30 30 30 30 30 30 8 30 24 30 30 30 30 42 30 9 30 42 30 30 30 30 42 30 A 30 42 30 30 30 30 42 30 B 18 30 30 30 30 30 30 30 C 18 30 30 30 30 30 30 30 D 18 30 30 30 30 30 42 30 E 42 36 42 30 30 30 30 30 F 42 30 42 30 30 30 30 30 Unit:1/360 inch (0.07 mm) < IBM Mode (Brazil(BRASCII) Normal) > Hex. 8 9 A B C D E F 0 36 36 30 30 42 42 30 36 1 36 36 30 30 42 42 30 36 2 36 36 30 30 42 42 30 30 3 36 36 30 30 42 42 30 30 4 36 36 30 30 42 42 30 30 5 36 36 30 36 42 42 30 30 6 36 36 30 30 42 42 42 30 7 36 36 30 30 42 42 30 42 8 36 36 30 30 36 42 30 30 9 36 36 30 30 36 42 30 36 A 36 36 30 30 36 42 30 36 B 36 36 42 42 36 42 30 36 C 36 36 30 30 24 42 18 36 D 36 36 30 30 24 42 18 36 E 36 36 30 30 24 42 18 36 F 36 36 30 30 24 36 18 36 Unit:1/360 inch (0.07 mm) < IBM Mode (Brazil(Abicomp) Normal) > Hex. 8 9 A B C D E F 0 36 36 30 42 30 30 30 30 1 36 36 42 42 30 30 30 30 2 36 36 42 42 30 30 30 30 3 36 36 42 42 30 30 30 30 4 36 36 42 42 30 30 30 30 5 36 36 42 42 30 42 30 30 6 36 36 42 42 30 36 30 30 7 36 36 36 42 30 36 30 30 8 36 36 36 42 30 36 30 30 9 36 36 36 42 30 36 30 30 A 36 36 36 42 30 36 30 30 B 36 36 24 30 18 36 30 30 C 36 36 24 30 18 30 30 30 D 36 36 24 30 18 30 30 30 E 36 36 24 30 18 30 30 30 F 36 36 42 30 36 30 30 30 Unit:1/360 inch (0.07 mm)