Printronix ANSI Printer manual Select Graphics Mode

Page 47

Select Graphics Mode

Select Graphics Mode

ASCII Code ESC [p1;p2;p3 q

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

Dec Code 27 91 p1 59 p2 59 p3 113

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

Purpose Selects the graphics mode format and horizontal/vertical density for dot graphics.

This sequence must be sent before entering the graphics mode with ESC P.

Discussion The first parameter selects the graphics mode (Table 13). The second parameter selects the vertical dot spacing (Table 14) and the third selects the horizontal dot spacing (Table 15).

Table 13. Select Graphics Mode

p1

Selects Graphics Mode

0Vertical Format @ 70H x 72V DPI*

1Invalid, default to 70H x 72V DPI

2Vertical Format @ 140H x 144V DPI

3Invalid, default to 70H x 72V DPI

4Horizontal Format (plot mode)

*p2 and p3 are ignored in this mode.

Table 14. Select Vertical Dot Spacing

p2

 

 

Selects Vertical Density

 

 

 

 

 

 

0 through 6

144

DPI

7+

72

DPI

 

 

Table 15. Select Horizontal Dot Spacing

 

 

 

 

p3

 

 

Selects Horizontal Density

 

 

 

 

 

 

0 through 3

240

DPI - 544 characters per line

4

180

DPI - 408 characters per line

5

140

DPI - 317 characters per line

6 through 7

120

DPI - 272 characters per line

8 through 10

70

DPI - 158 characters per line

11+

60

DPI - 136 characters per line

 

 

 

 

47

Image 47
Contents Programmer’s Reference Manual Page Ansi Printers Copyright  1998, 2002 Printronix, Inc Trademark AcknowledgementsTrademark Acknowledgements Table of Contents Vertical Page Formatting Table of ContentsConversion Tables Glossary Table of Contents Audience Software FeaturesAbout This Manual Related Product InformationInstalling Printer Emulations Installing Printer EmulationsDebug Downloading Software Through the Serial or Parallel PortDownloading Software Through the Serial or Parallel Port 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 Message Explanation Required Action Flash Memory Message GuideFlash Memory Message Guide Error Writing to Error Program notError Security PAL Error Short ATFlash Memory Message Guide Explanation Required Action Installing Printer Emulations Overview Ansi Emulation Default SettingsCR = CR CPILPI CPI Control Codes Configuring The Ansi EmulationConfiguring The Ansi Emulation Control Codes DC3 Device Control-3 13HFormat For Control Code Descriptions Format For Control Code Descriptions Escape Control Codes OverviewControl Codes Index Graphics CommandsVertical Formatting Commands Ansi International Character Sets Character Sets, InternationalCharacter Sets, International Ascii Code ESC p1 Hex Code 1B 5B p1 Dec Code 27 91 p1ISO Italian Ascii Code ESC p1p2 SP B Expanded ModeExpanded Mode Ascii Code ESC p1p2p3 r Forms Length, Top Margin, Bottom MarginCharacter Types and Enhancements Parameter Graphic RenditionGraphic Rendition Ascii Code ESC p1p2...pn mLine Spacing Ascii Code ESC p1p2 s Margins, Left and RightMargins, Left and Right Proportional Print Mode Private Mode, DisablePrivate Mode, Enable Ascii Code ESC c Hex Code Dec Code ResettingResetting Hardcoded Reset ValuesTab, Clear SubscriptSuperscript Tab Set, Multiple Horizontal Vertical Position Relative Terminate Loading of DataVertical Position Absolute 0X0X0X0 LSB LSB Msbx MSB GraphicsDot Patterns And Densities Dot Patterns And Densities 654321 Graphics Ascii Character Dot Patterns Hex DotsHorizontal Format Byte → Byte n Row ↓ Horizontal FormatVertical Format Horizontal Format Ascii Character Dot Patterns Hex DotsRepeat Graphics Character Other Graphics ConsiderationsDot Graphics Select Graphics Mode Entering And Exiting Bar Codes Setting Bar Code ParametersDefault Bar Code Parameters Bar CodesUPC a Setting Bar Code ParametersP1 Values If p1 = StylePostnet 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 Oversize Character Font Option Oversize Character Font OptionEntering And Exiting Oversize Selecting Size Selecting SizeOversize Character Font Option Planning a Vertical Page Format Vertical Page FormattingVertical Tab Positions VFU CharacteristicsProprinter And Epson Vertical Tab Table Executing Vertical TabsForm Data Form Line Number Vertical Tabs Vertical Tab PositionsEnd Load 1F or 6F Hex Series EvfuStart Load Code 1E or 6E Hex Channel AssignmentData Bits Hex Dec Code Channel Using The EvfuUsing The Evfu Series Evfu Codes PI Line EnabledDC1 DC2 DC3 DC4 NAK SYN ETB Can SUB ESC Series Evfu Series Evfu Codes PI Line EnabledSeries Evfu Codes PI Line Disabled or Not Used DLEData Bits Hex Dec Code Channel End Load Clearing The Evfu MemoryRelative Line Slewing DLE DC1 DC2 DC3 DC4 NAK SYN ETB Can SUB ESC Ansi Evfu Series Evfu Line SlewingData Bits Lines Hex Dec Code Two Byte Channel Control Code Format Loading the TableLoading the Table Ascii Code ESC Hex Code 1B 5D Dec Code 27 93Character Ansi EvfuChannel Control Codes Decimal Value Binary Value RemarksDescription DefaultDefault Evfu Table Ansi Evfu Default Evfu Table Channel Description Skip to Channel CommandSkip To Channel Example Program Instruction Remarks Output Downloading The Evfu Using The PI LineDownloading The Evfu Using The PI Line 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 sentenceCTA CPUCT+ DCD CTSCvfu DavfuEbcdic DSRDTR DvfuFifo IGP HGSIeee MPL LACLCD LEDNvram NackNLQ NvfuPGL PALPCB PcbaROM PORPSA RAMSCS RTSSAA SOH SfccSLD SNAUset TOFTTL UPCOFF 100 Ansi Diagnostics PassedError Occurred / Flushing QUEUES*, 20 ESC Sequence Security Code Violation Please WAIT... Reset in ProgressLoading Program from Port XX% 104 Page 164305-001D