advertisement
![Escape Sequences. Genicom P600, 5000 Series, GEK 00031B, GEK 00031B | Manualzz Escape Sequences. Genicom P600, 5000 Series, GEK 00031B, GEK 00031B | Manualzz](http://s1.manualzz.com/store/data/060440337_1-a640461aff3125ee63f89eb2c9daf7a4-360x466.png)
ESCAPE SEQUENCES
ESC - n
ESC _ n
ESC \ n1 n2
ESC ^
ESC :
Underscore: When underscoring is enabled, all printable characters and all space characters. including leading space characters. are underlined. Leading white space preceding a horizontal tab stop is not underlined. Not recommended for use with line draw characters.
n = 1, underscoring is enabled n = 0, underscoring is disabled
Decimal:
Hex:
BASIC:
27 45 <n>
1B 2D <n>
CHR$(27);CHR$(45);CHR$(<n>);
Overscore: When overscoring is enabled. all printable characters and all space characters, including leading space characters, are overscored. Leading white space preceding a horizontal tab stop is not overscored. Not recommended for use with line draw characters.
n – 1 enabled n – 0 disabled
Decimal:
Hex:
BASIC:
27 95 <n>
1B 5F <n>
CHR$(27);"_<n>";
Print Continuously from All Character Chart.
Allows printing all the 256 characters and symbols (even those normally used as control codes) in the all character chart. The total number of characters to be printed from the all character chart is specified by n1 and n2 according to the formula: n1 + (256 * n2).
Example: To print 400 characters from the chart send
CHR$(27);"\";CHR$(144);CHR$(1);
Decimal:
Hex:
BASIC:
27 92 <n1> <n2>
1B 5C <n1> <n2>
CHR$(27);"\<n1><n2>";
Print Single Character from All Character Chart: The next character received is printed from the all character chart.
Decimal:
Hex:
BASIC:
27 94
1B 5E
CHR$(27);"^";
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:
27 58
1B 3A
CHR$(27);":";
Chapter 5. Proprinter Emulation
112
GEK-00029B
ESC [T n1 n2 ml
m2 m3 m4 m5
ESC 0
ESC 1
ESC 2
Select Code Page: Selects international character sets. The 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.
m4 - See chart below.
m3 m4 International Character Set
7E 21 DEC Multinational
7F 21 Roman 8
8F 21 ISO 8859-1 Latin Alphabet #1
93 21 ISO 8859-5 Latin/Cyrillic
B5 01 IBM PC Set 2 USA (Microsoft Code Page 437)
52 03 IBM PC Multilingual Set 2 (MS Code Page 850)
54 03 Microsoft Code Page 852 (Slavic)
57 03 Microsoft Code Page 855 (Cyrillic)
5F 03 Microsoft Code Page 863 (French Canadian)
(The examples below show the m3 and m4 values for selecting Roman
8.)
Decimal:
Hex:
BASIC:
27 91 84 5 0 0 0 127 33 0
1B 5B 54 05 00 00 00 7F 21 00
CHR$(27);"rr;CHR$(5);CHR$(O);CHRS(O);CHR$(O);
CHR$(127);CHR$(33);CHR$(0);
Set 8 Lines per Inch: Sets the line spacing to 1/8 of an inch (8 lpi).
Decimal:
Hex:
BASIC:
27 48
1B 30
CHR$(27);"0";
Set 7/72 Lines per Inch Spacing: Sets the line spacing to 7/72 of an inch (10. 3 lpi)
Decimal:
Hex:
BASIC:
27 49
1B 31
CHR$(27);"l";
Start Text Line Spacing: Activates the line spacing stored by the last ESC A, or sets 6 lpi if no ESC A command has been received.
Decimal:
Hex:
BASIC:
27 50
1B 32
CHR$(27):"2";
GEK-00029B
113
5000 Series Programmer’s Manual
ESC 3 n
ESC 4
ESC 5 n
ESC 6
ESC 7
ESC A n
Set Graphics Line Spacing: Sets the line spacing to n units of 1/216 inch. This allows for line spacing in .0046 inch increments to 1.18
inches (255/216). The value of n/216 is rounded up to the next
1/144 inch.
n = 1 through 255
Example: ESC 3 27 Sets the line spacing to 1/8 inch, or
27/216.
Decimal:
Hex:
BASIC:
27 51 <n>
1B 33 <n>
CHR$(27);"3<n>";
Set Top of Form: Sets current paper position as top of form.
Decimal:
Hex:
BASIC:
27 52
1B 34
CHR$(27);"4";
Automatic Line Feed: Printer automatically does a line feed after receiving a carriage return.
n = 0, disabled n = 1, enabled
Decimal:
Hex:
BASIC:
27 53 <n>
1B 35 <n>
CHR$(27);"5<n>";
Select Character Set 2: All characters (printable and control codes) received after this command are selected from character set 2. A reset, initialization, or ESC 7 resets to character set 1.
Decimal:
Hex:
BASIC:
27 54
1B 36
CHR$(27);"6";
Select Character Set 1: All characters (printable and control codes) received after this command are selected from character set 1. Also, see ESC 6 above.
Decimal:
Hex:
BASIC:
27 55
1B 37
CHR$(27):"7";
Stores n/72-inch Line Spacing: The text line spacing is stored, although not set for use, to the value n in units of 1/72 inch. An ESC
2 must be sent to start this line spacing. Valid parameter values are
1 through 85.
Decimal:
Hex:
BASIC:
27 65 <n>
1B 41 <n>
CHR$(27);"A<n>";
Chapter 5. Proprinter Emulation
114
GEK-00029B
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. This command resets any previously set tab stops.
Variable n represents values 1 through 254.
ESC C n
ESC C 0 n
Decimal:
Hex:
BASIC:
27 66 <nl>...<n64> 0
1B 42 <n1>...<n64> 00
CHR$(27);"B<nl>...<n64>";CHR$(0);
Set Form Length in Lines: The value of n sets the form length in lines using the current line spacing setting. The maximum length is
22 inches (176 lines for 8 lpi, etc.). Top of form is set to the current form position. Once set, changing the line spacing has no effect on form length.
Decimal:
Hex:
BASIC:
27 67 <n>
1B 43 <n>
CHR$(27);"C<n>";
Set Form Length in Inches: The value of n sets the form length from
1 to 22 inches. Top of form is set at the current vertical position.
Once set, changing the line spacing has no effect on form length.
ESC D n1...n28 0
ESC E
ESC F
Decimal:
Hex:
BASIC:
27 67 0 <n>
1B 43 00 <n>
CHR$(27);"C";CHR$(0);"<n>";
Set Horizontal Tab Stops: Sets horizontal tab stops at the positions specified "n" expressed in columns at the current cpi. Once set, changing the cpi has no effect on the tab positions. ESC D NUL clears all tab stops. Tab stops must be specified in ascending order. If more than 28 parameters are specified, the command is terminated.
Decimal:
Hex:
BASIC:
27 68 <n1>...<n28> 0
1B 44 <n1>...<n28> 0
CHR$(27);"D<n1>…<n28>";CHR$(0);
Start Emphasized Print
Decimal:
Hex:
BASIC:
27 69
1B 45
CHR$(27):"E";
Stop Emphasized Print
ESC G
Decimal:
Hex:
BASIC:
27 70
1B 46
CHR$(27);"F"';
Start Double-Strike Print
Decimal:
Hex:
BASIC:
27 71
1B 47
CHR$(27);"G";
GEK-00029B
115
5000 Series Programmer’s Manual
ESC H
ESC I n
ESC J n
ESC N n
ESC 0
Stop Double-Strike Print
Decimal:
Hex:
BASIC:
27 72
1B 48
CHR$(27);"H";
Select Print Mode n = 0 selects Draft Resident, USA n = 1 selects Draft 12 CPI (Fast) Resident, USA n = 2 selects NLQ Resident, USA n = 3 selects NLQ H (Courier) Resident, USA n = 4 selects Draft Download. Multi/USA n = 5 selects Draft 12 CPI (Fast) Download, Multi/USA n = 6 selects NLQ Download, Multi/USA n = 7 selects NLQ H (Courier) Download, USA n = 8 selects Draft Download. USA n = 9 selects Draft 12 CPI (Fast) Download, USA n = 10 selects NLQ Download, USA n = 11 selects Alternate NLQ II Resident (Italic). USA n = 12 selects Draft Download, Multi/USA n = 13 selects 12 CPI Fast) Download, Multi/USA n = 14 selects NLQ Download, Multi/USA n = 15 selects Alternate NLQ 11 (Italic), Download, USA
Decimal:
Hex:
BASIC:
27 73 <n>
1B 49 <n>
CHR$(27);"I<n>";
Variable Line Feed: This command advances the paper a distance specified by the value of n in units of 1/216 inch. The value "n" can be a value from 0 to 255. The variable line feed is not stored, so there is no effect on line spacing values.
Decimal:
Hex:
BASIC:
27 74 <n>
1B 4A <n>
CHR$(27);"J<n>";
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. The skip perforation distance does not change when the line spacing is changed. Also, in this chapter, see ESC 0.
Decimal:
Hex:
BASIC:
27 78 <n>
1B 4E <n>
CHR$(27);"N<n>";
Cancel Skip Perforation: Resets the skip perforation value to zero lines.
Decimal:
Hex:
BASIC:
27 79
1B 4F
CHR$(27);"O";
Chapter 5. Proprinter Emulation
116
GEK-00029B
ESC P n
ESC Q n
ESC R
ESC S n
ESC T
ESC U n
Select Proportional Spacing
If n = odd number, proportional print enabled.
If n = even number, proportional print disabled.
Decimal:
Hex:
BASIC:
27 80 <n>
1B 50
CHR$(27);"P<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.
Decimal:
Hex:
BASIC:
27 81 22
1B 51 16
CHR$(27);"Q";CHR$(22);
Set All Tabs to Power On Settings: Sets horizontal tabs every eight positions starting at column 9 and clears all vertical tabs.
Decimal:
Hex:
BASIC:
27 82
1B 52
CHR$(27);"R";
Set Superscript/Subscript On: If n is 1, then subscript (1/2 inch below the line) is selected; if it is 0, then superscript (1/2 inch above the line) is selected. Since these two attributes are mutually exclusive, an ESC S command overrides any previous ESC S setting.
Also, see ESC T below.
n = 1 subscript n = 0 superscript
Decimal:
Hex:
BASIC:
27 83 <n>
1B 53 <n>
CHR$(27);"S<n>";
Cancel Superscript/Subscript: Returns to previous baseline position. Also. in this chapter see ESC S.
Decimal:
Hex:
BASIC:
27 89
1B 54
CHR$(27);"T";
Set Unidirectional Printing n = 0 unidirectional printing is turned off n = 1 unidirectional printing is turned on
Decimal:
Hex:
BASIC:
27 85 <n>
1B 55 <n>
CHR$(27);"U<n>";
GEK-00029B
117
5000 Series Programmer’s Manual
ESC W n
ESC X n m
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:
27 87 <n>
1B 57 <n>
CHR$(27);"W<n>";
Set Horizontal Margins: This sequence sets the left (n) and right (m) margins. The interval is based on the current cpi setting. Variable (m) must be greater than W. and the sequence must include both variables.
Decimal:
Hex:
BASIC:
27 88 <n> <m>
1B 5B <n> <m>
CHR$(27);"X<n><m>";
Chapter 5. Proprinter Emulation
118
GEK-00029B
advertisement
Related manuals
advertisement
Table of contents
- 8 Chapter 1.Introduction
- 8 overview of printer emulation
- 8 Control Codes
- 8 Escape Sequences
- 9 CSI and OSC
- 10 Line Terminators
- 10 Decipoints
- 10 SCS Smart Graphics Capabilities
- 11 Chapter 2. ANSI Emulation
- 11 Control Code and Escape Sequence Activity Levels
- 11 Notes
- 12 Control Code Activity Levels
- 13 Escape Sequence Activity Levels
- 14 Control Code Definitions
- 16 Escape Sequence Directory
- 18 ANSI ESCAPE SEQUENCE CATEGORIES
- 19 Housekeeping Sequences
- 22 Character Set Selection
- 23 Character Map Load
- 25 Paper and Print Position Movements
- 28 Margins and Tabs
- 31 Font Handling and Enhancements
- 36 Graphics
- 36 Six-Bit Graphics
- 36 Dot Patterns and Densities
- 38 Horizontal Format
- 38 Vertical Format
- 39 Eight-Bit Graphics
- 39 Horizontal Format
- 39 Vertical Format
- 40 Other Graphics Considerations
- 40 Graphics Sequences
- 42 Electronic Vertical Format Unit - EVFU
- 42 Downloading the EVFU
- 42 Loading the Table
- 43 BASIC Programming Example for EVFU Table Loading
- 44 EVFU Default
- 44 Skip to Channel Command
- 45 BASIC Programming Example for Skip to Channel
- 46 Bar codes
- 46 Entering and Exiting Bar Codes
- 46 ANSI 4800/4410 Strap 1 OUT
- 46 ANSI 4800/4410 Strap 1 IN
- 47 Setting Bar Code Parameters
- 48 Bar Code Dimensions
- 50 Default Bar Code Characteristics
- 50 Human-Readable Line (HRL)
- 50 Font Styles and Enhancements
- 50 Spacing and Bar Code Editing Aids
- 51 Bar Code Readability Statement
- 52 Bar Code Program Examples
- 52 Test Program
- 52 Error Symbol
- 53 Changing Parameters
- 53 Commas and Spaces as Delimiters
- 54 Horizontal Spacing
- 55 Printer Option Strap 11, Group 2 IN
- 55 EXAMPLE 1: Strap 11 OUT
- 55 EXAMPLE 2: Strap 11 IN
- 57 Vertical Bar Codes
- 57 COMMAS: With HRL
- 58 COMMAS: Without HRL
- 58 SPACES: With HRL
- 58 SPACES: Without HRL
- 59 Horizontal Tabs
- 60 OVERSIZE CHARACTER FONT
- 60 Entering and Exiting Oversize
- 61 Selecting Size
- 61 Size Parameters for Rotation
- 61 Spacing Between Characters
- 62 Sample Programs
- 62 Example
- 64 Printer Control Strap GenPrtOpts/Group 2/Strap
- 65 Example 4: GenPtrOpts | Group 2 Strap 13 IN
- 65 Example 5: GenPtrOpts | Group 2 Strap 13 OUT
- 66 Chapter 3.Printronix P300/P600 Emulation
- 66 Introduction
- 66 Control Codes
- 69 Printronix Graphics
- 69 Dot Patterns and Densities
- 70 Dot Patterns
- 71 Normal-Density Graphics
- 71 High-Density Graphics
- 71 P300/600 8-Bit Horizontal Graphics
- 72 P300/600 Electronic Vertical Format Unit
- 72 Using the EVFU
- 72 Points to Remember
- 73 PI Lead Codes – Use with Serial Interface
- 73 Codes Not Using the PI Lead
- 74 Example EVFU Loading Program
- 75 Example Form Printout
- 75 Sample Program to Print Form
- 76 Chapter 4.Printronix P-Series Emulation
- 76 Special Function Control Character (SFCC)
- 76 Command Line
- 77 Set and Reset Codes
- 78 Command Index
- 80 Control Codes
- 82 character sets, FONT handling and enhancements
- 92 Housekeeping Commands
- 98 Plot Mode Graphics Operational Description
- 98 Plot Density
- 98 Normal Density Plot Mode
- 98 Double Density Plot Mode
- 98 Plot Mode Format
- 99 Plot Data Line Format
- 99 Normal Density Plot Mode Format
- 100 Double Density Plot Mode Format
- 101 Plot Mode Graphic Character Chart
- 101 Exiting Plot Mode Graphics
- 102 Plot Mode Graphics density commands
- 104 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 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)
- 105 Command Line Debug
- 106 Font Styles, Pitches, and Character Sets
- 106 Font Styles
- 106 Font Pitches
- 106 Character Sets
- 106 Extended Character Sets
- 106 Form Length
- 107 Plot Mode Graphic Densities
- 107 Enhancements
- 107 High Vertical Density Plot Mode Graphics
- 108 Chapter 5.Proprinter Emulation
- 108 Introduction
- 108 Differences from proprinter
- 108 Proprinter Control Codes
- 111 Command Directory
- 112 Escape Sequences
- 119 Proprinter Dot Graphics
- 122 Chapter 6.Epson FX286-e Emulation
- 122 Introduction
- 122 Conventions Used in this Chapter
- 123 Print Mode Combinations
- 124 Functional Differences
- 125 Additional Escape Sequences
- 125 Unsupported Escape Sequences
- 126 FX-286e Control Codes
- 129 FX-286e Escape Sequence DIRECTORY
- 131 FX-286e Escape Sequence GROUPINGS
- 132 Margins
- 134 Line Spacing
- 135 Character Spacing
- 138 Paper Movement
- 139 Print Position
- 141 Print Modes
- 145 Special Character Printing
- 149 Miscellaneous Commands
- 150 FX-286e Dot Graphics
- 150 Specifying Graphics Line Length
- 151 Image Data Bytes
- 151 Graphics Programming Example
- 151 Printed Results of Sample Program
- 152 FX-286e Dot Graphics Control Sequences
- 155 Chapter 7.DEC LG / Compaq LG Plus Emulation
- 155 Control Code Definitions
- 158 Commands
- 195 Chapter 8.PPL3 Plus Emulation
- 195 INTRODUCTION
- 195 General Considerations
- 195 Coded Characters
- 196 7-Bit Versus 8-Bit Environments
- 198 Printable Characters
- 199 CONTROL CODES
- 199 Introduction
- 199 C0 Control Characters
- 201 C1 Control Characters
- 203 SPECIAL CHARACTER PROCESSING
- 203 Hex 7F
- 203 Hex A
- 203 Hex FF
- 204 Special Character Parsing
- 205 ESCAPE SEQUENCE / control function syntax
- 205 Escape Sequence Syntax
- 205 Control Sequence Syntax
- 206 Parameter Values Within Control Sequences
- 207 COMMAND DIRECTORY
- 209 COMMAND DICTIONARY
- 251 PAGE COORDINATE SYSTEM
- 251 Coordinate System Models
- 252 Character Cell Model
- 252 Point Model
- 252 Point Model Has Precedence
- 252 Origin and Extent
- 252 Origin
- 253 Printable Area
- 253 Positioning and Movement
- 254 Horizontal Advance Increments
- 254 Fixed HAI
- 256 SIXEL GRAPHICS
- 256 Terminology and Concepts
- 257 General Sixel Graphics Operation
- 258 Sixel Graphics Commands
- 261 Appendix A. Using the Hex Dump
- 262 Appendix B. Font Print Samples
- 265 Appendix C. Postnet Bar codes
- 265 Entering and Exiting POSTNET Bar Codes
- 265 Selecting POSTNET Style Bar Codes
- 268 Appendix D. Description of Strapping Options
- 269 General Printer Options Definitions
- 270 Legacy Parallel Software Strap Definitions
- 271 Emulation Option descriptions
- 275 Appendix E. DSC Code Charts
- 310 Index