Printronix ANSI Printer manual Forms Length, Top Margin, Bottom Margin, Ascii Code ESC p1p2p3 r

Page 34

Chapter 2 Configuring The ANSI Emulation

Forms Length, Top Margin, Bottom Margin

ASCII Code ESC [p1;p2;p3 r

Hex Code 1B 5B p1 3B p2 3B p3 72

Dec Code 27 91 p1 59 p2 59 p3 114

Expression CHR$(27); “[p1;p2;p3r”;

Purpose Defines the form.

p1 = Form length (in decipoints). Maximum allowable length is 22 inches (15,840 decipoints)

p2 = Top margin from top of page. Top of page to first print line.

p3 = Bottom margin from end of page. The last print line to bottom of page.

The default parameters are for a 12 inch long form with a top margin of zero and a bottom margin of zero.

Discussion The printer keeps track of these vertical positions to the nearest half point (5 decipoints).

 

1 decipoint = 1/720 inch

 

1 point = 10 decipoints (10/720 inch)

 

1/2 point = 5 decipoints (5/720 inch)

Examples

 

ESC [r

default values of 12 inch form length, zero top and bottom

 

margins

ESC [8280r 11.5 inch form length, default top and bottom margins of zero

ESC [;720r default length of 12 inches, top margin of one inch, default bottom margin of zero

ESC [;;720r default length of 12 inches, default top margin of zero and a one- inch bottom margin

ESC [7920;360;360r

11 inch form length, 1/2 inch top and bottom margins

34

Image 34
Contents Programmer’s Reference Manual Page Ansi Printers Trademark Acknowledgements Trademark AcknowledgementsCopyright  1998, 2002 Printronix, Inc Table of Contents Table of Contents Vertical Page FormattingConversion Tables Glossary Table of Contents Related Product Information Software FeaturesAbout This Manual AudienceInstalling Printer Emulations Installing Printer EmulationsDownloading Software Through the Serial or Parallel Port Downloading Software Through the Serial or Parallel PortDebug Navigating to the Appropriate Emulation File on the CD This is the file you will download into the printerCd \downloadEnter Downloading Software Through Network Interface Card NIC Downloading Software Through the Network Interface Card NIC This is the file you will download into the NICDownloading Optional Font Files to Flash Memory Put filename.prgEnterDownloading Optional Font Files to Flash Memory Copy /b filename.dwn LPT2EnterCopy /b filename1.dwn+filename2.dwn+...LPT1Enter Flash Memory Message Guide Flash Memory Message GuideMessage Explanation Required Action Error Short AT Error Program notError Security PAL Error Writing toFlash Memory Message Guide Explanation Required Action Installing Printer Emulations Ansi Emulation Default Settings OverviewLPI CPICR = CR CPI Configuring The Ansi Emulation Configuring The Ansi EmulationControl Codes DC3 Device Control-3 13H Control CodesFormat For Control Code Descriptions Escape Control Codes Overview Format For Control Code DescriptionsVertical Formatting Commands Graphics CommandsControl Codes Index Ascii Code ESC p1 Hex Code 1B 5B p1 Dec Code 27 91 p1 Character Sets, InternationalCharacter Sets, International Ansi International Character SetsISO Italian Expanded Mode Expanded ModeAscii Code ESC p1p2 SP B Forms Length, Top Margin, Bottom Margin Ascii Code ESC p1p2p3 rAscii Code ESC p1p2...pn m Graphic RenditionGraphic Rendition Character Types and Enhancements ParameterLine Spacing Margins, Left and Right Margins, Left and RightAscii Code ESC p1p2 s Private Mode, Enable Private Mode, DisableProportional Print Mode Hardcoded Reset Values ResettingResetting Ascii Code ESC c Hex Code Dec CodeSuperscript SubscriptTab, Clear Tab Set, Multiple Horizontal Vertical Position Absolute Terminate Loading of DataVertical Position Relative Dot Patterns And Densities GraphicsDot Patterns And Densities 0X0X0X0 LSB LSB Msbx MSBGraphics Ascii Character Dot Patterns Hex Dots 654321Horizontal Format Ascii Character Dot Patterns Hex Dots Horizontal FormatVertical Format Horizontal Format Byte → Byte n Row ↓Dot Graphics Other Graphics ConsiderationsRepeat Graphics Character Select Graphics Mode Bar Codes Setting Bar Code ParametersDefault Bar Code Parameters Entering And Exiting Bar CodesIf p1 = Style Setting Bar Code ParametersP1 Values UPC aBar Codes P1 Values PostnetP9 Values Rotation/FontHuman Readable Line HRL Spacing Between Bar CodesBar Code Readers Bar Code ReadersTest Program Vertical Bar CodesVertical Bar Codes Entering And Exiting Oversize Oversize Character Font OptionOversize Character Font Option Selecting Size Selecting SizeOversize Character Font Option Vertical Page Formatting Planning a Vertical Page FormatExecuting Vertical Tabs VFU CharacteristicsProprinter And Epson Vertical Tab Table Vertical Tab PositionsVertical Tab Positions Form Data Form Line Number Vertical TabsChannel Assignment Series EvfuStart Load Code 1E or 6E Hex End Load 1F or 6F HexSeries Evfu Codes PI Line Enabled Using The EvfuUsing The Evfu Data Bits Hex Dec Code ChannelDLE Series Evfu Series Evfu Codes PI Line EnabledSeries Evfu Codes PI Line Disabled or Not Used DC1 DC2 DC3 DC4 NAK SYN ETB Can SUB ESCRelative Line Slewing Clearing The Evfu MemoryData Bits Hex Dec Code Channel End Load Data Bits Lines Hex Dec Code Ansi Evfu Series Evfu Line SlewingDLE DC1 DC2 DC3 DC4 NAK SYN ETB Can SUB ESC Ascii Code ESC Hex Code 1B 5D Dec Code 27 93 Loading the TableLoading the Table Two Byte Channel Control Code FormatRemarks Ansi EvfuChannel Control Codes Decimal Value Binary Value CharacterDefault Evfu Table DefaultDescription Skip to Channel Command Ansi Evfu Default Evfu Table Channel DescriptionDownloading The Evfu Using The PI Line Downloading The Evfu Using The PI LineSkip To Channel Example Program Instruction Remarks Output Ansi Evfu Two Byte Channel Control Code Format Skip to Channel Command Ansi Evfu Standard Ascii Character Set Appendix a Equivalent Columns Conversion Table Inches 13.3 16.7Appendix B Decipoints for Column vs. CPI ValuesMargin CPI Column 111 Margin CPI Column Appendix B Margin Column CPI Appendix B Acia AsciiCharacter weight, as shown in this sentence For example Bold refers to a heavy or thickCT+ CPUCTA Davfu CTSCvfu DCDDvfu DSRDTR EbcdicFifo Ieee HGSIGP LED LACLCD MPLNvfu NackNLQ NvramPcba PALPCB PGLRAM PORPSA ROMSAA RTSSCS SNA SfccSLD SOHUPC TOFTTL UsetOFF 100 Diagnostics Passed AnsiError Occurred / Flushing QUEUES*, 20 ESC Sequence Loading Program from Port XX% Please WAIT... Reset in ProgressSecurity Code Violation 104 Page 164305-001D