4400 Thermal Label Printers ASCII Programmer’s Reference Manual Form Number G544-5733-01 Copyright IBM Corp.
4400 Thermal Label Printers ASCII Programmer’s Reference Manual G544-5733-01
NOTE: Before using the information and the product it works with, make sure that you read the general information under “Notices” below. Second Edition (2003) This edition applies to the IBM 4400 Thermal Label Printer.
Notices References in this publication to IBM products, programs, or services do not imply that IBM intends to make these available in all countries in which IBM operates. Any reference to an IBM product, program, or service is not intended to state or imply that only IBM’s product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any of the intellectual property rights of IBM may be used instead of the IBM product, program, or service.
Table of Contents 1 Overview............................................................... 17 Introduction .............................................................................................17 About This Manual ...........................................................................17 Notes And Notices ...........................................................................18 Software Features ............................................................................
Table of Contents Form Feed........................................................................................ 43 Forms Length Set (Inches)...............................................................43 Forms Length Set (Lines)................................................................. 44 Form Margins, Set............................................................................44 Line Feed .........................................................................................
Table of Contents Select Letter Gothic (DP) .................................................................72 Space ...............................................................................................73 Underline ..........................................................................................73 Vertical Tab ......................................................................................74 4 Serial Matrix Printer Protocol................................ 75 Introduction ........
Table of Contents Extended Character Set Cancel (Primary Character Set Select) ........................................................96 Form Feed........................................................................................ 97 Forms Length Set (Inches)...............................................................97 Forms Length Set (Lines)................................................................. 98 Form Margins, Set.......................................................................
Table of Contents Bold Print Set .................................................................................123 Bold Print Cancel ...........................................................................123 Bottom Margin, Set ........................................................................124 Bottom Margin Cancel....................................................................124 Cancel ............................................................................................
Table of Contents Top-of-Form ................................................................................... 145 Underline........................................................................................ 146 Unidirectional Printing .................................................................... 146 Vertical Tab .................................................................................... 146 Vertical Tab Set/Clear ....................................................................
Table of Contents Form Feed......................................................................................171 Graphics, Standard Density ...........................................................171 Graphics, Double Density...............................................................172 Graphics, Double Density Double Speed.......................................173 Graphics, Quadruple Density .........................................................174 Half Speed Mode, On/Off ....................
Table of Contents Set Forms Length in Inches ........................................................... 190 Set Relative Horizontal Print Position in n/120 Inch ....................... 191 Set Vertical Tabs in Channels ........................................................ 191 Skip Over Perforation..................................................................... 192 Skip Over Perforation, Cancel........................................................ 192 Super-Set Commands...........................
Table of Contents Maxicode ........................................................................................239 MSI .................................................................................................241 PDF 417 .........................................................................................242 PostBar and Royal Mail..................................................................243 POSTNET ......................................................................................
Table of Contents B PTR_SETUP Option........................................... 283 Overview............................................................................................... 283 The PTR_SETUP Commands .............................................................. 283 Commands ..................................................................................... 284 C P-Series Plot Byte Definition .............................. 289 D Glossary ...................................................
1 Overview Introduction The IBM* ASCII Emulation is a software application on two diskettes capable of emulating five different impact printer protocols: • • • • • Printronix** P-Series P3000/6000/9000, hereafter called P-Series Printronix P-Series XQ P300/600, hereafter called P-Series XQ Printronix Serial Matrix IBM Proprinter* III XL, hereafter called Proprinter XL Epson** FX-1050 The software is designed to be compatible with a variety of paper sizes as well as different print engine dots-per-inch
Chapter 1 Introduction Notes And Notices For your safety and to protect valuable equipment, it is very important that you read and comply with all information highlighted under notes and notices: DANGER <#> The word Danger next to the lightning slash indicates the presence of a hazard that could cause death or serious personal injury. Danger and Caution notices are numbered to help you find the translated versions in the IBM 4400 Safety Notices booklet.
Notes And Notices CAUTION <#> The word Caution next to this symbol indicates a part or assembly that is sharp enough to cut you. CAUTION <#> The word Caution next to this symbol indicates the presence of laser radiation. NEVER look directly into laser light. ATTENTION The word Attention indicates the possibility of damage to a program, device, system, or data. IMPORTANT The word Important indicates information vital to proper operation of the printer.
Chapter 1 Introduction Software Features The ASCII Emulation software provides the following features: • Printer Protocols: Printronix P-Series Printronix P-Series XQ Printronix Serial Matrix IBM Proprinter III XL Epson FX-1050 • Page Orientations: Portrait/Inverted Portrait Landscape/Inverted Landscape • Graphics: Bit Image Graphics P-Series Compatible Plot Mode • Vertical Page Formatting: Printronix P-Series Electronic Vertical Format Unit (EVFU) Serial Matrix Vertical Formatting Unit (VFU) •
Printer Configuration • Print Attributes: Emphasized/Bold print Scalable font sizes Superscript/subscript print Automatic underline and overscore Carriage return editing Variable point size Italics • Barcode Printing NOTE: Complete listings of all the choices from these categories are printed in the menu descriptions, as well as in the description of the SuperSet “Character Set Selection” (SSCC R) command (see page 198).
Chapter 22 1 Introduction
2 P-Series Printer Protocol Introduction 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 Introduction P-Series Default Values and States The factory settings for the P-Series emulation menu options (for an 8” printer) are shown in Table 1. Table 1 also lists additional factory settings for parameters provided by the ASCII Emulation formatting menus. (The EMULATION menu options are described in the User's Guide). Host control codes can override many of the settings for these menu options. Table 1. P-Series Default Settings Characteristic Default Setting Select CPI 10.
P-Series Default Values and States Table 1. P-Series Default Settings (continued) Characteristic Default Setting Overstrike Enable Select SFCC 1 EVFU Select Enable Alt. Set 80-9F Control Code SFCC d command Even dot plot PSeries Dbl High Normal FF valid at TOF Enable Text Position Bottom of Line Host Command Enable Reset Cmd CFG Ld Disable Form Length 06.0 inches Form Length 152.4 mm Form Length 36 lines Form Width 08.5 inches Form Width 216.
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.
Command Line Command Line Print format, print mode, or international language selection can be controlled by a longer sequence known as a Command Line. Command Lines are string type commands placed between complete lines of text and affect the text which follows. The protocol has six Command Lines: PMODE, OSET, PSET, LPI, LINES, and INCHES. Each of these Command Lines is discussed in this chapter under the appropriate Control Code function.
Chapter 2 Configuring the P-Series Emulation with Control Codes Control Code Reference Index 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 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.
Control Code Reference Index FUNCTION ASCII CODE PAGE Print Attributes (continued) Superscript/Subscript Printing Superscript/Subscript Printing Reset Underline SFCC S n SFCC T SFCC – 55 55 56 EOT SFCC d ENQ SFCC e 51 BEL SFCC l xyz SFCC 7 SFCC 6 SFCC OSET; n SFCC R n SFCC PSET; n SFCC @ SO SFCC SO SFCC n SFCC 4 SI SFCC SI SFCC o SFCC 5 SFCC |}; 30 33 35 35 36 37 Graphics Plot, Even Dot (High Density) Plot, Odd Dot (Normal Density) 51 Other Functions Bell Character Set Select Characters 80-9F (
Chapter 2 Configuring the P-Series Emulation with Control Codes Backspace ASCII Code BS Hex Code 08 Dec Code 8 Purpose Moves the logical print head to the left one character space toward the first character column. Comment When configured from the front 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.
Bold Print 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. Comment 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 printing double strike on an impact printer.
Chapter 2 Configuring the P-Series Emulation with Control Codes 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). Comment The CR code may or may not cause printing or paper motion, depending on the DEFINE CR CODE configuration parameter value.
Character Set Select 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. where: x is the character set (Table 3); y is the international language for the selected character set (Table 4); z is the extended character set for the selected character set (Table 5); Table 3.
Chapter 2 Configuring the P-Series Emulation with Control Codes Table 5. Extended Character Set Select (z) x = 0 (hex 30) x = 1 (hex 31) x = 2 (hex 32) x = 3 (hex 33) IBM PC Multinational ECMA Latin 1 DEC Multinational z 0 (hex 30) IBM PC (0437) 1 (hex 31) IBM PC (0850) Mult. Extended Set Barcode 10 cpi DEC Mult. Ext. Set Mult. DP 10 cpi 2 (hex 32) Mult. DP 12 cpi 3 (hex 33) Mult.
Characters 80-9F (Control Codes) Characters 80-9F (Control Codes) ASCII Code SFCC 7 Hex Code SFCC 37 Dec Code SFCC 55 Purpose Selects the character set wherein hex codes 80 through 9F are control codes. Cancels Character Set Select activated by SFCC 6. Comment This feature is also selectable from the control panel (see the “Alternate Set 80-9F” parameter in the configuration chapter of your User’s Guide).
Chapter 2 Configuring the P-Series Emulation with Control Codes Character Set Select: ECMA-94 Latin 1 Extended ASCII Code SFCC OSET;n Purpose Selects the Extended Character Set and the print mode and pitch at which the extended character prints. Valid only in the ECMA-94 Latin 1 Extended Character Set; otherwise, this command is ignored. Comment n ranges from 0 through 12 (hex 00 through hex 0C) to select the print mode/pitch combinations available from page 52.
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-94 Latin 1, IBM PC, Multinational, and DEC Multinational). where: n corresponds to the language as shown in Table 7. Table 7.
Chapter 2 Configuring the P-Series Emulation with Control Codes Comment The international character set can also be selected from the control panel. The control code setting overrides the control panel character set selection. Values other than those selectable from Table 7 are ignored. Example The following example illustrates international character selection using the IBM PC character set.
Elongated (Double High) Print, Set/Reset 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.
Chapter 2 Configuring the P-Series Emulation with Control Codes Emphasized Print ASCII Code SFCC E Hex Code SFCC 45 Dec Code SFCC 69 Purpose Selects emphasized character print format. Comment When the emphasized print control code is received, all characters are printed in emphasized print until reset by the emphasized print reset control code or printer reset. Emphasized print is ignored during superscript or subscript printing, and when 15-20 cpi characters have been selected.
Expanded (Double Wide) Print Expanded (Double Wide) Print ASCII Code SFCC W n Hex Code SFCC 57 n Dec Code SFCC 87 n Purpose Selects or resets expanded (double wide) print. where: n = 1 selects expanded print (hex 01 or hex 31) n = 0 resets expanded print (hex 00 or hex 30) Comment When expanded print using SFCC W is received, all characters are printed double wide until reset by the expanded print reset control code or printer reset.
Chapter 2 Configuring the P-Series Emulation with Control Codes Extended Character Set ASCII Code SO (Shift Out) 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 hex 20 through 7F. Comment 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.
Form Feed 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. Comment The default forms length is determined by the configuration in nonvolatile memory. Forms length is set by using the control panel or forms length control codes. Code FF cancels all singleline only print attributes. The Form Feed command reacts differently when the VFU is active.
Chapter 2 Configuring the P-Series Emulation with Control Codes Forms Length Set (Lines) ASCII Code SFCC LINES;n Purpose Sets the length of a form (paper) in lines. where: n = 1 through 192 (hex 01 through C0) to specify the number of lines per page at the current line spacing. Comment The forms length is set to the number of lines defined by the quotient of n and the current line spacing so that the units are in inches.
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 one line at the current line space setting. Comment 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).
Chapter 2 Configuring the P-Series Emulation with Control Codes Line Spacing 1/6 Inch (6 lpi) ASCII Code SFCC 2 SFCC LPI;n Hex Code SFCC 32 Dec Code SFCC 50 Purpose Sets line spacing to 6 lpi or as set by SFCC A. Comment For SFCC LPI;n, the value of n can be 6 or 8 only. If n = 6, this command sets line spacing to 1/6 inch. Values of n other than 6 or 8 causes an error message. (Command Line Error Messages are listed in Table 2 on page 27.
Line Spacing 1/8 Inch (8 lpi) Line Spacing 1/8 Inch (8 lpi) ASCII Code SFCC 0 SFCC LPI;n Hex Code SFCC 30 Dec Code SFCC 48 Purpose Specifies continuous line spacing at 1/8-inch increments (8 lpi). Comment When the 1/8-inch line spacing control code is received, all lines are printed at 8 lpi until a new line spacing is selected or the printer is reset. The control code line spacing selection overrides the control panel line spacing setting. For SFCC LPI;n, the value of n can be 6 or 8 only.
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. Comment When the 7/72-inch line spacing control code is received, all lines are 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 hex 55, all others are ignored) Comment When the SFCC A control sequence is received, all line feed commands following an SFCC 2 sequence* are 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 hex FF) Comment When the n/216-inch line spacing control code is received, all line feeds following are 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 4 SFCC 100 Purpose Prints dots at the even numbered dot columns. Comment 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). See “P-Series Compatible Plot Mode (Odd/Even Dot Plotting)” on page 264 for detailed plot mode information.
Chapter 2 Configuring the P-Series Emulation with Control Codes Print Mode/Pitch Selection ASCII Code SFCC X mn SFCC [ n q SFCC PMODE;n Hex Code SFCC 58 mn SFCC 5B n 71 Dec Code SFCC 88 mn SFCC 91 n 113 Purpose Selects the print mode (Letter Gothic, Courier, or OCR) and character pitch in characters per inch (cpi). where: In SFCC PMODE;n n ranges from 0 through 6 to select the print mode/pitch combinations available from Table 8. All other values result in an error message.
Print Mode/Pitch Selection Table 8. Print Mode and Pitch (SFCC PMODE;n) n Print Mode and Pitch 0 Letter Gothic 10 cpi 1 Letter Gothic 12 cpi 2 Letter Gothic 15 cpi 3 Courier 10 cpi 4 Letter Gothic 10 cpi 5 OCR-A 10 cpi 6 OCR-B 10 cpi Table 9. Print Mode and Pitch (SFCC [nq) n Print Mode and Pitch 1 (hex 31) Courier 10 cpi 2 (hex 32) Letter Gothic 10 cpi 3 (hex 33) Letter Gothic 12 cpi 4 (hex 34) Letter Gothic 12 cpi 5 (hex 35) Letter Gothic 13 cpi Table 10.
Chapter 2 Configuring the P-Series Emulation with Control Codes Table 11.
Superscript/Subscript Printing Superscript/Subscript Printing ASCII Code SFCC S n Hex Code SFCC 53 n Dec Code SFCC 83 n Purpose Selects superscript or subscript printing. where: n = 0 to enable superscript printing (hex 00 or hex 30) n = 1 to enable subscript printing (hex 01 or hex 31) Comment Superscript/Subscript font prints at one-half the normal vertical character height and at twice the normal vertical density.
Chapter 2 Configuring the P-Series Emulation with Control Codes Super-Set Commands ASCII Code SFCC | } ; Hex Code SFCC 7C 7D 3B Dec Code SFCC 124 125 59 Purpose Control code sequence used to introduce the super-set commands. Comment Super-set commands affect the ASCII Emulation as a whole regardless of the printer protocol currently active.
VFU Commands (P-Series) VFU Commands (P-Series) ASCII Code See the P-Series EVFU section in Chapter 9, “Vertical Page Formatting” for codes. NOTE: If the SFCC being used is ESC, the PI line must be set high when using the EVFU. Purpose Load and execute the VFU. Comment See Chapter 9, “Vertical Page Formatting,” beginning on page 271 for detailed information.
Chapter 58 2 Configuring the P-Series Emulation with Control Codes
3 P-Series XQ Printer Protocol Introduction This chapter describes the P-Series XQ 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. Carriage Return, print quality, character attributes such as bold and underline, margins, and tabs are typical functions selected by printer control language codes.
Chapter 3 Introduction The emulation's response to several of the control codes depends on the configuration. For example, upon receipt of the carriage return control code, the emulation will either perform a carriage return function only, or a carriage return and line feed, based on the configuration for the CR function. P-Series XQ Default Values and States The factory settings for the P-Series XQ emulation menu options are shown in Table 12.
P-Series XQ Default Values and States Table 12. P-Series Default Settings Characteristic Default Setting Gothic Typeface Char 02 STX EVFU Select Enable Upr. Case Select Disable Slew Relative 1 to 15 lines Text Position Bottom of Line Host Command Enable Reset Cmd CFG Ld Disable Form Length 06.0 inches Form Length 152.4 mm Form Length 36 lines Form Width 08.5 inches Form Width 216.
Chapter 3 Configuring the XQ Emulation with Control Codes Configuring the XQ Emulation with Control Codes The remainder of this chapter describes the P-Series XQ printer control language codes that may be sent from a host computer attached to the printer, in order to configure and invoke numerous printer functions. Format for Control Code Descriptions The following information is listed for each code function (where applicable and possible). Name The title or function of the command.
Edit Mode Edit Mode Any printable character in the data stream can replace printable characters or spaces already loaded in the print buffer. The space character (hex 20) is used to skip characters in the print buffer that are not to be replaced and, similar to underlining or deleting, the new characters are inserted in the appropriate positions. Table 13 illustrates the edit mode.
Chapter 3 Configuring the XQ Emulation with Control Codes Control Code Index The following index lists the control codes by function and lists the ASCII mnemonic and page number. FUNCTION ASCII CODE PAGE Paper Motion Form Feed Line Feed Vertical Tab FF LF VT 69 70 74 EOT ENQ _ 71 72 73 CR DLE through US See NOTE below DEL ACK SP 66 68 Print Attributes Plot, Even Dot Plot, Odd Dot Underline Page Format Carriage Return Channels 1 through 14 Delete Line Spacing (8 or 10.
Alternate Character Set Deselect (Shift In) Alternate Character Set Deselect (Shift In) ASCII Code SI Hex Code 0F Dec Code 15 Purpose This code selects the primary character set. Comment The alternate character set select and deselect codes can be used to mix primary and alternate characters on a single line. The main character set is also automatically selected when a line terminator code is received.
Chapter 3 Configuring the XQ Emulation with Control Codes Carriage Return ASCII Code CR Hex Code 0D Dec Code 13 Purpose Positions the logical print head at the left margin (resets the memory pointer to the first character position). Comment The printer can be configured to perform a carriage return only (CR = CR only), or a carriage return plus a line feed function (CR = CR + LF).
Compressed Print Compressed Print ASCII Code SOH ETX HT Hex Code 01 03 09 Dec Code 1 3 9 NOTE: Configure this feature from the control panel. Purpose Selects compressed character printing. Comment Use any of the three codes to select 17.1 cpi if you are configuring the printer from the operator control panel. Both ETX and HT also select the Letter Gothic (DP) font if the printer is configured from the control panel (see page 72).
Chapter 3 Configuring the XQ Emulation with Control Codes Delete ASCII Code DEL Hex Code 7F Dec Code 127 Purpose Deleted character results in a blank space at the corresponding character position. Comment The Delete code deletes the corresponding character in the print buffer. As shown in Table 14 below, the four delete control codes are used to delete DATE from the print line. NOTE: In order for this to work correctly, the printer must be configured for carriage return only.
Elongated Characters (Double High Print) Elongated Characters (Double High Print) ASCII Code BS SO Hex Code 08 0E Dec Code 8 14 NOTE: Configure this feature from the control panel. Purpose Selects elongated (double high) character printing for one line. Comment The Elongated Character control code can be placed anywhere in the data line before the line terminator. Following the line terminator, the printer automatically selects the default print mode.
Chapter 3 Configuring the XQ 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. Comment 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).
Plot, Even Dot (P-Series XQ High Density Graphics) Plot, Even Dot (P-Series XQ High Density Graphics) ASCII Code EOT Hex Code 04 Dec Code 4 Purpose Selects even dot plot mode to print dots in even numbered dot columns to produce high density plotting. Comment The Even Dot Plot control code can occur anywhere in the data line before the line terminator. It defines certain data between the next and last paper motion commands as even dot plot data. These data are plotted at 60 by 72 dots per inch.
Chapter 3 Configuring the XQ Emulation with Control Codes Plot, Odd Dot (P-Series XQ Normal Density Graphics ASCII Code ENQ Hex Code 05 Dec Code 5 Purpose Selects odd dot plot mode to print dots in odd numbered dot columns for normal density plotting. Comment The Odd Dot Plot control code can occur anywhere in the data line before the line terminator. It defines certain data between the next and last paper motion commands as odd dot plot data. These data are plotted at 60 by 72 dots per inch.
Space Space ASCII Code SP Hex Code 20 Dec Code 32 Purpose Produces a blank space; no character is printed. Comment It is not necessary to pad the end of the print line with space characters. The printer automatically fills the line after the line terminator is received. The Space character code is also used to skip characters for editing and underlining as described on page 63. Underline ASCII Code Underline key ( _ ) Hex Code 5F Dec Code 95 Purpose Underlines specified character positions.
Chapter 3 Configuring the XQ Emulation with Control Codes Vertical Tab ASCII Code VT 74 Hex Code 0B Dec Code 11 Purpose Acts as a line terminator when the EVFU is loaded, causing the paper to advance to a specified preprogrammed line. Comment Vertical Tab is primarily an EVFU line terminator code as described in Chapter 9, “Vertical Page Formatting”. If the EVFU is not loaded and Vertical Tab control code is used, a single line feed results.
4 Serial Matrix Printer Protocol Introduction This chapter describes the Serial Matrix 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. Carriage Return, print quality, character attributes such as bold and underline, margins, and tabs are typical functions selected by printer control language codes.
Chapter 4 Introduction Serial Matrix Default Values and States The factory settings for the Serial Matrix emulation menu options are shown in Table 16. Table 17 lists additional factory settings for parameters provided by the ASCII Emulation formatting menus. (The EMULATION menu options are described in the User's Guide). Host control codes can override many of the settings for these menu options. Table 16. Serial Matrix Default Settings Characteristic 76 Default Setting Control Code 06 8.
Serial Matrix Default Values and States Table 17. ASCII Emulation Menu Option Factory Settings Characteristic Default Setting Orientation Portrait CPI 10.0 LPI 6.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Configuring the Serial Matrix Emulation with Control Codes The remainder of this chapter describes the Serial Matrix printer control language codes that may be sent from a host computer attached to the printer, in order to configure and invoke numerous printer functions. Format for Control Code Descriptions The following information is listed for each code function (where applicable and possible).
Control Code Index Control Code Index 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 Serial Matrix Emulation mode. The commands are listed in alphabetical order. FUNCTION ASCII CODE PAGE Paper Motion Form Feed Line Feed Line Feed n/216 Inch (1 line only) Vertical Tab FF LF ESC J n VT 97 100 100 110 BS CAN CR DEL ESC C NUL n ESC C n ESC v HT ESC D n1 ...
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes FUNCTION ASCII CODE PAGE Print Attributes (Continued) ESC _ n ESC X mn ESC [ n q Superscript/Subscript Printing ESC S n Superscript/Subscript Printing Reset ESC T Underline ESC – n Overscoring Print Mode/Pitch Selection 103 104 108 108 109 Graphics Bit Image Mode, Single Density Bit Image Mode, Double Density Bit Image Mode, Double Density Double Speed Bit Image Mode, Quadruple Density ESC K n1 n2 ESC L n1 n2 81 82 ESC Y n1 n2 E
Bell Bell ASCII Code BEL Hex Code 07 Dec Code 7 Purpose Sounds the printer's buzzer/beeper. Comment The BEL function sounds the buzzer/beeper for 0.2 seconds upon receipt of this command. Bit Image Mode, Single Density 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) define the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Bit Image Mode, 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. where: (n1 + 256n2) define the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
Bit Image Mode, Quadruple Density Bit Image Mode, 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. where: (n1 + 256n2) define the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes. NOTE: The DATA can be expressed in a format with the appropriate decimal values of the ASCII characters supplied especially in cases where the dot patterns of nonprintable characters are required.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Bold Print Reset ASCII Code ESC H Hex Code 1B 48 Dec Code 27 72 Purpose Resets bold character printing. Comment The bold print reset control code only resets the bold print character attribute. Other print attributes such as double wide printing are not affected. Example Refer to the Bold Print control code for a sample of bold character print set and reset.
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). Comment The CR code may or may not cause printing or paper motion, depending on the DEFINE CR CODE configuration parameter value. 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 4 Configuring the Serial Matrix Emulation with Control Codes Character Pitch 12 cpi ASCII Code ESC M ESC : Hex Code 1B 4D 1B 3A Dec Code 27 77 27 58 Purpose Sets character pitch to 12 cpi. Comment Control Code ESC X can also be used to select a character pitch of 12 cpi. See “Print Mode/Pitch Selection” on page 104.
Character Set Select Table 19.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Comment An asterisk character (*) (hex 2A) may be substituted for the numeric values of x, y, or z. If the asterisk (*) is the value selected for x, the character set does not change. If * is the value selected for y or z, the previously selected international language and/or extended character set for the selected character set are used.
Characters 80-9F (Printable Symbols) Characters 80-9F (Printable Symbols) ASCII Code ESC 6 Hex Code 1B 36 Dec Code 27 54 Purpose Selects the character set wherein hex codes 80 through 9F are printable symbols. Also includes hex codes 03 through 06 and 15 in the Serial Matrix printer protocol. Cancels Character Set Select activated by ESC 7 or ESC u.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Character Set Select: International Languages ASCII Code ESC R n Hex Code 1B 52 n Dec Code 27 82 n Purpose Specifies the international language set identified by n in the basic character set selected from the control panel (ECMA-94 Latin 1, IBM PC, Multinational, and DEC Multinational). where: n corresponds to the language as shown in Table 21 below. Table 21.
Condensed Print Example The following example illustrates international character selection using the IBM PC character set. Condensed Print ASCII Code SI ESC SI Hex Code 0F 1B 0F Dec Code 15 27 15 Purpose Selects 17 characters per inch (cpi) condensed print format. Comment Condensed print can also be selected using control code ESC X. See “Print Mode/Pitch Selection” on page 104. The Serial Matrix condensed print control code SI affects all subsequent characters.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Delete ASCII Code DEL Hex Code 7F Dec Code 127 Purpose Deletes the previously received character on a line. Comment Characters that have been truncated due to line length restrictions are not affected by this code. Elongated (Double High) Print (One Line Only) ASCII Code ESC h Hex Code 1B 68 Dec Code 27 104 Purpose Selects elongated (double high) character printing for one line only.
Elongated (Double High) Print, Set/Reset Elongated (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 = hex 1 or hex 31 turns double high printing on n = hex 0 or hex 30 turns double high printing off Comment The OCR A and OCR B fonts cannot be printed in double high.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Emphasized Print Reset ASCII Code ESC F Hex Code 1B 46 Dec Code 27 70 Purpose Resets emphasized character printing. Comment The emphasized print reset control code only resets the emphasized print character attribute. Example See the Emphasized Print example. Emulation Reset ASCII Code ESC @ Hex Code 1B 40 Dec Code 27 64 Purpose Initializes all print mode related parameters to their power-up configuration.
Expanded (Double Wide) Print Expanded (Double Wide) Print ASCII Code ESC W n Hex Code 1B 57 n Dec Code 27 87 n Purpose Selects or resets expanded (double wide) print. where: n = 1 selects expanded print (hex 01 or hex 31) n = 0 resets expanded print (hex 00 or hex 30) Comment When expanded print using ESC W is received, all characters are printed double wide until reset by the Expanded Print Reset control code, Emulation Reset, or DC4.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Extended Character Set ASCII Code ESC 4 Hex Code 1B 34 Dec Code 27 52 Purpose Accesses the extended character set in the range hex A0 through FF using codes hex 20 through hex 7F. Comment This code is 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.
Form Feed 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. Comment The default forms length is determined by the configuration in nonvolatile memory. Forms length is set by using the control panel or forms length control codes. Code FF cancels all singleline only print attributes. The Form Feed command reacts differently when the VFU is active.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Forms Length Set (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 192 (hex 01 through C0) to specify the number of lines per page at the current line spacing. Comment The forms length set becomes the current forms length.
Horizontal Tab Vertical tabs defined within the top and bottom margins are ignored. Horizontal tabs are offset by the left margin and ignored within the right margin. Horizontal Tab ASCII Code HT Hex Code 09 Dec Code 9 Purpose Moves the logical printhead right to the next horizontal tab stop. Comment Power-on default horizontal tabs are set at every eighth character in the Serial Matrix printer protocol.
Chapter 4 Configuring the Serial Matrix 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. Comment If configured for LF equals newline (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/6 Inch Line Spacing 1/6 Inch ASCII Code ESC 2 ESC A n Hex Code 1B 32 1B 41 n Dec Code 27 50 27 65 n Purpose ESC 2 sets line spacing to 6 lpi, or as set by ESC A. Comment The value of n should be 12 if using ESC A n. ESC 2 asserts n/72-inch line spacing as set by ESC A (page 102). If no distance has been set by ESC A, the distance is 1/6 inch. The control code line spacing selection overrides the control panel line spacing setting.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Line Spacing 7/72 Inch ASCII Code ESC 1 Hex Code 1B 31 Dec Code 27 49 Purpose Specifies the line spacing at 7/72-inch (10.3 lpi) increments. Comment When the 7/72-inch line spacing control code is received, all lines are printed at the 7/72-inch line spacing until a new line spacing is selected or the printer is reset.
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 Comment When the n/216-inch line spacing control code is received, all line feeds following are at n/216-inch line spacing until a new line spacing is selected or the printer is reset. The control code line spacing selection overrides the control panel line spacing setting.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Print Mode/Pitch Selection ASCII Code ESC X mn ESC [ n q Hex Code 1B 58 mn 1B 5B n 71 Dec Code 27 88 mn 27 91 n 113 Purpose Selects the print mode (Letter Gothic, Courier, or OCR) and character pitch in characters per inch (cpi). where: In ESC X mn m = Print Mode code n = Pitch (cpi) An asterisk (*) (hex 2A) may be substituted for m or n. Whenever the asterisk replaces m or n, then its current value does not change.
Print Mode/Pitch Selection Table 23. Horizontal and Vertical Dot Density (ESC X) m (Hex*) Horiz. Density Resolution Vertical Density Print Mode 0 (30) x dpi y dpi Letter Gothic 1 (31) x dpi y dpi Courier 2 (32) x dpi y dpi Letter Gothic 3 (33) x dpi y dpi Letter Gothic 4 (34) x dpi y dpi Letter Gothic 5 (35) x dpi y dpi OCR-A 6 (36) x dpi y dpi OCR-B 7 (37) x dpi y dpi Letter Gothic 8 (38) x dpi y dpi Letter Gothic *The hex values shown (i.e., 0 and 30) are equal.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Example 106 The sample printout below shows a number of different print modes and pitch selections.
Printer Deselect Printer Deselect ASCII Code DC3 Hex Code 13 Dec Code 19 Purpose Places printer in the deselected state. Comment When the configuration parameter PRINTER SELECT is enabled, this control code disables the printer from receiving and printing data from the host. Until a DC1 (Printer Select) command is received, all subsequent data to the printer is ignored.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Skip-Over Perforation Cancel ASCII Code ESC O (alpha O) Hex Code 1B 4F Dec Code 27 79 Purpose Resets bottom margin to zero. Superscript/Subscript Printing ASCII Code ESC S n Hex Code 1B 53 n Dec Code 27 83 n Purpose Selects superscript or subscript printing.
Super-Set Commands Super-Set Commands ASCII Code ESC | } ; Hex Code 1B 7C 7D 3B Dec Code 27 124 125 59 Purpose Control code sequence used to introduce the super-set commands. Comment Super-set commands affect the ASCII Emulation as a whole regardless of the printer protocol currently active.
Chapter 4 Configuring the Serial Matrix Emulation with Control Codes Vertical Tab 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. Comment 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.
Vertical Tab, Set/Clear Vertical Tab, Set/Clear ASCII Code ESC B n1 n2 n3...nk NUL Hex Code 1B 42 n1 n2 n3...nk 00 Dec Code 27 66 n1 n2 n3...nk 0 Purpose Sets vertical tab positions. where: n1 through nk specify the line number for the vertical tab(s), for a maximum of 16 tab positions. NUL must be used as the sequence terminator. Comment The physical position on the paper is the product of n and the current line spacing. Subsequent line spacing changes do not change the tab position.
Chapter 112 4 Configuring the Serial Matrix Emulation with Control Codes
5 IBM Proprinter III XL Printer Protocol Introduction 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.
Chapter 5 Introduction Proprinter III XL Emulation Default Settings The factory settings for the Proprinter III XL emulation menu options are shown in Table 25. Table 26 lists additional factory settings for parameters provided by the ASCII Emulation formatting menus. (The EMULATION menu options are described in the User's Guide). Host control codes can override many of the settings for these menu options. Table 25.
Proprinter III XL Emulation Default Settings Table 26. ASCII Emulation Menu Option Factory Settings Characteristic Default Setting Orientation Portrait CPI 10.0 LPI 6.
Chapter 5 Configuring the Proprinter III XL Emulation with Control Codes Configuring the Proprinter III XL Emulation with Control Codes The following information is listed for each code function (where applicable): ASCII Code The standard ASCII name for the control code. IMPORTANT Hex Code The control code numeric equivalent in hexadecimal. Dec Code The control code numeric equivalent in decimal. Purpose The function(s) of the control code.
Control Code Index Control Code Index The following index lists the control codes by function and lists the ASCII mnemonic and page number. NOTE: Some control code functions can be accomplished using another control code sequence or via control panel selection. FUNCTION ASCII CODE PAGE Paper Motion Form Feed Line Feed Line Feed n/216 Inch (1 Line Only) Vertical Tab FF LF ESC J n VT 131 136 136 146 BS ESC N n ESC O CAN CR ESC 5 n ESC C NUL n ESC C n HT ESC D n1 n2 ...
Chapter 5 Configuring the Proprinter III XL Emulation with Control Codes FUNCTION ASCII CODE PAGE Print Attributes (Continued) Superscript/Subscript Printing ESC S n Superscript/Subscript Printing ResetESC T Underline ESC – n 144 145 146 Graphics Bit Image Mode, Single Density ESC K n1 n2 Bit Image Mode, Double Density ESC L n1 n2 Bit Image Mode, Double Density Double Speed ESC Y n1 n2 Bit Image Mode, Quadruple DensityESC Z n1 n2 119 120 121 122 Other Functions Bell Characters 80-9F (Control Codes
Bell Bell ASCII Code BEL Hex Code 07 Dec Code 7 Purpose Sounds the printer's buzzer/beeper. Comment The BEL function sounds the buzzer/beeper for 0.2 seconds upon receipt of this command. Bit Image Mode, Single Density 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) define the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
Chapter 5 Configuring the Proprinter III XL Emulation with Control Codes Bit Image Mode, 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. where: (n1 + 256n2) define the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
Bit Image Mode, Double Density Double Speed Bit Image Mode, 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. where: (n1 + 256n2) define the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
Chapter 5 Configuring the Proprinter III XL Emulation with Control Codes Bit Image Mode, 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. where: (n1 + 256n2) define the number of data bytes to follow. DATA = ASCII characters for the dot pattern bytes.
Bold Print Set Bold Print Set ASCII Code ESC G Hex Code 1B 47 Dec Code 27 71 Purpose Selects bold character printing. Comment 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 printing double strike. Example The following sample illustrates bold character printing.
Chapter 5 Configuring the Proprinter III XL Emulation with Control Codes Bottom Margin, Set 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 skip at the bottom of the perforated page. where: n = 1 through 255 (hex 01 through hex FF) to select the number of lines to skip. If the value of n exceeds the current forms length, it is ignored.
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). Comment The CR code may or may not cause printing or paper motion, depending on the DEFINE CR CODE configuration parameter value. 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 5 Configuring the Proprinter III XL Emulation with Control Codes Character Pitch 12 cpi ASCII Code ESC : Hex Code 1B 3A Dec Code 27 58 Purpose Sets character pitch to 12 cpi. Characters 80-9F (Control Codes) ASCII Code ESC 7 Hex Code 1B 37 Dec Code 27 55 Purpose Selects the character set wherein hex codes 80 through 9F are control codes. Cancels Character Set Select activated by ESC 6. Comment See the character set charts in Appendix D for the control codes.
Condensed Print Condensed Print ASCII Code SI ESC SI Hex Code 0F 1B 0F Dec Code 15 27 15 Purpose Sets condensed print. where: 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 20 cpi is enabled). Comment The Proprinter XL condensed print control code SI affects all subsequent characters.
Chapter 5 Configuring the Proprinter III XL Emulation with Control Codes 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.
Expanded (Double Wide) Print Expanded (Double Wide) Print ASCII Code ESC W n Hex Code 1B 57 n Dec Code 27 87 n Purpose Selects or resets expanded (double wide) print. where: if n = 1, 3, 5... (any odd value) expanded print is selected if n = 0, 2, 4... (any even value) expanded print is reset Comment When expanded print using ESC W is received, all characters are printed double wide until reset by the expanded print reset control code or DC4.
Chapter 5 Configuring the Proprinter III XL Emulation with Control Codes Expanded (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. where: If the emulation is set at 10 cpi, it is set to 5 cpi. If the emulation is set at 12 cpi, it is set to 6 cpi. If the emulation is set at 17.1 cpi, it is set to 8.55 cpi.
Form Feed 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. Comment The default forms length is determined by the configuration in nonvolatile memory. Forms length is set by using the control panel or forms length control codes. Code FF cancels all singleline only print attributes. The Form Feed command reacts differently when the VFU is active.
Chapter 5 Configuring the Proprinter III XL Emulation with Control Codes Forms Length Set (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 192 (hex 01 through hex C0) to specify the number of lines per page at the current line spacing. Comment The forms length set becomes the current forms length.
Horizontal Tab Set/Reset Horizontal Tab Set/Reset ASCII Code ESC D n1 n2...nk NUL Hex Code 1B 44 n1 n2...nk 00 Dec Code 27 68 n1 n2...nk 0 Purpose Sets up to 28 horizontal tab positions. where: n1 through n28 specify the character column of the tab positions. NUL is the sequence terminator. Comment Up to 28 different tab positions may be set. The values must be listed in ascending order or they are ignored.
Chapter 5 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 28 and Table 29, respectively. NOTE: In addition to the formatting from bytes n4 and n5, this command sets the current line as top-of-form.
Chapter 5 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 vertical character position one line at the current line space setting. Comment 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/6 Inch (6 lpi) Line Spacing 1/6 Inch (6 lpi) ASCII Code ESC 2 ESC A n Hex Code 1B 32 Dec Code 27 50 Purpose ESC 2 sets line spacing to 6 lpi or as set by ESC A. Comment The value of n should be 12 if using ESC A n. ESC 2 asserts n/72-inch line spacing as set by ESC A (page 134). If no distance has been set by ESC A, the distance is 1/6 inch. The control code line spacing selection overrides the control panel line spacing setting.
Chapter 5 Configuring the Proprinter III XL Emulation with Control Codes Line Spacing 1/8 Inch (8 lpi) ASCII Code ESC 0 ESC A n Hex Code 1B 30 Dec Code 27 48 Purpose Specifies continuous line spacing at 1/8-inch increments (8 lpi). Comment The value of n should be 9 if using ESC A n. When the 1/8-inch line spacing control code is received, all lines are printed at 8 lpi until a new line spacing is selected or the printer is reset.
Line Spacing n/72 Inch Line Spacing n/72 Inch 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 85 (hex 01 through hex 55, all others are ignored) Comment When the ESC A control sequence is received, all line feed commands following an ESC 2 sequence* are at n/72-inch line spacing until a new line spacing is selected or the printer is reset.
Chapter 5 Configuring the Proprinter III XL Emulation with Control Codes 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) Comment When the n/216-inch line spacing control code is received, all line feeds following are at n/216-inch line spacing until a new line spacing is selected or the printer is reset.
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: if n = 1, 3, 5... (any odd value) automatic overscoring is enabled if n = 0, 2, 4... (any even value) automatic overscoring is disabled Comment When automatic overscore is enabled, all characters, including spaces, are overscored. Full-height graphics characters are not overscored.
Chapter 5 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 height and double width attributes as well as either single or double height line spacing. where: n1 can take on the following characteristics: Table 30.
Select Font (Print Mode) Comment All other values of n1, n2, and n3 are ignored. Example Select Font (Print Mode) ASCII Code ESC I n Hex Code 1B 49 n Dec Code 27 73 n Purpose Selects the print mode. where: n can take the following values: Table 33.
Chapter 5 Configuring the Proprinter III XL Emulation with Control Codes Select Proportional Spacing ASCII Code ESC P n Hex Code 1B 50 n Dec Code 27 80 n Purpose Enables/disables proportional spacing of characters. where: n = 1, 3, 5...(any odd value) enables proportional spacing n = 0, 2, 4...(any even value) disables proportional spacing Comment This command is ignored when a non-proportional font is used.
Superscript/Subscript Printing Reset Superscript/Subscript Printing Reset ASCII Code ESC T Hex Code 1B 54 Dec Code 27 84 Purpose Resets superscript and subscript printing as set by ESC S. Super-Set Commands ASCII Code ESC | } ; Hex Code 1B 7C 7D 3B Dec Code 27 124 125 59 Purpose Control code sequence used to introduce the super-set commands. Comment Super-set commands affect the ASCII Emulation as a whole regardless of the printer protocol currently active.
Chapter 5 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. where: if n = 00, 02, 04... (all even) automatic underlining is disabled if n = 01, 03, 05... (all odd) automatic underlining is enabled Comment When automatic underline is enabled, all characters, including spaces, are underlined until disabled.
Vertical Tab Set/Clear Vertical Tab Set/Clear ASCII Code ESC B n1 n2 n3 ... nk NUL Hex Code 1B 42 n1 n2 n3 ... nk 00 Dec Code 27 66 n1 n2 n3 ... nk 0 Purpose Sets vertical tab positions. where: n1 through nk specify the line number for the vertical tab(s), for a maximum of 64 tab positions. NUL must be used as the sequence terminator. Comment The physical position on the paper is the product of n and the current line spacing. Subsequent line spacing changes alter the tab position.
Chapter 148 5 Configuring the Proprinter III XL Emulation with Control Codes
6 Epson FX-1050 Printer Protocol Introduction 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 6 Introduction Epson FX-1050 Default Values and States The factory settings for the Epson FX-1050 emulation menu options are shown in Table 34. Table 35 lists additional factory settings for parameters provided by the ASCII Emulation formatting menus. (The EMULATION menu options are described in the User's Guide). Host control codes can override many of the settings for these menu options. Table 34.
Epson FX-1050 Default Values and States Table 35. ASCII Emulation Menu Option Factory Settings Characteristic Default Setting Orientation Portrait CPI 10.0 LPI 6.
Chapter 6 Introduction Epson Emulation Exceptions and Differences Because of mechanical differences between your printer and Epson printers (moving printhead serial matrix printers), some Epson features are approximated or not supported. 152 • Epson codes that produce different behavior in your printer are indicated by a “dagger” (†) in the Control Code Index and code section. • Epson bit-image graphics are supported, including all plotter and CRT densities.
Epson Character Sets Epson Character Sets Epson printers use five character sets. The IBM Graphics Code Page 437, IBM PC Multilingual code page 0850, OCR A, and OCR B character sets may be selected from the configuration menus. In addition, there is a unique Epson character set. The Epson character set (shown in Table 36) is basically the ASCII character set with the upper, non-ASCII set defined as italics, and the usually unprintable codes designated as international characters. Table 36.
Chapter 6 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.
Set and Reset Codes 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 6 Configuring the Epson FX-1050 Emulation with Control Codes Print Modes Supported for Character Sets Table 37 summarizes which print modes are supported for the Epson FX1050 emulation character sets. Additional information about character set support is provided in the “Notes” column of the table. NOTE: The print mode support for the languages shown in Table 37 (Epson Set ASCII and following) is the same for the Epson expanded character sets and the Epson 0437 PC character sets. Table 37.
Control Code Index Control Code Index The following index lists the control codes by function and lists the ASCII mnemonic and page number. NOTE: Some control code functions can also be selected at the operator panel. † = Produces non-Epson behavior in your printer.
Chapter 6 Configuring the Epson FX-1050 Emulation with Control Codes FUNCTION ASCII CODE PAGE Emphasis † Condensed Print Condensed Print Reset † Double High Print, Set/Reset Double Strike Double Strike, Cancel † Double Wide Print † Double Wide Print (1 Line) Double Wide Print (1 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
Backspace FUNCTION ASCII CODE PAGE ESC K n1 n2 ESC L n1 n2 171 172 ESC Y n1 n2 ESC Z n1 n2 ESC ? s m ESC * m n1 n2 ESC ^ m n1 n2 d1 ...
Chapter 6 Configuring the Epson FX-1050 Emulation with Control Codes Bell ASCII Code BEL Hex Code 07 Dec Code 7 Purpose Sounds the printer's buzzer/beeper. Comment The BEL function sounds the buzzer/beeper for 0.2 seconds upon receipt of this command. Cancel Line ASCII Code CAN Hex Code 18 Dec Code 24 Purpose Clears all unprinted data from a line, but does not affect control codes. Comment You can use this control code to delete a line, but do so with caution to avoid possible misprinting.
Character Pitch 10 cpi Character Pitch 10 cpi ASCII Code ESC P Hex Code 1B 50 Dec Code 27 80 Purpose Sets character pitch to 10 characters per inch (cpi). Comment This command is normally used to cancel 12 cpi. Character Pitch 12 cpi ASCII Code ESC M Hex Code 1B 4D Dec Code 27 77 Purpose Sets character pitch to 12 characters per inch (cpi). Comment This command is available in all print modes except OCR A and OCR B.
Chapter 6 Configuring the Epson FX-1050 Emulation with Control Codes 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 20 when the specified code is invoked. Table 37 on page 156 provides information on print mode support for each character set. n = hex 0 through hex E to determine the language overlay shown in Table 38 below.
Clear Bit 7 of Incoming Data Bytes to 0 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. Comment The MSB is bit number 7. This command only affects text and control code data. Graphics data pass through unchanged. Some applications always set the MSB of print data to one (1), which results in italic or graphics printing in Epson printers. This command overcomes the problem.
Chapter 6 Configuring the Epson FX-1050 Emulation with Control Codes 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 operator panel. Comment 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 163) for an example of Condensed Print Reset.
Double High Print, Set/Reset 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 = hex 1 or hex 31 turns double high printing on n = hex 0 or hex 30 turns double high printing off †Comment The OCR A and OCR B fonts cannot be printed in double high.
Chapter 6 Configuring the Epson FX-1050 Emulation with Control Codes 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 !. Comment 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.
Double Wide Print (1 Line) Double Wide Print (1 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. Comment 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. It is also cancelled by a paper motion control code (LF, VT, etc.
Chapter 6 Configuring the Epson FX-1050 Emulation with Control Codes Emphasized Print ASCII Code ESC E Hex Code 1B 45 Dec Code 27 69 Purpose Selects emphasized character print format. Comment Emphasized print makes text bolder. This command is available in both LG (Letter Gothic) and Courier modes. Example The following sample illustrates emphasized character printing.
Enable Printing Hex Codes 00-1F and 80-9F Enable Printing Hex Codes 00-1F and 80-9F ASCII Code ESC I n (uppercase “i”) Hex Code 1B 49 n Dec Code 27 73 n Purpose Permits you to print hex codes 00-1F and 80-9F. where: n = 1 allows hex codes 00-1F and 80-9F to be printable and to be used for user-defined characters. n = 0 returns hex 00-1F and 80-9F to control codes.
Chapter 6 Configuring the Epson FX-1050 Emulation with Control Codes Table 39.
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. Comment 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 6 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 6 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 9 Purpose Moves the logical print head to the next horizontal tab stop. Comment 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 6 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 their power-up configuration values. Comment Print mode, line spacing, international language selection, margins, form length, skip-over perforation, and character pitch are reset to their power-up configuration. Character-by-character and line-by-line attributes are canceled. The vertical format unit is cleared.
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. Comment 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 6 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. Comment 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 operator 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. Comment 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 operator panel. Example The following example illustrates 7/72-inch line spacing.
Chapter 6 Configuring the Epson FX-1050 Emulation with Control Codes 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 = 0 through 255 Comment All line feeds following receipt of this code are at n/216 inch line spacing until a new line spacing is selected or the printer is reset. Line spacing set by this control code overrides line spacing setting set at the operator panel.
Make Hex 80-9F Printable Table 40.
Chapter 6 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 41. Table 41. 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. †Comment 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 6 Configuring the Epson FX-1050 Emulation with Control Codes Printer Select ASCII Code DC1 Hex Code 11 Dec Code 17 Purpose Places printer in the selected state. Comment The configuration parameter Printer Select must be set to Enable. Refer to the User's Guide for information about this menu option. This control code allows the printer to receive and print data from the host if it was deselected by DC3. If the printer was not deselected by DC3, this code is ignored.
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 42 charts the graphics modes available. Comment The total number of columns = (n1 + 256n2). NOTE: This command does not suppress hexadecimal FF from printing. Table 42.
Chapter 6 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 1 selects the graphics character set n = hex 0 selects the italics character set Comment The graphics character set is the IBM Graphics Code Page 437.
Select/Deselect Proportional Spacing Select/Deselect Proportional Spacing ASCII Code ESC p n Hex Code 1B 70 n Dec Code 27 112 n where: n is an integer n = 0 = Off n = 1 = On Purpose Turns proportional mode on and off. Select Serif or Sans Serif Font ASCII Code ESC k n Hex Code 1B 6B n Dec Code 27 107 n Purpose Selects a Courier font. † where: if n = 0, 2, 4 .. (any even value), the font selected is a serif Courier font (Courier, instead of standard Epson Roman). if n = 1, 3, 5 ..
Chapter 6 Configuring the Epson FX-1050 Emulation with Control Codes Set Absolute Horizontal Print Position in 1/60 Inch ASCII Code ESC $ n1 n2 Hex Code 1B 24 n1 n2 Dec Code 27 36 n1 n2 Purpose Moves the logical print head to an absolute horizontal print position, using 1/60 inch increments. where: (n1 + 256n2) = the unsigned distance in inches 60 from the left margin. Comment If the distance goes beyond right margin, the sequence is ignored.
Set Margin, Left Set Margin, Left ASCII Code ESC l n Hex Code 1B 6C n Dec Code 27 108 n where: n = number of columns from the left edge of the physical page to the beginning of the print line; n = 1 through 232 (hex 00 through hex E8) Purpose Sets the left margin to n columns in the current font. Comment Be sure to use the alphabetic lowercase “l” (as in left) rather than the uppercase i “I” for this command.
Chapter 6 Configuring the Epson FX-1050 Emulation with Control Codes Set Forms Length by Lines ASCII Code ESC C n Hex Code 1B 43 n Dec Code 27 67 n Purpose Sets the form length by lines. where: n = 1 through 192 (hex 01 through hex C0) to specify the number of lines per form at the current line spacing. Comment The forms length is set to the number of lines defined by the quotient of n divided by the current lines per inch so that the units are in inches.
Set Relative Horizontal Print Position in n/120 Inch Set Relative Horizontal Print Position in n/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. Comment 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 6 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) Comment 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 †Comment Superscript/Subscript font prints at one-half the normal vertical character height and at twice the normal vertical density.
Chapter 6 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 or 0 (hex 00 or hex 30) to turn off underlining n = SOH or 1 (hex 01 or hex 31) to turn on underlining Comment 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 /. Comment 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 196 6 Configuring the Epson FX-1050 Emulation with Control Codes
7 Super-Set Programming Introduction This chapter describes the super-set commands. Super-set commands affect each of the protocols included in the ASCII Emulation regardless of the printer protocol currently active, except for the P-Series XQ Variant emulation. The commands are sent through the host in the input data stream, and enact the features described in the following subsections. NOTE: The super-set commands do not affect the P-Series XQ Variant emulation.
Chapter 7 The Super-Set Commands Character Set Selection ASCII Code SSCC R n Hex Code SSCC 52 n Dec Code SSCC 82 n Purpose Selects one of several character sets. Table 44.
Character Set Selection Table 45.
Chapter 7 The Super-Set Commands Table 46.
Character Spacing n/240 Inch Character Spacing n/240 Inch ASCII Code SSCC I n (uppercase “i”) Hex Code SSCC 49 n Dec Code SSCC 73 n Purpose Specifies the character spacing in n/240-inch increments. where: n = 001 through 999 (three ASCII digits) Comment When the n/240-inch character spacing command is received, all character printing is at n/240-inch horizontal spacing until a new character spacing is selected. Example SSCC I 008 specifies a spacing of 30 characters per inch.
Chapter 7 The Super-Set Commands Parameter n4 selects a 3-digit symbol set: Table 47. n4 Value (Symbol Sets) Printer Protocol n4 Symbol Set Proprinter XL 000 001 Code Page 437 Code Page 850 All others 000 001 002 003 004 005 IBM PC Multinational ECMA-94 Latin 1 DEC Multinational OCR-A OCR-B Parameter n5 selects a 4-digit point size (1/4 point resolution). The horizontal pitch (cpi) is automatically adjusted based on the point size selected.
TrueType Font Selection * The standard fonts available are Courier (#93950), Letter Gothic (#93777), OCR-A (#90993), OCR-B (#91409), and CG Times (#92500). Parameter n2 is a 1-digit bold flag. n2= 0 (disable bold) 1 (enable bold) Parameter n3 selects a 1-digit slant flag. (Slant is similar to italic, but also offers a backward slant.) n3= 0 (disable slant) 1 (right slant) 2 (left slant) Parameter n4 selects a 3-digit symbol set: Table 48.
Chapter 7 The Super-Set Commands Form Length and Width The following command sets the form length: ASCII Code SSCC K L [i n] [m n] [l n] . Hex Code SSCC 4B 4C [69 n] [6D n] [6C n] 2E Dec Code SSCC 75 76 [105 n] [109 n] [108 n] 46 Comment The brackets indicate optional parameters in the command string. Do not include the brackets in your command. Only one parameter may be used per command. where: i n sets the form length in inches.
Host Form Size Host Form Size ASCII Code SSCC H n Hex Code SSCC 48 n Dec Code SSCC 72 n Table 49. Host Form Size Values n Value (hex) Meaning 0 Disable. The default setting. Sets the form length equal to the Page Length value specified in the PRINTER CONTROL menu on the front panel. 1 Enable. The specified host form length does not affect the setting of the Page Length value in the PRINTER CONTROL menu on the front panel.
Chapter 7 The Super-Set Commands PCX Data ASCII Code SSCC ‘ PCX data ESC RASTEREND Hex Code SSCC 27 PCX data 1B RASTEREND Dec Code SSCC 39 PCX data 27 RASTEREND Purpose Prints PCX data. Line Spacing n/288 Inch ASCII Code SSCC L n Hex Code SSCC 4C n Dec Code SSCC 76 n Purpose Specifies the line spacing in n/288-inch increments.
Page Orientation Select Page Orientation Select ASCII Code SSCC O n (alpha O) Hex Code SSCC 4F n Dec Code SSCC 79 n Purpose Set (change) page orientation. Comment The emulation can print in four different clockwise orientations: Portrait (0°), Inverse Landscape (90°), Inverse Portrait (180°), and Landscape (270°). The following table shows how to set (or change) the page orientation: Table 50.
Chapter 7 The Super-Set Commands Portrait Portrait refers to vertical page orientation, where the height of a page is greater than its width. The top edge of the image is parallel to the leading edge of the paper. Figure 1 is an example of portrait orientation: Leading Edge The top edge of the image is parallel to the leading edge of the paper. 11 Inches 8.5 Inches Figure 1.
Print Engine Options Print Engine Options The following commands enable the user to select print engine options through host software command. NOTE: Not all options may be available with your printer. Consult the User's Guide for your printer to determine which options are available. If an option is not available, the emulation ignores the corresponding command. Calibrate ASCII Code SSCC D Hex Code SSCC 44 Dec Code SSCC 68 Purpose Calibrate the media sensor.
Chapter 7 The Super-Set Commands Horizontal Image Shift ASCII Code SSCC # [–] n Hex Code SSCC 23 [2D] n Dec Code SSCC 35 [45] n Purpose Shifts image left or right in 1/1000 inches. The brackets around the “–” symbol indicate it is optional, do not use these brackets in the command. where: “–” shifts the image left. No “–” will shift the image right. n = thousandths of inches to shift the image horizontally, range 0000 through 1000.
Print Engine Options Media Handling ASCII Code SSCC M n Hex Code SSCC 4D n Dec Code SSCC 77 n Purpose Defines how the printer handles the media. See Table 54 for valid values. Table 54. Media Handling n Value (ASCII) Meaning 0 Continuous paper. 1 Tear-Off Strip. Move paper out after data timeout, move paper back in when more data is received. 2 Tear-Off. Move paper out after printing one page and wait for it to be torn off. 3 Peel-Off.
Chapter 7 The Super-Set Commands Paper Cut ASCII Code SSCC t n Hex Code SSCC 74 n Dec Code SSCC 116 n Table 55. Paper Cut n Value (ASCII) Meaning 0 Disable cut after printing the page 1 Enable cut after printing the page Paper Feed Shift ASCII Code SSCC E [–] n Hex Code SSCC 45 [2D] n Dec Code SSCC 69 [45] n Purpose Moves the paper off the default feed shift distance in 1/100 inches. The brackets around the “–” symbol indicate it is optional, do not use these brackets in the command.
Print Engine Options Plot Attributes ASCII Code SSCC V n ; m Hex Code SSCC 56 n 3B m Dec Code SSCC 86 n 59 m Purpose Selects plot attributes in horizontal or vertical dots per inch (DPI). where: n selects the horizontal DPI, range 001 through 999 DPI. m selects the vertical DPI, range 001 through 999 DPI. This command has the same effect as changing the densities in the “Horizontal DPI” and “Vertical DPI” parameters under the “Plot Attributes” menu on the front panel.
Chapter 7 The Super-Set Commands Print Count ASCII Code SSCC o n Hex Code SSCC 6F n Dec Code SSCC 111 n where: n = the number of times to print a page, ranging from 0001 through 9999. Print Intensity ASCII Code SSCC i + n Hex Code SSCC 69 2B n Dec Code SSCC 105 43 n where: n = print intensity, ranging from 0000 through 0020. If a value for n is 0021 or greater, 0020 is selected. Print Mode ASCII Code SSCC ! n Hex Code SSCC 21 n Dec Code SSCC 33 n Table 58.
Print Engine Options Slew Speed ASCII Code SSCC N n Hex Code SSCC 4E n Dec Code SSCC 78 n where: n = slew speed in inches per second, ranging from 01 through 99. All other values are ignored. Tear Strip Time ASCII Code SSCC “ n Hex Code SSCC 22 n Dec Code SSCC 34 n Purpose When using tear-off strip media handling, this option sets the time in seconds with the buffer empty that the printer waits before it advances media to the tear off position. where: n = time in seconds, range from 01 through 60.
Chapter 7 The Super-Set Commands Printer Protocol Select ASCII Code SSCC P n Hex Code SSCC 50 n Dec Code SSCC 80 n Purpose Selects (changes) printer protocol. Comment When the emulation receives this command, a software reset is performed as if the emulation were powered-up in the corresponding protocol. Table 59.
Software Page Eject Bar Codes A bar code is a graphic representation of alphanumeric characters. The ASCII Emulation bar codes are listed below, with detailed bar code information and examples provided on the referenced pages. All parameters must be separated by a semicolon (;) unless noted otherwise. Throughout this chapter, actual commands required for input are shown exactly as they must be entered, while all parameters associated with that command are shown in italics.
Chapter 7 Bar Codes Bar Code Format ASCII Code SSCC c t ; d data d [; N n ; xxxx ; yyyy ] [; X mmmm ] [; P p ] [; C ] [; H hh ] [; D] Hex Code SSCC 63 t 3B d data d [3B 4E n 3B xxxx 3B yyyy] [3B 58 mmmm] [3B 50 p] [3B 43] [3B 48 hh] [3B 44] Dec Code SSCC 99 t 59 d data d [59 78 n 59 xxxx 59 yyyy] [59 88 mmmm] [59 80 p] [59 67] [59 72 hh] [59 68] Purpose Invokes bar codes. Comment The brackets indicate optional parameters in the command string. Do not include the brackets in your command.
Bar Code Format Table 61. Bar Code Type Codes (continued) t ASCII Hex Selects Bar Code M 4D MSI 4 34 PDF 417 O 4F PostBar P 50 POSTNET R 51 Royal Mail T 54 Telepen V 56 UCC/EAN-128 A 41 UPC-A E 45 UPC-E S 53 UPC Shipping U 55 UPS 11 NOTE: For all of the following parameters, the digits are ASCII values.
Chapter 7 Bar Codes where: P = activates printable data field variable where: p = location of printable data field Table 63. Printable Data Field p Selects Location ASCII Hex A 41 above B 42 below (default) N 4E none where: C = calculate and plot check digit (if available as an option) The default is no check digit if the check digit is allowed to be optional.
Bar Code Format However, if the values are other than 0000, the original cursor position remains intact, despite the printing of the bar code. See Figure 4, which shows xxxx = 10 and yyyy = 5. Original Cursor Position TEXT 5 10 Figure 4. Bar Code Example 2 To place the text below the bar code, you must insert line feed commands. See Figure 5. Original Cursor Position 5 10 Line Feeds TEXT Figure 5.
Chapter 7 Bar Codes Australian 4-State The Australian 4-State structure is shown in Figure 6 and described below. SR, SC POSITION GUARD BAND QUIET ZONE Normal START CODE DATA FIELD STOP CODE QUIET ZONE HEIGHT OPTIONAL READABLE DATA FIELD Figure 6. Australian 4-State Structure Quiet Zone Quiet zones extend on both ends of the bar code to permit the scan to begin and end in a blank area. The quiet zones should be at least 0.
Codabar Codabar The Codabar structure is shown in Figure 7 and described below. OPTIONAL CHECK DIGIT SR, SC POSITION UPPER GUARD BAND QUIET ZONE START CODE DATA FIELD STOP CODE QUIET ZONE HEIGHT LOWER GUARD BAND OPTIONAL READABLE DATA FIELD Figure 7. Codabar Structure Quiet Zone Both ends of the bar code structure require blank quiet zones. The quiet zones must be at least 0.
Chapter 7 Bar Codes Check Digit The optional modulo-43 check digit can be inserted into the bar code to verify accurate scanning. Table 65. Codabar Character Set 224 Character Hex Character Hex 0 0 $ 24 1 1 : 3A 2 2 / 2F 3 3 .
Code 39 Code 39 The Code 39 structure is shown in Figure 14 and described below. OPTIONAL CHECK DIGIT SR, SC POSITION UPPER GUARD BAND QUIET ZONE START CODE DATA FIELD STOP CODE QUIET ZONE HEIGHT LOWER GUARD BAND OPTIONAL READABLE DATA FIELD Figure 8. Code 39 Structure Quiet Zone Both ends of the bar code structure require blank quiet zones. The quiet zones must be at least 0.
Chapter 7 Bar Codes Check Digit The optional modulo-43 check digit can be inserted into the bar code to verify accurate scanning. Table 66. Code 39 Character Set ASCII CODE 39 ASCII CODE 39 ASCII CODE 39 ASCII CODE 39 NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US %U $A $B $C $D $E $F $G $H $I $J $K $L $M $N $O $P $Q $R $S $T $U $V $W $X $Y $Z %A %B %C %D %E SP ! " # $ % & ' ( ) * + , — .
Code 93 Code 93 The Code 93 bar code structure is shown in Figure 9 and described below. OPTIONAL CHECK DIGIT SR, SC POSITION UPPER GUARD BAND QUIET ZONE START CODE DATA FIELD STOP CODE QUIET ZONE HEIGHT LOWER GUARD BAND OPTIONAL READABLE DATA FIELD Figure 9. Code 93 Structure Quiet Zone Both ends of the bar code structure require blank quiet zones. The quiet zones must be at least 0.
Chapter 7 Bar Codes Table 67. Code 93 Character Set 228 Character Hex Character Hex 0 0 P 50 1 1 Q 51 2 2 R 52 3 3 S 53 4 4 T 54 5 5 U 55 6 6 V 56 7 7 W 57 8 8 X 58 9 9 Y 59 A 41 Z 5A B 42 - 2D C 43 .
Code 128 Code 128 The Code 128 structure is shown in Figure 10 and described below. OPTIONAL CHECK DIGIT SR, SC POSITION UPPER GUARD BAND QUIET ZONE START CODE DATA FIELD STOP CODE QUIET ZONE HEIGHT LOWER GUARD BAND OPTIONAL READABLE DATA FIELD Figure 10. Code 128 Structure Quiet Zone Both ends of the bar code structure require blank quiet zones. The quiet zones must be at least 0.
Chapter 7 Bar Codes Readable Data The optional readable data field provides a readable interpretation of the bar code data. It can be printed above or below the bar code symbol. Check Digit The modulo-103 check digit is automatically calculated and inserted in the bar code symbol. The check digit verifies accurate scanning. The start code is included in the check digit algorithm. NOTE: Access for the alternate set of control function characters is by using SO (Shift Out, hex 0E).
Code 128 Table 68.
Chapter 7 Bar Codes Table 69. Code 128B Character Set Character Hex Character Hex Character Hex Character Hex SP 20 : 3A T 54 n 6E ! 21 ; 3B U 55 o 6F " 22 < 3C V 56 p 70 # 23 = 3D W 57 q 71 $ 24 > 3E X 58 r 72 % 25 ? 3F Y 59 s 73 & 26 @ 40 Z 5A t 74 ' 27 A 41 [ 5B u 75 ( 28 B 42 \ 5C v 76 ) 29 C 43 ] 5D w 77 * 2A D 44 5E x 78 + 2B E 45 - 5F y 79 , 2C F 46 ` 60 z 7A - 2D G 47 a 61 { 7B .
Code 128 Table 70.
Chapter 7 Bar Codes EAN 8 The EAN 8 bar code structure is shown in Figure 11 and described below. SR, SC POSITION START CODE QUIET ZONE CENTER CODE LEFT DATA FIELD STOP CODE RIGHT DATA FIELD OPTIONAL READABLE DATA FIELD QUIET ZONE 2- or 5DIGIT ADD-ON CODE HEIGHT CHECK DIGIT FIELD Figure 11. EAN 8 Structure Quiet Zone Both ends of the bar code structure have blank quiet zones. The quiet zones must be at least 0.
EAN 13 EAN 13 The EAN 13 bar code structure is shown in Figure 12 and described below. SR, SC POSITION QUIET ZONE NUMBER SYSTEM CHARACTER CENTER CODE START CODE LEFT DATA FIELD STOP CODE RIGHT DATA FIELD QUIET ZONE 2- or 5DIGIT ADD-ON CODE HEIGHT N OPTIONAL READABLE DATA FIELD CHECK DIGIT FIELD Figure 12. EAN 13 Structure Quiet Zone Quiet zones extend on both ends of the bar code to permit the code to permit the scan to begin and end in a blank area.
Chapter 7 Bar Codes Check Digit The modulo-10 check digit is automatically calculated and inserted in the bar code symbol. The check digit verifies accurate scanning. The number system character is included in the check digit algorithm. FIM The FIM (Facing Identification Mark) bar code structure is shown in Figure 13 and described on the following pages. The left boundary must begin 3 inches from the right edge of the mail piece.
FIM Start/Stop Code The start/stop code is a unique character identifying the leading and trailing end of the bar code. The start/stop code is automatically produced with each bar code. The start/stop code structure permits bidirectional bar code scanning. Data Field The bar code symbol uses a nine-position bar/no-bar pattern of tall (full) bars of uniform height. Use the letters “A,” “B,” “C,” or “D” to specify the type of FIM.
Chapter 7 Bar Codes Interleaved 2/5 (I-2/5) and German I-2/5 The Interleaved 2/5 and German I-2/5 bar code structure is shown in Figure 15 and described below. OPTIONAL CHECK DIGIT SR, SC POSITION UPPER GUARD BAND QUIET ZONE START CODE DATA FIELD STOP CODE QUIET ZONE HEIGHT LOWER GUARD BAND OPTIONAL READABLE DATA FIELD Figure 15. Interleaved 2/5 and German I-2/5 Structure Quiet Zone Both ends of the bar code structure have blank quiet zones. The quiet zones must be at least 0.
Maxicode Maxicode The Maxicode bar code structure is shown in Figure 16 and described below. Figure 16. Sample MAXICODE Bar Code The Maxicode bar code is a fixed size matrix symbology made up of an offset of rows of hexagonal elements arranged around a unique finder pattern. Maxicode is suitable for high speed scanning applications, and is capable of encoding all of the 256 ASCII characters. Readable Data The Maxicode bar code does not support a human readable form.
Chapter 7 Bar Codes UPS Shipping Data Field This syntax begins with seven encoded data characters followed by a date (yy). The first four characters are the Message Header and the next five are the Transportation Data Format Header. The format of the Message Header is : “[)>Rs”. The Transportation Data Format Header is : “01Gs” where is the year, and “G's” and “R's” are control characters. The structure is shown in Table 72. Table 72.
MSI MSI The MSI bar code structure is shown in Figure 17 and described below. OPTIONAL CHECK DIGIT SR, SC POSITION UPPER GUARD BAND QUIET ZONE START CODE DATA FIELD STOP CODE QUIET ZONE HEIGHT LOWER GUARD BAND OPTIONAL READABLE DATA FIELD Figure 17. MSI Structure Quiet Zone Both ends of the bar code structure require blank quiet zones. The quiet zones must be at least 0.
Chapter 7 Bar Codes PDF 417 The PDF417 structure is shown in Figure 18 and described below. SR, SC POSITION QUIET ZONE UPPER GUARD BAND START CODE DATA FIELD STOP CODE QUIET ZONE LOWER GUARD BAND Figure 18. PDF417 Structure Quiet Zone Both ends of the bar code structure require blank quiet zones. The quiet zones must be at least 0.25 inches wide and completely blank to ensure accurate reading of the start/stop codes and to prevent adjacent bar codes from overlapping.
PostBar and Royal Mail the error and one to correct for it, a given security level can support half the number of misdecodes that it can of undecoded words. PDF Print Data Field is not offered due to the large amount of data that can be encoded. PostBar and Royal Mail PostBar and Royal Mail bar codes, like POSTNET, are used for mailing applications. However, these bar codes can encode full addresses on labels.
Chapter 7 Bar Codes POSTNET The POSTNET bar code structure is illustrated in Figure 19 and described on the following pages. The POSTNET code can be a part of the address block and appear anywhere within a vertical 4-inch area across the length of the mail piece. Return Address Area Postage Area ADDRESS BLOCK BAR CODE READ AREA 1/2" 1/2" 4" SR, SC POSITION QUIET ZONE QUIET ZONE START CODE BAR CODE DATA FIELD STOP CODE QUIET ZONE QUIET ZONE CHECK DIGIT Figure 19.
Telepen with each bar code. The start/stop code structure permits bar code scanning in a left-to-right direction only. Data Field The bar code data produces a single field of 30 bars for a 5-digit field, 50 bars for a 9-digit data field, or 60 bars for an 11-digit data field. The bars are grouped in sets of five. Each set of five bars (comprised of two tall bars and three short bars) represents one of the five digits of the zip code, plus the four-digit zip code extension.
Chapter 7 Bar Codes Data Field The bar code symbol uses a series of varying width bars and spaces to represent the entire ASCII character set. Each narrow bar or space is one element; each wide bar or space is three elements; each character in the data field has a total of sixteen elements. Readable Data The optional readable data field provides a readable interpretation of the bar code data. It can be printed above or below the bar code symbol.
UCC/EAN-128 Table 73. UCC/EAN-128 Application Identifiers Application Identifier (AI) Content Format 00 Serial Shipping Container Code n2+n18 01 Shipping Container Code n2+n14 02 Item Num. of Goods Within Another Unit n2+n14 10 Batch or Lot Number n2+an..20 11 (*) Production Date (YYMMDD) n2+n6 13 (*) Packaging Date (YYMMDD) n2+n6 15 (*) Sell By Date (Quality) (YYMMDD) n2+n6 17 (*) Expiration Date (Safety) (YYMMDD) n2+n6 20 Product Variant n2+n2 21 Serial Number n2+an..
Chapter 7 Bar Codes Table 73.
UCC/EAN-128 Table 73. UCC/EAN-128 Application Identifiers (continued) Application Identifier (AI) Content Format 8004 UCC/EAN Serial Identification n4+an..
Chapter 7 Bar Codes Data Field UCC/EAN-128 bar codes require a special character called “Function 1” (FNC1) to immediately follow the start code. ASCII Emulation automatically supplies this character, so it must not be included in the data field by the user. A character is made up of three bars and three spaces, each varying in width from 1 through 4 modules, for a total of eleven modules. The number of modules making up the bars is even. The stop code has four bars and is 13 modules wide.
UPC-A The modulo-10 data field check digit for both SSCC-18 and SCC-14 is printed in the bar code as the second half of the last number pair using subset C. It is displayed in the human-readable data field as the twentieth byte for SSCC-18 or the sixteenth byte for SCC-14. ASCII Emulation automatically calculates the modulo-10 check digit for SSCC-18 if only 17 data digits are provided following the application identifier of 00. UPC-A The UPC-A bar code structure is shown in Figure 22 and described below.
Chapter 7 Bar Codes Readable Data The human readable data field provides a readable interpretation of the bar code data. It can either be suppressed or printed above or below the bar code symbol. Check Digit The modulo-10 check digit is automatically calculated and inserted in the bar code symbol. The check digit verifies accurate scanning. The number system character is included in the check digit algorithm. UPC-E The UPC-E bar code structure is shown in Figure 23 and described below.
UPC-E Readable Data The human readable data field provides a readable interpretation of the bar code data. It can either be suppressed or printed above or below the bar code symbol. Check Digit The modulo-10 check digit is automatically calculated and inserted in the bar code symbol. The check digit verifies accurate scanning. The number system character is included in the check digit algorithm. Table 74. Eleven-Digit Compression 1.
Chapter 7 Bar Codes Table 75.
UPC Shipping UPC Shipping The UPCSHIP bar code structure is shown in Figure 24 and described below. OPTIONAL CHECK DIGIT SR, SC POSITION UPPER GUARD BAND QUIET ZONE START CODE DATA FIELD STOP CODE QUIET ZONE HEIGHT LOWER GUARD BAND OPTIONAL READABLE DATA FIELD Figure 24. UPCSHIP Structure Quiet Zone Both ends of the bar code structure have blank quiet zones. The quiet zones should be at least 0.
Chapter 7 Bar Codes UPS 11 The UPS 11 structure is shown in Figure 25 and described below. OPTIONAL CHECK DIGIT SR, SC POSITION UPPER GUARD BAND QUIET ZONE START CODE DATA FIELD STOP CODE QUIET ZONE HEIGHT LOWER GUARD BAND OPTIONAL READABLE DATA FIELD Figure 25. UPS 11 Structure Quiet Zone Both ends of the bar code structure require blank quiet zones. The quiet zones must be at least 0.
8 Graphics Introduction The ASCII Emulation is capable of standard Odd/Even Dot Plotting for normal and high density graphics as well as Bit Image graphics with single density, double density, and quad density modes. Odd/Even dot plotting is available for graphics when the selected protocol is P-Series or P-Series XQ; Bit Image graphics is used when the selected protocol is Serial Matrix, Proprinter XL, or Epson FX. Printing text and characters is the default mode of operation.
Chapter 8 Bit Image Graphics Bit Image Graphics Bit Image Graphics mode is selected when the emulation is in Serial Matrix, Proprinter XL, or Epson FX emulation mode. Bit Image Graphics are created by printing a series of vertical bit image data bytes, which represent the binary code bit pattern. Bit Image mode utilizes the 1 or true bits from a binary data byte to print dot patterns. These data bytes are actually the binary equivalent of ASCII character decimal values 0 through 255.
Plotting a Bit Image Pattern ASCII CHARACTER A = DECIMAL VALUE BINARY CODE EQUIVALENT 65 128 64 32 16 8 4 2 1 = TO VERTICALLY ROTATED DATA BYTE BIT IMAGE PATTERN MSB = Figure 28. Vertical Data Byte Pattern The byte in the previous example (or any other byte) can be identified by its binary, octal, hexadecimal, or decimal equivalent and subsequently can be used to generate a Bit Image pattern. A table of the standard ASCII character set and equivalences is included in Appendix A.
Chapter 8 Bit Image Graphics 1st Bit Image Data Byte 2nd Bit Image Data Byte Decimal Weights 7th Bit Image Data Byte 128 64 32 16 8 4 2 1 73 36 36 73 146 255 146 Decimal Values Figure 29. Bit Image Pattern Plan A bit image pattern is easily defined by determining the decimal equivalent of the binary data byte. This decimal value may then be included in a program data statement that generates the final Bit Image pattern.
Bit Image Density Bit Image Density Bit Image Graphics mode may be printed in different dot densities selected by the following control codes: • • • • ESC K selects the Single Density mode. ESC L selects the Double Density mode. ESC Y selects the Double Speed, Double Density mode. ESC Z selects the Quad Density mode. Bit Image Graphics mode was originally intended to be used on printers having 60 dpi (or 120 dpi) horizontal resolution and 72 dpi vertical resolution.
Chapter 8 Bit Image Graphics Bit Image Programming Format The syntax of the Bit Image expression must include the appropriate dot density control code, the exact number of data bytes to be plotted, and the data themselves.
Bit Image Programming Format The number of data bytes and the n1, n2 definition must be equal. If too few data bytes are sent, printing does not begin until sufficient data is received. Any characters following n1 and n2 are interpreted (and plotted) as data until the n1, n2 definition is satisfied. If excess data is received, only the defined amount is plotted. Excess data is interpreted as printable characters or control codes.
Chapter 8 P-Series Compatible Plot Mode (Odd/Even Dot Plotting) P-Series Compatible Plot Mode (Odd/Even Dot Plotting) 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 32 illustrates high density plotting. Figure 32.
Chapter 8 P-Series Compatible Plot Mode (Odd/Even Dot Plotting) 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 NOTE: BIT 6 BIT 7 MUST BE “1” AND/OR BIT 7 FOR PLOT MODE 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 3. Send a line terminator, either a Line Feed (LF, hex 0A) or a Form Feed (FF, hex 0C). A Carriage Return (CR) may also be used instead of the LF code, provided the Carriage Return has been configured for Carriage Return = Carriage Return + Line Feed (CR = CR + LF). a. A line feed (hex 0A) used as the line terminator plots the contents of the buffer and advances the paper position a single dot row, based on the vertical density of the current mode. b.
Chapter 8 P-Series Compatible Plot Mode (Odd/Even Dot Plotting) Plotting the Data P-Series Plot Mode plots the image from the horizontal bit pattern. Figure 34 duplicates the pattern shown in Figure 29 but is modified for Odd Dot Plot. Eight dot rows are required, two characters per row, six columns per character.
To Exit the P-Series Plot Mode To Exit the 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 36.
Chapter 270 8 Combining Graphics and Text
9 Vertical Page Formatting Introduction The ASCII Emulation includes the standard Electronic Vertical Format Unit (EVFU) for use with the P-Series and P-Series XQ protocols, and a Vertical Format Unit (VFU) for use with the Serial Matrix, Proprinter XL, and Epson FX protocols. Each vertical format unit provides an efficient method for rapid vertical paper movement (slewing) during repetitive printing tasks. The EVFU is a software controlled vertical formatter.
Chapter 9 General P-Series EVFU Programming Information Paper Runaway Protection— • When the VFU is selected but not loaded: If a VFU command is sent from the host computer, then the printer moves the paper a single line feed only. • When the VFU is selected and the memory has been loaded: If a channel code is sent from the host which is not a part of the assigned sequence currently in memory, then the printer moves the paper a single line feed only.
Start Load Code-Hex 1E or 6E P-Series EVFU The EVFU may be selected in the P-Series and P-Series XQ protocols. The EVFU provides 14 or 16 channels to identify up to 192 lines depending on the paper instruction. The programming sequence is: 1. Send the start load code 2. Send the line identification codes 3. Send the end load code Start Load Code-Hex 1E or 6E The start load code clears and initializes the EVFU memory for the memory load program.
Chapter 9 P-Series EVFU End Load Code-Hex 1F or 6F The end load code terminates the memory load program. The end load code is hex 1F when the PI signal line is disabled (low) or hex 6F when the PI line is enabled (high). Channel codes in excess of 192 channels received prior to the end load code are discarded.
Using the EVFU Table 77. P-Series EVFU Codes - PI Line Enabled ASCII Data Bits Channel Hex Dec.
Chapter 9 P-Series EVFU Table 78. P-Series EVFU Codes - PI Line Disabled or Not Used ASCII Data Bits Channel Hex Dec.
Relative Line Slewing Relative Line Slewing Another method of moving paper using the PI signal line results in vertical slews of a specified number of lines within the form relative to the current print line (rather than slewing to a specific line). For this to occur, three criteria must be met: • The PI signal line must be enabled and set high; • Data bit 5 must be 1 (set); and • The EVFU must be the selected Vertical Format Unit.
Chapter 9 Serial Matrix VFU Table 79. P-Series EVFU Line Slewing ASCII Data Bits Lines Slewed Hex Dec.
Executing Vertical Tabs Executing Vertical Tabs The vertical tab execute code is VT. When sent, it prints the contents of the print buffer (if data is in the buffer) and causes paper position movement to the next predefined vertical tab position. If a tab position is not defined, the paper position is moved to the next line at the current line spacing. If a tab position is at the current line, the paper position is moved to the next tab position.
Chapter 280 9 Serial Matrix VFU
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 282
B PTR_SETUP Option Overview The PTR_SETUP commands are a superset of commands which allows the printer to perform several tasks by parsing commands either stored in flash or sent to the printer by the host. Commands range from re-routing debug statements to downloading complete printer configurations. The PTR_SETUP Commands Some concepts to keep in mind are as follows: 1. PTR_SETUP commands are not emulation specific. In a system with an IGP**, the IGP level emulation will process the PTR_SETUP commands.
Appendix B The PTR_SETUP Commands Commands Each emulation has modes in which the PTR_SETUP commands could get missed. For this reason, it is highly recommended that all PTR_SETUP commands be placed between print jobs, rather than attempting to imbed them within jobs.
Commands Table 80. PTR_SETUP Commands (continued) Command CONFIG Sub-Command Parameter Description DELETE Cfg Deletes Configuration number Cfg. Cfg must be in the range of 1-8. UPLOAD Port;Cfg This command uploads the configuration stored in location Cfg to the port specified by Port. Port must either be 1284 or SERIAL. Cfg may be 1-8 or ALL. DOWNLOAD Cfg This command saves the configuration data that follows as configuration Cfg. Cfg must be 1-8 or END. RESET Reboots the printer.
Appendix B The PTR_SETUP Commands Table 80. PTR_SETUP Commands (continued) Command FILE_IO (DISK_IO) ENGINE 286 Sub-Command Parameter Description RUNFILE File;Prop The RUNFILE command will open the file named File for printing. After the PTR_END command is processed, the contents of File will get printed before any more data is read from the host. If the Prop field is present, RUNFILE will verify that Prop matches the saved file properties. Any mismatch will cause the command to be ignored.
Commands Table 80. PTR_SETUP Commands (continued) Command ENGINE PTR_END Sub-Command Parameter Description IMAGE_SHFT_H Value Shifts the image Value horizontally in 1/1000” units. If Value is out of the settable range (-1” to +1”), the command will be ignored. IMAGE_SHFT_V Value Shifts the image Value vertically in 1/1000” units. If Value is out of the settable range (-1” to +6”), the command will be ignored. LENGTH Value Sets the Page Length (in 1/1000” units).
Appendix B The PTR_SETUP Commands configuration. Rebooting the printer ensures that the desired configuration is correctly read from Non-Volatile RAM. NOTE: While an upload or download is in progress, the Front Panel will be unavailable. The Configuration Save and Delete commands from the front panel can be blocked by using the Protect Configurations feature. This is intended to prevent someone from inadvertently reconfiguring a printer.
C P-Series Plot Byte Definition A dot is printed at the location addressed by each of bits 1 through 6 in the data byte that is set (1 or True). Consequently, the binary equivalent of the plot data bytes must be known in order for specific dot positions to be addressed accurately. The next page shows the P-Series Plot Data byte dot patterns.
OCT 040 041 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 BINARY 0100000 0100001 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 32 33 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 DEC ASCII
D Glossary A Active column The horizontal location on the paper where the next character prints. After printing a character, the printer advances the active column. Active position The position on the paper where the next character prints. The active position is defined by the horizontal position (active column) and the vertical position (active line). ASCII Abbreviation of American Standard Code for Information Interchange.
Appendix D C Character A graphical representation of data. Character cell The invisible rectangular space occupied by a character, including the white space around the character. Used as a unit of spacing. The height of a cell is equal to the current line spacing, and the width of a cell remains constant even with changes in the current character spacing. Character Library The collection of all the glyphs for all fonts. Character Location The location of a character in a font.
D Decipoint One tenth of a point. A unit of measurement equal to 1/ 720 inch. See also point. Default A value, parameter, attribute, or option assigned by a program or system when another is not specified by the user. Diagnostic Pertains to the detection and isolation of printer malfunctions or mistakes. Disable To deactivate or set to OFF. E Emulation Refers to the ability of a printer to execute the commands of another printer language or protocol. Enable To activate or set to ON.
Appendix D Font Directory The header file that contains the tables describing allowed the mode and pitch combinations. The file also contains the tables used to set up the character sets and the international languages within the character sets. Font name See typeface. Font pattern A font pattern is the matrix of pels which represents a character, symbol, or image. Font, landscape A font printed parallel to the long edge of a page, or a font capable of being produced on a landscape page orientation.
I ipm inches per minute: The speed at which graphics are plotted. Interface The hardware components used to link two devices by common physical interconnection, signal, and functional characteristics. International Language Character set in which characters have been rearranged according to a substitution table for use in a different country. Invoke To put into effect or operation. Italic A type style in which characters are slanted. This sentence is set in italics.
Appendix D NOVRAM Acronym of NonVolatile Random-Access Memory. See also nonvolatile memory. O OCR Optical Character Recognition is the process by which a machine reads characters printed in a special standardized font. Data are read by a photoelectric optical scanner and recorded on magnetic tape or disk. OCR-A and OCR-B are two widely used fonts. P Parity (check) Parity checking is the addition of non-data bits to data, resulting in the number of 1 bits being either always even or always odd.
Print Pitch Defines the number of characters that can be printed in one inch. It can be translated into the width of the character. Printer Configuration The operating properties that define how the printer responds to signals and commands received from the host computer. These properties are set to match the operating characteristics of the host computer system. Printer Interface The point where the data line from the host computer plugs into the printer.
Appendix D S Serial communications The sequential transmission of data, in which each element is transferred in succession. Set To turn on, activate, invoke, or enable. SFCC Special Function Control Character. The first character in a printer command sequence. In P-Series emulation mode, you can select one of five characters as the SFCC. In the Serial Matrix or Proprinter protocols, the SFCC must always be the ASCII ESC character. See also command sequence.
W Weight See character weight. Write To store data to memory or mass storage (hard disk, floppy diskette, RAM, etc.).
Appendix D 300
Index A Postbar, 243 POSTNET, 244 Alternate Character Sets Royal Mail, 243 P-Series XQ, 65 syntax, 218 Application identifiers Telepen, 245 UCC/EAN-128, 247 UCC/EAN-128, 246 ASCII Character Set, 281 UPC Shipping, 255 Attribute Set and Reset Codes UPC-A, 251 Proprinter XL, 116 UPC-E, 252 P-Series, 27 UPS 11, 256 Serial Matrix, 78 Bell Attributes Epson, 160 Proprinter XL, 142 P-Series, 30 Australian 4-State, 222 Binary Data Byte Sample, 258 B Backspace Epson, 159 Proprinter XL, 118
Character Set Select (Control Codes) Serial Matrix, 83 Proprinter XL, 126 Bold Print Cancel P-Series, 35 Proprinter XL, 123 Serial Matrix, 88 Bold Print Reset Character Set Select (Printable Symbols) P-Series, 31 Proprinter XL, 126 Bold Print Set P-Series, 35 Proprinter XL, 123 Serial Matrix, 89 Bottom Margin Cancel Character Set Selection Proprinter XL, 124 Super-Set Commands, 198 Bottom Margin, Set Character Sets Proprinter XL, 124 C Epson, 162 International Calibrate Super-Set Com
Double High Print (Set/Reset) CONFIG Command P-Series, 39 Summary, 287 Serial Matrix, 93 Configuration Double High Print (1 line) printer, 21 Control code description format Epson FX emulation, 154 P-Series emulation, 26 P-Series, 38 Serial Matrix, 92 Double High Print, Set/Reset Epson, 165 P-Series XQ, 62 Serial Matrix emulation, 78 Double Strike Epson, 165 Control Code Functions Double Strike, Cancel Epson, 154 Epson, 166 Proprinter XL, 116 Double Wide Print P-Series, 26 Epson, 166 Cont
Emphasized Print Reset Double Wide Print (ESC W), 166 Proprinter XL, 128 Double Wide Print (1 Line), Cancel (DC4), 167 P-Series, 40 Emphasized Print (ESC E), 168 Serial Matrix, 94 Emphasized Print, Cancel (ESC F), 168 Emphasized Print, Cancel Epson, 168 Emulation Reset Enable Printing Hex 00-1F and 80-9F (ESC I), 169 Form Feed (FF), 171 P-Series, 40 Graphics Serial Matrix, 94 Double Density Double Speed (ESC Y), 173 Enable Printing Hex 00-1F and 80-9F Epson, 169 End Load Code EVFU, 274 Double
Select Vertical Tab Channel (ESC /), 187 EVFU Select 9-Pin Graphics Mode (ESC ^), 186 Channel Assignment, 273 Select/Deselect Proportional Spacing Clearing Memory, 276 (ESC p), 187 Set Absolute Horizontal Print Position in 1/60 Inch (ESC $), 188 Set Bit 7 of Incoming Data Bytes to 1 (ESC >), 188 Set Forms Length by Lines (ESC C), 190 Set Forms Length in Inches (ESC C 0), 190 Set Intercharacter Spacing in 1/120 Inch (ESC SP), 188 Set Margin, Left (ESC l), 189 End Load Code, 274 Memory Clearing, 276 P-
Serial Matrix, 99 Font Size Super-Set Commands, 202 Horizontal Tab Execute Epson, 175 Form Feed Horizontal Tab Set Epson, 171 Serial Matrix, 99 Proprinter XL, 131 Horizontal Tab Set/Release P-Series, 43 Epson, 175 P-Series XQ, 69 Horizontal Tab Set/Reset Serial Matrix, 97 Form Length and Width, 204 Forms Length Set (Inches) Proprinter XL, 133 Horizontal/Vertical Tabs Clear Proprinter XL, 133 Proprinter XL, 131 Host Form Size, 205 P-Series, 43 I Serial Matrix, 97 Forms Length Set (Lines) I
L Line Spacing, 8 or 10.
P P-Series compatible, 264 PMODE, 104 Page Eject software Super-Set Commands, 216 Page Orientation, landscape Super-Set Commands, 208 Page Orientation, portrait Super-Set Commands, 208 Page Orientation, selecting Super-Set Commands, 207 Paper Cut Super-Set Commands, 212 Paper Feed Shift Super-Set Commands, 212 Paper Length Super-Set Commands, 212 Paper Out Detection, Disable Epson, 183 Paper Out Detection, Enable Epson, 182 Pass Bit 7 from Host Epson, 183 P-Series, 52 Portrait Orientation Super-Set Comma
R Print Speed Super-Set Commands, 214 Printer Configuration, 21 Printer Deselect Epson, 183 Serial Matrix, 107 Printer Protocol, changing Super-Set Commands, 216 Printer Select Epson, 184 Serial Matrix, 107 Programming Reassign Graphics Mode Epson, 184 Reboot Super-Set Commands, 214 Remove Downloaded Characters Epson, 184 Reset emulation P-Series, 40 Serial Matrix, 94 Royal Mail, 243 S bit image format, 262 P-Series Plot Mode, 268 Proportional Spacing Select Proprinter XL, 144 Select/Deselect Epson, 187
Set and Reset Codes Epson, 155 Set Bit 7 of Incoming Data Bytes to 1 Epson, 188 Set Forms Length by Lines Epson, 190 Set Forms Length in Inches Epson, 190 Set Intercharacter Spacing in 1/120 Inch Epson, 188 Set Margin, Left Epson, 189 Set Margin, Right Epson, 189 Set Relative Horizontal Print Position in 1/120 Inch Epson, 191 Set Vertical Tabs in Channels Epson, 191 P-Series, 55 Serial Matrix, 108 Superscript/Subscript Printing Reset Proprinter XL, 145 P-Series, 55 Serial Matrix, 108 Super-Set Commands bar
Unidirectional Printing (ESC U) Serial Matrix, 109 Proprinter control code, 146 Slew Speed, 215 Software Page Eject, 216 Tear Strip Time, 215 TrueType Fonts, 203 Vertical Image Shift, 215 Unidirectional Printing, Set/Reset Epson, 194 Unidirectional Printing, 1 line Epson, 194 UPC Shipping, 255 Syntax UPC-A, 251 bar codes, 218 T UPC-E, 252 UPS 11, 256 Tab, Horizontal V Epson, 175 Proprinter XL, 132 Vertical Data Byte Pattern Sample, 258, 259 Serial Matrix, 99 Vertical Format Units Tab, Vertic
Readers’ Comments — We’d Like to Hear from You IBM 4400 Series Thermal Printer User’s Guide IBM 4400 Series Thermal Printer:Legacy Migration Utility Publication No.
G544-5733-01 G544-5796-00 ___________________________________________________________________________________________________ Readers’ Comments — We’d Like to Hear from You Cut or Fold Along Line _ _ _ _ _ _ _Fold _ _ _and _ _ _Tape _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Please _ _ _ _ _do _ _not _ _ staple _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Fold _ _ _and _ _ Tape ______ NO POSTAGE NECESSARY IF MAILED IN THE UNITED STATES BUSINESS REPLY MAIL FIRST-CLASS MAIL PE
Preliminary 1
® *176977-001* G544-5733-01 *07G544573301* 10R0529 176977-001A *10R0529* Part Number: 10R0529