Compaq 5525B/31/32 manual Programmable VFC, Special VFC Considerations

Page 29

Programmable VFC

Programmable VFC

Programmable VFC allows the user to specify paper movement information other than the standard VFC definitions shown in Table 7. VFC information is stored in the memory (RAM) table just as the standard VFC is, only the bytes of information are loaded into RAM using the following escape sequence:

ESC&l[byte count]W[VFC data]

The byte count parameter specifies the number (in decimal 0 - 255) of VFC data bytes to expect immediately following the termination of the escape sequence.

NOTE: An even byte count must be indicated. If an odd byte count is indicated, the VFC table in RAM will not be overwritten and the data bytes following the ESC sequence will be read and discarded.

VFC data is the binary data which is loaded into the VFC table in RAM. These 8-bit bytes are sent in the following order following the ESC sequence terminator: the most significant byte of the first word followed by the least significant byte of the first word, followed by the most significant byte of the second word, etc. The most significant bit of each word is channel 16 and the least significant bit of each word is channel 1.

VFC Data = (MS byte) (LS byte) (MS byte) (LS byte) . . .

(word 1 = line 1) (word 2 = line 2) . . .

Once the VFC has been loaded into the RAM table, the VFC channels are selected using the ESC&l[0 through 16]V sequence in the same manner as the standard VFC. The standard and programmable VFC both use the same table in RAM. Resetting the printer causes the standard VFC to be recalculated using the current page and text (form) length and a new table to be overwritten in RAM. The VFC table is also recalculated when the line spacing, text length, or page length changes.

NOTE: If the I/O is configured for 7 bit data, channels 8 and 16 cannot be downloaded with confidence since the eighth bit is used for the communication protocol. Selecting channels 8 or 16 for 7 bit data is not recommended.

Special VFC Considerations

Before loading a VFC table, it is recommended that a VFC select of channel 0 be performed. This will bring the printer to the top of the physical page.

When a programmed VFC is loaded into RAM, the logical page length is automatically calculated using the following formula:

Logical Page Length (in number of lines) = byte count /2

The example on page 35 shows a VFC table which uses “standard” VFC definitions and also illustrates a programmable VFC.

Example: Defining a 3.5 inch form at six lines per inch. 1 inch = 6 lines x 3.5 inches = 21 lines

29

Image 29
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 CodesLogical and Physical Pages General InformationProgrammatic Printer Control Combining Escape Sequences Escape SequencesPCL Level Escape Sequences Line Printer Escape Sequences Explanation Programmable Reset Character Font Selection Symbol Set Selection OCR-A Character Style Selection Printing in the Hex 80 through Hex FF RegionPrint Pitch Selection PCL Level Character Density SelectionHS DP NLQ Switching Character Fonts Self-test Display Functions ModePrint Mode Selection Standard Computed VFC Line SpacingVertical Forms Control 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 ESC*z#V Bar Code Selection Character OverstrikeBar Codes 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