Printronix ANSI Printer manual Margins, Left and Right, Ascii Code ESC p1p2 s

Page 37

Margins, Left and Right

Margins, Left and Right

ASCII Code ESC [p1;p2 s

Hex Code 1B 5B p1 3B p2 73

Dec Code 27 91 p1 59 p2 115

Expression CHR$(27);“[p1;p2s”;

Purpose The p parameters are distances from the left edge of the printable area of the paper in decipoints. They are internally converted to column positions based on the current CPI setting. The first print area will be one column to the right of the left margin.

NOTE: The margins set with this sequence begin at the first physical print position, not at the edge of the paper.

Discussion When operating at 10 CPI, the escape sequence ESC [720;8784s will produce a one-inch (10 column) left margin with column 11 as the first printable position. The print line length is 8784 decipoints minus 720, or 8064 decipoints (11.2 inches, 112 columns). If the normal print area of 13.2 inches is available, the right margin is one inch. The last column represented by p2 is the last print position and the right margin begins in the next column.

Left and right margin default values are column zero and the highest column number in use depending on the CPI setting, shown below. This escape sequence is valid in graphics but does not apply to bar codes. Default margins may be set by using ESC [s.

Left Margin = column 0 minus Right Margin 10 CPI = column 136

12 CPI = column 163

13.3CPI = column 181 15 CPI = column 204

16.7CPI = column 226

When printing in proportional mode or line mixing, the margins are converted to absolute positions for that line. If the printer receives this command anywhere in a printable line, the command will affect that line and subsequent printable lines.

37

Image 37
Contents Programmer’s Reference Manual Page Ansi Printers Trademark Acknowledgements Trademark AcknowledgementsCopyright  1998, 2002 Printronix, Inc Table of Contents Vertical Page Formatting Table of ContentsConversion Tables Glossary Table of Contents About This Manual Software FeaturesRelated Product Information AudienceInstalling Printer Emulations Installing Printer EmulationsDownloading Software Through the Serial or Parallel Port Downloading Software Through the Serial or Parallel PortDebug This is the file you will download into the printer Navigating to the Appropriate Emulation File on the CDCd \downloadEnter Downloading Software Through Network Interface Card NIC This is the file you will download into the NIC Downloading Software Through the Network Interface Card NICPut filename.prgEnter Downloading Optional Font Files to Flash MemoryCopy /b filename.dwn LPT2Enter Downloading Optional Font Files to Flash MemoryCopy /b filename1.dwn+filename2.dwn+...LPT1Enter Flash Memory Message Guide Flash Memory Message GuideMessage Explanation Required Action Error Security PAL Error Program notError Short AT Error Writing toFlash Memory Message Guide Explanation Required Action Installing Printer Emulations Overview Ansi Emulation Default SettingsLPI CPICR = CR CPI Configuring The Ansi Emulation Configuring The Ansi EmulationControl Codes Control Codes DC3 Device Control-3 13HFormat For Control Code Descriptions Format For Control Code Descriptions Escape Control Codes OverviewVertical Formatting Commands Graphics CommandsControl Codes Index Character Sets, International Character Sets, InternationalAscii Code ESC p1 Hex Code 1B 5B p1 Dec Code 27 91 p1 Ansi International Character SetsISO Italian Expanded Mode Expanded ModeAscii Code ESC p1p2 SP B Ascii Code ESC p1p2p3 r Forms Length, Top Margin, Bottom MarginGraphic Rendition Graphic RenditionAscii Code ESC p1p2...pn m 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 Resetting ResettingHardcoded Reset Values 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 MSB654321 Graphics Ascii Character Dot Patterns Hex DotsVertical Format Horizontal FormatHorizontal Format Ascii Character Dot Patterns Hex Dots Horizontal Format Byte → Byte n Row ↓Dot Graphics Other Graphics ConsiderationsRepeat Graphics Character Select Graphics Mode Default Bar Code Parameters Setting Bar Code ParametersBar Codes Entering And Exiting Bar CodesP1 Values Setting Bar Code ParametersIf p1 = Style UPC aPostnet Bar Codes P1 ValuesRotation/Font P9 ValuesSpacing Between Bar Codes Human Readable Line HRLBar Code Readers Bar Code ReadersVertical Bar Codes Test ProgramVertical Bar Codes Entering And Exiting Oversize Oversize Character Font OptionOversize Character Font Option Selecting Size Selecting SizeOversize Character Font Option Planning a Vertical Page Format Vertical Page FormattingProprinter And Epson Vertical Tab Table VFU CharacteristicsExecuting Vertical Tabs Vertical Tab PositionsForm Data Form Line Number Vertical Tabs Vertical Tab PositionsStart Load Code 1E or 6E Hex Series EvfuChannel Assignment End Load 1F or 6F HexUsing The Evfu Using The EvfuSeries Evfu Codes PI Line Enabled Data Bits Hex Dec Code ChannelSeries Evfu Codes PI Line Disabled or Not Used Series Evfu Series Evfu Codes PI Line EnabledDLE 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 Loading the Table Loading the TableAscii Code ESC Hex Code 1B 5D Dec Code 27 93 Two Byte Channel Control Code FormatChannel Control Codes Decimal Value Binary Value Ansi EvfuRemarks CharacterDefault Evfu Table DefaultDescription Ansi Evfu Default Evfu Table Channel Description Skip to Channel CommandDownloading 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 13.3 16.7 Equivalent Columns Conversion Table InchesDecipoints for Column vs. CPI Values Appendix BMargin CPI Column 111 Margin CPI Column Appendix B Margin Column CPI Appendix B Ascii AciaFor example Bold refers to a heavy or thick Character weight, as shown in this sentenceCT+ CPUCTA Cvfu CTSDavfu DCDDTR DSRDvfu EbcdicFifo Ieee HGSIGP LCD LACLED MPLNLQ NackNvfu NvramPCB PALPcba PGLPSA PORRAM ROMSAA RTSSCS SLD SfccSNA SOHTTL TOFUPC UsetOFF 100 Ansi Diagnostics PassedError Occurred / Flushing QUEUES*, 20 ESC Sequence Loading Program from Port XX% Please WAIT... Reset in ProgressSecurity Code Violation 104 Page 164305-001D