Compaq 5525B/31/32 manual Logical Page Length Selection

Page 37

Logical Page Length Selection

6.This escape sequence must be sent to the printer before the data by embedding in the application or as part of an initialization string. A programmable or hardware RESET will clear the VFC RAM causing the printer to return to the default VFC.

NOTE: If either the RS-232E or the RS-422B interface is installed in the printer, the interface can be configured to have such things as STRIP NULLS AND DELETES. The Null and/or Delete character could be used as valid characters, so the user must either combine other channels on the same line to generate another character, or not configure the printer to strip these characters. Another factor may be the use of 8-bit data. If the user desires to use channels 8 and 16, then 8-bit data must be configured. For more detail please refer to the User’s Manual.

Logical Page Length Selection

(PCL Level II)

Two page length definitions exist for the printer; physical page length and logical page length. The physical page length is the length of the paper in inches. The printer also allows you to set page length in lines per page.

The logical page length is that which is received via an escape sequence and is calculated in lines per page. Therefore, one physical page can contain more than one logical page.

The default logical page length is the physical page length. In most cases, formatting problems can be solved by changing the physical page length and using the default logical page length.

NOTE: When loading a different size of form in the printer, it is usually best to have the operator set the physical page (from the control panel) to the actual size of the paper rather than programmatically setting the logical page to match the length of the new form (and leaving the physical page length at its previous value). This practice avoids problems if a paper-out occurs.

The logical page length is set using the ESC&l[1-128]P sequence, where the value field (1-128) is the desired number of lines per page. This command also defaults the text length to be one inch less than the logical page length, unless the logical page length is one inch or less, in which case the text length is set equal to the page length. Requests for a page length of zero cause the logical page length to equal the physical page length. Requests for a page length greater than 128 are ignored.

Although the logical page is specified in number of lines, this number represents the space occupied by that many lines (using the line spacing that was effective at the time the logical page length was specified). Therefore, if a logical page length of 66 lines is specified and the line spacing is currently at 6 LPI, the logical page length is 11 inches. If the line spacing is changed (to 8 LPI) in the middle of the page, the actual length of the page would still be 11 inches but the number of print lines would be 88 (8 LPI x 11 inches).

37

Image 37
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 CodesProgrammatic Printer Control General InformationLogical 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 Print Pitch Selection Printing in the Hex 80 through Hex FF RegionCharacter Style Selection PCL Level Character Density SelectionHS DP NLQ Switching Character Fonts Print Mode Selection Display Functions ModeSelf-test Vertical Forms Control VFC Line SpacingStandard 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 Bar Codes Character OverstrikeESC*z#V Bar Code Selection ESC*z#H Bar Code Height ESC*z#C Bar Code Label PlacementESC*z#Q Bar Code Header Control ESC*zBar Code DataZ Bar Code Label DataPrinting 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