REF2023.TXT Driver File Contents (KX-P2023.zip)

RTM144 V1.2
;*****************************************************************************
;*                       << Panasonic KX-P2023 >>                            *
;*                          COMMAND REFERENCE                                *
;*****************************************************************************


;                     *********************************
;                     *****  EPSON Mode Commands  *****
;                     *********************************


<PRINT QUALITY>
Selects print quality.

	Name:	ESC	x	n
	Dec.:	27	120	n
	Hex.:	1B	78	n

	Comment:
	*The following values of n can be used:
		n=0:Draft font
		n=1:LQ font


<FONT STYLE>
Selects LQ font style.

	Name:	ESC	k	n
	Dec.:	27	107	n
	Hex.:	1B	6B	n

	Comments:
	*The following values of n can be used:
		n=0:	Courier font
		n=2:	Courier font
		n=3:	Prestige font
		n=4:	Script font
		n=6:	Bold PS font
	*This command is effective only in letter quality mode (ESC+x+1).


<SUB/SUPERSCRIPT FONT>
Selects sub/superscript font with characters printed in the
lower/upper area of the line.

	Set:
	Name:	ESC	S	n
	Dec.:	27	83	n
	Hex.:	1B	53	n

	Release:
	Name:	ESC	T
	Dec.:	27	84
	Hex.:	1B	54

	Comments:
	*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.
	 Refer to proportional spacing tables in appendix of the operating
	 instruction manual.


<PICA PITCH>
Sets printing to 10 characters per inch (up to 80 characters per line).

	Name:	ESC	P
	Dec.:	27	80
	Hex.:	1B	50

	Comment:
	*When pica and compressed are set simultaneously, output is
	 17 cpi (up to 137 cpl).


<ELITE PITCH>
Sets printing to 12 characters per inch (up to 96 characters per line).

	Name:	ESC	M
	Dec.:	27	77
	Hex.:	1B	4D

	Comment:
	*When elite and compressed are set simultaneously, output is
	 20 cpi (up to 160 cpl).


<MICRON PITCH>
Sets printing to 15 characters per inch (up to 120 characters per line).

	Name:	ESC	g
	Dec.:	27	103
	Hex.:	1B	67

	Comment:
	*When micron and compressed are set simultaneously, output is
	 15 cpi (up to 120 cpl).


<COMPRESSED PITCH>
Sets printing to 17 characters per inch (up to 137 characters per line).

	Set:
	Name:	SI	or	ESC	SI
	Dec.:	15	or	27	15
	Hex.:	0F	or	1B	0F

	Release:
	Name:	DC2
	Dec.:	18
	Hex.:	12

	Comments:
	*When pica and compressed are set simultaneously, output is
	 17 cpi (up to 137 characters per line).
	*When elite and compressed are set simultaneously, output is
	 20 cpi (up to 160 cpl).
	*When micron and compressed are set simultaneously, output is
	 15 cpi (up to 120 cpl).
	*When PS (Proportional Spacing) and compressed are set
	 simultaneously, font is compressed PS character width.


<PROPORTIONAL SPACING>
Sets proportional spacing between characters.

	Set:
	Name:	ESC	p	1
	Dec.:	27	112	1
	Hex.:	1B	70	01

	Release:
	Name:	ESC	p	0
	Dec.:	27	112	0
	Hex.:	1B	70	00

	Comments:
	*Proportional spacing overrides pica, elite, and micron
	 pitch setting.
	*When PS (Proportional Spacing) and compressed are set
	 simultaneously, font is compressed PS character width.


<PROGRAMMABLE PITCH/HIGHLIGHTING>
Sets a combination of character pitch and/or highlighting.

	Name:	ESC	!	n	(n = 0 to 255)DEC
	Dec.:	27	33	n
	Hex.:	1B	21	n

	Comments:
	*The value of n determines the pitch and highlight combinations.
	*To find the value of n, add up the decimal numbers below for
	 the print modes you wish to select:
		  0: Pica
		  1: Elite
		  2: PS
		  4: Compressed
		  8: Emphasized
		 16: Double strike
		 32: Double wide
		 64: Italic
		128: Underlining

	*Invalid values of n follow rules noted in individual commands.
	*When elite and compressed are set simultaneously output is
	 20 cpi (up to 160 cpl).


<EMPHASIZED PRINTING>
Sets printing to twice the original horizontal dot density.

	Set:
	Name:	ESC	E
	Dec.:	27	69
	Hex.:	1B	45

	Release:
	Name:	ESC	F
	Dec.:	27	70
	Hex.:	1B	46

	Comment:
	*Emphasized characters are printed at half speed.


<DOUBLE HIGH PRINTING>
Sets double high printing.

	Set:
	Name:	ESC	w	1
	Dec.:	27	119	1
	Hex.:	1B	77	01

	Release:
	Name:	ESC	w	0
	Dec.:	27	119	0
	Hex.:	1B	77	00


<DOUBLE WIDE PRINTING (SINGLE LINE)>
Sets double wide (expanded) printing for one line only.

	Set:
	Name:	SO	or	ESC	SO
	Dec.:	14	or	27	14
	Hex.:	0E	or	1B	0E

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

	Comment:
	*Single line double wide printing is released when:
	 a LF, FF or VT is executed.
	 the printer is initialized.
	 DC4 or ESC+W+0 is executed.
	 ESC+!+0 is executed.


<DOUBLE WIDE PRINTING>
Sets double wide (expanded) printing.

	Set:
	Name:	ESC	W	1
	Dec.:	27	87	1
	Hex.:	1B	57	01

	Release:
	Name:	ESC	W	0
	Dec.:	27	87	0
	Hex.:	1B	57	00

	Comment:
	*DC4 will not release the double wide printing set by ESC+W+1.


<OUTLINE AND SHADOW PRINTING>
Sets outline and shadow printing.

	Name:	ESC	q	n
	Dec.:	27	113	n
	Hex.:	1B	71	n

	Comment:
	*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


<DOUBLE STRIKE PRINTING>
Sets double printing.

	Set:
	Name:	ESC	G
	Dec.:	27	71
	Hex.:	1B	47

	Release:
	Name:	ESC	H
	Dec.:	27	72
	Hex.:	1B	48

	Comment:
	*Double strike printing prints each line twice, with the second
	 line slightly below the first to create a bold appearance.


<UNDERLINING>
Sets continuous underlining of characters.

	Set:
	Name:	ESC	-	1
	Dec.:	27	45	1
	Hex.:	1B	2D	01

	Release:
	Name:	ESC	-	0
	Dec.:	27	45	0
	Hex.:	1B	2D	00

	Comment:
	*Bit image data, spaces set by the HT code, and IBM graphic
	 characters will not be underlined.


<SCORE>
Sets/releases score.

	Name:	ESC	(	-	3	0	1	 d1	d2
	Dec.:	27	40	45	3	0	1	 d1	d2
	Hex.:	1B	28	2D	03	00	01	 d1	d2

	Comments:
	*The value of d1 determines the location of the score:
		d1=1: Underline
		d1=2: Strikethrough
		d1=3: Overscore
	*The value of d2 determines whether the score line is single,
	 double, broken or continuous:
		d2=0: Cancel the score line selected by d1
		d2=1: Single continuous line
		d2=2: Double continuous line
		d2=5: Single broken line
		d2=6: Double broken line


<WORD PROCESSING MODE SELECTION>
Selects word processing mode.

	Name:	ESC	a	n
	Dec.:	27	97	n
	Hex.:	1B	61	n

	Comment:
	*The following values of n can be used.
		n=0: Releases word processing mode.
		n=1: Selects centering mode.
		n=2: Selects right alignment mode.
		n=3: Selects justification mode.


<CHARACTER DOT SPACING>
Sets character dot spacing 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.


<ITALIC FONT>
Selects italic character printing.

	Set:
	Name:	ESC	4
	Dec.:	27	52
	Hex.:	1B	34

	Release:
	Name:	ESC	5
	Dec.:	27	53
	Hex.:	1B	35

	Comment:
	*Italic characters are printed in place of characters
	 in character set locations from 32DEC to 126DEC
	 (from 20 HEX to 7E HEX).


<INTERNATIONAL CHARACTER SET>
Selects international character set.

	Name:	ESC	R	n
	Dec.:	27	82	n
	Hex.:	1B	52	n

	Comments:
	*The following values of n can be used:
		n=0 to 13: Selects one of 14 language character sets.
		n=64	 : Selects legal character set.
	*Character set tables in 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.


<GRAPHIC CHARACTER SET 1>
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 operational only when the graphic character
	 set is selected by ESC+t+1.


<GRAPHIC CHARACTER SET 2>
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 operational only when the graphic character
	 set is selected by ESC+t+1.


<ALTERNATE CHARACTER SET>
Selects alternate character set.

	Name:	ESC	t	n
	Dec.:	27	116	n
	Hex.:	1B	74	n

	Comments:
	*n=0: Italic
	 n=1: Graphic character set
	 n=2: Remaps any download characters from 0-127 to 128-255.


<8-PIN STANDARD DENSITY GRAPHICS>
Sets standard density graphics mode [60 dots per inch 
(25.4 mm)/480 dots per line].

	Name:	ESC	K	n1	n2	Data
	Dec.:	27	75	n1	n2	Data
	Hex.:	1B	4B	n1	n2	Data

	Comment:
	*Refer to "ESC+*+m+n1+n2" command.


<8-PIN DOUBLE DENSITY GRAPHICS>
Sets double density graphics mode [120 dots per inch
(25.4 mm)/960 dots per line].

	Name:	ESC	L	n1	n2	Data
	Dec.:	27	76	n1	n2	Data
	Hex.:	1B	4C	n1	n2	Data

	Comment:
	*Refer to "ESC+*+m+n1+n2" command.


<8-PIN DOUBLE SPEED/DOUBLE DENSITY GRAPHICS>
Sets double speed double density graphics mode 
[120 dots per inch (25.4 mm)/960 dots per line].

	Name:	ESC	Y	n1	n2	Data
	Dec.:	27	89	n1	n2	Data
	Hex.:	1B	59	n1	n2	Data

	Comment:
	*Horizontal adjacent dots cannot be printed.
	*Refer to "ESC+*+m+n1+n2" command.


<8-PIN QUADRUPLE DENSITY GRAPHICS>
Sets quadruple density graphics mode
[240 dots per inch (25.4 mm)/1920 dots per line].

	Name:	ESC	Z	n1	n2	Data
	Dec.:	27	90	n1	n2	Data
	Hex.:	1B	5A	n1	n2	Data

	Comment:
	*Horizontal adjacent dots cannot be printed.
	*Refer to "ESC+*+m+n1+n2" command.


<BIT IMAGE MODE SELECTION>
Selects one of the 8-pin or 24-pin bit image graphic modes.

	Name:	ESC	*	m	n1	n2	Data
	Dec.:	27	42	m	n1	n2	Data
	Hex.:	1B	2A	m	n1	n2	Data

	Comments:
	*The following table illustrates the various modes based upon the
	 values of m.

	m    pin  dpi   dpl
	----------------------------------------------------
	 0    8    60    480	Standard Density
	 1    8   120    960	Double Density
	 2    8   120    960	Double Speed, Double Density
	 3    8   240   1920	Quadruple Density
	 4    8    80    640	CRT I
	 6    8    90    720	CRT II
	32   24    60    480	Standard Density
	33   24   120    960	Double Density
	38   24    90    720	CRT III
	39   24   180   1440	Triple Density
	40   24   360   2880	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.

	* 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:

     Command		  Function			Dots/Inch  Dots/Line
ESC+"K"+n1+n2		Standard density		    60		480
ESC+"L"+n1+n2		Double density			    120		960
ESC+"Y"+n1+n2		Double speed,Double density	    120D	960
ESC+"Z"+n1+n2		Quadruple density		    240		1920
ESC+"*"+m+n1+n2		8-Pin Mode Selection:
			 m=0 (Standard)			    60		480
			 m=1 (Double)			    120		960
			 m=2 (Double speed,Double density)  120D	960
			 m=3 (Quadruple density)	    240		1920
			 m=4 (CRT I)			    80		640
			 m=6 (CRT II)			    90		720
			24-Pin Mode Selection:
			 m=32 (Standard)		    60		480
			 m=33 (Double)			    120		960
			 m=38 (CRT III)			    90		720
			 m=39 (Triple)			    180		1440
			 m=40 (Hex)			    360		2880
ESC+"["+"g"+n1+n2+m	8-Pin Mode Selection:
			 m=0 (Standard)			    60		480
			 m=1 (Double)			    120		960
			 m=2 (Double speed,Double density)  120D	960
			 m=3 (Quadruple density)	    240		1920
			24-Pin Mode Selection:
			 m=8 (Standard)			    60		480
			 m=9 (Double)			    120		960
			 m=11 (Triple)			    180		1440
			 m=12 (Hex)			    360		2880

	 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)+"["+CHR$(45)+CHR$(1)+CHR$(8);

	 Bit Image Graphics prints uni-directional for high precision
	 printing. For high speed printing set the printer to bi-directional
	 printing through initial setup mode or through the initial setup
	 disk.

	 Graphics mode is released immediately following the printing of
	 all bit image data. Printing will return to text mode.

	 Bit image data is not affected by MSB control commands.


	 4. Alternate Graphic Mode (AGM)
	 There are two methods of graphic printing in IBM mode. You can
	 set them through Alternate Graphic Mode setting through the initial
	 setup disk.

	 When AGM is set to OFF, 8-pin bit image graphic is printed by
	 using pins 1 through 20.

	 When AGM is set to ON, the printing of 8-pin graphic mode is the
	 same as in Epson mode. Also, graphic printing command, ESC+"*" in
	 Epson mode is effective in this mode. Therefore, you can use the
	 same command as in Epson mode.

	The following table shows commands affected by AGM mode.

				  AGM ON		  AGM OFF
ESC+"K"+n1+n2			use 24 pin		use 20 pin
ESC+"L"+n1+n2			use 24 pin		use 20 pin
ESC+"Y"+n1+n2			use 24 pin		use 20 pin
ESC+"Z"+n1+n2			use 24 pin		use 20 pin

ESC+"["+"g"+    8-pin mode	use 24 pin		use 20 pin
 n1+n2+m	24-pin mode 	use 24 pin		use 24 pin

ESC+"3"+n			based on 1/180 inch	based on 1/216 inch
ESC+"A"+n			based on 1/60 inch	based on 1/72 inch
ESC+"J"+n			based on 1/180 inch	based on 1/216 inch


<BIT IMAGE MODE REASSIGNMENT>
Reassigns bit image graphics mode density.

	Name:	ESC	?	n	m
	Dec.:	27	63	n	m
	Hex.:	1B	3F	n	m

	Comments:
	*The value of n specifies the graphics mode which is
	 to be reassigned:
		n=75: Reassign Standard Density (ESC+K+n1+n2)
		n=76: Reassign Double Density (ESC+L+n1+n2)
		n=89: Reassign Double Speed, Double Density (ESC+Y+n1+n2)
		n=90: Reassign Quadruple Density (ESC+Z+n1+n2)
	*The value of m specifies the graphics mode to which the
	 original is to be reassigned. Refer to the bit image mode
	 table on page 6-18.


<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


<n/60 INCH PAPER FEED>
Sets paper feed amount to n/60 inch.

	Name:	ESC	A	n	(n = 0 to 127)DEC
	Dec.:	27	65	n
	Hex.:	1B	41	n


<n/180 INCH PAPER FEED>
Sets programmable paper feed amount to n/180 inch.

	Name:	ESC	3	n
	Dec.:	27	51	n
	Hex.:	1B	33	n

	Comment:
	*n/180 inch paper feed is valid for n = 0 to 255.


<n/360 INCH PAPER FEED>
Sets paper feed amount to n/360 inch.

	Name:	ESC	+	n	(n = 0 to 255)DEC
	Dec.:	27	43	n
	Hex.:	1B	2B	n


<LINE FEED (LF)>
Feeds paper to next line position after printing data in the line buffer.

	Name:	LF
	Dec.:	10
	Hex.:	0A

	Comments:
	*The amount of spacing generated by LF is determined by the
	 paper feed commands.
	*When the new line position falls within the perforation skip
	 area, the paper advances to the next top of form position.


<FORM FEED (FF)>
Feeds paper to next top of form position after printing data in the line buffer.
	Name:	FF
	Dec.:	12
	Hex.:	0C

	Comment:
	*The amount of spacing generated by FF is determined
	 by the page length commands or the initial setup.


<n/180 INCH SINGLE LINE FEED>
Feeds paper n/180 inch after printing data in the line buffer.

	Name:	ESC	J	n	(n = 0 to 255)DEC
	Dec.:	27	74	n
	Hex.:	1B	4A	n


<n/180 INCH REVERSE DIRECTION SINGLE LINE FEED>
Prints data in the line buffer and feeds the paper n/180 inch
in the reverse direction.

	Name:	ESC	j	n	(n = 0 to 255)DEC
	Dec.:	27	106	n
	Hex.:	1B	6A	n

	Note:
	*Reverse paper feed cannot be executed in the area within
	 3.6inches (91.4 mm) of the bottom perforation. Additionally,
	 the perforation should not be included in the area of
	 reverse paper feed.


<PAGE LENGTH (INCHES)>
Sets page length in inches.

	Name:	ESC	C	0	n	(n = 0 to 22)DEC
	Dec.:	27	67	0	n
	Hex.:	1B	43	00	n

	Comments:
	*Upon receipt of ESC+C+0+n, the present line position becomes
	 the top of form position.
	*ESC+C+0+n releases the skip perforation settings.
	*The page length does not change even if the paper feed amount
	 is changed.
	*The terms form and page are interchangeable.


<PAGE LENGTH (LINES)>
Sets page length in number of lines.

	Name:	ESC	C	n	(n = 1 to 127)DEC
	Dec.:	27	67	n
	Hex.:	1B	43	n

	Comments:
	*Upon receipt of ESC+C+n, the present line position becomes
	 the top of form position.
	*If n=0, page length returns to the inch designation.
	*ESC+C+n releases the skip perforation settings.
	*The page length does not change even if the paper feed amount
	 is changed
	*The terms form and page are interchangeable.


<LEFT MARGIN>
Sets position of left margin.

	Name:	ESC	l	n
	Dec.:	27	108	n
	Hex.:	1B	6C	n

	Comments:
	*The following values of n can be used:
		PICA		n = 0 to 78
		ELITE		n = 0 to 93
		MICRON		n = 0 to 117
		COMPRESSED	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.


<RIGHT MARGIN>
Sets position of right margin.

	Name:	ESC	Q	n
	Dec.:	27	81	n
	Hex.:	1B	51	n

	Comments:
	The following values of n can be used:
		PICA		n = 2 to 80
		ELITE		n = 3 to 96
		MICRON		n = 3 to 120
		COMPRESSED	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.


<SKIP PERFORATION>
Sets skip perforation.

	Set:
	Name:	ESC	N	n	 (n = 1 to 127)DEC
	Dec.:	27	78	n
	Hex.:	1B	4E	n

	Release:
	Name:	ESC	O
	Dec.:	27	79
	Hex.:	1B	4F

	Comments:
	*The value of n specifies the number of lines (or n times the current
	 line spacing amount) to be skipped at the bottom of the page.
	*If n>128, the value is processed as n-128. If n=128 the command
	 is ignored.
	*The skip perforation amount does not change even if the paper feed
	 amount is changed following a skip perforation designation.
	*The skip perforation setting is released upon receipt of the page
	 length designation command.


<HORIZONTAL TAB STOP SETTING>
Sets horizontal tabulations to specified values.

	Set:
	Name:	ESC	D	n1	n2...nx		0
	Dec.:	27	68	n1	n2...nx		0
	Hex.:	1B	44	n1	n2...nx		00

	Release:
	Name:	ESC	D	0
	Dec.:	27	68	0
	Hex.:	1B	44	00

	Comments:
	*Horizontal tabs are set from the left margin position.
	*Horizontal tabs must be designated such that n1<n<2<...<nx.
	*A maximum of 32 tabs may be set on a single line.
	*ESC+D+n1+n2+...+nx+0 sets horizontal tab stops. The HT command
	 executes the tab designation.
	*In proportional spacing, horizontal tabs are set based on 10 cpi.
	*When the left margin is changed, horizontal tabs will be moved
	 based on new margin setting.
	*When the printer is powered up, tabs are automatically set every
	 8 characters.
	*If the pitch is altered after designation of horizontal tabs,
	 the tab positions do not move.


<HORIZONTAL TAB EXECUTION>
Executes the horizontal TAB as designated by ESC+D+n1+n2...+nx+0.

	Name:	HT
	Dec.:	9
	Hex.:	09

	Comments:
	*If the value of horizontal TAB is less than present column
	 position, then HT is ignored.
	*When in underline mode, the blank spaces between consecutive
	 HT print positions are not underlined.


<VERTICAL TAB STOP SETTING>
Sets vertical tabulation to specified values.

	Set:
	Name:	ESC	B	n1	n2...nx		0
	Dec.:	27	66	n1	n2...nx		0
	Hex.:	1B	42	n1	n2...nx		00

	Release:
	Name:	ESC	B	0
	Dec.:	27	66	0
	Hex.:	1B	42	00

	Comments:
	*VT is set from the top of form position.
	*Vertical tabs must be designed such that n1<n2...<nx.
	*ESC+B+n1+n2+...+nx+0 sets vertical tab stops. The VT
	 command executes the tab designation.
	*If the paper feed amount is changed after a designation
	 of vertical tabs, the positions do not change.
	*VT settings are released by page length designation commands.
	*A maximum of 16 tabs may be set.


<VERTICAL TAB EXECUTION>
Executes the vertical TAB as designated by
ESC+B+n1+n2+...+nx+0, ESC+b+m+n1+n2+...nx+0.

	Name:	VT
	Dec.:	11
	Hex.:	0B

	Comments:
	*When TABs are set with VT or VFU setting command and when
	 there is no tab setting on a position exceeding the present
	 line, data in the line buffer is printed and the paper is fed
	 to the next top of form position (same as FF).
	*On power up no vertical tabs have been set; therefore, when
	 a VT is sent, the paper advances one line.
	*When vertical TAB is cleared by ESC+B+0, execution of VT
	 causes data in the line buffer to be printed and does not
	 advance the paper.


<VFU CHANNEL SELECTION>
Selects one of eight channels in the Vertical Format Unit (VFU).

	Name:	ESC	/	n	(n = 0 to 7)DEC
	Dec.:	27	47	n
	Hex.:	1B	2F	n

	Comments:
	*The value of n selects one of eight channels (0 to 7).
	*Channel 0 is the default setting.


<VFU SETTING>
Sets the tab position of any channel in the VFU (Vertical Format Unit).

	Set:
	Name:	ESC	b	m	n1	n2...nx		0
	Dec.:	27	98	m	n1	n2...nx		0
	Hex.:	1B	62	m	n1	n2...nx		00
		(m=0 to 7) (x=1 to 16)

	Release:
	Name:	ESC	b	m	0
	Dec.:	27	98	m	0
	Hex.:	1B	62	m	00
		(m=0 to 7)

	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 (11DEC) after
	 selecting the channel via channel selection command (ESC+/+n).
	*The VFU position does not change even if paper feed amount is
	 altered after VFU setting.
	*The VFU setting is also released by the page length
	 designation commands.
	*The vertical tab specified with ESC+B+n1+n2+...nx+0 is set
	 to VFU channel 0.


<BACKSPACE>
Prints data in the line buffer and backspaces one space.

	Name:	BS
	Dec.:	8
	Hex.:	08

	Comment:
	*The backspacing amount will depend upon the pitch set when
	 the BS code is executed.


<CARRIAGE RETURN>
Prints data in the line buffer and returns the printhead
to the left margin position.

	Name:	CR
	Dec.:	13
	Hex.:	0D

	Comments:
	*Certain computers issue an automatic line feed with
	 a carriage return. Check your computer manual for details.
	*When automatic LF is set to ON through the initial setup mode
	 or through initial setup disk, a LF is executed whenever a CR
	 code is executed.


<ONE LINE UNI-DIRECTION>
Causes printhead to move to its left margin position.

	Name:	ESC	<
	Dec.:	27	60
	Hex.:	1B	3C


<UNI-DIRECTION>
Sets uni-directional printing mode.

	Set:
	Name:	ESC	U	1
	Dec.:	27	85	1
	Hex.:	1B	55	01

	Release:
	Name:	ESC	U	0
	Dec.:	27	85	0
	Hex.:	1B	55	00


<HALF SPEED PRINTING>
Sets printing to half speed.

	Set:
	Name:	ESC	s	1
	Dec.:	27	115	1
	Hex.:	1B	73	01

	Release:
	Name:	ESC	s	0
	Dec.:	27	115	0
	Hex.:	1B	73	00

	Comment:
	*Half speed printing can be set only in the draft pica,
	 draft elite, standard density image, double-speed
	 double-density image, CRT I image and CRT II image modes.


<ABSOLUTE HORIZONTAL POSITION>
Moves the printhead to an absolute horizontal position.

	Name:	ESC	$	n1	n2
	Dec.:	27	36	n1	n2
	Hex.:	1B	24	n1	n2

	Comments:
	*This command moves the print position to a position
	 n1+256xn2 dots (units) from the left margin. Each unit
	 equals 1/60th of an inch.
	*To calculate n1 and n2 first determine the total increments
	 of 1/60 inch to  move the print position from the left margin.
	*To move n/60 inch position:
		n1=n MOD 256
		n2=int (n/256)


<RELATIVE HORIZONTAL POSITION>
Moves the printhead left or right to a relative horizontal position.

	Name:	ESC	\	n1	n2
	Dec.:	27	92	n1	n2
	Hex.:	1B	5C	n1	n2

	Comments:
	*This command moves the print position n/120 inch from current
	 position.
	*To calculate n1 and n2 first determine the total increments of
	 1/120 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 inch to right: m=n
	*To move n/120 inch to left: m=65536-n
	*n1=m MOD 256 n2=int (m/256)
	*If the resulting movement would place the printhead outside
	 current margins, the command is ignored.


<CANCEL>
Clears all data in the line buffer.

	Name:	CAN
	Dec.:	24
	Hex.:	18


<REMOTE PRINTER SELECT>
Selects printer after it has been deselected by DC3.

	Name:	DC1	(Device Control 1)
	Dec.:	17
	Hex.:	11

	Comment:
	*All data sent to the printer between DC3 and DC1 is lost.


<REMOTE PRINTER DESELECT>
Deselects printer until it has been selected by DC1.

	Name:	DC3	(Device Control 3)
	Dec.:	19
	Hex.:	13

	Comment:
	*All data sent to the printer between DC3 and DC1 is lost.


<DELETE>
Deletes the last character stored in the line buffer.

	Name:	DEL
	Dec.:	127
	Hex.:	7F

	Comment:
	*Only text characters may be deleted. Bit image data, spacing
	 generated by consecutive TABs, and commands cannot be deleted.


<MSB ON>
Sets the Most Significant Bit to 1.

	Name:	ESC	>
	Dec.:	27	62
	Hex.:	1B	3E

	Comments:
	*ESC+> has no effect on bit image data.
	*This setting can be released by ESC+#.


<MSB OFF>
Sets the Most Significant Bit to 0.

	Name:	ESC	=
	Dec.:	27	61
	Hex.:	1B	3D

	Comments:
	*ESC+= has no effect on bit image data.
	*This setting can be released by ESC+#.


<CANCELS MSB SETTING>
Sets printer to receive 8th bit as is.

	Name:	ESC	#
	Dec.:	27	35
	Hex.:	1B	23

	Comment:
	*This setting has no effect on bit image data.


<FONT DOWNLOADING>
Defines download characters into specified address locations in RAM.

	Name:	ESC  &    0    n    m    d0   d1   d2   Data
	Dec.:	27   38   0    n    m    d0   d1   d2   Data
	Hex.:	1B   26   00   n    m    d0   d1   d2   Data

	Comments:
	*The values n and m are the ASCII address locations of the
	 first and last characters being defined.
	*The values of d0, d1 and d2 define the character cell.
	*d0=Left Space d1=Body d2=Right Space
	*The values of d0,d1 and d2 vary with pitch as follows:

			d1	 d0+d1+d2 (total)
	Draft		9		12
	LQ 10 cpi	29		36
	LQ 12 cpi	23		30
	LQ 15 cpi	15		24
	PS		37		42

	*This command is operational only when the 32K buffer option
	 (KX-P44) is installed.

	*Download Characters
	 Should you need to custom design special characters in addition
	 to those provided, the 32K byte buffer option (KX-P44), is
	 required. 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.

	 To Download a character, you must first make preparations for:
	 - Installing the 32K buffer option (KX-P44).
	 - Download buffer selection is set through initial setup disk.

	*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.
	 Letter quality download characters can be printed only when the
	 FONT is set to Bold PS, Courier, Prestige, or through the front
	 panel or through software commands.


<SELECTS ROM CG OR DOWNLOADED CG>

	Name:	ESC	%	n
	Dec.:	27	37	n
	Hex.:	1B	25	n

	Comment:
	*The following values of n can be used.
	*n=0: Select ROM Character Generator (CG)
	*n=1: Select download CG


<ROM CHARACTER GENERATION SET COPY>
Copies both draft and LQ internal ROM CG font into the
downloadable font area.

	Name:	ESC	:	0	n	0	(n = 0, 2, 3, 4, 6)
	Dec.:	27	58	0	n	0
	Hex.:	1B	3A	00	n	00

	Comments:
	*The value of n specifies the LQ font to download.
	 Refer to Font Style command ESC+"k"+n.
	*Upon receipt of the command, all previous downloaded fonts
	 are cleared.
	*When altering only part of the ROM CG, use this command
	 before font downloading.


<RESET PRINTER>
Initializes printer, causing data in the line buffer,
but not in the receive buffer, to be cleared.

	Name:	ESC	@
	Dec.:	27	64
	Hex.:	1B	40


<SELECTS CSF>
Selects Cut Sheet Feeder (CSF) mode ON/OFF.

	Name:	ESC	EM	n
	Dec.:	27	25	n
	Hex.:	1B	19	n

	Comment:
	*The following values of n can be used.
	*n=R: Eject a sheet
	*n=0: Cut Sheet Feeder mode is OFF
	*n=4: Cut Sheet Feeder mode is ON 

	Note:
	*If the Cut Sheet Feeder mode is set to ON without
	 installing the CSF, the paper will not feed correctly.


;
;                    *******************************
;                    *****  IBM Mode Commands  *****
;                    *******************************


<PRINT QUALITY>

	Name:	ESC	I	n
	Dec.:	27	73	n
	Hex.:	1B	49	n

	Comment:
	*The following values of n can be used.
		n=0: 	Internal Draft 10 cpi mode
		n=2: 	Internal LQ 10 cpi Courier
		n=3: 	Internal LQ Proportional Bold PS
		n=4: 	Download Draft 10 cpi mode
		n=6: 	Download LQ 10 cpi mode
		n=7: 	Download LQ Proportional mode
		n=8: 	Internal Draft 12 cpi mode
		n=10: 	Internal LQ 12 cpi Prestige
		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 Courier
		n=20: 	Download Draft 17 cpi mode
		n=22: 	Download LQ 17 cpi mode


<TYPEFACE>
Selects LQ Typeface.

	Name:	ESC	k	n
	Dec.:	27	107	n
	Hex.:	1B	6B	n

	Comments:
	*The following values can be used.
		n=0: 	Courier font
		n=2: 	Courier font
		n=3: 	Prestige font
		n=4: 	Script font
		n=6: 	Bold PS font
	*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.


<SUB/SUPERSCRIPT FONT>
Selects sub/superscript font with characters printed
in the lower/upper 2/3 area of the line.

	Set:
	Name:	ESC	S	n
	Dec.:	27	83	n
	Hex.:	1B	53	n

	Release:
	Name:	ESC	T
	Dec.:	27	84
	Hex.:	1B	54

	Comments:
	*n=0: Superscript
	 n=1: Subscript
	*Sub/superscript font is 2/3 normal character height.
	*Sub/superscript characters are normal width.


<ELITE PITCH>
Sets printing to 12 characters per inch.

	Set:
	Name:	ESC	:
	Dec.:	27	58
	Hex.:	1B	3A

	Release:
	Name:	DC2
	Dec.:	18
	Hex.:	12

	Comment:
	*When in Letter Quality mode, ESC + : selects
	 the Prestige Typeface (Refer to ESC+I+n).


<COMPRESSED PITCH>
Sets printing to 17 characters per inch (up to 137 characters per line.)

	Set:
	Name:	SI	or	ESC	SI
	Dec.:	15	or	27	15
	Hex.:	0F	or	1B	0F

	Release:
	Name:	DC2
	Dec.:	18
	Hex.:	12

	Comment: 
	*When in Letter Quality mode, SI or ESC + SI selects
	 the Courier Typeface (Refer to ESC+I+n).


<PROPORTIONAL SPACING>
Sets proportional spacing between characters.

	Set:
	Name:	ESC	P	1
	Dec.:	27	80	1
	Hex.:	1B	50	01

	Release:
	Name:	ESC	P	0
	Dec.:	27	80	0
	Hex.:	1B	50	00

	Comment: 
	*When in Letter Quality mode, ESC + P + 1 selects
	 the Bold PS Typeface (Refer to ESC+I+n).


<EMPHASIZED PRINTING>
Sets printing to twice the original horizontal dot density.

	Set:
	Name:	ESC	E
	Dec.:	27	69
	Hex.:	1B	45

	Release:
	Name:	ESC	F
	Dec.:	27	70
	Hex.:	1B	46

	Comment: 
	*Emphasized characters are printed at half speed
	 (100 cps in draft pica pitch).


<DOUBLE STRIKE PRINTING>
Sets double strike character printing.

	Set:
	Name:	ESC	G
	Dec.:	27	71
	Hex.:	1B	47

	Release:
	Name:	ESC	H
	Dec.:	27	72
	Hex.:	1B	48

	Comment:
	*Double strike printing prints each line twice,
	 with the second line slightly below the first
	 to create a bold appearance.


<DOUBLE WIDE PRINTING SINGLE LINE>
Sets double wide expanded printing for one line only.

	Set:
	Name:	SO	or	ESC	SO
	Dec.:	14		27	14
	Hex.:	0E		1B	0E

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

	Comment:
	*Single line double wide printing is released when:
	 a LF,FF or VT is executed.
	 a CR is executed.
	 DC4 or ESC+W+0 is executed.


<DOUBLE WIDE PRINTING>
Sets double wide expanded printing.

	Set:
	Name:	ESC	W	1
	Dec.:	27	87	1
	Hex.:	1B	57	01

	Release:
	Name:	ESC	W	0
	Dec.:	27	87	0
	Hex.:	1B	57	00

	Comment:
	*DC4 will not release the double wide printing set by ESC+W+1.


<DOUBLE HIGH AND DOUBLE WIDE PRINTING>
Sets printing to double high, double wide or both at the same time.

	Name:	ESC  [   @   4   0   0   0   m3  m4
	Dec.:	27   91  64  4   0   0   0   m3  m4
	Hex.:	1B   5B  40  04  00  00  00  m3  m4

	Comments:
	*The value of m3 selects both the line feed and character
	 height as follows:

			Function
	m3	Line feed	Character height
	----------------------------------------
	0	Unchanged	Unchanged
	1	Unchanged	Single-line
	2	Unchanged	Double-high
	16	Single		Unchanged
	17	Single		Single-high
	18	Single		Double-high
	32	Double		Unchanged
	33	Double		Single-high
	34	Double		Double-high

	*The value of m4 selects the character width as follows:
		m4=0:		No change
		m4=1:		Single-width
		m4=2:		Double-width


<UNDERLINING>
Sets continuous underlining of characters.

	Set:
	Name:	ESC	-	1
	Dec.:	27	45	1
	Hex.:	1B	2D	01

	Release:
	Name:	ESC	-	0
	Dec.:	27	45	0
	Hex.:	1B	2D	00

	Comments:
	*Bit image data, spaces set by the HT code and IBM Graphic
	 characters will not be underlined.
	*Pin No. 24 of the printhead is used for underlining.


<OVERLINING>
Sets continuous overlining of characters.

	Set:
	Name:	ESC	_	1
	Dec.:	27	95	1
	Hex.:	1B	5F	01

	Release:
	Name:	ESC	_	0
	Dec.:	27	95	0
	Hex.:	1B	5F	00

	Comments:
	*Bit image data, spaces set by the HT code, IBM graphic
	 characters will not be overlined.
	*Pin No. 1 of the printhead is used for overlining.


<IBM CHARACTER SET 1>
Selects IBM Character Set 1.

	Name:	ESC	7
	Dec.:	27	55
	Hex.:	1B	37

	Comment:
	*Refer to character set tables in appendix of the operating
	 instruction manual.


<IBM CHARACTER SET 2>
Selects IBM Character Set 2.

	Name:	ESC	6
	Dec.:	27	54
	Hex.:	1B	36

	Comment:
	*Refer to character set tables in appendix of the operating
	 instruction manual.


<SETS CODE PAGE>
Changes the current code page.

	Name:	ESC  [    T    4    0    0    0    n1   n2
	Dec.:	27   91	  84   4    0    0    0    n1   n2
	Hex.:	1B   5B	  54   04   00   00   00   n1   n2

	Comments:
	*The values of n1 and n2 select the code pages as follows:
		n1=00H and n2=00H:		Current
		n1=01H and n2=B5H:		USA
		n1=03H and n2=52H:		Multilingual
		n1=03H and n2=5CH:		Portugal
		n1=03H and n2=5FH:		Canada French
		n1=03H and n2=61H:		Norway
		n1=03H and n2=59H:		Turkey
		Except the above:		Downloaded font
	*Refer to character set tables in appendix of the operating
	 instruction manual.


<8-PIN STANDARD DENSITY GRAPHICS>
Sets standard density graphic mode [60 dots per inch
(25.4 mm)/480 dots per line].

	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
(25.4 mm)/960 dots per line].

	Name:	ESC	L	n1	n2	Data
	Dec.:	27	76	n1	n2	Data
	Hex.:	1B	4C	n1	n2	Data

	Comment:
	*Refer to "ESC+*+m+n1+n2" command in Epson mode.


<DOUBLE SPEED, DOUBLE DENSITY GRAPHICS>
Sets double speed, double density graphics mode
[120 dots per inch (25.4 mm)/960 dots per line].

	Name:	ESC	Y	n1	n2	Data
	Dec.:	27	89	n1	n2	Data
	Hex.:	1B	59	n1	n2	Data

	Comment:
	*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
(25.4 mm)/1920 dots per line].

	Name:	ESC	Z	n1	n2	Data
	Dec.:	27	90	n1	n2	Data
	Hex.:	1B	5A	n1	n2	Data

	Comment:
	*Horizontal adjacent dots cannot be printed.
	*Refer to "ESC+*+m+n1+n2" command in Epson mode.


<BIT IMAGE MODE SELECTION (AGM)>
Selects one of the 8-pin and 24-pin bit image graphic modes (AGM only).

	Name:	ESC	*	m	n1	n2	Data
	Dec.:	27	42	m	n1	n2	Data
	Hex.:	1B	2A	m	n1	n2	Data

	Comments:
	*The following table illustrates the various modes
	 based upon the values of m.

	m    pin  dpi   dpl
	----------------------------------------------------
	 0    8    60    480	Standard Density
	 1    8   120    960	Double Density
	 2    8   120    960	Double Speed, Double Density
	 3    8   240   1920	Quadruple Density
	 4    8    80    640	CRT I
	 6    8    90    720	CRT II
	32   24    60    480	Standard Density
	33   24   120    960	Double Density
	38   24    90    720	CRT III
	39   24   180   1440	Triple Density
	40   24   360   2880	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.
	*Refer to "ESC+*+m+n1+n2" command in Epson mode.


<BIT IMAGE MODE SELECTION>
Selects one of the 8-pin or 24-pin bit image graphic modes.

	Name:	ESC	[	g	n1	n2	m	Data
	Dec.:	27	91	103	n1	n2	m	Data
	Hex.:	1B	5B	67	n1	n2	m	Data

	Comments:
	*The following table illustrates the various modes
	 based upon the values of m.

	m    pin  dpi   dpl
	----------------------------------------------------
	 0    8    60    480	Standard Density
	 1    8   120    960	Double Density
	 2    8   120    960	Double Speed, Double Density
	 3    8   240   1920	Quadruple Density
	 8   24    60    480	Standard Density
	 9   24   120    960	Double Density
	11   24   180   1440	Triple Density
	12   24   360   2880	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


<LINE SPACING>
Executes line spacing set by ESC+A+n.

	Name:	ESC	2
	Dec.:	27	50
	Hex.:	1B	32


<n/72 INCH PAPER FEED SELECTION>
Sets paper feed amount to n/72 inch or n/60 inch (AGM).

	Name:	ESC	A	n	(n = 0 to 255)DEC
	Dec.:	27	65	n
	Hex.:	1B	41	n

	Comments:
	*ESC+2 must be input after ESC+A+n for n/72 inch paper feed
	 to become effective (when AGM is set to OFF only).
	*In the AGM mode, this command sets one line paper feed of
	 n/60 inch.


<n/216 INCH PAPER FEED>
Sets paper feed amount to n/216 inch or n/180 inch (AGM).

	Name:	ESC	3	n	(n = 0 to 255)DEC
	Dec.:	27	51	n
	Hex.:	1B	33	n

	Comments:
	*The paper feed amount is not exactly n/216 inch, for the
	 minimum unit is 1/360 inch.
	*In the AGM mode, this command sets one line paper feed of
	 n/180 inch.


<PAPER FEED BASE UNIT>
Selects base unit for ESC+3 and ESC+J.

	Name:	ESC   [     \     4    0    0    0    0    n
	Dec.:	27    91    92    4    0    0    0    0    n
	Hex.:	1B    5B    5C    04   00   00   00   00   n

	Comments:
	*The following values of n can be used:
		n=180 		n/180 inch base unit
		n=216 		1/216 inch base unit


<AUTOMATIC LINE FEED MODE>
Automatically executes a line feed following a carriage return.

	Set:
	Name:	ESC	5	1
	Dec.:	27	53	1
	Hex.:	1B	35	01

	Release:
	Name:	ESC	5	0
	Dec.:	27	53	0
	Hex.:	1B	35	00


<LINE FEED (LF)>
Feeds paper to next line position after printing data in the line buffer.

	Name:	LF
	Dec.:	10
	Hex.:	0A

	Comments:
	*The amount of spacing generated by LF is determined
	 by the paper feed commands.
	*When the new line position falls within the skip perforation
	 area, the paper advances to the next top of form position.
	*When Auto CR is set to ON through the initial setup disk,
	 a Carriage Return command (CR) is added to each Line Feed (LF).


<FORM FEED (FF)>
Feeds paper to next top of form position after printing data in the line buffer.
	Name:	FF
	Dec.:	12
	Hex.:	0C

	Comment:
	*The amount of spacing generated by FF is determined
	 by the page length commands or the initial setup.


<n/216 INCH SINGLE LINE FEED>
Feeds paper n/216 inch or n/180 inch (AGM) after printing data
in the line buffer.

	Name:	ESC	J	n	(n = 0 to 255)DEC
	Dec.:	27	74	n
	Hex.:	1B	4A	n

	Comments:
	*When Auto CR is set to ON through the initial setup disk,
	 a carriage return command (CR) is added to each line feed.
	*The paper feed amount is not exactly n/216 inch, for the
	 minimum unit is 1/360 inch.
	*In the AGM mode, this command sets one line paper feed of
	 n/180 inch.


<PAGE LENGTH (INCHES)>
Sets page length in inches.

	Name:	ESC	C	0	n	(n = 1 to 255)DEC
	Dec.:	27	67	0	n
	Hex.:	1B	43	00	n

	Comments:
	*Upon receipt of ESC+C+0+n, the present line position
	 becomes the top of form position.
	*ESC+C+0+n releases the skip perforation settings.
	*The page length does not change even if the paper feed
	 amount is changed.
	*The terms form and page are interchangeable.


<PAGE LENGTH (LINES)>
Sets page length in number of lines.

	Name:	ESC	C	n	(n = 1 to 255)DEC
	Dec.:	27	67	n
	Hex.:	1B	43	n

	Comments:
	*Upon receipt of ESC+C+n, the present line position
	 becomes the top of form position.
	*If n=0, page length returns to the inch designation.
	*ESC+C+n releases the skip perforation settings.
	*The page length does not change even if the paper feed
	 amount is changed.
	*The terms form and page are interchangeable.


<MARGIN SET>
Sets positions of left and right margins.

	Name:	ESC	X	n1	n2
	Dec.:	27	88	n1	n2
	Hex.:	1B	58	n1	n2

	Comments:
	*The following values of n1 (left) and n2 (right) can be used:
					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.


<SKIP PERFORATION>
Sets skip perforation.

	Set:
	Name:	ESC	N	n	(n = 0 to 255)
	Dec.:	27	78	n
	Hex.:	1B	4E	n

	Release:
	Name:	ESC	O
	Dec.:	27	79
	Hex.:	1B	4F

	Comments:
	*The value of n specifies the number of lines (or n times
	 the current line spacing amount) to be skipped at the bottom
	 of the page. The skip perforation amount does not change
	 even if the paper feed amount is changed following a skip
	 perforation designation.
	*The skip perforation is released upon receipt of the page
	 length designation command.


<TOP OF FORM>
Sets current paper position as the new top of form.

	Name:	ESC	4
	Dec.:	27	52
	Hex.:	1B	34


<HORIZONTAL TAB STOP SETTING>
Sets horizontal tabulations to specified values.

	Set:
	Name:	ESC	D	n1	n2...nx		0
	Dec.:	27	68	n1	n2...nx		0
	Hex.:	1B	44	n1	n2...nx		00

	Release:
	Name:	ESC	D	0
	Dec.:	27	68	0
	Hex.:	1B	44	00

	Comments:
	*Horizontal tabs are set from the left margin position.
	*Horizontal tabs must be designated such that n1<n2...<nx.
	*A maximum of 32 tabs may be set on a single line.
	*ESC+D+n1+n2+...+nx+0 sets horizontal tab stops.
	*The HT command executes the tab designation.
	*In proportional spacing, horizontal tabs are set based on 10 cpi.
	*If the character pitch is altered after designation of
	 horizontal tabs, the tab positions change.
	*When the left margin is changed, horizontal tabs will be
	 moved based on the new margin setting.
	*When the printer is powered up, tabs are automatically set
	 every 8 characters.


<HORIZONTAL TAB EXECUTION>
Executes the horizontal TAB as designated by ESC+D+n1+n2+...nx+0.

	Name:	HT
	Dec.:	9
	Hex.:	09

	Comments:
	*If the value of the horizontal TAB is less than the
	 present column position, that HT is ignored.
	*When in underline mode, the blank spaces between
	 consecutive HT print positions are not underlined.


<VERTICAL TAB STOP SETTING>
Sets vertical tabulation to specified values.

	Set:
	Name:	ESC	B	n1	n2...nx		0
	Dec.:	27	66	n1	n2...nx		0
	Hex.:	1B	42	n1	n2...nx		00

	Release:
	Name:	ESC	B	0
	Dec.:	27	66	0
	Hex.:	1B	42	00

	Comments:
	*VT is set from the top of form position.
	*Vertical tabs must be designed such that n1<n2...<nx.
	*ESC+B+n1+n2+...nx+0 sets vertical tab stops. The VT command
	 executes the tab designation.
	*If the paper feed amount is changed after a designation of
	 vertical tabs, the tab positions do not change.
	*A maximum of 64 tabs may be set.


<VERTICAL TAB EXECUTION>
Executes the vertical TAB as designated by ESC+B+n1+n2+...+nx+0.

	Name:	VT
	Dec.:	11
	Hex.:	0B

	Comments:
	*When TABs are set with VT setting command and there is
	 no tab setting on a position exceeding the present line,
	 data in the line buffer is printed and the paper is fed
	 one line (same as LF).
	*When vertical TAB has not been set by ESC+B+n1+n2+...+nx+0,
	 execution of VT causes data in the line buffer to be printed
	 and advances the paper one line (same function as LF).


<ALL TAB INITIAL CLEAR>
Sets all tabs to power on settings.

	Name:	ESC	R
	Dec.:	27	82
	Hex.:	1B	52

	Comment:
	*This command sets horizontal tabs at every 8th position
	 and clears all vertical tabs.


<BACKSPACE>
Prints data in the line buffer and backspaces one space.

	Name:	BS
	Dec.:	8
	Hex.:	08

	Comment:
	*The backspacing amount will depend upon the pitch set when
	 the BS code is executed.


<CARRIAGE RETURN>
Prints all data in the line buffer and returns the printhead
to the left margin position.

	Name:	CR
	Dec.:	13
	Hex.:	0D

	Comments:
	*Certain computers issue an automatic line feed with
	 a carriage return. Check your computer manual for details.
	*When Auto LF is set to ON through the initial setup mode,
	 a Line Feed command (LF) is added to each Carriage Return (CR)
	 double width printing set.


<UNI-DIRECTION>
Sets uni-directional printing mode.

	Set:
	Name:	ESC	U	1
	Dec.:	27	85	1
	Hex.:	1B	55	01

	Release:
	Name:	ESC	U	0
	Dec.:	27	85	0
	Hex.:	1B	55	00


<RELATIVE HORIZONTAL POSITION>
Moves the printhead toward the right n/120 inch.

	Name:	ESC	d	n1	n2
	Dec.:	27	100	n1	n2
	Hex.:	1B	64	n1	n2

	Comments:
	*Each unit equals n/120 of an inch
	*Let m=# of units
		Divide m by 256 using long division
		The quotient=n2
		The remainder=n1
	*When underlining or overlining, spaces created by the move
	 are underlined or overlined.


<CANCEL>
Clears all data in the line buffer.

	Name:	CAN
	Dec.:	24
	Hex.:	18


<REMOTE PRINTER SELECT>
Selects printer after it has been deselected by ESC+Q+36.

	Name:	DC1	(Device Control 1)
	Dec.:	17
	Hex.:	11

	Comment:
	*All data sent to the printer between ESC+Q+36 and DC1 is lost.


<REMOTE DESELECT PRINTER>
Deselects printer until it has been selected by DC1.

	Name:	ESC	Q	36
	Dec.:	27	81	36
	Hex.:	1B	51	24

	Comment:
	*All data sent to the printer between DC3 and DC1 is lost.


<FONT DOWNLOADING>
Defines download characters into specified address locations
in RAM.

	Name:	ESC	=	n1	n2	35	A1	A2	Data
	Dec.:	27	61	n1	n2	35	A1	A2	Data
	Hex.:	1B	3D	n1	n2	23	A1	A2	Data

	Comments:
	*This command is operational only when the 32K buffer option
	 (KX-P44) is installed.
	*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.

	*Download Characters
	 Should you need to custom design special characters in addition
	 to those provided, the 32K byte buffer option (KX-P44), is
	 required. 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.

	 To Download a character, you must first make preparations for:
	 - Installing the 32K buffer option (KX-P44).
	 - Download buffer selection is set through initial setup disk.

	*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.


<ALL CHARACTER CHART PRINTING (Continuous)>
Prints continuously from the All Character Chart.

	Name:	ESC	\	n1	n2
	Dec.:	27	92	n1	n2
	Hex.:	1B	5C	n1	n2

	Comments:
	*The values specified for n1 and n2 indicate how many
	 characters to print from All Character Chart, calculating
	 the total count with this formula; Total count=n2x256+n1.
	*The data following this command will be printed as characters
	 from the All Character Chart.
	*Refer to IBM All Character Chart in appendix of the operating
	 instruction manual.


<ALL CHARACTER CHART PRINTING (Single)>
Prints a single character from the All Character Chart.

	Name:	ESC	^
	Dec.:	27	94
	Hex.:	1B	5E

	Comments:
	*Only the first byte of data following this command will
	 be printed as a character from the All Character Chart.
	*Refer to IBM All Character Chart in appendix of the operating
	 instruction manual.


<SETS OFF LINE MODE>
Stops printing and sets printer to OFF LINE mode.

	Name:	ESC	j
	Dec.:	27	106
	Hex.:	1B	6A

	Comment:
	*When you desire to print again, press the ON LINE switch.


<INITIAL STATE>
Resets to initial state.

	Name:	ESC  [    K    n1   0    m   36   p1   p2
	Dec.:	27   91   75   n1   0    m   36   p1   p2
	Hex.:	1B   5B   4B   n1   00   m   24   p1   p2

	Comments:
	*The following values of n1 can be used.
		n1=1: Initialize only
		n1=3: Initialize and set by p1
		n1=4: Initialize and set by p1 and p2
	*The following table illustrates the various modes based
	 upon the value of m.

	m	Initialization		Download
	---------------------------------------------------------
	0	Current setting		Not cleared	Not saved
	1	Current setting		Cleared		Not saved
	4	FACTORY setting		Not Cleared	Not saved
	5	FACTORY setting		Cleared		Not saved
	254	Current setting		Cleared		Saved
	255	FACTORY setting		Cleared		Saved

	*The following tables illustrate the parameter specifications.

	p1 (Parameter 1)
	Bit		     OFF		 ON
	----------------------------------------------------------
	7  Discard byte      Process this byte	 Ignore this byte
	6  Not used
	5  Not used
	4  Auto CR	     OFF 		 ON
	3  Auto LF	     OFF		 ON
	2  Form length	     11			 12
	1  Zero slash	     Normal		 Slashed Zero
	0  Character set     Set 1		 Set 2

	p2 (Parameter 2):
	Bit		     OFF		 ON
	----------------------------------------------------------
	7  Discard byte	     Process this byte	 Ignore this byte
	6  Select code page  USA		 Multilingual
	5  Not used	     ---		 ---
	4  Not used	     ---		 ---
	3  Not used 	     ---		 ---
	2  Not used	     ---		 ---
	1  Not used	     ---		 ---
	0  Cut sheet feeder  Disable		 Enable



Download Driver Pack

How To Update Drivers Manually

After your driver has been downloaded, follow these simple steps to install it.

  • Expand the archive file (if the download file is in zip or rar format).

  • If the expanded file has an .exe extension, double click it and follow the installation instructions.

  • Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.

  • Find the device and model you want to update in the device list.

  • Double-click on it to open the Properties dialog box.

  • From the Properties dialog box, select the Driver tab.

  • Click the Update Driver button, then follow the instructions.

Very important: You must reboot your system to ensure that any driver updates have taken effect.

For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.

server: web2, load: 0.93