Compaq 5525B/31/32 manual Horizontal Margin Selection, Transparent Print Data

Page 39

Horizontal Margin Selection

Horizontal Margin Selection

Absolute left and right margin selection is accomplished using the following escape sequences:

ESC&a[print position]L Set left margin

ESC&a[print position]M Set right margin

The print position specified indicates a decimal number in the range 0 through

131@ 10cpi (0 - 65 for Double-size, 5 cpi, 0-219 for compressed, 16.67 cpi). The print position represents the column using the print pitch active when the margin is set. For example, if the character pitch is 10 characters/inch and the left margin is set to column 20, the left margin will be two inches from the left physical limit of the printer. If the pitch is then changed to 5 characters/inch, the left margin would still be in the same logical position, but column 20 would be four inches from the left physical limit of the printer instead of 2 inches.

Margins can be set at any column, regardless of the present printing position. If the new margin selected is to the right of the current print position, then the new setting takes effect immediately. If the new margin setting is to the left of the current print position, then the new setting does not take effect until the cursor is reset to zero.

The first column within a line is designated column 0. If a print position greater (or less) than the printer’s physical limit is specified, the right (or left) margin will be set to the limits of the printer. Power-on and set the margins to the maximum limits.

Commands are ignored if the result would place the left margin to the right of the right margin. The only way to move the current active position outside the margins is by using the escape sequences for horizontal cursor control.

To release the right margin use one of the following escape sequences:

ESC&a132M for 10 cpi

ESC&a158M for 12 cpi

ESC&a175M for 13.3 cpi

ESC&a198M for 15 cpi

ESC&a220M for 16.7 cpi

Transparent Print Data

This feature allows the printing of binary data which is required in certain applications. The escape sequence ESC&p[# of bytes]X enables the printer to print data as in the display functions mode, except that no control codes or escape sequences (including CR and ESCZ) are executed. The number specified in the value field is the exact number of bytes that will be interpreted as binary.

39

Image 39
Contents 5525B/31/32 Line Matrix Printer Page PCL-II Programmer’s Reference Manual Page Trademark Acknowledgements Page Table of Contents Standard Ascii Character Set Related Product Information IntroductionSoftware Features HP PCL-II Switching Between the Emulations HP PCL-II Emulation Default SettingsPrinter Feature Set Compatibility Configuring the PCL-II Emulation with Control CodesGeneral Information Programmatic Printer ControlLogical and Physical Pages Combining Escape Sequences Escape SequencesPCL Level Escape Sequences Line Printer Escape Sequences Explanation Programmable Reset Character Font Selection Symbol Set Selection OCR-A Printing in the Hex 80 through Hex FF Region Print Pitch SelectionCharacter Style Selection PCL Level Character Density SelectionHS DP NLQ Switching Character Fonts Display Functions Mode Print Mode SelectionSelf-test Line Spacing Vertical Forms Control VFCStandard Computed VFC Page Special VFC Considerations Programmable VFCExample Form Programmable VFC Using PCLChannel Line Configuring the PCL-II Emulation with Control Codes Programmable VFC Ascii CTL MSB/LSB Example VFC Data Entry Methods \CHANGEQ 7 to 00 \CHANGEQ 8 to Logical Page Length Selection Logical Page Length SelectionText Length Vertical Margin Selection Perforation Skip ModeTransparent Print Data Horizontal Margin SelectionCursor Control ESC*b# of raster lines Y Raster GraphicsUnderlining Character Overstrike Bar CodesESC*z#V Bar Code Selection ESC*zBar Code DataZ Bar Code Label Data ESC*z#C Bar Code Label PlacementESC*z#H Bar Code Height ESC*z#Q Bar Code Header ControlPrinting Bar Codes Printing Bar Codes With Text Printing Multiple Labels On The Same LineBar Code Number of Characters Sent Bar Code Width InformationCode 3 Royal Mail EAN8Additional Product ID Assigned By Manufacturer N3+an..30 Width, Diameter, or 2nd Dimension, Inches, Logistics N4+n6 Data Value Representation US Postnet BarcodesCPI 22.5 Bars per inch US Postnet BAR Code 256X US Postnet BAR Code2 3 4 5 6 7 8 9 CPI 20 Bars per inch US Postnet Bar Code Method CPI 20 Bars per inch US Postnet Bar CodeConfiguring the PCL-II Emulation with Control Codes Standard Ascii Character Set Appendix a Index Bar Code Underlining PCL-II Upca Page Page 5525B/31/32 Line Matrix Printer