Genicom GEK 00031B Programmer's Manual

Genicom printer user manual
Table of Contents

Advertisement

Quick Links

GEnicom
5000 Series
Programmer's Manual
GEK – 00031B

Advertisement

Table of Contents
loading

Summary of Contents for Genicom GEK 00031B

  • Page 1 GEnicom 5000 Series Programmer’s Manual GEK – 00031B...
  • Page 2: Table Of Contents

    Table of Contents Chapter 1.Introduction... 8 overview of printer emulation...8 Control Codes...8 Escape Sequences ...8 CSI and OSC ...9 Line Terminators ...10 Decipoints ...10 SCS Smart Graphics Capabilities...10 Chapter 2. ANSI Emulation... 11 Control Code and Escape Sequence Activity Levels...11 Notes...11...
  • Page 3 Changing Parameters ... 53 Commas and Spaces as Delimiters ... 53 Horizontal Spacing ... 54 Printer Option Strap 11, Group 2 IN ... 55 EXAMPLE 1: Strap 11 OUT ... 55 EXAMPLE 2: Strap 11 IN ... 55 EXAMPLE 3: Strap 11 OUT with no suppression of LF/CR on line 30 ...
  • Page 4 Double Density Plot Mode Format ...100 Plot Mode Graphic Character Chart...101 Exiting Plot Mode Graphics ...101 Plot Mode Graphics density commands...102 Differences From Target Printer Emulation ...104 Discarded Commands ...104 Select Extended Character Set (SFCC OSET;n) ...104 Download a Language (SFCC V)...104 Download a Character Shape (SFCC c) ...104...
  • Page 5 Table of Contents Chapter 4.Printronix P-Series Emulation (Continued) Postnet Bar codes (SFCC |p*xxxxx-yyyy-zz*) ... 104 Ribbon Minder Enable/Disable (SFCC r E/SFCC r D) ... 104 Ribbon Minder Set Job Rate (SFCC r J nnnn E) ... 104 Ribbon Minder Worn Message (SFCC r A n)... 104 Command Line Debug...
  • Page 6 Table of Contents Chapter 6.Epson FX286-e Emulation (Continued) Miscellaneous Commands ...149 FX-286e Dot Graphics ...150 Specifying Graphics Line Length ...150 Image Data Bytes ...151 Graphics Programming Example ...151 Printed Results of Sample Program ...151 FX-286e Dot Graphics Control Sequences...152 Chapter 7.DEC LG / Compaq LG Plus Emulation... 155 Control Code Definitions...155 Commands ...158 Chapter 8.PPL3 Plus Emulation ...
  • Page 7 Entering and Exiting POSTNET Bar Codes ... 265 Selecting POSTNET Style Bar Codes ... 265 Appendix D. Description of Strapping Options ... 268 General Printer Options Definitions... 269 Legacy Parallel Software Strap Definitions... 270 Emulation Option descriptions... 271 Appendix E. DSC Code Charts ... 275 Index ...
  • Page 8: Chapter 1.Introduction

    INTRODUCTION OVERVIEW OF PRINTER EMULATION Commands are sent to the printer in the form of control codes and escape sequences. These differ from normal data to be printed in that they give instructions to the printer on paper movement, style of print, size, density, and many other selectable features.
  • Page 9: Csi And Osc

    A control sequence introducer <CSI> signals the beginning of an ANSI sequence using the <ESC> code and the left bracket ([). <CSI> (9B hex) can be used instead of <ESC> [ (1B 5B hex) when the printer is receiving and processing 8-bit data. <ESC> [ will be used predominately in this manual for the examples.
  • Page 10: Line Terminators

    LINE TERMINATORS Some control codes and escape sequences act as line terminators. Line terminators cause all data received since the last terminator to be printed. Without a terminator, data will remain buffered. DECIPOINTS Throughout this manual decipoints are used as a unit of measure. A decipoint equals 1/720th of an inch and is used as a standard of measurement for parameters associated with set distances.
  • Page 11: Chapter 2. Ansi Emulation

    This sequence takes effect immediately. These control codes are used as data. When printer option 1 is active, either in ANSI (4800) or ANSI (4410) emulation, <SO> and <SI> activate or deactivate this printing mode. <SO> and <SI> are VALID in bar codes and oversize print mode.
  • Page 12: Control Code Activity Levels

    Control Code Activity Levels Control Code Chapter 2. ANSI Emulation Control Code Activity Levels Line Terminator Normal Graphics Note 3 Note 3 Codes Oversize POSTNET Note 4 Note 4 Note 4 Note 4 Note 4 Note 3 Note 4 Note 4 Note 4 Note 1 Note 1...
  • Page 13: Escape Sequence Activity Levels

    Escape Sequence Activity Levels Escape Sequence DCS (Graphics) Font Load GENBCS GENFD GENGRM GENHTS GENOSM GENSLR GENSNC GENSPM GENTST GENVFU DENVTS VFU Load GEK-00029B Line Normal Terminator Graphics Oversize POSTNET Codes Note 2 Note 2 Note 2 5000 Series Programmer’s Manual...
  • Page 14: Control Code Definitions

    <DC1>. Through menu options, a serial interface protocol may be transmits a <DC3> code to the host to signal that the printer is not ready to receive data. Escape (1BH): Signals the beginning of an escape sequence. See also CSI above.
  • Page 15 Form Feed (0CH): Line terminator. The paper is advanced to the top-of-form position. When the EVFU is enabled and programmed, paper will advance to the next stop in channel 1. An option strap from the CCU Control Panel Menu using the SETUP/FORMAT/MODIFY FORMAT/GENPRTOPTS selection can disable this feature.
  • Page 16: Escape Sequence Directory

    ESC [ p1 b REP: Dot graphics: repeat preceding character p1 times ESC c RIS: Resets printer to a known initial state ESC [ p1 d VPA: Sets vertical position to p1 decipoints or lines ESC [ pl e VPR: Moves paper forward p1 decipoints ESC [ p1;...
  • Page 17 GENSNC: Selects international character sets ESC [ p1 ; ...;p10 } Selects bar code parameters ESC [ p1 SP } GENDFC: Download Font Control: Checks printer for downloaded font OSC or ESC ] Operating System Command: introduces sequence ESC ] 5 BFL (Begin Font Load): Valid only if download option is installed.
  • Page 18: Ansi Escape Sequence Categories

    ANSI ESCAPE SEQUENCE CATEGORIES The ANSI escape sequences have been separated according to functionality. Special areas of interest, such as graphics and the electronic vertical format unit (EVFU), have been described in separate sections. The functional groups are: ▪ Housekeeping ▪...
  • Page 19: Housekeeping Sequences

    ESC c RIS (Reset to Initial State): Resets the printer to either the standard state shown below or to the state stored in the customer save area of memory. The RIS sequence can be disabled by ANSI option strap 3 (see Appendix D, ANSI (4800) or ANSI (4410), option 3).
  • Page 20 ESC Q GENTST (Self-Test): This sequence is ignored. Decimal: Hex: BASIC: Chapter 2. ANSI Emulation 27 102 or 120 1B 5C or 9C CHR$(27);"Q"; GEK-00029B...
  • Page 21 The parameters in the sequence are defined as follows: Emulation identifier. This parameter selects the particular emulation by a reference number supplied by GENICOM engineering. The assigned numbers may be found in the table below. Reset control. Permits the parameters of the printer to be reset or defaulted.
  • Page 22: Character Set Selection

    Character Set Selection ESC [ p1 x GENSNC (Select National Characters): This sequence selects the national character substitution if the currently selected character style supports it. The following values may be used for p1. 8572 8573 8574 8575 8576 8577 8578 8591 8592...
  • Page 23: Character Map Load

    All other values of p1 are reserved. GENSNC (CSI p1 x) select parameter. Values must be between 90 and 99 in order not to interfere with GENICOM standard character maps. If a downloaded character map select parameter is a value other than 90 through 99, the download character map command is ignored.
  • Page 24 A decimal number that identifies the source character. This is the location value of the desired character pattern in the printer font set. For example, an upper case "A" has a decimal value of 65. Values of 0 through the last available character for the currently selected font are valid for this element.
  • Page 25: Paper And Print Position Movements

    Paper and Print Position Movements ESC K PLD (Partial Line Down): Line terminator. Moves the print line down 3/72 inch for subscript printing. Also returns to the original line following a partial line up (<ESC> L - superscript) sequence. See note below.
  • Page 26 <p1> and the print position to the <p2> value. Values are sent as decipoints. HVP can position printing inside margins. The vertical position can not exceed the form length and the horizontal position cannot exceed the maximum width for the printer. Decimal: Hex: BASIC: ESC [ p1 j HPB (Horizontal Position Backward): Line terminator.
  • Page 27 ESC [ p1 k VPB (Vertical Position Backwards): Line terminator. Moves the paper in reverse by the distance specified by p1. Values can be sent as decipoints. The paper position is set to the top margin if the p1 value exceeds the margin. A VPB with a p1 value of 5 decipoints or less is ignored.
  • Page 28: Margins And Tabs

    Margins and Tabs ESC H HTS (Horizontal Tab Set): Sets a tab at the current print position and updates any existing horizontal tab table. A total of 22 tabs can be set. If this number is exceeded, the leftmost 22 tabs will be retained.
  • Page 29 ESC [ r ESC [ 8280 r ESC [ ; 720 r ESC [ ; ; 720 r ESC [ 7920 ; 360 ; 360 r Decimal: Hex: BASIC: ESC [ p1; p2 s GENSLR (Set Left/Right Margins): The p parameters are distances from the left edge of the printable area of the paper.
  • Page 30 ESC [ p1 ; ... p22; u GENHTS (Multiple Horizontal Tab Set): Sets up to 22 horizontal tabs. The p parameters are set in decipoints. If more than 22 tabs are set, the highest numbered tabs (farthest right) will be pushed out of the tab table. Tabs set in front of the left margin, or beyond the right margin.
  • Page 31: Font Handling And Enhancements

    SETUP | FORMAT | MODIFY FORMAT |GENPRTOPTS | GROUP 2 |Strap 13. When this sequence is received with a value of 200 or more, expanded printing starts if the printer is in the text mode (not bar codes, oversize, etc. Examples: ESC [ ;...
  • Page 32 ESC [ p1 ; p2 SP G SPI (Spacing Increment): This sequence is used to set line spacing (p1) and character spacing or pitch (p2). If the parameter is missing or zero, the spacing remains unchanged. In the native mode, p1 can range from 1 to 17,820 decipoints (24 inches).
  • Page 33 ESC [ p1 ; p ... m (continued) *A download font (if loaded) overrides any other font. See Character Map Load on page 23. Examples: For Gothic NLQ font underlined send: ESC [ 4 ; 13 m To cancel underlining and retain Gothic NLQ - send one of the following: ESC [ ;...
  • Page 34 ESC [ p1; ... pn h SM (Set Mode): Sets the mode or modes specified by the parameters listed below. Parameters preceded by the 'greater than' sign are privately defined modes and should be sent separately. Parameter Number LNM - Line Feed New Line Mode . When using this mode, a received line feed command causes a carriage return (new line).
  • Page 35 (p1=2). The printer sends DCS 30H 30H ST if a font is loaded, DCS 44H 45H ST if no font is loaded. It also provides the capability to erase the download font area (p1=1).
  • Page 36: Graphics

    GRAPHICS The ANSI emulation graphics mode provides both horizontal and vertical dot plotting methods. These methods enable the printing of ASCII characters in their binary code form. Since each character has a unique pattern of 1s and 0s (dots and voids) that make up its binary code, the correct placement of these binary forms enables you to form larger images on the paper.
  • Page 37 This chart shows the dot patterns for the ASCII characters needed to cover all dot/void combinations. Other valid characters (although they are repeat patterns of the characters in the chart) are 20H-3FH. Character Legend: GEK-00029B Value Dots Character ’ 000000 X00000 0X0000 XX0000...
  • Page 38: Horizontal Format

    Horizontal Format Graphics data printed in horizontal format is comprised of a stream of bytes from left to right across each dot row. This chart shows that byte 1 (or character 1) in row 1 prints its six bits from left to right in a single dot row. The next byte (byte 2) prints its six bits, representing a character, in the same dot row across the page.
  • Page 39: Eight-Bit Graphics

    Eight-Bit Graphics Horizontal Format Graphics data printed in horizontal format is comprised of a stream of bytes from left to right across each dot row. This chart shows that byte 1 (or character 1) in row 1 prints its eight bits from left to right in a single dot row.
  • Page 40: Other Graphics Considerations

    ESC [ <p1> ;<p2> ; <p3> q sequence. Following this sequence, the printer prints discrete dots and leaves spaces based on the 1s and 0s in the low order six bits of each byte received. forming graphic dot rows from left to right.
  • Page 41 ESC [ p1 ; p2 ; p3 q GENGRM – Select Graphics Mode: Selects the graphics mode, format, and horizontal or vertical density for dot graphics. This sequence must be sent before entering the graphics mode with ESC P. The first parameter selects the graphics mode: the second parameter selects the vertical spacing, and the third selects the horizontal dot spacing.
  • Page 42: Electronic Vertical Format Unit - Evfu

    Program Mode. ▪ No paper instruction lead (PI) is required. ▪ When the printer has an EVFU table loaded, VFU is displayed on the control panel. ESC ] ! Start EVFU table loading sequence . Each line of the form requires an entry.
  • Page 43: Basic Programming Example For Evfu Table Loading

    To make characters acceptable, bit 7 must be set. Each "channel control code" pair of bytes has the capability to indicate multiple channels since each channel indication has a unique bit position, which is either ON=1 or OFF=0. Decimal Value BASIC Programming Example for EVFU Table Loading PROGRAM INSTRUCTION 1500...
  • Page 44: Evfu Default

    EVFU Default The default EVFU will be generated based on the current form length and lpi setting under the following conditions: ▪ When the printer is initialized ▪ When either the forms definition or lpi setting is changed ▪ When the start EVFU load escape sequence ESC ] is immediately followed by the end load sequence ESC \ ▪...
  • Page 45: Basic Programming Example For Skip To Channel

    BASIC Programming Example for Skip to Channel This is a sample program showing the use of the skip-to-channel command. It makes use of the previously loaded EVFU program. PROGRAM INSTRUCTION WIDTH “LPT1:”,255 LPRINT CHR$(27);”[0;1!p”; LPRINT “TOP OF FORM”; LPRINT CHR$(27);”[0;3!p”; LPRINT “LINE 6”;...
  • Page 46: Bar Codes

    1 for both 4800 and 4410 ANSI emulation. SETUP | FORMAT | MODIFY FORMAT | GENPRTOPTS | ANSI | Printer Option 1 (See Appendix G, Tables 5 and 6) is used to enable the SI (shift in) and SO (shift out) ASCII codes to activate and deactivate special mode functions.
  • Page 47: Setting Bar Code Parameters

    Select the style, height, spacing, orientation, and print density for the bar code using the following escape sequence. The second line in the example (written in BASIC) shows the parameters that are the default values for the printer. ESC [<p1>;<p2>;…;<p10>} Example LPRINT CHR$(27);"[4;9;1;2;6;2;6;2;0;0}";...
  • Page 48: Bar Code Dimensions

    Bar Code Dimensions The following dimensions are for barcodes printed at 0 and 180 degrees rotation. Barcodes printed at 90 or 270 degrees rotation will be compressed by a 6:5 ratio due to the difference in size of the horizontal and vertical grids. Bar code height in 1/12-inch increments Minimum: Maximum:...
  • Page 49 LPRINT CHR$(27);"[;;;;;;;;;1}" Changes only parameter 10. LPRINT CHR$(27);"15;;0}" LPRINT CHR$(27);"[16}" If no changes are made to the parameters of the bar code, the printer will use the following factory-set values. GEK-00029B No rotation - use currently selected font style, cpi, and lpi.
  • Page 50: Default Bar Code Characteristics

    128 ASCII characters. • An invalid character has been received. An example of this would be a letter "A" sent to the printer while printing a style 5 bar code. Style 5 (EAN-8) only accepts the digits 0-9.
  • Page 51: Bar Code Readability Statement

    Bar Code Readability Statement The following information is provided to ensure that the best results are obtained from your printed bar codes. Use bar code readers designed to operate in the visible light frequency range. Optional infrared-readable ribbon cartridges are available.
  • Page 52: Bar Code Program Examples

    Test Program This is the minimum code needed to print a bar code. Use it to test the printer's ability to print bar codes when more complicated programs are not producing results. Line 10 turns on the bar code mode. line 20 contains the data to be printed as a bar code symbol, and line 30 turns off the bar code mode.
  • Page 53: Changing Parameters

    Changing Parameters This example changes the style p1, height p2, and the HRL font p9 of the bar code. Notice that semicolons are used as place holders for the parameters not being changed. Line 10 - changes style to Code 128, changes height to 1/4" (3/12"). and use the special HRL font.
  • Page 54: Horizontal Spacing

    Horizontal Spacing Use horizontal tabs for spacing bar code symbols across the page. Line 10 sets horizontal tabs at 1440 and 2880 decipoints (2 and 4-inches). The HT codes in lines 40 and 60 cause a jump to the next tab.
  • Page 55: Printer Option Strap 11, Group 2 In

    Printer Option Strap 11, Group 2 IN Printer control strap 11 is used for positioning the paper after printing a bar code. Strap 11 IN sets the paper to the top of the bar code after printing; Strap 11 OUT leaves the paper position as is after printing a bar code.
  • Page 56: Example 3: Strap 11 Out With No Suppression Of Lf/Cr On Line 30

    EXAMPLE 3: Strap 11 OUT with no suppression of LF/CR on line 30 10 LPRINT CHR$(27); "[3t"; 20 LPRINT "1234567890"; 30 LPRINT CHR$(27); "[0t" 40 LPRINT "STRAP 11 OUT" Chapter 2. ANSI Emulation GEK-00029B...
  • Page 57: Vertical Bar Codes

    Vertical Bar Codes ▪ Line 10 sets parameter p9 for 90-degree rotation using the special font for the HRL. ▪ Line 20 turns on the bar code mode. ▪ Line 30 is the data to be printed as a bar code symbol. ▪...
  • Page 58: Commas: Without Hrl

    COMMAS: Without HRL 10 LPRINT CHR$(27); "[;;0}"; 20 LPRINT CHR$(27); "[3t"; 30 LPRINT "1234,5678,9012"; 40 LPRINT CHR$(27); "[0t" SPACES: With HRL 10 LPRINT CHR$(27);"[;;1}"; 20 LPRINT CHR$(27); "[3t"; 30 LPRINT "1234 5678 9012"; 40 LPRINT CHR$(27); "[0t" SPACES: Without HRL 10 LPRINT CHR$(27);...
  • Page 59: Horizontal Tabs

    Horizontal Tabs ▪ Line 10 sets horizontal tab stops at 1080 and 2160 decipoints (1. 5 and 3 inches). ▪ Lines 40 and 60 are ITT codes that cause a jump to the next tab stop. Line 90 is a line of text to show positioning on the paper. The vertical separation between the bar code symbol and the text "TEXT STRAP 13 OUT"...
  • Page 60: Oversize Character Font

    (330mm) wide. Oversize characters can be rotated 90, 180, or 270 degrees. Do not confuse oversize characters with expanded characters. The expanded character feature, (standard in your printer), expands all existing fonts up to 8 times the normal size. These characters are not rotatable.
  • Page 61: Selecting Size

    300% or 3 times. The last two digits of each parameter are necessary to comply with the ANSI standard, but are ignored by the printer. Using the above example for p1, any three-digit number starting with 3 (300-399) will be interpreted as 3 times normal size.
  • Page 62: Sample Programs

    Sample Programs Example 1 The first example shows the code used to print oversize. Line 10 sets the size to X3 vertical (V) and X3 horizontal (H). Line 20 enters oversize printing with no rotation. Line 30 is the data to be printed.
  • Page 63: Example 3: Showing The Importance Of Resetting Scaling Factors

    Example 3: Showing the Importance of Resetting Scaling Factors If line 50, which sets the size to X1 V and X1 H. is removed, the data printed in line 60 is now subject to the expanded mode of printing. NOTE In BASIC, LPRINT statements automatically generate an LF/CR at the end of the line unless suppressed by a semicolon.
  • Page 64: Printer Control Strap Genprtopts/Group 2/Strap 13

    OUT, the paper position remains as is after printing oversize. The state of the printer strap can be checked and changed using the configuration menu. In the following examples: ▪...
  • Page 65: Example 4: Genptropts | Group 2 Strap 13 In

    Example 4: GenPtrOpts | Group 2 Strap 13 IN The oversize characters and the first line of normal printing are aligned at the first print line. The second line of normal printing (Text Text Text . . .) started printing one line below Strap 13 IN and overprints the oversized text.
  • Page 66: Chapter 3.Printronix P300/P600 Emulation

    The following is a list of the control codes (and their functions) utilized by the Printronix printer. Any control codes not listed will be discarded. When changing from the ANSI emulation to the P Series emulation.
  • Page 67 This code anywhere in the line causes the line to be treated as high-density plot mode graphics. The line must be terminated with a CR (printer strap A29 must be OUT). The characters are treated as dot information and the CR at the end of the line will not cause the paper to advance.
  • Page 68 (until an SI code is received) to be printed in the alternate font. The alternate font is selected with printer P300/600 emulation straps S13-S16, set in the GenPtrOpts function of the CCU menu.
  • Page 69: Printronix Graphics

    PRINTRONIX GRAPHICS The Printronix emulation graphics mode provides a horizontal dot placement plotting method. This method enables the printing of ASCH characters in their binary code form. Since each character has a unique pattern of 1s and 0s (dots and voids) that make up its binary code, the correct placement of these binary forms enables you to form larger images on the paper.
  • Page 70: Dot Patterns

    Dot Patterns This chart shows the dot patterns for the ASCII characters needed to cover all dot/void combinations. Characters from 20H to 3FH provide the same patterns as characters 60H through 7FH. Characters from 00H through 1FH, which are not recognized as line terminators or plot mode codes, are ignored.
  • Page 71: Normal-Density Graphics

    The first line contains the high density plot mode code (EOT) and must be terminated with a CR. The DEFINE CR setting in the printer control setup menu must be set to CR=CR. The second line contains the normal density plot mode code (ENQ) and must be terminated with an LF.
  • Page 72: P300/600 Electronic Vertical Format Unit

    P300/600 ELECTRONIC VERTICAL FORMAT UNIT The electronic vertical format unit (EVFU) is used to download vertical tabs to the printer. It allows jumps to preselected lines on the form through vertical moves of the paper. The maximum form length is 22 inches (176 lines at 8 lpi).
  • Page 73: Pi Lead Codes - Use With Serial Interface

    PI Lead Codes – Use with Serial Interface The PI lead is not used in the parallel interface. To use the PI lead with the serial interface, 8-bit codes must be sent. Codes Not Using the PI Lead GEK-00029B Channel Data Lines number or Command...
  • Page 74: Example Evfu Loading Program

    Using the channel code chart without the PI lead. ▪ This program loads the EVFU table with channel stops at lines 6, 25, 57, and 66. ▪ Set the printer as follows: GenPtrOpts | Group 2 | Strap 8 OUT to deactivate coded ▪ SELECT/DESELECT operation. ▪...
  • Page 75: Example Form Printout

    Example Form Printout This example uses the VFU table created in the previous example. Establish top of form locally before printing. When running the program, paper will slew to the top of the next form before printing begins. Sample Program to Print Form The following sample program uses the EVFU program from the prior example.
  • Page 76: Chapter 4.Printronix P-Series Emulation

    CHAPTER 4. PRINTRONIX P-SERIES EMULATION SPECIAL FUNCTION CONTROL CHARACTER (SFCC) When a printer control code consists of more than one character, it is called a command or escape sequence. This emulation uses a Special Function Control Character (SFCC) as the first character of a command sequence.
  • Page 77: Set And Reset Codes

    Set and Reset Codes Some print attributes are set and reset (turned ON and OFF) by using an SFCC command sequence and the numbers one(1) or zero(0). These numbers may be in the form of hexadecimal code 01H and 00H, or the ASCII code for the printable symbols of decimal 1 and 0 (hexadecimal code 31 and 30).
  • Page 78: Command Index

    Carriage Return Print Attributes Bold Print Bold Print Off Emphasized Print Emphasized Print Off Overscoring Underline Printer Control Bell Emulation Reset Font Control Download New Character Shape Double Wide (Elongated) Characters (1 line only) Expanded (Double Wide) Print Expanded (Double Wide) Print Reset Chapter 4.
  • Page 79 Font Control (continued) Font Selection Superscript/Subscript Printing Superscript/Subscript Printing Reset Plot Mode Graphics Plot, Even Dot (High Horizontal Density) Plot, Odd Dot (Normal Density) Plot, High Vertical Density (1/144) Plot, Single Line (High Horizontal Density) Character Set Control Character Set Select Character Set Select: ECMA Extended Character Set Select: Int’l Languages Character Set Select: Substitution Table...
  • Page 80: Control Codes

    This code can also be configured form the control panel to print double-high characters instead of a backspace. Bell Bell <Bel>: The printer's audible alarm will sound for 1/2 second when the bell code is received by the printer. Format <Bel>...
  • Page 81 Form Feed Form Feed <FF>: 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. The FF code cancels all single-line only print attributes. Format <FF> Decimal: Hex: BASIC:...
  • Page 82: Character Sets, Font Handling And Enhancements

    CHARACTER SETS, FONT HANDLING AND ENHANCEMENTS Character Set Selects the character set, extended character set, and the Select international language for a specific character set. Format <SFCC> l xyz character set international language for the selected character set table extended character set for the selected character set Decimal: Hex: BASIC:...
  • Page 83 If (*) or (X) is selected for y, the previously selected international language is used. Notes This command implementation is different than the target printer due to limitations in Font character sets. Refer to the “Emulation Differences” section of this document.
  • Page 84 (striking each dot twice) until reset by the Bold Print off code or a printer reset. When SFCC j is used, Bold Print printing is selected for one line only; it is reset by the Bold Print off control code, emulation reset, or a paper motion command.
  • Page 85 Bold Print OFF Deselects Bold Print mode. Format <SFCC> H Decimal: Hex: BASIC: Indeterminate Conditions This sequence resets Bold Print printing only. Other attributes ( double wide, etc) remain active. Single Line Selects elongated (double high) character printing for one line only. Double High Elongated characters are approximately double height but standard width.
  • Page 86 Decimal: Hex: BASIC: This control code can be reset by a paper motion control code (LF, VT, CR, etc.), SFCC @ (printer reset), CAN or SFCC W (double wide print). Chapter 4. Printronix P Series Emulation <SFCC> 70 <SFCC> 46 CHR$(<SFCC>);”F”;...
  • Page 87 Extended Character Extended Character Set Access: Accesses the extended character Set Select set in the range ADH to FFH hex using codes 20H to 7FH. Used in 7-bit systems as if data bit 8 was set to 1. For example, sending code 20 hex accesses the symbol at code point A0H.
  • Page 88 Extended Character Extended Character Set Cancel: Cancels the extended character set Set Cancel as selected by SO, SFCC SO, SFCC n, SFCC 4, and selects the primary Character Set. Used in 7-bit systems as if data bit 8 was set to 1. For example, sending code 20 hex accesses the symbol at code point 0A0H hex.
  • Page 89 PMODE switches to the Primary Character Set and selects font and pitch according to the following table. ‘n’ Notes This command implementation is different than the target printer due to limitations in Font character sets. Refer to the “Emulation Differences” section of this chapter. GEK-00029B <SFCC>...
  • Page 90 When the super/subscript control code is received, all characters print as superscript or subscript until reset by the super/subscript reset control code or printer reset. Emphasized print is ignored if super/subscript printing is active. When the BS feature is enabled from the control panel menu, both superscript and subscript characters can be printed in the same character column using the Backspace (BS) control code.
  • Page 91 Underline Character Underlining: Enables or disables automatic underlining of all characters. Format <SFCC> - <n> Decimal: Hex: BASIC: n = 0 n = 1 Details When automatic underline is enabled, all characters, including spaces, are underlined until the feature is disabled. GEK-00029B <SFCC>...
  • Page 92: Housekeeping Commands

    HOUSEKEEPING COMMANDS Print Control Codes Forces the hex codes 80H to 9FH to become printable symbols in the currently selected character set. Cancels the executable control code operation activated by the SFCC 7. Format <SFCC> 6 Decimal: BASIC: Indeterminate Conditions This feature can also be selected from the control panel.
  • Page 93 Set Forms Length Set Form Length (Inches ) In Inches Format <SFCC> I N C H E S ; <n> ; <f> Decimal: BASIC: n = a whole number from 1 to 22 specifying the number of inches on a page. f = a fractional number in 0.5 inch increments (minimum forms length is 0.5 inches).
  • Page 94 Set Line Spacing Sets line spacing to 6 lpi or as set by (1/6 Inch) SFCC A. Formats <SFCC> L P I ; n <SFCC> A n <SFCC> 2 Details Using the SFCC LPI ; n command, the value of n can be 6 or 8 only. If n = 6, this command sets line spacing to 1/6 inch.
  • Page 95 Set Line Spacing There are two formats for this (1/8 Inch) command. The SFCC 0 command specifies continuous line spacing at 1/8-inch increments (8 lpi). In the SFCC LPI ; n command, the value of n can be 6 or 8 only. If n = 8, this command sets line spacing to 1/8 inch.
  • Page 96 Set Line Spacing Specifies the line spacing at 7/72-inch 7/72 Inch (10.3 lpi) increments. Format <SFCC> 1 Decimal: Hex: BASIC: Details When the 7/72-inch line spacing control code is received, all lines print at the 7/72-inch line spacing until a new line spacing is selected or power is reset.
  • Page 97 Set Line Spacing Specifies the line spacing at n/216 n/216 Inch inch increments. Format <SFCC> 3 <n> Decimal: Hex: BASIC: n = 1 to 255 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 power is reset.
  • Page 98: Plot Mode Graphics Operational Description

    PLOT MODE GRAPHICS OPERATIONAL DESCRIPTION Plot Density Plot density refers to the number of dots per inch (dpi) printed in a single dot row. Two types of plot density are available in this emulation: ▪ Normal density plot mode ▪ Double density plot mode Normal Density Plot Mode Selected using the odd dot plot control code ENQ (05 hex) or the...
  • Page 99: Plot Data Line Format

    Plot Data Line Format 1. The plot mode control code: either 05 hex (or “SFCC e”) for normal density, or 04 hex (or “SFCC d”) combined with 05 hex for double density plotting. 2. The data bytes to be plotted. 3.
  • Page 100: Double Density Plot Mode Format

    1. Send the even dot plot control code EOT (04 hex) or control sequence “SFCC d”, followed by a line of data. 2. Send a line terminator, which causes the printer to plot the contents of the buffer. The paper does not advance in double density plot;...
  • Page 101: Plot Mode Graphic Character Chart

    Plot Mode Graphic Character Chart Char Value Dots space ooooox xoooox “ oxooox xxooox ooxoox xoxoox & oxxoox xxxoox oooxox xooxox oxoxox xxoxox ooxxox xoxxox oxxxox xxxxox ooooxx xoooxx oxooxx xxooxx ooxoxx xoxoxx oxxoxx xxxoxx oooxxx xooxxx oxoxxx xxoxxx < ooxxxx xoxxxx >...
  • Page 102: Plot Mode Graphics Density Commands

    DLE acts as a VFU channel command. Format <DLE> Decimal: Hex: BASIC: Notes GENICOM private code (not part of the target printers control codes). Chapter 4. Printronix P Series Emulation <EOT> <SFCC> 100 <SFCC> 64 CHR$(<SFCC>);”d”; CHR$(10); GEK-00029B...
  • Page 103 Single Line, High (Genicom Private Command): Used in forming a line of plot mode Horizontal Density graphics, this code specifies a single line of data to be plotted at a dot horizontal density of 120 DPI. The EOT (plot mode code) should precede the NAK.
  • Page 104: Differences From Target Printer Emulation

    DIFFERENCES FROM TARGET PRINTER EMULATION Discarded Commands The following commands from the target printer are parsed by the current P-Series emulation and then discarded: Select Extended Character Set (SFCC OSET;n) The fonts required for this command were not available on the P- Series.
  • Page 105: Command Line Debug

    COMMAND LINE DEBUG The Genicom P-Series emulation does not contain the command line debugger function for detecting and displaying error in Command Line Sequences. GEK-00029B 5000 Series Programmer’s Manual...
  • Page 106: Font Styles, Pitches, And Character Sets

    FONT STYLES, PITCHES, AND CHARACTER SETS Font Styles The emulation uses the DP font instead of the three (3) High Speed fonts. Font Pitches Quality High Speed Character Sets Set No. Extended Character Sets The emulation supports code page 850 only. Form Length Maximum form length of the 5000 series is 22 inches.
  • Page 107: Plot Mode Graphic Densities

    Plot Mode Graphic Densities The target printer defaults the graphic density to certain values based on the font selection: ▪ ▪ NLQ: ▪ The 5000 series printers support 60/120 dpi horizontally and 72/144 dpi vertically. Enhancements The following enhancements were made to the emulation. These features do not exist as part of the target printer.
  • Page 108: Chapter 5.Proprinter Emulation

    Double-width and double-height characters are slightly different. ▪ 240 dpi graphics are printed on a 120 dpi grid. Adjacent dots are OR'ed together. The aspect ratio of this printer (height vs. width of a graphic image) is identical to the Proprinter. PROPRINTER CONTROL CODES Bell: Sounds a momentary audible tone.
  • Page 109 ESC Q. Decimal: Hex: BASIC: Device Code 2: Sets 10 cpi printing. DC2 sets the printer to 10 cpi (5 cpi if double-wide is enabled). It cancels condensed printing mode and 12 cpi printing. Decimal:...
  • Page 110 Hex: BASIC: Null: NUL is ignored by the printer when received by itself. If received as part of a graphics data sequence, it is interpreted as a graphics space. Null is used by some escape sequences to end a series of parameters.
  • Page 111: Command Directory

    Normal density graphics (60 DPI) Dual density graphics low speed (120 DPI) Skip perforation ON Skip perforation OFF Proportional space mode Deselect printer Set all tabs to power on settings Super/Sub script on Super/Sub script off Unidirectional print on/off Double-wide print on/off...
  • Page 112: Escape Sequences

    Decimal: Hex: BASIC: ESC : Set 12 cpi Printing: Sets the printer to 12 cpi (6 cpi if double-wide is enabled). DC2 resets to 10 cpi. Decimal: Hex: BASIC: Chapter 5. Proprinter Emulation 27 45 <n>...
  • Page 113 ESC [T n1 n2 ml Select Code Page: Selects international character sets. The m2 m3 m4 m5 default is IBM PC Multilingual Set 2. n1: Always 5 (The number of m parameters used.) n2: Always 0 ml, m2, and m5 are always zero. m3 - See chart below.
  • Page 114 Set Top of Form: Sets current paper position as top of form. Decimal: Hex: BASIC: ESC 5 n Automatic Line Feed: Printer automatically does a line feed after receiving a carriage return. n = 0, disabled n = 1, enabled Decimal:...
  • Page 115 ESC B n1 ... n64 0 Set Vertical Tab Stops: This sequence sets up to 64 vertical tabs by line number. The tabs must be in ascending order and the sequence must end with a NUL. ESC B NUL clears all tab stops. These tabs are stored as absolute values, so they are not affected by changes in lpi settings.
  • Page 116 Set Skip Perforation: Sets the perforation skip distance to n lines. ESC N is reset when the form length is changed. Valid parameter values are 1 - 255. The printer converts the number of lines (n) to inches using the current line spacing and saves the skip distance in inches.
  • Page 117 ESC Q n Deselects IBM Proprinter (parallel interface only): Stops printer from accepting data from the host. The host must reset the printer or select it using DC1. This sequence is intended for diagnostic purposes only. The variable (n) is 22.
  • Page 118 ESC W n Set Double-Wide Print On/Off: When enabled, printable characters are printed twice their current width. This sequence has precedence over the SO control code. n = 1: doublewide is enabled n = 0: doublewide is disabled Decimal: Hex: BASIC: ESC X n m Set Horizontal Margins: This sequence sets the left (n) and right (m)
  • Page 119: Proprinter Dot Graphics

    = 44 n2 = integer (total bytes/256) n2 = integer (300/256) = 1 The sequence sent to the printer (shown in BASIC) would look like: CHR$(27);CHR$"K';CHR$(44);CHR$(1);CHR$(v1);... CHR$(v3OO); where v1 through v3OO are image data bytes. Each image data byte represents a vertical column of eight dots. The most significant bit of the byte controls the top dot of a column, and the least significant bit controls the bottom dot of that column.
  • Page 120 Weight Wire Programming Example The following BASIC program will produce the graphic shown above. WIDTH "LPT1:",255 FOR N = 1 TO 4 LPRINT CHR$(27);"K";CHR$(80);CHR$(0); FOR K = 1 TO 5 LPRINT CHR$(0);CHR$(0);CHR$(0);CHR$(112); LPRINT CHR$(136);CHR$(132);CHR$(130); LPRINT CHR$(65);CHR$(49);CHR$(65); LPRINT CHR$(130);CHR$(132);CHR$(136); LPRINT CHR$(112);CHR$(0);CHR$(0); NEXT K LPRINT NEXT N...
  • Page 121 ESC Z n1 n2 v1…vn Quadruple-Density Graphics (Reduced Speed): Sets a density of 240 dpi horizontally and 72 dpi vertically. If horizontally adjacent dots are specified, then the second dot is not printed. Decimal: Hex: BASIC: GEK-00029B 27 90 <n1> <n2> <v1>...<vn> 1B 5A <n1>...
  • Page 122: Chapter 6.Epson Fx286-E Emulation

    CHAPTER 6. EPSON FX286-E EMULATION INTRODUCTION The FX288-e emulation causes the 5000 printers to emulate a 9-wire dot matrix printer. Conventions Used in this Chapter In contrast to ANSI, where an argument is expressed as an ASCII decimal integer, Escape control sequences take binary arguments.
  • Page 123: Print Mode Combinations

    Print Mode Combinations The chart below shows those print modes that can be used together and those that cannot. When an FX-286e command is received to turn on two print modes that are incompatible, one of them will take precedence over the other one. This Is indicated in the chart below by showing the letter of the higher precedence mode at the intersection of the two modes.
  • Page 124: Functional Differences

    ▪ The printer has more than 80 character sets that may be selected from the CCU menu. ▪...
  • Page 125: Additional Escape Sequences

    ADDITIONAL ESCAPE SEQUENCES The following escape sequences are supported by this emulation, but are not part of the FX-286e command set: ESC ( t ESC ( T ESC j n ESC 1 UNSUPPORTED ESCAPE SEQUENCES The following escape sequences from the FX-286e command set are not supported by this emulation and are therefore discarded: ESC EM ESC %...
  • Page 126: Fx-286E Control Codes

    Device Control 1 (11H): Causes printing to resume after the printer has been deselected by a DC3 code. It will not resume printing if printer was halted by pressing the On Line key on the control panel. Device Control 2 (12H): Cancel condensed mode. This ends the current print buffer and causes its contents to print.
  • Page 127 Horizontal Tab (09H): If there are tabs set, this code ends the current print buffer and causes its contents to be printed. The horizontal print position moves right to the next horizontal tab stop position. Any tab that causes the current print position to exceed the right print limit, or right margin, will cause a line wrap to occur (CR,LF).
  • Page 128 When a vertical tab would cause the printer to exceed the current form length (minus any perforation skip distance) the vertical tab will act as a form feed.
  • Page 129: Fx-286E Escape Sequence Directory

    ESC - Set most significant bit (MSB) to zero ESC > Set most significant bit (MSB) to one ESC @ Initialize printer ESC A n Select n/72-inch line spacing ESC B n1...n16 NUL Set vertical tab stops ESC C n...
  • Page 130 Escape Sequence ESC k n Select font style ESC p n Turn proportional mode ON/OFF ESC s n Turn half-speed print mode ON/OFF ESC t n Select a code page ESC w n Turn double-high printing ON/OFF ESC x n Select NLQ or Draft printing ESC ( t 3 0 m1 m2 m3 Assign a code page to one of four variables (0, 1,...
  • Page 131: Fx-286E Escape Sequence Groupings

    FX-286E ESCAPE SEQUENCE GROUPINGS The FX-286e escape sequences have been separated according to functionality. Special areas of interest such as character spacing, print modes. and graphics have separate sections. The sequences are separated as follows: ▪ Margins ▪ Line Spacing ▪...
  • Page 132: Margins

    MARGINS ESC C n Set Page Length in Lines: Sets the forms length to n lines. The value for form length is stored in inches and will not change when line spacing Is changed. This sequence resets the top of form value to the current line position and resets the perforation skip mode.
  • Page 133 ESC | n Set Left Margin: Sets the left margin to n columns in the current cpi. When proportional mode is in effect, the settings are treated as though they were set for pica (10 cpi horizontal). Before the new margin is set, all print data is flushed.
  • Page 134: Line Spacing

    LINE SPACING ESC 0 Select 1/8-inch line spacing (8 lpi): Sets the line spacing to 1/8-inch or 8 lpi. Decimal: Hex: BASIC: ESC 1 Select 7/72-Inch Line Spacing: Sets the line spacing to 7/72 of an inch. Decimal: Hex: BASIC: ESC 2 Select 1/6-Inch Line Spacing (6 lpi): Sets the line spacing to 1/6-inch.
  • Page 135: Character Spacing

    CHARACTER SPACING ESC SI Select Condensed Print Mode: Performs the same function as the SI control code. Decimal: Hex: BASIC: ESC M Select Elite Pitch: This sets the pitch to 12 cpi. Decimal: Hex: BASIC: ESC P Select Pica Pitch: This sets the pitch to 10 cpi. Decimal: Hex: BASIC:...
  • Page 136: Tabs

    TABS ESC B n1…n16 NUL Set Vertical Tab Stops: Sets up to 16 vertical tabs in channel at the indicated line numbers in the current line spacing. The list of tab stops must be terminated by the NUL code. Any line that is not referenced in the list is cleared by this command.
  • Page 137 ESC b c n1 n2…n8 Set Vertical Tabs in Channels 0 Through 7: Sets vertical tab stops in any one of 8 vertical tab channels numbered 0 through 7. This allows you to set up to 8 different groups of vertical tabs. The list of tab stops must be terminated by the NUL code.
  • Page 138: Paper Movement

    PAPER MOVEMENT ESC J n Single Variable Line Feed: This sequence causes the contents of the print buffer to print. The print position is then moved down the page by the distance specified by the parameter in 1/216-inch increments. This sequence does not affect spacing of subsequent line actions. The parameter values allow a vertical movement from 0 to 1.18 inches (255/216).
  • Page 139: Print Position

    Hex: BASIC: ESC U n Turn Unidirectional Printing ON/OFF: Causes the printer to print in only one direction [prints with the shuttle moving from right to left) or in both directions according to the value of parameter n as follows: When turning unidirectional printing off, the command should be the first character in the line to be printed bidirectionally.
  • Page 140 ESC \ n1 n2 Set Relative Print Position: Sets the position where printing will occur next relative to the current print position. Parameters n1 and n2 are in 1/120-inch increments and are expressed as n1 + (n2 x 256). Parameter limits for n1 and n2 are 0-255. Example 1: If you want to move 4 inches to the right, then: 4 x 120 = 480 (total number of 1/120-inch increments 480/256 = 1 with a remainder of 224...
  • Page 141: Print Modes

    PRINT MODES ESC - n Turn Underlining ON/OFF: Enables or disables automatic underlining depending on the parameter n as follows: n=1 enable underline n=0 disable underline The underline will be positioned on dot row 9 of draft characters and row 18 of NLQ characters. Block characters (ASCII 176-223, 244, and 245) will not be underlined.
  • Page 142 ESC S n Select Superscript/Subscript Printing: This sequence ends the current print buffer and causes its contents to be printed. In each mode, the character is shortened to half height and then positioned in the upper (superscripts or lower (subscript) half of the print line. These print modes are mutually exclusively.
  • Page 143 ESC w n Turn Double-High Printing ON/OFF: Turns double-high printing on or off according to the value of parameter n as follows: double-high on double-high off Superscript subscript. and condensed modes are not valid in the double-high mode. Decimal: Hex: BASIC: ESC 4 Select Italic Print Mode: Causes characters to be printed from the...
  • Page 144 ESC ! n Master Print Mode Select: Selects any valid combination of the printing modes listed below. The parameter n is equal to the sum of the decimal values associated with each mode. Note that pica and elite are mutually exclusive and proportional overrides condensed. Also, pica and elite proportional are the same.
  • Page 145: Special Character Printing

    SPECIAL CHARACTER PRINTING ESC I n Printable Code Area Expansion: If n is binary or ASCII one, some ASCII codes between 0-31, and some or all codes between 128-159 inclusive, become printable as characters. If ESC 6 has been sent prior to this command, then all of the characters between 128 and 159 inclusive are printable.
  • Page 146 Decimal Decimal: Hex: BASIC: ESC R n Selects the International Character Set: Selects the international character substitution set for the ASCH codes between 35 and 126 decimal inclusive. The following parameters define which substitution set is selected. Decimal: Hex: BASIC CHR$(27);"R";CHR$(n); Chapter 6.
  • Page 147 ESC t n Select a Code Page: Selects one of four variables that contains a specific code page selection. The four variables are loaded via the ESC ( t and the ESC [T sequences. The four variables are identified as 0,1,2.
  • Page 148 ESC ( T nl n2 Assign a Code Page to Variable 1: Assigns a code page to (n2)(m1) m1...m5 the 1 variable used by the ESC t sequence. Note that this sequence is very similar to the ESC ( t sequence except that variable 1 is the only variable that can accept a code page assignment.
  • Page 149: Miscellaneous Commands

    This command has no effect on graphics or user-defined characters. Decimal: Hex: BASIC: ESC @ Initialize Printer: Flushes all data in the print buffer preceding the command and then initializes the printer. Does not change straps, pitch, or print quality. Decimal: Hex: BASIC:...
  • Page 150: Fx-286E Dot Graphics

    300/256 = 1 with a remainder of 44 n1 = 44 n2 = 1 The sequence sent to the printer (shown in BASIC) would look like: CHR$(27);CHR$"K";CHR$(44);CHR$(1);CHR$(v1);. . . CHR$(v300); where v1 through v3OO are image data bytes. Chapter 6. Epson FX286-E Emulation...
  • Page 151: Image Data Bytes

    Since this emulation supports only 8-pin graphics, 9-pin graphics will not be explained or illustrated here. When 9-pin graphics are sent to this printer. the byte containing the 9th bit is discarded. Each image data byte represents a vertical column of eight dots. The...
  • Page 152: Fx-286E Dot Graphics Control Sequences

    FX-286E DOT GRAPHICS CONTROL SEQUENCES ESC K n1 n2 v1...vn Normal Density Graphics: Sets a density of 60 dpi horizontally and 72 dpi vertically. Decimal: Hex: BASIC: ESC L n1 n2 v1...vn Low-Speed Double-Density Graphics: Sets a density of 120 dpi horizontally and 72 dpi vertically.
  • Page 153 Example: Normally, when the printer receives the ESC L command, the dot density is 120 dpi x 72 dpi vertical. By using this command, you can reassign that density to 60 dpi horizontal x 72 dpi vertical by sending the following: CHR$(27);"?";"I";CHR$(0);...
  • Page 154 After the command is sent, the ESC L command then causes the horizontal density to be 60 dpi instead of 120 dpi. Decimal: Hex: BASIC: ESC ^ m n1 n2 Select 9-Pin Graphics: Turns on the 9-bit graphics mode for n1+(n2 x 256) columns.
  • Page 155: Chapter 7.Dec Lg / Compaq Lg Plus Emulation

    The emulation initially sets a horizontal tab stop every eight characters. Line Feed (0AH): Line terminator. LF will advance the active print position to the next line. If the enabled via the menu, the printer will execute a carriage return prior to executing the LF. Decimal:...
  • Page 156 Decimal: Hex: BASIC: Carriage Return: Line terminator. CR will return the active print position to the left margin. If the enabled by menu selection, the printer will execute a line feed immediately after executing the CR. Decimal: Hex: BASIC: Shift Out: Shift Out locks character set G1 into GL.
  • Page 157 Device Control 3: DC3 applies to the serial interface only. If READY/BUSY by DC1/DC3 has been enabled via the printer configuration menu, the printer will transmit a DC3 when its receive buffer reaches the high trip point. Indeterminate Conditions DC3 is ignored if DC1/DC3 READY/BUSY is not enabled.
  • Page 158: Commands

    ESC [ is used. In the 8-bit environment, either ESC [or the single code 9B may be used. 8-bit control is menu selectable. When the printer recognizes that the escape sequence is invalid or is not implemented, it will discard the characters received up to that point.
  • Page 159 Horizontal Tab Set: A horizontal tab will be set at the current print position. Indeterminate Conditions If the maximum number of stops (32) is already set when a new one is programmed, the new one will be inserted and the rightmost tab stop removed.
  • Page 160 Reverse Index: Moves the active line position up to the same position on the preceding line. The Reverse Index command causes the active position to stop at the top of the margin. Decimal: Hex: BASIC: Single Shift 2: Temporarily moves character set G2 into GL to print one character.
  • Page 161 Operating System Command : OSC introduces an Operating System Command String. OSC control strings are ignored Indeterminate Conditions The start of this control string is recognized but all of the data that follows is ignored until this sequence is either aborted or terminated by an ST sequence.
  • Page 162 Decimal: Hex: BASIC: Reply: This command works only when the printer is connected to the host through the serial interface. Chapter 7. Dec LG/Compaq LG Plus Emulation 155 n1 n2 ... m 9B n1H h2H ... 6D CHR$(155);CHR$(n1);CHR$(n2);...;"m";...
  • Page 163 Reply with Ps = 1: Reply with Ps = 2: Reply with Ps = 0: Decimal: Hex: BASIC: This command works only when the printer is connected to the host through the serial interface. GEK-00029A <DCS>1”{ <ST> 90 31 22 7B 9C <DCS>2”(nnn) <ST>...
  • Page 164 Decimal: Hex: BASIC: DECILG Select Logo Sequence: Prints the selected logo contained in printer memory. Pn defines the ID of the selected logo. Indeterminate Conditions If no logo exists for the ID specified, the sequence is ignored. At the end of a select logo sequence, the cursor remains in the starting position.
  • Page 165 General Command Syntax DCS P1;P2&p record ST P1 specifies the form file format. (must be 0) P1 = 0 LG-series printer logo file format. P1 ≠ 0 Sequence is ignored. P2 defines the replacement action. P2 = 0 Replace the named form.
  • Page 166 The FORM ID string identifies the forms to be deleted. If more than one Form ID is listed, separate them with semicolons. Form Ids with more than ten characters are ignored. If you try to delete a form while it is printing, the printer will ignore the delete command. Decimal:...
  • Page 167 DECIFM Start Forms Sequence: Selects any form loaded in the printer’s RAM. When a form is selected, the printer enters Form Mode and variable ‘fill- in’ data is merged and printed with the form data. General Command Syntax DCS P1 & r FORM NAME ST Indeterminate Conditions P1 is the select form switch character.
  • Page 168 The following table defines the parameter selections. Ps2 is the background select parameter. It is not used by this printer. Ps3 selects the horizontal grid size in decipoints. This parameter, used with the aspect ratio, defines grid size. The following table identifies the horizontal grid size used for each parameter value.
  • Page 169 Logos can be loaded at any time except during another download operation and during a form printing operation. When loaded, they are available until they are replaced, deleted, or the printer power is turned off. The start row color, defined within the Row Record, will switch with each subsequent segment printed.
  • Page 170 Start Bar Coding: Generates bar codes using data that follows the sequence. Bar code parameters are defined by the last DECSBCA sequence. The printer continues to encode bar codes until it receives the Stop Bar Code sequence. General Command Syntax...
  • Page 171 Terminate Forms Sequence: Terminates the printing of a form. General Command Syntax ESC # SP 1” Indeterminate Conditions If no form is selected, this sequence is ignored. Many special conditions might affect the printer output see the note below for further information. Decimal: Hex: BASIC:...
  • Page 172 ▪ When using bar codes as part of the fill-in data, make sure that the control character encoding character of the bar code differs from the switch character in the Select Form sequence. ▪ Bar codes must start and end on the same page of a form. Chapter 7.
  • Page 173 General Command Syntax ESC SP 6 Indeterminate Conditions For all subsequent characters, the printer processes received 2- character sequences as defined in the C0 control chart. If 8-bit C1 control characters are received, it drops the eighth bit and processes the character as a C0 character.
  • Page 174 8-bit control strings. General Command Syntax ESC SP 7 Indeterminate Conditions For all subsequent characters, the printer processes received 2- character sequences as defined in the C0 control chart and 8-bit control characters as defined in the C1 control chart. Decimal:...
  • Page 175 Select Size Unit (SUU) sequence. The width of the font is implicitly defined by the height. The default value for Pn is 100. The GSS sequence remains in effect until the printer receives another GSS sequence or a Graphic Size Modification (GSM) sequence. S7C1T Select 7-Bit C1 Transmission: This sequence causes the printer to use 7-bit encoding for all C1 control characters transmitted.
  • Page 176 S8C1T Select 8-Bit C1 Transmission: This sequence causes the printer to use 8-bit encoding for all C1 control characters transmitted. All C1 characters are then represented as one-character CSI sequences. General Command Syntax ESC SP G Decimal: Hex: BASIC: Spacing Pitch Increment: This sequence will set the spacing between lines (p1) and the horizontal character pitch (p2).
  • Page 177 If the printer receives an SSU while PUM is reset, the selected unit will take effect when PUM is set and will then remain in effect until the printer receives another SSU or a reset sequence.
  • Page 178 Indeterminate Conditions Parameters greater than the physical print width will cause a default to the right margin, unless the "auto-wrap" printer control switch is set. If set, the active print position will move to the left margin. If the parameter is omitted or zero, one decipoints will be assumed.
  • Page 179 Reset to Initial State: Resets the value or state of several operating features. This sequence resets the printer to a set of operating values and conditions similar to the factory default settings (see table below). General Command Syntax ESC c...
  • Page 180 Product Identification: Shows the product identification. When the host sends a device attributes sequence, the printer responds with a sequence that identifies the printer. The response is ESC[?45c. General Command Syntax ESC [ c Decimal: Hex: BASIC: Vertical Position Absolute: The current vertical position will be set to the value specified.
  • Page 181 Tab Clear: This sequence will clear horizontal or vertical tab (or tabs) based on the parameter. If no parameter is present, the default will be to clear the horizontal tab at the current position, if one exists. The valid parameters are as follows: General Command Syntax ESC [ Ps g Indeterminate conditions...
  • Page 182 DECPSM Pitch Select Mode: Controls the Set Horizontal Pitch (DECSHORP) sequence. When Pitch Select Mode is enabled, the current font determines the pitch. When disabled, the printer uses the horizontal pitch selected by the DECSHORP sequence. DECCRNLM Carriage Return / New Line Mode: Defines the response to the Carriage Return character.
  • Page 183 End Load Vertical Format Unit (End Load): This sequence will end the Vertical Format Unit load. General Command Syntax ESC [ < 1 l Decimal: Hex: BASIC: Channel Command: This sequence will control paper motion. P1 consists of three digits nnn. When the first n equals 9, reverse paper motion occurs.
  • Page 184 Horizontal Position Backward: The current horizontal position will be changed, moving the active position in the backward direction by the specified amount. The movement is not permitted to cross the left margin of the current form. General Command Syntax ESC [ Pn j Indeterminate Conditions If the parameter is omitted, or zero, Pn is interpreted as the default value of 1.
  • Page 185 Device Status Requests: The host sends the Device Status Request listed below to request a printer status report. General Command Syntax ESC [ Ps n Decimal: BASIC: Request Sequence <ESC>[0n or <ESC>[5n <ESC>[6n The host sends the Device Status Request listed below to enable or disable unsolicited status reports.
  • Page 186 Pn1 Fault Code Notes This option will work only if the printer’s serial interface is active, and the RTS option on the host is set to true. The units reported by the Cursor Position Report can be character positions, decipoints, or pixels dependent on the settings of PUM and SSU.
  • Page 187 DECSTR Soft Terminal Reset: Resets the value or state of several operating features. After receiving a DECSTR, the printer positions itself at the next Top Of Form then resets the value or state of several operating features. General Command Syntax...
  • Page 188 DECSBCA Select Bar Code Attributes: This sequence will select a bar code type and orientation. General Command Syntax ESC [ P1;P2;P2; ... ;P9 s P1: Bar Code Style The allowed values for P1 are shown in the following table. 0/missing P2: Width for Narrow Bars and Spaces Sets width for the narrow bars and spaces in units specified by SSU.
  • Page 189 If the sequence sets the top margin below the bottom margin, the command is ignored. If the form length is changed, the printer sets the top margin to line 1 and the bottom margin to the form length. GEK-00029A...
  • Page 190 DECSLRM Set Left and Right Margins: Sets the left and right margins. Pn1 sets the left margin and the line home position. Pn2 sets the right margin. If the first parameter is greater than the second parameter, the sequence will be ignored. The unit of measurement can be character cells, decipoints, or pixels.
  • Page 191 DECSHTS Set Horizontal Tab Stops: This sequence will set multiple horizontal tab stops. DECSHTS allows up to 16 tab stops to be set at once. Up to 32 horizontal tabs can be stored. If more than 32 tabs are specified by the escape sequence, the leftmost 32 will be retained.
  • Page 192 DECSHORP Set Horizontal Pitch: This sequence will set the number of characters printed per horizontal inch on a line. In addition to changing character size, this sequence will reset the left and right margins and will retain the current horizontal tab settings. Ps selects the horizontal pitch as defined in the following chart.
  • Page 193 DECSGD Set Graphics Density: DECSGD sets the density for graphics. Psh designates the horizontal dot density and Psv designates the vertical dot density. General Command Syntax ESC [ Psh ; Psv & { Decimal: BASIC: GEK-00029A Horizontal Density No change 50 Dots per Inch 60 Dots per Inch 70 Dots per Inch...
  • Page 194 DECVEC Drawing Vectors: This sequence draws horizontal or vertical lines with length and width. Margins do not affect line drawing so you can draw lines to the physical limits of the page. Use the following Pn parameters to select the length, width, and direction of the line. An incorrect Pn value will cancel the entire sequence.
  • Page 195: Chapter 8.Ppl3 Plus Emulation

    CHAPTER 8. PPL3 PLUS EMULATION INTRODUCTION General Considerations This chapter describes the GENICOM 5000 implementation of the DEC PPL3 printer protocol. The focus is on the following: ▪ Control Codes ▪ Special Characters ▪ Commands ▪ Page Coordinate System ▪...
  • Page 196: 7-Bit Versus 8-Bit Environments

    7-Bit Versus 8-Bit Environments In some environments, only 7 bits are used to encode characters. In these environments, the standard 7-bit character set applies. This set includes only the C0 and GL character sets and the special characters represented by hexadecimal values 20 and 7F. Chapter 8.
  • Page 197 In an 8-bit environment, the low order 7 bits determine whether a character is printable or is a control character. The standard 8-bit code table consists of the entries above as well as the 8-bit right-half table that follows. Standard 8-Bit Code Table (Right Half) GEK-00029B 5000 Series Programmer’s Manual...
  • Page 198: Printable Characters

    Printable Characters The GL characters in a 7-bit environment and GL and GR in an 8-bit environment are interpreted as printable if they are not embedded in a control function. It takes selection of both a font and a graphic character set to specify a character to be printed.
  • Page 199: Control Codes

    Only the control characters listed below are implemented. All others are ignored. Bell (07H): BEL causes the printer to sound a bell or buzzer. Backspace (08H): BS moves the active horizontal position back one Horizontal Advance Increment (HAI). See the section later in this chapter on the Page Coordinate System.
  • Page 200 Horizontal Tab (09H): HT moves the active position to the next horizontal tab stop on the same line. If no tab stop exists to the right of the active horizontal and within the right margin, HT moves to the right margin and sets the Right Margin Flag. If no tabs are set and bar code is not active, HT moves the active horizontal position to the right margin.
  • Page 201: C1 Control Characters

    For those familiar with escape sequence programming, CSI is the ESC [ sequence. Printer Control String (90H): DCS introduces a printer control string. A DCS control character received in an escape sequence, control sequence, or control string aborts that sequence and begins a new printer control string.
  • Page 202 Horizontal Tab Set (88H): HTS sets a horizontal tab stop at the active horizontal position. No change occurs if the active horizontal position is in the tab table. If the table is full, the highest tab stop is lost. When the new tab would be the highest and the table is already full, the new tab is lost.
  • Page 203: Special Character Processing

    SPECIAL CHARACTER PROCESSING As mentioned in the introduction, four characters are considered special characters. The processing for these characters is described below. Hex 20 If a 94-character graphic character set has been mapped into the GL region, 20H always prints as a space character (SP). The justification feature can modify how space characters are treated (See the JFY command).
  • Page 204: Special Character Parsing

    Special Character Parsing Received ESC, CSI, Character DCS Intro Sixel See 1 See 1 See 2 See 2 See 3 Treat as BEL, SI, SO See 4 See 4 Other C0 See 4 Ignore 21H – 7EH See 5 See 5 80H –...
  • Page 205: Escape Sequence / Control Function Syntax

    ESCAPE SEQUENCE / CONTROL FUNCTION SYNTAX Within PPL III, the overall description given to control codes, escape sequences and control strings is "commands." For consistence with the rest of this manual, separateness will be maintained. Escape Sequence Syntax Escape sequences have the following general format: Example: ESC ( B CSI: The ESC control character (1BH) is the escape sequence introducer .
  • Page 206: Parameter Values Within Control Sequences

    If no value is received for a parameter, a value of zero is assumed. The maximum value for a parameter is the greatest value needed by any supported control sequence. In a PPL III compliant printer, the maximum value is the maximum paper size expressed in centipoints (1/7200-inch).
  • Page 207: Command Directory

    Set Vertical Tab Stops (max of 16) DECVEC Draw Vector DECVERP Set Vertical Pitch DECVTS Vertical Tab Set Printer Status Report (Response to host or print manager) Printer Status Request (Request from host or print manager) Graphic Size Modification Graphic Size Selection Horizontal Position Absolute...
  • Page 208 Command SS2, SS3, SO, SI, LS0 to LS3 and LS1R to LS3R Positioning Unit Mode Reset to Initial State Select Coding System (invoke another resident emulation) Select Graphics Rendition (attribute selection) Select Graphics Rendition (font selection) Set Horizontal Spacing Set Pitch Increment Select Size Unit Set Vertical Spacing Tab Clear...
  • Page 209: Command Dictionary

    BASIC: Mnemonic: Decimal: Hex: BASIC: Cursor Position Report: Response by a printer to an application for a Printer Status Request (DSR) cursor position request. It returns the current horizontal and vertical position via the serial connection. Source: Printer Format Mnemonic:...
  • Page 210 Control Representation Mode: This sequence enters or exits a mode in which the printer prints a graphic token for each byte. In this mode, the printer does not act upon control characters. Source: Application Format ESC 3 h ESC 3 l...
  • Page 211 CSI ? Ps1 Ps2 … Psn c Description The printer sends this command when set to the generic response. The printer may be set to use the alias response. See DAR (alias response) in this chapter. Ps1 = 73 Ps2-Psn describe the implemented extensions to the protocol. See the introduction to this chapter for an explanation of extensions.
  • Page 212 CSI ? Ps1 Ps2 Psn c Description The printer sends this sequence when set to the alias response. The printer may be set to use the generic response. See the Programming Supplement for configuration information, and for the alias responses supported by the printer.
  • Page 213 DECAUPSS Assign User Preference Supplemental Set: Assigns a particular character set to the User Preference Supplemental set. This becomes the character set designated by the User Preference character set final when used in a Select Character Set (SCS) sequence. Source: Print manager Format DCS Ps U D ...
  • Page 214 The character set may be downloaded before imaging text. If the character set is still not available when an imaging function is attempted, the printer follows the action taken on a character set fault. If Ps does not have the appropriate value for the D ... D identifier, a character set fault results.
  • Page 215 This command is included for backwards compatibility with older printers only. Conforming software should not use this command. DECCRNLM Carriage Return /New Line Mode: Instructs the printer whether to perform a Line Feed (LF) upon receipt of a Carriage Return (CR). Source: Print manager...
  • Page 216 When DECPSM is set, received DECSHORP values are stored but not processed. When DECPSM becomes reset, the pending DECSHORP (if any) is processed. If there is no concept of natural pitch implemented within the printer, DECPSM is ignored. Side Effects DECPSM can cause a change in pitch such that a pending DECSHORP may be executed.
  • Page 217 The parameter Ps selects the type of font status requested. Notes Data fields are empty as explained in DECFSR. Error Handling If Ps is any value other than 0, 1, or 2, the printer ignores this command. GEK-00029B Destination: Level 3 Sets Proportional Spacing Mode.
  • Page 218 The selective parameters for Ps1 are as follows: Numeric parameters provide line length and width: The printer interprets the line length and width as pixels, decipoints or centipoints. The unit is selected using the Select Size Unit (SSU) command. The Positioning Unit Mode (PUM) setting does not affect the unit selected.
  • Page 219 If the requested length is less than 1 pixel long (after conversion to pixel units), the printer draws a line I pixel long. If the requested line is less than 1 pixel wide, the printer draws a line 1 pixel wide.
  • Page 220 Pn values in any order, it sorts them and places them into the tab table. The printer sets tab stops relative to the page origin and not to the left margin. Changing the left margin does not change the position of tab stops.
  • Page 221 (continued) Error Handling If the printer receives more than 16 tab stops, it sets the first 16 and ignores the rest. If the same tab stop is sent more than once, the printer sets the tab stop once. The printer ignores a sequence sent without tab stop parameters.
  • Page 222 (continued) Error Handling If the Pn parameter is greater than the maximum size for the paper and origin, then the printer sets the form length to the maximum size for the paper and origin Notes to Software Use DECSLPP only at the top of a new page.
  • Page 223 If the active position is greater than the right margin, the printer sets the Right Margin Flag. If Pn2 is to the right of the right printable limit, the printer sets the right margin to the right printable limit. If Pn1 is greater than or equal to Pn2, the printer ignores the command, except for the side effects listed above.
  • Page 224 First Character Flag is not set, text may exceed the top margin. The printer sets the margins relative to the page origin, as set by Origin Placement Mode (DECOPM). Changing the page origin causes the margins to move.
  • Page 225 CSI Pn p Description DECSTR is processed synchronously with the rest of the data stream. The printer sets all the Initial State Values listed in the Programming Supplement to the "DECSTR" conditions. The printer does not run self-test, change the current communication settings, or clear the input buffer.
  • Page 226 Error Handling If the printer receives more than 16 tab stops, it sets the first 16 and ignores the rest. If the same tab stop is sent more than once, the printer sets the tab stop once.
  • Page 227 DECVEC command with too many parameters, the first five are used and others are ignored. If the requested line is less than 1 pixel long, the printer draws a line 1 pixel long. If the requested line is less than 1 pixel wide, the printer draws a line 1 pixel wide.
  • Page 228 11 inches long. The exact vertical pitch produced for parameters 11-16 is printer-dependent. The result is defined as lines/page on the printable area defined for portrait printing on A-sized paper for that printer.
  • Page 229 DECVERP (continued) Error Handling If the vertical pitch is set greater than the page length, the printer images one line/page. If Ps is invalid, the command is ignored. DECVTS Vertical Tab Set: Executes Vertical Tab Set (VTS). Source: Application Format...
  • Page 230 ▪ In response to an error condition (if unsolicited reports are enabled) ▪ In response to a Printer Status Request (DSR) with Ps = 0, 5, ?2, or ?3. Unsolicited status reports are sent upon completion of the current page.
  • Page 231 Graphic Size Modification: Modifies the Current Font Definition height or width, established by the Graphic Size Selection (GSS) command. Source: Application Format CSI Pn1 Pn2 SP B Description Pn1 is a decimal value that specifies the height of the character as a percentage of die height selected by the GSS command.
  • Page 232 Graphic Size Selection: Establishes the height and width for the Current Font Definition. Source: Application Format CSI Pn SP C Description Select Pn as follows: The unit size depends on the Select Size Unit (SSU) command setting. Positioning Unit Mode (PUM) has no affect on GSS. The height of a font implicitly defines the width.
  • Page 233 The First Character Flag has no effect on HPA. Error Handling If Pn is to the left of the Left Margin Position, the printer sets the horizontal position to the Left Margin Position. Sets the right margin flag if the Pn is greater than the right margin.
  • Page 234 The First Character Flag has no effect on HPB. Error Handling If the resulting active position would be to the left of the Left Margin Position, the printer sets the horizontal position to the Left Margin Position. When the Right Margin Flag is set, the command is ignored.
  • Page 235 Error Handling If the resulting position would be to the right of the Right Margin Position, the printer sets the horizontal position equal to the Right Margin Position and sets the Right Margin Flag. When the Right Margin Flag is set, the command is ignored.
  • Page 236 Line Feed/New Line Mode: Instructs the printer to move to the Line Home Position on the next line upon receipt of a Line Feed (LF). Source: Print manager Format CSI 2 0 h CSI 2 0 1 Description If LNM is set and a Line Feed is received, the active position advances to the Line Home Position of the next line.
  • Page 237 VPA, VPB, CUU ▪ VPR, DECSHTS, DECSVTS ▪ DECSLPP, DECSTBM, DECSLRM Reset to Initial State: Resets printer state variables to their initial values. RIS has the same effect as Soft Terminal Reset (DECSTR). Source: Print manager Format ESC c 1/11 6/3 Description See the DECSTR command for details.
  • Page 238 Select Character Set: Designates a graphic character set into G0, G1, G2, or G3. Source: Application Format ESC I1 I2 ... In F Description I1 is an intermediate character selected from the following table. I1 Character 94-Character Sets ( Left parenthesis ) Right parenthesis * Asterisk + Plus sign...
  • Page 239 The following table lists the character set designating characters. These character sets are selected using the identifier as F or I2 F in the SCS sequence. Character Set 94-Character Sets British ASCII DEC Dutch DEC Finnish French DEC French-Canadian German DEC Hebrew Supplemental DEC 7-bit Hebrew ISO Italian...
  • Page 240 (Continued) ESC ( C ESC ) C ESC ( Q ESC ) Q ESC ( E ESC ) E ESC ( H ESC ) H Error Handling Do not invoke a 96-character set into GL. This is considered an error condition.
  • Page 241 The strike-through attribute marks characters for deletion- Legal documents often use the strike-through attribute to indicate words deleted from a previous version of the document. The printer draws a line through the marked characters, in die same manner as underline.
  • Page 242 Superscripts and subscripts cannot be nested. Emphasis Attributes If bold printing is selected, the printer uses a bold (darker) font from the current type family, if available. Otherwise, it uses an algorithm to produce darker characters. See Chapter 4 for more information on font selection and algorithmic transformations.
  • Page 243 Font (DECATFF) or you can use the default assignments. See DECATFF for specific information on assignment. If you do not assign a font using DECATFF, the printer uses the default assignments. See the Programming Supplement for the initial state values of SGR parameters.
  • Page 244 Select the SHS parameter as follows: SHS does not affect character size or horizontal tab stops. The printer saves the HAI value upon receipt of SHS even when DECPSP is set; however, it does not use the value until DECPSP is reset.
  • Page 245 Therefore, it is recommended that software send these sequences before all other commands to prevent confusion. If the printer is set to 7 data bits via a setup feature or the front panel, this sequence is ignored. The printer recognizes either 8 bit or 7-bit equivalent encoding from the host.
  • Page 246 A Set Vertical Pitch (DECVERP) command ▪ Reset or power down If Pn1 = 0 or Pn2 = 0, the printer uses the default vertical and horizontal spacing for the selected font See Sect-ion 3.2.1.2 for more information on font-dependent spacing.
  • Page 247 SSU setting. In other cases SSU is used alone, and PUM has no effect. SSU remains in effect until the printer receives another SSU command or until reset or power down. SSU only affects sequences that follow it in the data stream.
  • Page 248 Set Vertical Spacing: Selects line spacing for monospace printing. Source: Application Format CSI Ps SP L Description Determines the Vertical Advance Increment (VAI). If Proportional Spacing Mode (DECPSP) is set, SVS has no immediate effect. Select the SVS parameter as follows: SVS does not affect character size or vertical tab stops.
  • Page 249 Tab Clear: Clears one or all horizontal or vertical tab stops. Source: Application Format CSI Ps Ps 9 Description Select Ps as follows: If Ps = 0 or Ps = 1, the tab stop is cleared if it coincides exactly with the current active position, regardless of the setting of Positioning Unit Mode (PUM) and regardless of whether the tab stop is on the grid.
  • Page 250 (Continued) Error Handling Be aware that VPA interacts with coordinate system bounds. Vertical Position Backward: Moves the active vertical position up by the specified number of units. The horizontal position does not change. Source: Application Format CSI Pn k Description Select the VPB parameter as follows: Error Handling Note that this command interacts with coordinate system bounds.
  • Page 251: Page Coordinate System

    PAGE COORDINATE SYSTEM Before PPL III commands that involve print positioning can be understood, the PPL III page coordinate system must be understood. This section of the PPL III chapter covers the following subjects: ▪ Coordinate system model ▪ Active position, positioning controls, and advance increments ▪...
  • Page 252: Character Cell Model

    In the point model, the coordinates of a print position are specified in decipoint units (exactly 1/720-inch), centipoint units (exactly 1/7200-inch), or printer-dependent pixels. The point model is more complex than the character cell model. It requires that a particular location in the character box be specified as the origin of the character box.
  • Page 253: Printable Area

    Printable Area The printable area is the area on the paper where the printer can physically print. The origin may be changed using the DECOPM command. If DECOPM is reset, then the origin is at the corner of the printable area. If DECOPM is set, then the origin is near the corner of the physical page.
  • Page 254: Horizontal Advance Increments

    Horizontal Advance Increments Fixed HAI Fixed horizontal motion does not vary from character to character or font to font. The HAI is explicitly defined by control functions. A fixed HAI is selected by any of the following: ▪ Pitch Select Mode (DECPSM) reset, and Set Horizontal Pitch (DECSHORP) with last valid Ps ≠...
  • Page 255 Control Function Type Partial Line Special Can go up to one PLU position above top margin Reverse Relative Can go up to top margin Index Vertical Absolute Maximum vertical movement Position possible is up to bottom Absolute margin. Resulting vertical position more than bottom margin will set the active vertical position to bottom...
  • Page 256: Sixel Graphics

    The actual area imaged for each pixel. The shape and size of a pixel spot is printer-dependent and is only approximately related to grid size. The smallest unit that can be displayed on the printer. Several dots may be required to represent a single pixel as a pixel-spot. Picture Definition The data describing the image, including grid size, pixel aspect ratio, and the encoded raster.
  • Page 257: General Sixel Graphics Operation

    The following are essential elements of the Sixel Graphics print process. ▪ Selection of Sixel Graphics using the Sixel Printer Control String. ▪ Setting of the graphics active position and left margin. ▪...
  • Page 258: Sixel Graphics Commands

    Sixel Graphics Commands DECGCR ($) Graphics Carriage Return: Moves the graphics active horizontal position to the graphics left margin. Format DECGNL (-) Graphics Next Line: Moves the graphics active position to the graphics left margin and down one line of sixels (six actual grid units).
  • Page 259 If Pn1 or Pn2 is greater than 32K, the value 32K is used. If Pn1 or Pn2 is 0 or omitted, the printer sets it to 1. The maximum aspect ratio supported by the printer is 1: 10 or 10: 1 (after reducing the ratio to the lowest possible format).
  • Page 260 Format ! Pn Description The printer repeats the sixel following the DECGRI sequence Pn times. The repeat function supports parameters large enough to cover the largest print line at the smallest grid size, up to 32K. The following examples illustrate repeat sequences:...
  • Page 261: Appendix A. Using The Hex Dump

    A printout of hexadecimal data is useful primarily to application programmers or service representatives as a debugging or troubleshooting tool. With the printer Offline, enable the hex dump mode of printing by pressing: ◄ or ► (left or right) menu browse pushbutton until Set Up is ▪...
  • Page 262: Appendix B. Font Print Samples

    APPENDIX B. FONT PRINT SAMPLES The following samples were printed at 10 characters per inch (CPI) at 6 lines per inch (LPI). HIGH SPEED FONT GOTHIC DRAFT – DATA PROCESSING FONT GOTHIC NEAR LETTER QUALITY CHARACTER GRAPHICS FONT Appendix B. Font Samples GEK-00029B...
  • Page 263 CORRESPONDENCE FONT BETTER QUALITY THAN DRAFT-BETTER SPEED THAN NLQ OCR-A FONT OCR-B FONT COURIER NLQ FONT ITALIC NLQ FONT GEK-00029B 5000 Series Programmer’s Manual...
  • Page 264 HIGH SPEED 2 Appendix B. Font Samples GEK-00029B...
  • Page 265: Appendix C. Postnet Bar Codes

    POSTNET symbols can neither be rotated nor have their size or density modified. Before the printer can print input data as POSTNET bar code symbols, the bar code mode must be both selected and activated. There are two ways for this to be accomplished depending on the setting of ANSI emulation option 1.
  • Page 266 Mnemonic: BASIC: Deactivates bar codes and allows printing of normal text. (POSTNET is still selected but not active. ) Mnemonic: BASIC: When an ESC[0t is received before the Al code, bar codes are both deactivated and deselected. Valid Characters Only certain characters are valid as data within the POSTNET bar code escape sequence.
  • Page 267 Restrictions Printer option strap 13 in General Printer Options, paper position reset to top of bar code after printing, is ignored while using POSTNET. (See Appendix D, General Printer Options, Group 2). If the symbol exceeds the right margin, the symbol is cut off at the margin.
  • Page 268: Appendix D. Description Of Strapping Options

    APPENDIX D. DESCRIPTION OF STRAPPING OPTIONS This appendix contains descriptions for firmware strap settings, which are changed using the Set Up menu. Appendix D. Descriptions of Strapping Options GEK-00029B...
  • Page 269: General Printer Options Definitions

    GENERAL PRINTER OPTIONS DEFINITIONS H Bits Function 01-32 Prime Interrupt 05-06 Reserved. Underline character PI Lead ACK lead Character conversion to space. Busy Busy/Demand per character. Software control of Busy. Busy Busy Busy Data leads Busy is active PI is active...
  • Page 270: Legacy Parallel Software Strap Definitions

    LEGACY PARALLEL SOFTWARE STRAP DEFINITIONS Bits Function 01-32 01-03 Reserved for future use. Prime on Select. No Fault on PO or Deselect. 06-07 Reserved for future use. 8 bit Data. 09-32 Reserved for future use. Bits Function 33-64 33-39 Reserved for future use. Parallel timeout.
  • Page 271: Emulation Option Descriptions

    EMULATION OPTION DESCRIPTIONS Options Meaning if Active Oversize and Bar code RCC mode ESC C control Reserved. Reserved. GENCIC control GENCS2 control Line grid control Dbl strike/shadow control Character Graphics/Postnet 11-32 Reserved. Options Function SI/SO selects Oversize and Bar code Reserved.
  • Page 272: Proprinter Iii Xl

    Options Function RESERVED (Slashed Zero) Line Length Condensed Print Initial Code page Character Set Select default Default Form Length Reserved Reserved NLQ II Reserved Reserved Ignore Esc I Simulate 136 14-32 Reserved Appendix D. Descriptions of Strapping Options Proprinter III XL If Active Copy of ENG_OP_SLASH_ZERO from GenPtrOpts Strap 3).
  • Page 273: Epson Fx286E

    Options Function Condensed Print. Italics font control Default Print Quality Default Perf Skip Ignore Esc I 136 Col. 07-32 Reserved GEK-00029B EPSON FX286e If Active If Inactive Enabled Disabled. Codes 128-255 are Code Codes 128-255 are Italics. Page. Default print quality is Default print quality is draft.
  • Page 274: Dec Ppl3

    Options Function Overstrike ACK selects LPI for 1 line VFU load Defines codes 80 to 9F Backspace 06-32 Reserved. Options Function Edit Line (Carriage Return) Restrict LPI 03-12 Reserved. Alternate Font Selection 13-16 Defaults 17-32 Reserved Options Function Unsolicited Reporting Unsolicited status report size User Preference 04-32...
  • Page 275: Appendix E. Dsc Code Charts

    APPENDIX E. DSC CODE CHARTS GEK-00029B 5000 Series Programmer’s Manual...
  • Page 276 Appendix E. DSC Code Charts GEK-00029B...
  • Page 277 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 278 Appendix E. DSC Code Charts GEK-00029B...
  • Page 279 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 280 Appendix E. DSC Code Charts GEK-00029B...
  • Page 281 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 282 Appendix E. DSC Code Charts GEK-00029B...
  • Page 283 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 284 Appendix E. DSC Code Charts GEK-00029B...
  • Page 285 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 286 Appendix E. DSC Code Charts GEK-00029B...
  • Page 287 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 288 Appendix E. DSC Code Charts GEK-00029B...
  • Page 289 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 290 Appendix E. DSC Code Charts GEK-00029B...
  • Page 291 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 292 Appendix E. DSC Code Charts GEK-00029B...
  • Page 293 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 294 Appendix E. DSC Code Charts GEK-00029B...
  • Page 295 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 296 Appendix E. DSC Code Charts GEK-00029B...
  • Page 297 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 298 Appendix E. DSC Code Charts GEK-00029B...
  • Page 299 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 300 Appendix E. DSC Code Charts GEK-00029B...
  • Page 301 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 302 Appendix E. DSC Code Charts GEK-00029B...
  • Page 303 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 304 Appendix E. DSC Code Charts GEK-00029B...
  • Page 305 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 306 Appendix E. DSC Code Charts GEK-00029B...
  • Page 307 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 308 Appendix E. DSC Code Charts GEK-00029B...
  • Page 309 GEK-00029B 5000 Series Programmer’s Manual...
  • Page 310: Index

    Line Feed <LF>...15 Margins and Tabs...28 Operating System Command <OSC> ...19 Oversize Character Font...60 Entering and Exiting ...60 Printer Control Strap...64 Size ...61 Paper and print position movements ...25 Reset to Initial State <RIS>...19 Shift In <SI> ...15 Shift Out <SO> ...15 String Terminator <ST>...
  • Page 311 Unsupported escape sequences...125 Epson FX286-e ...122 Epson FX286e Emulation Options Table ...273 Escape Sequences definition ...8 General Printer Options Definitions ...269 I/F Hardware Strap Table ...269 I/F Software Straps Table ...270 Legacy Parallel Software Strap Definitions...270 LG/LG Plus ...155 Commands <HT>...
  • Page 312 New Sheet <DECNS> ...216 Pitch Select Mode <DECPSM>...216 Positioning Unit Mode <PUM>...237 Printer attributes <DA> ...210 Printer attributes report <DAR> ...211 Proportional Spacing Mode <DECPSP> ...217 Request Font Status <DECRFS> ...217 Reset to Initial State...237 Secondary printer attributes <DA2> ...212 Select Character Set <SCS>...238...
  • Page 313 Vertical Position Relative <VPR>... 250 Vertical Tab Set <DECVTS> ... 229 Control characters <CSI> Control sequence introducer ... 201 <DCS> Printer control string... 201 <EPA> End of protected area... 201 <ESA> End of selected area ... 201 <HTS> Horizontal tab set... 202 <IND>...
  • Page 314 Control Codes <BEL> Bell ... 108 <BS> Backspace ... 108 <CAN>Cancel... 108 <CR> Carriage return... 109 <DC1> Device Control 1 ... 109 <DC2> Device Control 2 ... 109 <DC3> Device Control 3 ... 109 <DC4> Device Control 4 ... 109 <ESC>...

This manual is also suitable for:

5000 series

Table of Contents