advertisement
Margins and Tabs
ESC H
ESC J
ESC [ p1 g
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.
Decimal:
Hex:
BASIC:
27 72
1B 48
CHR$(27);"H";
VTS (Vertical Tab Set): Sets a tab at the current print position and updates any existing vertical tab table. A total of 12 tabs can be set.
If this number is exceeded, the 12 tabs closest to the top of the page will be retained.
Decimal:
Hex:
BASIC:
27 74
1B 4A
CHR$(27);"J";
TBC (Tab Clear): Clears horizontal or vertical tab stops based on the p1 value as follows: p1 = 0 p1 = 1 p1 = 3 p1 = 4
Clears horizontal tab at current print position.
Clears vertical tab at current print position.
Clears all horizontal tabs.
Clears all vertical tabs.
More than one parameter can be used.
Example: To clear all horizontal and vertical tabs, send:
<ESC> [ 3 ; 4 g
Decimal:
Hex:
BASIC:
27 91 <p1> 103
1B 5B <p1> 67
CHR$(27);"[<p1>;"g";
ESC [ p1; p2 ; p3 r GENFD (Forms Definition): Establishes the form length <p1>, the top margin <p2>, and the bottom margin <p3> in decipoints. Default parameters are for an 11-inch (7,920 decipoints) long form with a top and bottom margin of zero.
p1 - maximum allowable length is 24 inches (17,280 decipoints).
p2 - top of page to first print line p3 – non-printable area at bottom of form
Decimal:
Hex:
BASIC:
27 91 <p1> <p2> <p3> r
1B 5B <p1> <p2> <p3>
CHR$(27);”[<p1>;<p2>;<p3>r";
Chapter 2. ANSI Emulation
28
GEK-00029B
ESC [ p1; p2 s
Sequence Explanation
ESC [ r
ESC [ 8280 r
Default values of 11-inch form length, zero top and bottom margins.
11.5-inch form length, default top and bottom margins of zero
ESC [ ; 720 r Default length of 11 inches, top margin of 1-inch.
Default bottom margin of zero.
ESC [ ; ; 720 r Default length of 11 inches, default top margin of zero, and a 1-inch bottom margin.
ESC [ 7920 ; 360 ; 360 r 11-inch form length, ½-inch top and bottom margins
Decimal:
Hex:
BASIC:
27 91 <p1> <p2> <p3> 114
1B 5B <p1> <p2> <p3> 72
CHR$(27);"[<p1><p2><p3>r";
GENSLR (Set Left/Right Margins): The p parameters are distances from the left edge of the printable area of the paper. Parameter <p1> sets the left margin and <p2> sets the right margin. An omitted parameter clears that margin. Invalid parameters set the left margin to zero (column 1) and the right margin to 9,504 decipoints (column
136 at 10 cpi for the 13.6-inch machines).
A new left margin takes effect following any line terminator that normally calls for a print position set to the left. A new right margin takes effect when the print position reaches the new margin.
Margin settings stored as decipoint values are enforced to the nearest
1/120 of an inch. Character printing operates at 1/120 of an inch.
Decimal:
Hex:
BASIC:
27 91 <p1> <p2> 115
1B 5B <p1> <p2> 73
CHR$(27);"[<p1><p2>s";
NOTE
There is a physical left margin of .6 to 1.6 inches from the edge of the paper to the first printable column. This distance is adjustable by sliding all four tractors sideways. The margins set with this sequence begin at the first physical print position, not at the edge of the paper.
GEK-00029B
29
5000 Series Programmer’s Manual
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. are not usable. Moving the margins will make them active.
Example: To place tabs at columns 10, 20, and 40 at 10 cpi, send
ESC [ 10 ; 40 ; 20 u (tabs can be specified in any order).
Decimal:
Hex:
BASIC:
27 91 <p1> 59 <p2> 59 … <p22> 59 117
1B 5B <p1> 3B <p2> 3B ... 3B <p22> 3B 75
CHR$(27);"[<p1>;<p2>; ... ;<p22>;u"
ESC [ p1 ; …; p12 ; v GENVTS (Multiple Vertical Tab Set): Sets up to 12 vertical tabs.
The p parameters are set in decipoints. If more than 12 tabs are set, the 12 tabs nearest the top of form will be retained. If a tab is set in the top margin area, it will be stored but will not be active until the margin is moved. If a tab is set beyond the bottom margin, attempting to move to that tab will advance the paper to the next top of form.
Decimal:
Hex:
BASIC:
27 91 <p1> 59 <p2> 59 … <p12> 59 118
1B 5B <p1> 3B <p2> 3B … <p12> 3B 76
CHR$(27);"[<p1>;<p2>;...;<p12>;v";
Chapter 2. ANSI Emulation
30
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