Compaq 5525B/31/32 manual Programmable VFC Using PCL, Example Form

Page 30

Chapter 2 Configuring the PCL-II Emulation with Control Codes

Programmable VFC Using PCL

Programmable VFC’s using PCL seem to cause a lot of problems and misunderstandings. Most of the misunderstanding concerns the use of the escape sequence used to set the VFC file. This escape sequence is used to override the default VFC of the printer. This escape sequence can be hard- coded into a program or ASCII file.

VFC’s are best understood by reviewing an actual example of how to implement them. For this discussion, the example consists of a 3.5 inch form at six lines per inch with several different channels defined for use on the form to be printed.

1 inch = 6 lines per inch x 3.5 inches = 21 lines; therefore this would be a 21 line form.

NOTE: The TEXT LENGTH command could be used in conjunction with the

standard VFC and accomplish the above requirements. The assumption is there are reasons to use a customized VFC; this example has been simplified for clarification purposes.

First, establish the VFC length: with a 3.5” form and 6 LPI print, we have 21 potential lines of print (3.5 x 6 = 21). Refer to the following figure for an example of the desired finished output.

There are many methods to accomplish this task. The simplest way is to provide a “1” in CH3 (Channel 3) for all possible print lines and simply call CH3 for each line (including blank lines). This is called “line counting” and leaves the burden of positioning with the programmer (adding or deleting a line causes an adjustment elsewhere to be made).

EXAMPLE FORM

Line 1

Company name

Line 2

Street address

Line 3

 

Line 4

 

Line 5

 

Line 6

 

Line 7

Opening line

Line 8

 

Line 9

 

Line 10

Body

Line 11

Body

Line 12

Body

Line 13

 

Line 14

 

Line 15

 

Line 16

 

Line 17

Closing line

Line 18

 

Line 19

 

Line 20

P.S. line

Line 21

 

30

Image 30
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 Introduction Related Product InformationSoftware Features HP PCL-II HP PCL-II Emulation Default Settings Switching Between the EmulationsConfiguring the PCL-II Emulation with Control Codes Printer Feature Set CompatibilityGeneral Information Programmatic Printer ControlLogical and Physical Pages Escape Sequences Combining 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 Character Density Selection PCL LevelHS DP NLQ Switching Character Fonts Display Functions Mode Print Mode SelectionSelf-test Line Spacing Vertical Forms Control VFCStandard Computed VFC Page Programmable VFC Special VFC ConsiderationsProgrammable VFC Using PCL Example FormChannel 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 SelectionPerforation Skip Mode Text Length Vertical Margin SelectionHorizontal Margin Selection Transparent Print DataCursor Control Raster Graphics ESC*b# of raster lines YUnderlining Character Overstrike Bar CodesESC*z#V Bar Code Selection ESC*z#Q Bar Code Header Control ESC*z#C Bar Code Label PlacementESC*z#H Bar Code Height ESC*zBar Code DataZ Bar Code Label DataPrinting Bar Codes Printing Multiple Labels On The Same Line Printing Bar Codes With TextBar Code Width Information Bar Code Number of Characters SentCode 3 EAN8 Royal MailAdditional Product ID Assigned By Manufacturer N3+an..30 Width, Diameter, or 2nd Dimension, Inches, Logistics N4+n6 US Postnet Barcodes Data Value Representation256X US Postnet BAR Code CPI 22.5 Bars per inch US Postnet BAR Code2 3 4 5 6 7 8 9 CPI 20 Bars per inch US Postnet Bar Code CPI 20 Bars per inch US Postnet Bar Code MethodConfiguring 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