LinePrinter Plus® Programmer’s Reference Manual 5525B/31/32 Line Matrix Printer
5525B/31/32 Line Matrix Printer LinePrinter Plus® Programmer’s Reference Manual P/N 422931-001
Compaq® makes no representations or warranties of any kind regarding this material, including, but not limited to, implied warranties of merchantability and fitness for a particular purpose. Compaq shall not be held responsible for errors contained herein or any omissions from this material or for any damages, whether direct, indirect, incidental or consequential, in connection with the furnishing, distribution, performance or use of this material.
Trademark Acknowledgements IBM and Proprinter are registered trademarks, and PC-DOS is a trademark of International Business Machines Corporation. Compaq is a registered trademark of Compaq Computer Corporation. Centronics is a registered trademark of Genicom Corporation. Epson is a registered trademark of Seiko Epson Corporation. Hewlett-Packard, HP and PCL are registered trademarks of Hewlett-Packard Company. IGP, PGL, LinePrinter Plus, and Printronix are registered trademarks of Printronix, Inc.
Table of Contents 1 Introduction........................................................... 15 About This Guide ................................................................................. 15 Warnings and Special Information ................................................ 15 Related Product Information ......................................................... 15 Software Features ............................................................................... 16 P-Series ..............................
Table of Contents Expanded Print (Double Wide), One Line Only............................. 38 Expanded Print (Double Wide), Set/Reset.................................... 38 Extended Character Set................................................................ 39 Extended Character Set Cancel (Primary Set Select) .................. 39 Form Feed..................................................................................... 40 Forms Length Set (Inches)....................................................
Table of Contents Cancel ........................................................................................... 70 Carriage Return............................................................................. 70 Carriage Return Set ...................................................................... 71 Character Pitch 12 cpi ................................................................... 71 Character Set Select: Set 1 (A) .....................................................
Table of Contents Tabs, Clear All (Return to default)................................................. 95 Underline....................................................................................... 96 Unidirectional Printing ................................................................... 96 4 Epson FX-1050 Emulation .................................... 97 Overview..............................................................................................
Table of Contents Graphics, Double Density Double Speed...................................... 119 Graphics, Quadruple Density ........................................................ 120 Half Speed Mode, On/Off .............................................................. 120 Horizontal Tab Execute ................................................................. 121 Horizontal Tab Set/Release .......................................................... 121 Initialize Printer................................
Table of Contents Skip Over Perforation.................................................................... 138 Skip Over Perforation, Cancel....................................................... 138 Superscript and Subscript Printing................................................ 139 Superscript and Subscript Printing, Cancel................................... 139 Underline....................................................................................... 140 Unidirectional Printing, 1 Line ........
Table of Contents Introduction .......................................................................................... 165 IBM PC, Primary Subset: ASCII (USA)................................................ 166 IBM PC, Primary Subset: French......................................................... 167 IBM PC, Primary Subset: German....................................................... 168 IBM PC, Primary Subset: English (UK)................................................
Table of Contents DEC Multinational, Swedish ................................................................ 207 DEC Multinational, Italian .................................................................... 208 DEC Multinational, Spanish ................................................................. 209 DEC Multinational, Japanese .............................................................. 210 DEC Multinational, French Canadian ..................................................
1 Introduction About This Guide This manual explains how to work with the standard LinePrinter Plus® Printer emulation equipped with your printer so that it works properly and efficiently. The Programmer’s Reference Manual is designed so that you can quickly find the information you need to use and configure your Compaq® 5525B/31/32 Series printer.
Chapter 1 Software Features Software Features This section outlines many of the features available with the software described in this manual. P-Series The P-Series emulation software provides the following features: • Graphics and a selection of print densities. You can enable graphics mode and specify a density mode (dots per inch). • • Print Attributes. Characters can be bold, double high, double wide, etc. • Font Typefaces. Also referred to as print modes.
Epson FX-1050 Epson FX-1050 The Epson® emulation software provides the following features: • Graphics and print densities. You can enable graphics mode and specify a density mode (dots per inch). • Print Attributes. Characters can be bold, italic, double high, double wide, etc. • Page Formatting. Epson commands allow you to set line spacing, page length, and vertical tabbing. • Font Typefaces. Also referred to as print modes.
Chapter 18 1 Software Features
2 P-Series Printer Emulation Overview This chapter describes the P-Series emulation host control codes. “Emulation” refers to the ability of a printer to execute the commands of a particular printer control language. A printer control language is the coding system used to convey, manipulate, and print data. It contains character codes and command sequences that configure the emulation. In this manual, the terms emulation, printer protocol, and printer control language are synonymous.
Chapter 2 Overview P-Series Default Values and States The factory settings for the P-Series emulation menu options are shown in Table 1. Table 2 lists additional factory settings for parameters provided by the LinePrinter+ formatting menus. (The EMULATION menu options are described in the User’s Manual). Host control codes can override many of the settings for these menu options. Table 1. P-Series Default Settings Characteristic 20 Default Setting Control Code 06 8.
P-Series Default Values and States Table 2. LinePrinter+ Menu Option Factory Settings Characteristic Default Setting CPI 10.0 LPI 6.0 Typeface Data Processing Proportional Spacing Disable Bold Print Disable Italic Print Disable Slashed Zero Disable Left Margin 0 columns Right Margin 0 columns Bottom Margin 0 lines Perforation Skip Disable Form Length 11.0 inches 279.4 millimeters 66 lines Form Width 13.6 inches 345.
Chapter 2 Configuring the P-Series Emulation with Control Codes Configuring the P-Series Emulation with Control Codes The remainder of this chapter describes the P-Series printer control language codes that may be sent from a host computer attached to the printer, in order to invoke and configure numerous P-Series emulation functions. Format for Control Code Descriptions The following information is listed for each code function (where applicable): Name The title or function of the command.
Special Function Control Code (SFCC) Header Special Function Control Code (SFCC) Header A Special Function Control Code (SFCC) is used to extend the control code protocol. The SFCC is the control code introducer (or header); it is the first input in the sequence of parameters. The general control code sequence is: (SFCC)(parameter 1)(parameter 2)...(parameter n) P-Series codes can be configured to use any value from 1 through 127 (hex 01 through hex 7F) as control code introducers.
Chapter 2 Configuring the P-Series Emulation with Control Codes Attribute Set and Reset Codes Certain print attributes are set and reset (turned on or off) by using the appropriate SFCC code sequence and the numbers 1 or 0. These may be either the hexadecimal code 01 and 00, or the ASCII code for the printable symbols of decimal 1 and 0 (hexadecimal code 31 and 30, respectively). Expanded Print, Super/Subscript Print, and Underline are attributes that are set/reset this way.
The Control Codes The Control Codes This index lists each printer command by function, ASCII mnemonic, and the page where the command is explained in detail. “N/A” means not applicable. The rest of this chapter defines the control code functions for P-Series Emulation mode. The commands are listed in alphabetical order. NOTE: Some control code functions can be accomplished using another control code sequence or via control panel selection.
Chapter 2 Configuring the P-Series Emulation with Control Codes FUNCTION ASCII CODE PAGE Print Attributes (continued) Superscript/Subscript Printing Superscript/Subscript Printing Reset Underline SFCC S n 52 SFCC T SFCC - n 52 53 Graphics Plot, Even Dot (High Density) EOT SFCC d Plot, Odd Dot (Normal Density) ENQ SFCC e 47 47 Other Functions Bell Character Set Select Character Set Select: ECMA Latin 1 Extended Character Set Select: International Languages Characters 80-9F (Control Codes) Chara
Backspace Backspace ASCII Code BS Hex Code 08 Dec Code 08 Purpose Moves the logical print head to the left one character space toward the first character column. Discussion When configured from the control panel for backspace, BS moves the character position indicator (the logical print head position) one character space to the left at the current character pitch setting. The code is ignored if the logical print head is positioned at the first character column.
Chapter 2 Configuring the P-Series Emulation with Control Codes Bold Print ASCII Code SFCC G SFCC j Hex Code SFCC 47 SFCC 6A Dec Code SFCC 71 SFCC 106 Purpose Selects bold character printing. Discussion When the bold character printing control code is received, all characters are printed in bold until reset by the bold print reset control code or printer reset. Bold Print is the same as emphasized printing.
Carriage Return Carriage Return ASCII Code CR Hex Code 0D Dec Code 13 Purpose Returns the logical print head to the first character column (resets the pointer to the first character position). Discussion The CR code may or may not cause printing or paper motion, depending on the Define CR Code value defined in the configuration menus. If the Define CR Code submenu displays: Define CR Code CR = CR* The characters following the CR are printed over the previous characters on the line.
Chapter 2 Configuring the P-Series Emulation with Control Codes Character Set Select ASCII Code SFCC l xyz (lowercase “L”) Hex Code SFCC 6C xyz Dec Code SFCC 108 xyz Purpose Selects the character set, extended character set, and the international language for a specific character set.
Character Set Select Table 6.
Chapter 2 Configuring the P-Series Emulation with Control Codes Character Set Select: ECMA Latin 1 Extended ASCII Code SFCC OSET; n Purpose Selects the print mode and pitch at which the extended characters will print. Valid only if the ECMA Latin 1 Extended Character Set is selected; otherwise, this command is ignored. Discussion n ranges from 0 through 12 (hex 00 through 0B) to select the print mode/pitch combinations available from Table 8. All other values will result in an error message.
Character Set Select: International Languages Character Set Select: International Languages ASCII Code SFCC PSET;n SFCC R n Hex Code SFCC 52 n Dec Code SFCC 82 n Purpose Specifies the international language set identified by n in the basic character set selected from the control panel (ECMA Latin 1, IBM PC, Multinational, and DEC Multinational). where n specifies a language, as shown in Table 9. Table 9.
Chapter 2 Configuring the P-Series Emulation with Control Codes Discussion The international character set can also be selected from the control panel via the Print Language option; however, the control code setting will override the control panel character set selection. Values other than those selectable from Table 9 will be ignored. Example The following example illustrates international character selection using the IBM PC character set.
Elongated (Double High) Print, One Line Only Elongated (Double High) Print, One Line Only ASCII Code SFCC h BS Hex Code SFCC 68 08 Dec Code SFCC 104 08 Purpose Selects elongated (double high) character printing for one line only. Elongated characters are approximately double height but standard width. Discussion The elongated character control code is a line-by-line print attribute; when the control code is received, one entire line of elongated characters is printed and then automatically reset.
Chapter 2 Configuring the P-Series Emulation with Control Codes Elongated (Double High) Print, Set/Reset ASCII Code SFCC w n Hex Code SFCC 77 n Dec Code SFCC 119 n Purpose Turns double-high character printing on and off. Double-high characters are standard width but twice as high. where n = 1 or 49 (hex 01 or hex 31) turns double high printing on n = 0 or 48 (hex 00 or hex 30) turns double high printing off Discussion The OCR A and OCR B fonts cannot be printed in double high.
Emphasized Print Reset Emphasized Print Reset ASCII Code SFCC F Hex Code SFCC 46 Dec Code SFCC 70 Purpose Resets emphasized character printing. Discussion The emphasized print reset control code only resets the emphasized print character attribute. Example See the Emphasized Print control code example for an example of Emphasized Print Reset.
Chapter 2 Configuring the P-Series Emulation with Control Codes Expanded Print (Double Wide), One Line Only ASCII Code SFCC k Hex Code SFCC 6B Dec Code SFCC 107 Purpose Selects expanded (double wide) print for one line only. Discussion This expanded print control code is a line-by-line print attribute; when the SFCC k control code is received, the current line is printed double wide and then automatically reset. This control code can be reset by a paper motion control code (LF, VT, CR, etc.
Extended Character Set Extended Character Set ASCII Code SO SFCC SO SFCC n SFCC 4 Hex Code 0E SFCC 0E SFCC 6E SFCC 34 Dec Code 14 SFCC 14 SFCC 110 SFCC 52 Purpose Accesses the extended character set in the range hex A0 through FF using codes 32 through 127 (hex 20 through 7F). Discussion Used in 7-bit systems as if data bit 8 was set to 1. For example, sending code hex 20 accesses the symbol at code point hex A0. If a printable symbol is not available at the code point, a space is printed.
Chapter 2 Configuring the P-Series Emulation with Control Codes Form Feed ASCII Code FF Hex Code 0C Dec Code 12 Purpose Prints the data in the buffer, advances the paper position to the next top-of-form and moves the character position to the first character column. Discussion The default forms length is determined by the printer configuration. Forms length is set by using the control panel or forms length control codes. Code FF cancels all single-line only print attributes.
Forms Length Set (Inches) Forms Length Set (Inches) ASCII Code SFCC INCHES; n.f Purpose Sets the length of forms (paper) in inches. where n = 1 through 24 (hex 01 through 18) specify the number of inches on a page. f = fractional number in .5-inch increments (minimum forms length is .5 inches). Discussion Upon receipt of this code, the current line becomes the first line of the form, and the form length set becomes the current forms length.
Chapter 2 Configuring the P-Series Emulation with Control Codes Line Feed ASCII Code LF Hex Code 0A Dec Code 10 Purpose Prints the data in the buffer (if any) and advances the vertical character position one line at the current line space setting. Discussion If configured for LF equals new line (LF=CR+LF), the logical print head is positioned at character column 1 of the new line. Otherwise, the logical print head does not move when configured for LF function only (LF=LF ONLY).
Line Spacing 1/8 Inch (8 lpi) Line Spacing 1/8 Inch (8 lpi) SFCC LPI; n ASCII Code SFCC 0 Hex Code SFCC 30 Dec Code SFCC 48 Purpose Specifies continuous line spacing at 1/8-inch increments (8 lpi). Discussion When the 1/8-inch line spacing control code is received, all lines will be printed at 8 lpi until a new line spacing is selected or the printer is reset. The control code line spacing selection will override the control panel line spacing setting.
Chapter 2 Configuring the P-Series Emulation with Control Codes Line Spacing 7/72 Inch ASCII Code SFCC 1 Hex Code SFCC 31 Dec Code SFCC 49 Purpose Specifies the line spacing at 7/72-inch (10.3 lpi) increments. Discussion When the 7/72-inch line spacing control code is received, all lines will be printed at the 7/72-inch line spacing until a new line spacing is selected or the printer is reset.
Line Spacing n/72 Inch Line Spacing n/72 Inch ASCII Code SFCC A n Hex Code SFCC 41 n Dec Code SFCC 65 n Purpose Stores a line spacing of n/72-inch increments. where n = 1 through 85 (hex 01 through 55). All others are ignored. Discussion When the SFCC A control sequence is received, all line feed commands following an SFCC 2 sequence* will be at n/72-inch line spacing until a new line spacing is selected or the printer is reset.
Chapter 2 Configuring the P-Series Emulation with Control Codes Line Spacing n/216 Inch ASCII Code SFCC 3 n Hex Code SFCC 33 n Dec Code SFCC 51 n Purpose Specifies the line spacing at n/216-inch increments. where n = 1 through 255 (hex 01 through FF). Discussion When the n/216-inch line spacing control code is received, all line feeds following will be at n/216-inch line spacing until a new line spacing is selected or the printer is reset.
Plot, Even Dot (P-Series High Density Graphics) Plot, Even Dot (P-Series High Density Graphics) ASCII Code EOT SFCC d Hex Code 04 SFCC 64 Dec Code 04 SFCC 100 Purpose Prints dots at the even numbered dot columns. Discussion The even dot plot code is used for programming high density graphics and must be used in conjunction with the Odd Dot Plot code (hex 05). Refer to “Plot Mode” on page 148 for detailed plot mode information.
Chapter 2 Configuring the P-Series Emulation with Control Codes Print Mode/Pitch Selection ASCII Code SFCC PMODE; n SFCC X mn SFCC [ n q Hex Code SFCC 58 mn SFCC 5B n 71 Dec Code SFCC 88 mn SFCC 91 n 113 Purpose Selects the print mode and character pitch in characters per inch (cpi). where In SFCC PMODE; n n = 0 through 11 to select the print mode/pitch combinations available from Table 10. All other values will result in an error message.
Print Mode/Pitch Selection Table 10. Print Mode and Pitch (SFCC PMODE;n) n Print Mode and Pitch 0 DP 10 cpi 1 DP 12 cpi 2 DP 15 cpi 3 NLQ 10 cpi 4 HS 10 cpi 5 OCR-A 10 cpi 6 OCR-B 10 cpi 7 DP 10 cpi upside down 8 DP 12 cpi upside down 9 DP 13 cpi upside down 10 DP 15 cpi upside down 11 DP 17 cpi upside down Table 11.
Chapter 2 Configuring the P-Series Emulation with Control Codes Table 12. Horizontal and Vertical Dot Density (SFCC X) m (Hex*) Horiz. Density Resolution Vertical Density Print Mode 0 (30) 120 dpi 72 dpi DP 1 (31) 180 dpi 96 dpi NLQ 2 (32) 120 dpi 48 dpi HS 3 (33) 120 dpi 48 dpi HS 4 (34) 120 dpi 48 dpi HS 5 (35) 120 dpi 144 dpi OCR-A 6 (36) 120 dpi 144 dpi OCR-B 7 (37) 120 dpi 72 dpi DP 8 (38) 120 dpi 72 dpi DP *The hex values shown (i.e., 0 and 30) are equal.
Reverse NOTE: The character set used when OCR-A or OCR-B are selected depends on the Standard character set currently selected. The character set can be changed by using SFCC l or by using the front panel. Example Any of the BASIC expressions listed below will select the DP print mode at 17 cpi.
Chapter 2 Configuring the P-Series Emulation with Control Codes Superscript/Subscript Printing ASCII Code SFCC S n Hex Code SFCC 53 n Dec Code SFCC 83 n Purpose Selects superscript or subscript printing. Discussion An SFCC S code can be set for superscript or subscript printing, as follows: where n = SOH (hex 01) or 1 (hex 31) enables subscript printing. n = NUL (hex 00) or 0 (hex 30) enables superscript printing.
Underline Underline ASCII Code SFCC - n Hex Code SFCC 2D n Dec Code SFCC 45 n Purpose Enables or disables automatic underlining of all characters. where n = SOH (hex 01) or 1 (hex 31) enables automatic underlining. n = NUL (hex 00) or 0 (hex 30) disables automatic underlining. Discussion When automatic underline is enabled, all characters, including spaces, will be underlined until disabled. Example The following sample illustrates automatic underlining.
Chapter 54 2 Configuring the P-Series Emulation with Control Codes
3 IBM Proprinter III XL Emulation Overview This chapter describes the Proprinter III XL emulation host control codes. “Emulation” refers to the ability of a printer to execute the commands of a particular printer control language. A printer control language is the coding system used to convey, manipulate, and print data. It contains character codes and command sequences that configure the emulation. In this manual, the terms “emulation”, “printer protocol”, and “printer control language” are synonymous.
Chapter 3 Overview Proprinter III XL Emulation Default Settings The factory settings for the Proprinter III XL emulation menu options are shown in Table 14. Table 15 lists additional factory settings for parameters provided by the LinePrinter+ formatting menus. (The EMULATION menu options are described in the User’s Manual). Host control codes can override many of the settings for these menu options. Table 14.
Proprinter III XL Emulation Default Settings Table 15. LinePrinter+ Menu Option Factory Settings Characteristic Default Setting CPI 10.0 LPI 6.0 Typeface Data Processing Proportional Spacing Disable Bold Print Disable Italic Print Disable Slashed Zero Disable Left Margin 0 columns Right Margin 0 columns Bottom Margin 0 lines Perforation Skip Disable Form Length 11.0 inches 279.4 millimeters 66 lines Form Width 13.6 inches 345.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Configuring the Proprinter III XL Emulation with Control Codes The remainder of this chapter describes the Proprinter printer control language codes that may be sent from a host computer attached to the printer, in order to configure numerous Proprinter III XL emulation parameters.
Graphics Control Codes Overview An escape sequence uses two or more bytes to define a specific printer control function. The format for an escape sequence is: ASCII ESC X n Hex 1B 00-7F 0-FF Escape Sequence Introducer Character(s) Numerical parameter(s) After the ESC character are one or more characters which indicate the action of the control code. One or more numerical parameters may in turn follow these characters.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Dot Density Versus Printing Speed When you select ESC K (normal density), the dot columns are printed at 60 dots per inch (dpi) horizontally and 72 dpi vertically. This does not decrease printing speed. If ESC L (double density) is selected, the dot columns are printed at 120 dpi horizontally and 72 dpi vertically. Double density reduces printing speed by one half.
Switching Between the Emulations Switching Between the Emulations The printer supports several different emulations. PCL-II is the default. PSeries, Proprinter III XL, and Epson FX-1050 are all a part of the LinePrinter Plus emulation.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes The Control Codes This index lists each printer command by function, ASCII mnemonic, and the page where the command is explained in detail. The rest of this chapter defines the control code functions for Proprinter III XL emulation mode. The commands are listed in alphabetical order.
The Control Codes FUNCTION ASCII CODE PAGE Print Quality Bold Printing Bold Printing, Cancel Character Pitch 12 cpi Condensed Print Condensed Print, Cancel Double Wide Print Double Wide Print (1 Line Only) Double Wide Print (1 Line Only), Cancel Emphasized Print Emphasized Print, Cancel Overscoring Print Mode Print Quality Proportional Spacing Select Attributes Superscript/Subscript Printing Superscript/Subscript Printing, Cancel Underline ESC G ESC H ESC : SI DC2 ESC W n SO 69 69 71 72 72 73 74 DC4
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Backspace ASCII Code BS Hex Code 08 Dec Code 08 Purpose Moves the logical print head left one character space toward the first character column. Discussion BS moves the character position indicator one character space to the left at the current character pitch setting. This code is ignored if the logical print head is positioned at the first character column. When the backspace code is received, printing speed will be reduced.
Bit Image Mode, Single Density (Normal Speed) Bit Image Mode, Single Density (Normal Speed) ASCII Code ESC K n1 n2 Hex Code 1B 4B n1 n2 Dec Code 27 75 n1 n2 Purpose Selects single (normal) density bit image graphics. where n1 + 256n2 defines the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Bit Image Mode, Double Density (Half Speed) ASCII Code ESC L n1 n2 Hex Code 1B 4C n1 n2 Dec Code 27 76 n1 n2 Purpose Selects double density bit image graphics. where n1 + 256n2 defines the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
Bit Image Mode, Double Density (Normal Speed) Bit Image Mode, Double Density (Normal Speed) ASCII Code ESC Y n1 n2 Hex Code 1B 59 n1 n2 Dec Code 27 89 n1 n2 Purpose Selects double density bit image graphics at single density speed. where n1 + 256n2 defines the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Bit Image Mode, Quadruple Density (Half Speed) ASCII Code ESC Z n1 n2 Hex Code 1B 5A n1 n2 Dec Code 27 90 n1 n2 Purpose Selects quadruple density bit image graphics. where n1 + 256n2 defines the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
Bold Printing Bold Printing ASCII Code ESC G Hex Code 1B 47 Dec Code 27 71 Purpose Selects bold character printing. Discussion When this command is received, all characters are printed in bold until reset by the Bold Print Reset control code or printer reset. The bold print attribute is implemented by increasing the dot density for the bold text (with a result similar to emphasized printing). Bold printing reduces the current print speed by one half.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Cancel ASCII Code CAN Hex Code 18 Dec Code 24 Purpose Clears the print buffer of all symbols since the last paper motion command was received. Discussion The CAN command cancels all characters sent to the printer after the last paper motion command. This command will cancel the double wide attribute if set by SO. No other print attributes are affected.
Carriage Return Set Carriage Return Set ASCII Code ESC 5 n Hex Code 1B 35 n Dec Code 27 53 n Purpose Defines the result from the Carriage Return (CR) code. where n may range from 0 through 255 (hex 00 through hex FF). If n = 0, 2, 4 ... (any even value), then CR = CR (the default). If n = 1, 3, 5 ... (any odd value), then CR = CR + LF. Discussion This command overrides the configuration menu setting.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Condensed Print ASCII Code SI ESC SI Hex Code 0F 1B 0F Dec Code 15 27 15 Purpose Sets condensed print. Discussion If the emulation is set at 5 cpi, it is changed to 8.55 cpi. If the emulation is set at 10 cpi, it is changed to 17.1 cpi. If the emulation is set at 12 cpi, it is changed to 20 cpi. If the emulation is set at NLQ 12 cpi, it is changed to 17.1 cpi.
Deselect Printer Deselect Printer ASCII Code ESC Q 22 Hex Code 1B 51 16 Dec Code 27 81 22 Purpose Stops the printer from processing data received from the host computer. Discussion This code is for diagnostic use; it instructs the printer to stop processing data received from the host system. In order to resume processing data, the printer must be reset from the host system.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Double Wide Print (One Line Only) ASCII Code SO ESC SO Hex Code 0E 1B 0E Dec Code 14 27 14 Purpose Selects double wide print for one line only. Discussion This expanded print command is a line-by-line print attribute; when the SO or ESC SO command is received, the current line will be printed double wide and automatically reset.
Emphasized Print Emphasized Print ASCII Code ESC E Hex Code 1B 45 Dec Code 27 69 Purpose Selects emphasized character print format. Discussion When the emphasized print command is received, all characters will be printed in emphasized (bold) print until reset by the Emphasized Print Reset command or printer reset. Emphasized print reduces the current print speed. NOTE: The ESC G (page 69) and ESC E commands are equivalent; they produce the same print effect.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Form Feed ASCII Code FF Hex Code 0C Dec Code 12 Purpose Prints the data in the buffer, advances the paper to the next topof-form, and moves the logical printhead to the first character column. Discussion Forms length is set by using the control panel or forms length control codes. This code cancels double wide (expanded) characters if set by the SO command. The Form Feed command will react differently when the VFU is active.
Forms Length Set in Lines Forms Length Set in Lines ASCII Code ESC C n Hex Code 1B 43 n Dec Code 27 67 n Purpose Sets the length of a form (paper) in lines. where n = 1 through 168 (hex 01 through hex A8) to specify the number of lines per page at the current line spacing. Discussion The forms length is defined in inches as the quotient of n divided by the current lines per inch (lpi) setting.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Initialize Parameters ASCII Code ESC [ K n1 NUL n2 n3 n4 n5 Hex Code 1B 5B 4B n1 00 n2 n3 n4 n5 Dec Code 27 91 75 n1 0 n2 n3 n4 n5 Purpose Sets the printer’s initial condition. Discussion This command causes the printer to reset and defines the configuration that will be loaded to the printer during the reset. Several variables must be specified to define the load configuration, as described below.
Initialize Parameters n4 and n5 Parameter bytes n4 and n5 allow you to define several configuration parameters that will override conflicting factory default and memory-based configuration values when the printer is reinitialized. Possible values for n4 and n5 are listed in Table 18 and Table 19, respectively. NOTE: In addition to the formatting from bytes n4 and n5, this command sets the current line as top-of-form.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Line Feed ASCII Code LF Hex Code 0A Dec Code 10 Purpose Prints the data in the buffer (if any) and advances the paper one line at the current line space setting. Discussion If configured for LF equals new line (LF = CR + LF), the logical print head is positioned at character column 1 of the new line. Otherwise, the logical print head does not move when configured for LF function only (LF = LF only).
Line Feed n/216 Inch (One Line Only) Line Feed n/216 Inch (One Line Only) ASCII Code ESC J n Hex Code 1B 4A n Dec Code 27 74 n Purpose Advances the vertical character position n/216 inch for one line only. where n = 1 through 255 (hex 01 through hex FF). Discussion The n/216-inch line feed control code is effective for one line only. All single-line-only print attributes are canceled.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Line Spacing 1/8 Inch (8 lpi) ASCII Code ESC 0 Hex Code 1B 30 Dec Code 27 48 Purpose Specifies continuous line spacing at 1/8-inch increments (8 lpi). Discussion When the 1/8-inch line spacing control code is received, all lines will be printed at 8 lpi until a new line spacing is selected or the printer is reset. Example The following example illustrates 1/8-inch line spacing. Line Spacing 7/72 Inch (10.
Line Spacing n/72 Inch (Executes) Line Spacing n/72 Inch (Executes) ASCII Code ESC 2 Hex Code 1B 32 Dec Code 27 50 Purpose ESC 2 sets line spacing to 6 lpi or as set by ESC A. Discussion ESC 2 asserts n/72-inch line spacing as set by ESC A (page 84). If no distance has been set by ESC A, the distance is 1/6 inch. The control code line spacing selection will override the control panel line spacing setting.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Line Spacing n/72 Inch (Storage) ASCII Code ESC A n Hex Code 1B 41 n Dec Code 27 65 n Purpose Stores a line spacing of n/72-inch increments. where n = 1 through 255 (hex 01 through hex FF). All others values are ignored. Discussion This control code stores a value for line spacing of n/72 inch.
Line Spacing n/216 Inch Line Spacing n/216 Inch ASCII Code ESC 3 n Hex Code 1B 33 n Dec Code 27 51 n Purpose Specifies the line spacing at n/216-inch increments. where n = 1 through 255 (hex 01 through hex FF). Discussion When the n/216-inch line spacing control code is received, all line feeds following will be at n/216-inch line spacing until a new line spacing is selected or the printer is reset. The control code line spacing selection will override the control panel line spacing setting.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Margin, Bottom ASCII Code ESC N n Hex Code 1B 4E n Dec Code 27 78 n Purpose Sets the bottom margin. Discussion n defines the number of lines above the bottom of the form to set as the bottom margin. n has a range from 1 through 255 (hex 01 through hex FF). The actual margin in inches is the quotient of n divided by the current lines per inch (lpi).
Overscoring Overscoring ASCII Code ESC _ n Hex Code 1B 5F n Dec Code 27 95 n Purpose Enables or disables automatic overscoring of all characters. where n may range from 0 through 255 (hex 00 through hex FF). n = 0, 2, 4... disables automatic overscoring (any even value from hex 00 through hex FE) n = 1, 3, 5... enables automatic overscoring (any odd value from hex 01 through hex FF) Discussion When automatic overscore is enabled, all characters, including spaces, are overscored.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Print Next Character ASCII Code ESC ^ n Hex Code 1B 5E n Dec Code 27 94 n Purpose Prints the graphic character assigned to n, rather than interpreting the code value as a command. Discussion This command may appear anywhere in the data stream, and will be acted upon immediately. Valid numerical parameters are in the range 0 through 255 (hex 00 through hex FF).
Print Quality Print Quality ASCII Code ESC x n Hex Code 1B 78 n Dec Code 27 120 n Purpose This code selects a print quality. where n = 0 or 48 (hex 00 or hex 30) selects DP print quality n = 1 or 49 (hex 01 or hex 31) selects NLQ print quality n = 2 or 50 (hex 02 or hex 32) selects HS print quality n = 3 or 51 (hex 03 or hex 33) selects OCR A print quality n = 4 or 52 (hex 04 or hex 34) selects OCR B print quality Comment When you select NLQ, the font is serif.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Select Attributes ASCII Code ESC [ @ n1 NUL NUL NUL n2 n3 Hex Code 1B 5B 40 n1 00 00 00 n2 n3 Dec Code 27 91 64 n1 0 0 0 n2 n3 Purpose Selects double high and double wide attributes, and single or double high line spacing. Discussion Parameter n1 selects the attributes from n2 and n3, as follows: Table 22.
Set Top-of-Form Parameter n3 defines the width attributes, as follows: Table 24. Select Attributes n3 Values n3 (Hex) Function 00 No change 01 Set single wide characters 02 Set double wide characters An ESC [ @ code can occur at any place in the datastream and is acted upon immediately. All numerical parameters are in the hex 00 through FF range unless stated otherwise. Set Top-of-Form ASCII Code ESC 4 Hex Code 1B 34 Dec Code 27 52 Purpose Sets the current paper position as the top-of-form.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Superscript/Subscript Printing ASCII Code ESC S n Hex Code 1B 53 n Dec Code 27 83 n Purpose Selects superscript or subscript printing. where n may range from 0 through 255 (hex 00 through hex FF). n = 1, 3, 5 (any odd value), selects subscript printing. n = 0, 2, 4 (any even value), selects superscript printing.
Tab, Horizontal Tab, Horizontal ASCII Code HT Hex Code 09 Dec Code 09 Purpose Moves the logical printhead right to the next horizontal tab stop. Discussion Power-on default horizontal tabs are set at every eighth character starting at position 9 (9, 17, 25). If there are no horizontal tabs set or the logical printhead is located at the last character column, the code is ignored and no movement occurs. If double-wide, double-high attributes are enabled, single-wide character spacing is used.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Tab, Vertical ASCII Code VT Hex Code 0B Dec Code 11 Purpose Prints the data in the buffer and advances the paper to the next vertical tab position. Discussion In the Proprinter III XL emulation, vertical tab positions are set by control code ESC B and executed by control code VT. In this mode, if vertical tabs are loaded, the paper position moves to the next vertical tab position.
Tab Set/Clear, Vertical Tab Set/Clear, Vertical ASCII Code ESC B n1 n2 ... nk NUL Hex Code 1B 42 n1 n2 ... nk 00 Dec Code 27 66 n1 n2 ... nk 0 Purpose Sets or clears vertical tab positions. Discussion The physical position on the paper is defined by n and the current line spacing. where n = vertical tab setting (in lines), and k = number of tabs possible.
Chapter 3 Configuring the Proprinter III XL Emulation with Control Codes Underline ASCII Code ESC - n Hex Code 1B 2D n Dec Code 27 45 n Purpose Enables or disables automatic underlining of all characters. Discussion When automatic underline is enabled, all characters, including spaces, are underlined until disabled. where n may range from 0 through 255 (hex 01 through hex FF). n = 1, 3, 5 (any odd value) selects underlining. n = 0, 2, 4 (any even value) cancels underlining.
4 Epson FX-1050 Emulation Overview This chapter describes the Epson FX emulation host control codes. “Emulation” refers to the ability of a printer to execute the commands of a particular printer control language. A printer control language is the coding system used to convey, manipulate, and print data. It contains character codes and command sequences that configure the emulation. In this manual, the terms emulation, printer protocol, and printer control language are synonymous.
Chapter 4 Overview Epson FX-1050 Default Values and States The factory settings for the Epson FX-1050 emulation menu options are shown in Table 25. Table 26 lists additional factory settings for parameters provided by the LinePrinter+ formatting menus. (The EMULATION menu options are described in the User’s Manual). Host control codes can override many of the settings for these menu options. Table 25.
Epson FX-1050 Default Values and States Table 26. LinePrinter+ Menu Option Factory Settings Characteristic Default Setting CPI 10.0 LPI 6.0 Typeface Data Processing Proportional Spacing Disable Bold Print Disable Italic Print Disable Slashed Zero Disable Left Margin 0 columns Right Margin 0 columns Bottom Margin 0 lines Perforation Skip Disable Form Length 11.0 inches 279.4 millimeters 66 lines Form Width 13.6 inches 345.
Chapter 4 Overview Epson Emulation Exceptions and Differences Because of mechanical differences between your line matrix printer and Epson printers (moving printhead serial matrix printers), some Epson features are approximated or not supported. 100 • Epson codes that produce different behavior in your printer are indicated by a “dagger” (†) in the Control Code Index.
Epson Character Sets Epson Character Sets Epson printers use five character sets. The IBM PC code page, OCR A, OCR B, and an extensive array of print language sets may be selected from the configuration menus. In addition, there is a unique Epson character set. The Epson character set (shown in Table 27) is the ASCII character set with the upper, non-ASCII set defined as italics, and the usually unprintable codes designated as international characters. Table 27.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Configuring the Epson FX-1050 Emulation with Control Codes The remainder of this chapter describes the Epson printer control language codes that may be sent from a host computer attached to the printer, in order to invoke and configure numerous Epson emulation functions. Format for Control Code Descriptions The following information is listed for each control code (where applicable): Name The title or function of the command.
Attribute Set and Reset Codes Attribute Set and Reset Codes Set and reset are another way of saying turn on and turn off, select and deselect, or enable and disable. Some printer features are set and reset with an escape sequence and the numbers 1 or 0. In such cases you can represent 1 and 0 as hexadecimal codes 01 and 00, or as the ASCII codes for the numerals 1 and 0 (hexadecimal 31 and 30).
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes The Control Codes The following index lists the control codes by function, ASCII mnemonic, and page number. Some control code functions can also be selected at the control panel. † = Produces non-Epson behavior in your printer.
The Control Codes Emphasis † Condensed Print Condensed Print Reset Double High Print, Set/Reset Double Strike Double Strike, Cancel † Double Wide Print † Double Wide Print (One Line) Double Wide Print (One Line), Cancel Emphasized Print Emphasized Print, Cancel Italic Printing Italic Printing, Cancel † Superscript and Subscript Printing Superscript and Subscript Printing, Cancel Underline SI (or ESC SI) DC2 ESC w n ESC G ESC H ESC W n SO (or ESC SO) 110 111 112 112 113 113 114 DC4 ESC E ESC F ESC 4 ESC
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Graphics Graphics, Standard Density Graphics, Double Density Graphics, Double Density Double Speed Graphics, Quadruple Density Reassign Graphics Mode Select Graphics Mode Select 9-Pin Graphics Mode ESC K n1 n2 ESC L n1 n2 117 118 ESC Y n1 n2 ESC Z n1 n2 ESC ? s m ESC * m n1 n2 ESC ^ m n1 n2 d1 ...
Backspace Backspace ASCII Code BS Hex Code 08 Dec Code 08 Purpose Moves the logical print head to the left one character space toward the first character column. Discussion Assures that the previous printable characters will be printed, then moves the logical print head one character space to the left at the current pitch setting (which includes double wide and ESC SP). If the logical print head bumps into the left margin, it stops.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes the double wide attribute set by SO. No other print attributes are affected. The logical print head goes to the print position it had after the last CR or paper motion command. Carriage Return ASCII Code CR Hex Code 0D Dec Code 13 Purpose Prints the data in the buffer, then returns the logical print head to the left margin. Discussion Subsequent data are shifted 1/2 dot position to the right.
Character Set Select: International Languages Character Set Select: International Languages ASCII Code ESC R n Hex Code 1B 52 n Dec Code 27 82 n Purpose Specifies a language overlay that prints the characters shown in Table 28 when the specified code is invoked. where n = 0 through 15 (hex 00 through 0E) to determine the language overlay shown in Table 28 below. Epson only defines character sets through hex C. Table 28.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Clear Bit 7 of Incoming Data Bytes to 0 ASCII Code ESC = Hex Code 1B 3D Dec Code 27 61 Purpose Sets the most significant bit (MSB) of all incoming data to 0. †Discussion The MSB is bit number 7. This command only affects text and control code data. Graphics data passes through unchanged. Some applications always set the MSB of print data to one (1), which results in italic or graphics printing in Epson printers.
Condensed Print Reset Condensed Print Reset ASCII Code DC2 Hex Code 12 Dec Code 18 Purpose Cancels the condensed print mode set by SI, ESC SI, or the control panel. Discussion This returns the printer to the font that was active before condensed print occurred. Other print attributes are not affected. Example See the Condensed Print control code (page 110) for an example of Condensed Print Reset.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Double High Print, Set/Reset ASCII Code ESC w n Hex Code 1B 77 n Dec Code 27 119 n Purpose Turns double-high character printing on and off. Double-high characters are standard width but twice as high. where n = 1 or 49 (hex 01 or hex 31) turns double high printing on n = 0 or 48 (hex 00 or hex 30) turns double high printing off Discussion The OCR A and OCR B fonts cannot be printed in double high.
Double Strike, Cancel Double Strike, Cancel ASCII Code ESC H Hex Code 1B 48 Dec Code 27 72 Purpose Turns off the double strike printing set by ESC G or ESC !. Discussion This control code resets only the double strike print attribute. Other print attributes, such as double wide printing, are not affected. Double Wide Print ASCII Code ESC W n Hex Code 1B 57 n Dec Code 27 87 n Purpose Turns double wide print on and off.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Double Wide Print (One Line) ASCII Code SO ESC SO Hex Code 0E 1B 0E Dec Code 14 27 14 Purpose Selects double wide print for one line only. Discussion This control code is a line-by-line print attribute; when SO or ESC SO is received, the characters on the current line print twice as wide, then automatically reset. This control code is cancelled by the DC4 code or by a CR code, as in the Epson FX-1050.
Emphasized Print Emphasized Print ASCII Code ESC E Hex Code 1B 45 Dec Code 27 69 Purpose Selects emphasized character print format. Discussion Emphasized print makes text bolder by printing each dot twice, the second dot offset to the right of the first by a distance equal to 1/2 the width of a dot. This command is available in both DP and NLQ modes. Example The following sample illustrates emphasized character printing.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes B7 B6 BITS 0 B5 0 1 KEY B4 B3 B2 B1 1 0 1 1 ESC OCTAL DECIMAL HEX 33 27 1B CHARACTER B8 B7 0 B6 0 B5 BITS B8 0 0 0 1 COLUMN 0 B4 B3 B2 B1 ROW 0 0 0 0 0 0 0 à 1 1 1 1 B6 1 0 B5 BITS 0 0 0 1 8 9 à à 200 128 80 § 220 144 90 1 è 201 129 81 ß 221 145 91 § 20 16 10 0 0 0 0 0 ß 21 17 11 0 0 0 1 0 0 0 1 1 è 0 0 1 0 2 ù 2 2 2 DC2 22 18 12 0 0 1 0 2 ù 202 130 82 Æ 222 146 92
Form Feed Form Feed ASCII Code FF Hex Code 0C Dec Code 12 Purpose Prints the data in the buffer, if any, then moves the paper to the top of the next form. Discussion The logical print head moves to the left margin. This code cancels all one-line-only emphasis and font controls: doublewide from SO and ESC SO, and unidirectional printing from ESC <.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Graphics, Double Density ASCII Code ESC L n1 n2 Hex Code 1B 4C n1 n2 Dec Code 27 76 n1 n2 Purpose Selects double density bit image graphics of 120 dots per inch horizontally and 72 dots per inch vertically. where (n1 + 256n2) defines the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
Graphics, Double Density Double Speed Graphics, Double Density Double Speed ASCII Code ESC Y n1 n2 Hex Code 1B 59 n1 n2 Dec Code 27 89 n1 n2 Purpose Selects double density, double speed bit-image graphics of 120 dpi horizontally and 72 dpi vertically. where (n1 + 256n2) defines the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Graphics, Quadruple Density ASCII Code ESC Z n1 n2 Hex Code 1B 5A n1 n2 Dec Code 27 90 n1 n2 Purpose Selects Quadruple Density Bit Image graphics of 240 dpi horizontally and 72 dpi vertically. where (n1 + 256n2) defines the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
Horizontal Tab Execute Horizontal Tab Execute ASCII Code HT Hex Code 09 Dec Code 09 Purpose Moves the logical print head to the next horizontal tab stop. Discussion Power-on default horizontal tabs are set at every eighth character at the current character spacing. Tab positions are not affected by a change of font or character width. Blank spaces between HT stops are underlined in underline mode. Horizontal Tab Set/Release ASCII Code ESC D n1 ... nk NUL Hex Code 1B 44 n1 ...
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Initialize Printer ASCII Code ESC @ Hex Code 1B 40 Dec Code 27 64 Purpose Resets all print-related parameters to the power-up configuration. Discussion Restores the power-up values and clears the print buffer of printable data on the line preceding the command. Current position is set as top-of-form. Font, international language selection, forms length, skip-over perforation, and character pitch are reset to their power-up values.
Line Feed Line Feed ASCII Code LF Hex Code 0A Dec Code 10 Purpose Prints the data in the buffer (if any) and advances the vertical character position a distance of one line at the current line spacing. Discussion The logical print head keeps the same distance from the margin. The current line is printed and the logical printhead moves down a distance equal to the current line spacing. If there are no dots, paper moves and no printing occurs.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Line Spacing 1/6 Inch (6 lpi) ASCII Code ESC 2 Hex Code 1B 32 Dec Code 27 50 Purpose Sets the line spacing to 1/6 inch (6 lpi) for subsequent line feeds. Discussion The 2 is ASCII character 2, not hex 2. When ESC 2 is received, all lines are printed at 6 lpi until a new line spacing is selected or the printer is reset. This control code overrides line spacing set at the control panel.
Line Spacing 7/72 Inch Line Spacing 7/72 Inch ASCII Code ESC 1 Hex Code 1B 31 Dec Code 27 49 Purpose Sets the line spacing to 7/72 inch (10.3 lpi) for subsequent line feeds. Discussion All lines are printed at the 7/72-inch line spacing until a new line spacing is selected or the printer is reset. This control code overrides line spacing set at the control panel. Printing speed is reduced if printed lines overlap. Example The following example illustrates 7/72-inch line spacing.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Line Spacing n/72 Inch ASCII Code ESC A n Hex Code 1B 41 n Dec Code 27 65 n Purpose Sets a line spacing of n/72 inch for subsequent line feeds. where n = 1 through 255 (hex 01 through hex FF). Discussion When this control sequence is received, all subsequent line feeds are n/72-inch until a new line spacing is selected or the printer is reset. This setting overrides line spacing set at the control panel.
Make Hex 80-9F Printable B7 B6 BITS 0 B5 0 1 KEY B4 B3 B2 B1 1 0 1 1 ESC OCTAL DECIMAL HEX 33 27 1B CHARACTER B8 B7 1 B6 BITS B8 1 0 B5 0 0 0 0 1 B6 1 8 0 0 0 0 1 COLUMN B4 B3 B2 B1 ROW 9 1 0 B5 BITS COLUMN B4 B3 B2 B1 ROW B7 8 9 200 128 80 § 220 144 90 0 0 0 0 0 200 128 80 220 144 90 201 129 81 ß 221 145 91 0 0 0 1 1 201 129 81 221 145 91 Æ 222 146 92 0 0 1 0 2 202 130 82 222 146 92 203 131 83 æ 223 147 93 0 0 1 1 3 203 131 83 223 147 9
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Master Print Select ASCII Code ESC ! n Hex Code 1B 21 n Dec Code 27 33 n Purpose Selects or changes print attributes in a single command. where n = an 8-bit number with the bits set to specify print attributes, as shown in Table 29. Table 29. Master Print Select Bit Values Bit No.
Paper Out Detection, Disable Paper Out Detection, Disable ASCII Code ESC 8 Hex Code 1B 38 Dec Code 27 56 Purpose Enable printing to the end of the paper supply when a paper out condition is sensed. †Discussion The printer decodes and ignores this command. Pass Bit 7 from Host ASCII Code ESC # Hex Code 1B 23 Dec Code 27 35 Purpose Passes bit 7 (the eighth and most significant bit) whether it is 1 or 0, thereby cancelling ESC > and ESC =.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Reassign Graphics Mode ASCII Code ESC ? s m Hex Code 1B 3F s m Dec Code 27 63 s m Purpose Changes one graphics mode to another. Discussion s is character K, L, Y, or Z, which is changed to mode m (0-7) from Table 30 (page 131). Thereafter, sending data to the bit image command makes the data print according to the graphics mode you select with m.
Select Graphics Mode Select Graphics Mode ASCII Code ESC * m n1 n2 Hex Code 1B 2A m n1 n2 Dec Code 27 42 m n1 n2 Purpose Turns on 8-pin bit image graphics mode m. Table 30 charts the graphics modes available. Discussion The total number of columns = n1 + 256n2.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Select Italic Character Set ASCII Code ESC t n Hex Code 1B 74 n Dec Code 27 116 n Purpose Selects the italics characters from hex 80 through hex FF, or selects the graphics characters from hex 80 through hex FF. where n = hex 01 selects the graphics character set n = hex 00 selects the italics character set Discussion The graphics character set is the IBM Graphics Code Page 437.
Select Print Quality Select Print Quality ASCII Code ESC x n Hex Code 1B 78 n Dec Code 27 120 n Purpose Selects print quality. where n may be in the range from 0 through 4. Values in the range 5-255 are invalid.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Select User-Defined Font ASCII Code ESC % n Hex Code 1B 25 n Dec Code 27 37 n Purpose Selects a user-defined font. †Discussion The printer ignores this command and removes all font data sent from the data stream. Select Vertical Tab Channel ASCII Code ESC / c Hex Code 1B 2F c Dec Code 27 47 c Purpose Selects a vertical tab channel set by ESC b. where c = 0 through 7.
Set Form Length in Inches Set Form Length in Inches ASCII Code ESC C NUL n Hex Code 1B 43 00 n Dec Code 27 67 0 n Purpose Sets form length to n inches. where n = whole numbers from 1 through 24 to specify the number of inches on a form. Discussion Upon receipt of this code, the current line becomes the first line of the form, and the form length set becomes the current forms length. Vertical tab positions set below the bottom of the form are ignored.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Set Intercharacter Spacing in 1/120 Inch ASCII Code ESC SP n Hex Code 1B 20 n Dec Code 27 32 n Purpose Permits character spacing adjustments in 1/120 inch increments. where n = 0 through 127 (hex 00 through 7F).
Set Relative Horizontal Print Position in 1/120 Inch Set Relative Horizontal Print Position in 1/120 Inch ASCII Code ESC \ n1 n2 Hex Code 1B 5C n1 n2 Dec Code 27 92 n1 n2 Purpose Moves the logical print head to a relative horizontal print position, using 1/120 inch increments. Discussion Adds (n1 + 256n2) / 120 inches to the horizontal position of the logical print head. The number sent is two’s complement, with negative numbers moving to the left.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Skip Over Perforation ASCII Code ESC N n Hex Code 1B 4E n Dec Code 27 78 n Purpose Selects the number of lines (at the current line spacing) for the paper to skip at the bottom of the page. where n = 1 through 127 (hex 01 through 7F) Discussion n is the number of lines skipped between the last line printed on one page and the first line on the next page. The actual distance set is the product of n and the current line spacing.
Superscript and Subscript Printing Superscript and Subscript Printing ASCII Code ESC S n Hex Code 1B 53 n Dec Code 27 83 n Purpose Selects superscript or subscript printing. where n = NUL (hex 00) or 0 (hex 30) to enable superscript printing n = SOH (hex 01) or 1 (hex 31) to enable subscript printing †Discussion Superscript prints full-sized characters with a baseline higher than the normal characters. Subscript prints full-sized characters with a baseline lower than the normal characters.
Chapter 4 Configuring the Epson FX-1050 Emulation with Control Codes Underline ASCII Code ESC - n Hex Code 1B 2D n Dec Code 27 45 n Purpose Turns automatic underlining on and off. where n = NUL (hex 00) or 0 (hex 30) to turn off underlining n = SOH (hex 01) or 1 (hex 31) to turn on underlining Discussion Spaces are underlined, but graphics and grey scale characters are not. Example The following sample illustrates underlining.
Vertical Tab, Execute Vertical Tab, Execute ASCII Code VT Hex Code 0B Dec Code 11 Purpose Advances the logical print head to the next vertical tab position selected by ESC /. Discussion If no vertical channel was selected, channel 0 is used. If no vertical tabs were set, the paper advances one line. The logical print head moves to the left margin. If a tab position is on the current line, the paper is moved to the next tab position.
Chapter 142 4 Configuring the Epson FX-1050 Emulation with Control Codes
5 Graphics Overview This chapter explains how the printer produces graphic images. The quickest way to produce graphic images is to use one of the many graphics software applications available. Any graphics program that is compatible with the Epson FX, Proprinter XL, or P-Series emulation should provide excellent results. You can also use the Intelligent Graphics Processor (IGP) Printronix emulation or the Code V Printronix emulation.
Chapter 5 Bit Image Graphics ASCII character A = Hex 41 = Binary 01000001 8 MSB : Most Significant Bit MSB 7 6 5 4 3 MSB 2 1 8 7 6 5 4 3 2 1 Figure 3. Vertical Data Byte Pattern The relationship between the ASCII character, its decimal value, and its bit image plot is shown in Figure 4. All 8 bits of the data byte are used in all fonts, but some fonts have taller and shorter characters. (You may have to adjust the line spacing in order to print without horizontal gaps.
Designing a Bit Image Pattern Designing a Bit Image Pattern A Bit Image pattern is produced in four steps: 1. On a quadrille pad or graph paper, lay out the graphic pattern you want to print. (See Figure 5.) 2. Determine the decimal equivalent of each vertical data byte in your pattern. (The sum of the decimal equivalent of each true bit in the vertical data byte is the decimal equivalent of the data byte.) 3. Write a program to generate the pattern. 4. Enter and run the program on the host computer.
Chapter 5 Bit Image Graphics Double Density Mode: ESC L Double density mode prints up to twice the number of dots per inch horizontally in the same space used for single density. The vertical dot density remains the same as in single density mode. Double horizontal density requires twice the number of input data bytes to print the same length line as single density. Printing double density reduces the printing speed by half.
Bit Image Sample Program Data that go past the right margin are discarded if automatic line feed is disabled. If automatic line feed is enabled, data that go past the right margin trigger an automatic line feed (LF) and are printed on the next line. Bit Image Sample Program The program below, written in BASIC, produces the single density bit image pattern shown in Figure 6. The 7-byte pattern is repeated 40 times.
Chapter 5 Plot Mode Plot Mode Plot mode is available for the P-Series protocol only. This subsection describes the P-Series compatible odd/even dot Plot mode of operation. The P-Series plot has a rigid format wherein each line of data contains a plot command code, the plot data, and an LF code (hex 0A). The P-Series codes (hex 04 and 05, respectively) can be placed anywhere on the command line.
Plot Data Byte Format High density plotting is selected with the even dot plot control code EOT (hex 04) in conjunction with the odd dot plot control code ENQ (hex 05). The odd and even numbered dot columns are addressed to double the horizontal density. The vertical density remains the same in normal and high density plotting, though vertical density is based on the current print mode. Figure 8 illustrates high density plotting. Figure 8.
Chapter 5 Plot Mode EVEN DOT PLOT DATA BYTE LSB BIT 1 BIT 2 BIT 3 BIT 4 BIT 5 BIT 6 BIT 7 1 0 1 0 1 1 0 NOTE: BIT 6 AND/OR BIT 7 MUST BE 1" FOR PLOT MODE DOT COLUMN #12 OF PREVIOUS CHARACTER COLUMN 2 4 6 8 10 MSB BIT 8 NOT USED 12 ~ ~ ~ ~ ~ ~ ~ ~~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~~ ~ ~ ~ ~ ~ DOT COLUMN #1 OF NEXT CHARACTER COLUMN NOTE: IN ACTUAL PRINTING, THESE TWO ROWS MERGE TO PRINT ON THE SAME ROW.
Plot Data Line Format Normal Density Plot For normal density plot, the plot line contains: Control Code hex 05, plot data bytes, and a Line Terminator (hex 0A or hex 0C). The control sequence for sending the P-Series Normal Density Plot is as follows: 1. Send the plot command code ENQ (hex 05). 2. Send the plot data bytes (refer to page 155). 3. Send a line terminator, either a Line Feed (LF, hex 0A) or a Form Feed (FF, hex 0C).
Chapter 5 Plot Mode Plotting the Data P-Series Plot Mode plots the image from the horizontal bit pattern. Figure 10 duplicates the pattern shown in Figure 5 but is modified for Odd Dot Plot. Eight dot rows are required, two characters per row, six columns per character.
Exiting from P-Series Plot Mode Exiting from P-Series Plot Mode When returning to the print mode from the P-Series Plot Mode, an extra line feed should be included in the data stream to maintain proper print line registration relative to the last line of plot graphics. If the extra line feed is not included, the first character line after the graphics data may be truncated, as shown in Figure 12.
Chapter 5 Combining Graphics and Text Combining Graphics and Text The LinePrinter Plus Emulation is capable of combining graphics and characters (text) on the same page in two ways: • Use Bit Image graphics or P-Series Plot mode to produce characters as well as graphics • A combination of text (not plot) and graphics can be mixed on the same page within all protocols.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 042 043 044 045 046 047 050 051 052 053 054 055 056 057 060 061 062 063 064 065 066 067 070 071 072 073 074 075 076 077 0100010 0100011 0100100 0100101 0100110 0100111 0101000 0101001 0101010 0101011 0101100 0101101 0101110 0101111 0110000 0110001 0110010 0110011 0110100 0110101 0110110 0110111 0111000 0111001 0111010 0111011 0111100 0111101 0111110 0111111 3E 3F 32 33 34 35 36 37 38 39 3A 3B 3C 3D 2D
Chapter 156 5 Combining Graphics and Text
6 Vertical Page Formatting Overview Rapid vertical paper movement is called slewing. A vertical format unit (VFU) is a program you load into the printer that enables it to slew paper to preset locations on a page. On your printer, LF commands and other commands that produce blank lines are accumulated and moved in one efficient paper motion. The VFUs are maintained for compatibility with earlier applications.
Chapter 6 Proprinter and Epson Vertical Tab Table VFU Characteristics Keep in mind the following information when programming and using a VFU: Elongated Characters. You can use elongated (double high) characters in VFU programs. The VFU automatically counts one line of elongated characters as two character lines. VFU Not Loaded. If the VFU is not loaded, the printer performs a single line feed in response to VFU commands. Paper Runaway Protection.
Vertical Tab Positions Vertical Tab Positions Vertical tab positions are set by line number. A maximum of 16 vertical tab positions can be set on the form. A sample format is shown in Figure 13. The first vertical tab is set at line 6 for part number data, a second tab is set at line 8 for part name data, and a third tab is set at line 14 for quantity data. The ESC B code assigns the vertical tabs to the lines of the form.
Chapter 6 P-Series EVFU (Electronic Vertical Format Unit) P-Series EVFU (Electronic Vertical Format Unit) The EVFU may be selected in P-Series protocol. The EVFU provides 14 channels to identify up to 192 lines. The programming sequence is 1) start load code; 2) line identification code; and 3) end load code. Start Load Code - Hex 1E The start load code clears and initializes the EVFU memory for the memory load program. The start load code is hex 1E.
Using the EVFU Using the EVFU Once the EVFU program has been enabled and loaded, sending the appropriate channel code to the printer will cause any data in the buffer to print and will position the paper to the next line on the form having the specified channel number assigned in EVFU memory.
Chapter 6 P-Series EVFU (Electronic Vertical Format Unit) NOTE: The ESC code cannot be used simultaneously as the EVFU VT code and the Special Function Control Code (SFCC). Refer to the appropriate protocol chapter for more information on the SFCC. Clearing the EVFU Memory The following actions will reset (clear) the EVFU memory: 1. Sending only the start load code. 2. Sending a start load code followed immediately by an end load code. 3.
A Standard ASCII Character Set B7 B6 BITS KEY 0 B5 0 1 B4 B3 B2 B1 1 0 1 ESC 1 OCTAL DECIMAL HEX 33 27 1B ASCII CHARACTER B7 B6 0 B5 BITS 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 0 1 1 1 1 1 0 1 COLUMN 0 B4 B3 B2 B1 ROW 1 0 0 0 0 0 NUL 0 0 0 0 0 0 1 1 SOH 1 1 1 0 0 1 0 2 STX 2 2 2 0 0 1 1 3 ETX 3 3 3 0 1 0 0 4 EOT 0 1 0 1 5 0 1 1 0 DLE DC1 (XON) 2 20 16 10 21 17 11 SP ! 3 40 32 20 41 33 21 4 0 60 48 30 1 61 49 31 5 6 @ 100 64 40 P 120 80 50
Appendix A 164
B P-Series Emulation Character Sets Introduction This appendix shows the character set charts (also referred to as code pages) for the P-Series emulation. The character sets are shown in Near Letter Quality (NLQ). They may be selected using the configuration menus, described in detail in your User’s Manual. There are also several control codes that allow you to select different character sets, described in Chapter 2 of this book. These include “SFCC l”, “SFCC OSET”, “SFCC R”, and “SFCC PSET”.
Appendix B P-Series Emulation Character Sets IBM PC, Primary Subset: ASCII (USA) 166
IBM PC, Primary Subset: French 167
Appendix B P-Series Emulation Character Sets IBM PC, Primary Subset: German 168
IBM PC, Primary Subset: English (UK) 169
Appendix B P-Series Emulation Character Sets IBM PC, Primary Subset: Danish 170
IBM PC, Primary Subset: Swedish 171
Appendix B P-Series Emulation Character Sets IBM PC, Primary Subset: Italian 172
IBM PC, Primary Subset: Spanish 173
Appendix B P-Series Emulation Character Sets IBM PC, Primary Subset: Japanese 174
IBM PC, Primary Subset: French Canadian 175
Appendix B P-Series Emulation Character Sets IBM PC, Primary Subset: Latin American 176
IBM PC, Primary Subset: Danish II 177
Appendix B P-Series Emulation Character Sets IBM PC, Primary Subset: Spanish II 178
IBM PC, Primary Subset: Latin American II 179
Appendix B P-Series Emulation Character Sets IBM PC, Extended Subset: 0437 PC Character Set 180
IBM PC, Extended Subset: 0850 PC Multilingual 181
Appendix B P-Series Emulation Character Sets Multinational, ASCII (USA) 182
Multinational, EBCDIC 183
Appendix B P-Series Emulation Character Sets ECMA Latin 1, Primary Subset: ASCII (USA) 184
ECMA Latin 1, Primary Subset: German 185
Appendix B P-Series Emulation Character Sets ECMA Latin 1, Primary Subset: Swedish 186
ECMA Latin 1, Primary Subset: Danish 187
Appendix B P-Series Emulation Character Sets ECMA Latin 1, Primary Subset: Norwegian 188
ECMA Latin 1, Primary Subset: Finnish 189
Appendix B P-Series Emulation Character Sets ECMA Latin 1, Primary Subset: English (UK) 190
ECMA Latin 1, Primary Subset: Dutch 191
Appendix B P-Series Emulation Character Sets ECMA Latin 1, Primary Subset: French 192
ECMA Latin 1, Primary Subset: Spanish 193
Appendix B P-Series Emulation Character Sets ECMA Latin 1, Primary Subset: Italian 194
ECMA Latin 1, Primary Subset: Turkish 195
Appendix B P-Series Emulation Character Sets ECMA Latin 1, Primary Subset: Japanese 196
ECMA Latin 1, Extended Subset: Multinational 197
Appendix B P-Series Emulation Character Sets ECMA Latin 1, Extended Subset: Barcode 10 cpi 198
ECMA Latin 1, Extended Subset: Greek 199
Appendix B P-Series Emulation Character Sets ECMA Latin 1, Extended Subset: Graphic 200
ECMA Latin 1, Extended Subset: Scientific 10 cpi 201
Appendix B P-Series Emulation Character Sets DEC Multinational, ASCII (USA) 202
DEC Multinational, French 203
Appendix B P-Series Emulation Character Sets DEC Multinational, German 204
DEC Multinational, English (UK) 205
Appendix B P-Series Emulation Character Sets DEC Multinational, Norwegian/Danish 206
DEC Multinational, Swedish 207
Appendix B P-Series Emulation Character Sets DEC Multinational, Italian 208
DEC Multinational, Spanish 209
Appendix B P-Series Emulation Character Sets DEC Multinational, Japanese 210
DEC Multinational, French Canadian 211
Appendix B P-Series Emulation Character Sets DEC Multinational, Dutch 212
DEC Multinational, Finnish 213
Appendix B P-Series Emulation Character Sets DEC Multinational, Swiss 214
OCR A 215
Appendix B OCR B 216 P-Series Emulation Character Sets
C Proprinter Emulation Character Sets Introduction This appendix shows the character set charts (also referred to as code pages) for the Proprinter emulation. The character sets are shown in Near Letter Quality (NLQ). They may be selected using the configuration menus, described in detail in your User’s Manual. The maximum set of printable symbols is shown for columns hex 80-9F (selected via the ESC 6 control code).
Appendix C Proprinter Emulation Character Sets 0437 PC Character Set 218
0850 PC Multilingual 219
Appendix C OCR A 220 Proprinter Emulation Character Sets
OCR B 221
Appendix C 222 Proprinter Emulation Character Sets
D Epson Emulation Character Sets Introduction This appendix shows the character set charts (also referred to as code pages) for the Epson emulation. The character sets are shown in Near Letter Quality (NLQ). They may be selected using the configuration menus, described in detail in your User’s Manual. The international character sets may be selected using the ESC R n control code (see page 109).
Appendix D Epson Emulation Character Sets 0437 PC Character Set 224
0850 PC Multilingual 225
Appendix D Epson Emulation Character Sets Epson Set, ASCII (USA) 226
Epson Set, French 227
Appendix D Epson Emulation Character Sets Epson Set, German 228
Epson Set, English (UK) 229
Appendix D Epson Emulation Character Sets Epson Set, Danish I 230
Epson Set, Swedish 231
Appendix D Epson Emulation Character Sets Epson Set, Italian 232
Epson Set, Spanish I 233
Appendix D Epson Emulation Character Sets Epson Set, Japanese 234
Epson Set, Norwegian 235
Appendix D Epson Emulation Character Sets Epson Set, Danish II 236
Epson Set, Spanish II 237
Appendix D Epson Emulation Character Sets Epson Set, Latin American I 238
Epson Set, French Canadian 239
Appendix D Epson Emulation Character Sets Epson Set, Latin American II 240
OCR A 241
Appendix D OCR B 242 Epson Emulation Character Sets
Index A Control code description format Epson FX-1050, 102 ASCII Character Set, 163 Proprinter III XL, 58 Attribute Set and Reset Codes P-Series emulation, 22 P-Series, 24 Control Code Header B P-Series, 23 Control codes index BEL (Bell) Proprinter control code, 64 Bit image density selection, 145 Bit image graphics Epson FX-1050, 104 Proprinter emulation, 62 P-Series emulation, 25 D bit pattern from ASCII character, 144 for Proprinter and Epson emulations, 143 sample program, 147 Bit image pa
Carriage Return (CR), 108 Make 80-9F Hex Printable (ESC 6), 126 Character Pitch 10 CPI (ESC P), 108 Master Print Select (ESC !), 128 Character Pitch 12 CPI (ESC M), 108 Paper Out Detection Disable (ESC 8), 129 Character Pitch 15 CPI (ESC g), 108 Paper Out Detection Enable (ESC 9), 128 Character Set Select Pass Bit 7 from Host (ESC #), 129 International Languages (ESC R), 109 Printer Deselect (DC3), 129 Clear Bit 7 of Incoming Data Bytes to 0 (ESC =), Printer Select (DC1), 129 110 Condensed Pri
ESC (Escape) sequences, 102 exceptions, 100 factory settings, 98 Make 80-9F Hex Control Codes (ESC 7) control codes, 126 Set and Reset codes, 103 Epson FX-1050 Features, 17 ESC (Character Pitch 12 cpi) Proprinter control code, 71 ESC - (Underline) Proprinter control code, 96 ESC A (Line Spacing n/72 Inch, Storage) Proprinter control code, 84 ESC B (Tab Set/Clear, Vertical) Proprinter control code, 95 ESC C (Forms Length Set in Lines) Proprinter control code, 77 ESC C 0 (Forms Length Set in Inches) Proprinte
H ESC 5 (Carriage Return Set) Proprinter control code, 71 ESC 6 (Character Set Select HT (Tab, Horizontal) Proprinter control code, 93 Set 2(B)) I Proprinter control code, 71 ESC 7 (Character Set Select Set 1(A)) Proprinter control code, 71 ESC ^ (Print Next Character) Proprinter control code, 88 ESC _ (Overscoring) Proprinter control code, 87 IBM Proprinter III XL overview See Proprinter III XL emulation, 55 Ignored and reserved control codes Proprinter III XL emulation, 60 Image printing overview, 1
high density plot sample, 149 Line Feed (LF), 80 normal density plot, 151 Line Spacing n/216 Inch (ESC 3), 85 normal density plot sample, 148 Line Spacing n/72 Inch, Executes (ESC 2), 83 odd dot pattern plan, 152 Line Spacing n/72 Inch, Storage (ESC A), 84 plot data byte format, 149 Line Spacing 1/8 Inch, 8 lpi (ESC 0), 82 Plot mode graphics P-Series emulation, 148 Proprinter control codes Line Spacing 7/72 Inch, 10.
Graphics (ENQ), 47 control codes, 25 Backspace (BS), 27 Print Mode/Pitch Selection (SFCC PMODE), 48 Bell (BEL), 27 Superscript/Subscript Printing Reset (SFCC T), 52 Bold Print Reset (SFCC H), 28 Bold Print (SFCC G), 28 Superscript/Subscript Printing (SFCC S), 52 Carriage Return (CR), 29 Underline (SFCC), 53 Character Set Select Vertical Tab (VT), 53 ECMA Latin 1 Extended (SFCC OSET), 32 VFU Commands, 53 International Languages (SFCC PSET, SFCC extended and multinational character sets, 30 R),
U P-Series EVFU, 160 Vertical page format planning, 157 Unidirectional Printing (ESC U) Proprinter control code, 96 V Vertical format unit (VFU), 157 Vertical format units (VFUs) general programming information, 157 Vertical formatting Vertical tabbing example, 159 Vertical tabs Epson FX, 158 Proprinter III XL emulation, 158 VFU characteristics, 158 VT (Tab, Vertical) Proprinter control code, 94 249
5525B/31/32 Line Matrix Printer Compaq Computer Corporation P/N 422931-001 170116-001A