Printronix ANSI Printer manual Format For Control Code Descriptions

Page 28

Chapter 2 Configuring The ANSI Emulation

NOTE: Channel 12 is always used with the VT character. See Chapter 3, “Vertical Page Formatting,” for more details.

Format For Control Code Descriptions

The following information is listed for each control code (where applicable):

Name The title or function of the command.

ASCII Code The ASCII mnemonic for the command is shown for the printer and the ANSI protocol. Command sequences are in 7-bit (ASCII) form.

Hex Code The code or command sequence in hexadecimal numbers. Dec Code The code or command sequence in decimal numbers. Expression The control codes used in the BASIC programming language. Purpose The function(s) of the control code.

Discussion A discussion of the uses of the code or command sequence, including exceptions or limitations to its use.

Example A sample program written in BASIC programming language is provided when it is possible to illustrate the effect of a control code or if a specific syntax is required.

Examples are shown below of escape sequences as written in the text, shown with parameters filled in, and written in the BASIC program language.

Tab Clear

ESC [p1 g

 

ESC[3g

 

LPRINT CHR$(27);“[3g”

Horizontal Tabs Set

ESC [p1;p2...pn u

 

ESC[648;1386;2808u

 

LPRINT CHR$(27);“[648;1386;2808u”

Expand Characters

ESC [p1;p2 SP B

 

ESC[200;200 B

 

LPRINT CHR$(27);“[200;200 B”

NOTE: If you specify parameters for a control code other than the ones defined in the control code description, unpredictable results may occur.

NOTE: Throughout this chapter the term “decipoints” is used. A decipoint equals 1/720 inch and is used as a standard of measurement for parameters associated with distances.

28

Image 28
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 Software Features About This ManualRelated Product Information 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 Program not Error Security PALError Short AT 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 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 Forms Length, Top Margin, Bottom Margin Ascii Code ESC p1p2p3 rGraphic 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 Graphics Dot Patterns And DensitiesDot Patterns And Densities 0X0X0X0 LSB LSB Msbx MSBGraphics Ascii Character Dot Patterns Hex Dots 654321Horizontal Format Vertical FormatHorizontal Format Ascii Character Dot Patterns Hex Dots Horizontal Format Byte → Byte n Row ↓Dot Graphics Other Graphics ConsiderationsRepeat Graphics Character Select Graphics Mode Setting Bar Code Parameters Default Bar Code ParametersBar Codes Entering And Exiting Bar CodesSetting Bar Code Parameters P1 ValuesIf p1 = Style 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 FormatVFU Characteristics Proprinter And Epson Vertical Tab TableExecuting Vertical Tabs Vertical Tab PositionsVertical Tab Positions Form Data Form Line Number Vertical TabsSeries Evfu Start Load Code 1E or 6E HexChannel Assignment End Load 1F or 6F HexUsing The Evfu Using The EvfuSeries Evfu Codes PI Line Enabled Data Bits Hex Dec Code ChannelSeries Evfu Series Evfu Codes PI Line Enabled Series Evfu Codes PI Line Disabled or Not UsedDLE 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 FormatAnsi Evfu Channel Control Codes Decimal Value Binary ValueRemarks 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 CTS CvfuDavfu DCDDSR DTRDvfu EbcdicFifo Ieee HGSIGP LAC LCDLED MPLNack NLQNvfu NvramPAL PCBPcba PGLPOR PSARAM ROMSAA RTSSCS Sfcc SLDSNA SOHTOF TTLUPC 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