Compaq 5525B/31/32 manual CHANGEQ 7 to 00 \CHANGEQ 8 to

Page 36

Chapter 2 Configuring the PCL-II Emulation with Control Codes

Another method using a text editor would be to do a CHANGE command replacement to convert the characters to ASCII characters. This is shown as:

\ADD 1

1ESC&142WabcdefghijklmnopqrstuvwxyzABCDEFGHIJ

2//

\CHANGEQ 7/7 TO ’00 \CHANGEQ 8/8 TO ’05 \CHANGEQ 9/9 TO ’00

.

.

.

\CHANGEQ 48/48 TO ’06

This could also be input by not entering the letters, but simply changing the specific column to the desired ASCII character. In the above example the “abc... HIJ” would not be entered and the CHANGE command would be used as follows:

\CHANGEQ 7 TO '00 \CHANGEQ 8 TO '05

.

.

.

As you can see, the escape sequence for the Programmable VFC can be quite complicated. This should only be used after attempting to satisfy VFC requirements using the standard (computed) VFC and the TEXT and PAGE LENGTH escape sequences.

The most common errors in successfully implementing the Programmable VFC escape sequence usually involve improper VFC byte counting or attempting to manipulate “unprintable” characters and getting confused. Converting these “unprintable” characters to printable ones is the easiest way to avoid data entry confusion.

Summary of Recommended Steps to Implement Programmable VFC

1.Layout the required VFC in a standard channel 1-16 format.

2.Reverse the resulting bit image so that channel 1 is now where channel 16 was and channel 16 is now where channel 1 was.

3.Divide this 16 bit image into two 8-bit bytes.

4.Decode these 8-bit bytes into ASCII characters using the chart in Appendix A. If the corresponding decoded character is not a printable character (below %37), it is highly suggested to convert to one by using a “dummy” channel (7 and/or 15).

5.Enter these characters into the Programmable VFC escape sequence as the VFC data. This data MUST be an even byte count and is CASE SENSITIVE (upper/lower). As in all escape sequences, do not include the brackets ([ ]); they are for clarification only.

36

Image 36
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#C Bar Code Label Placement ESC*z#H Bar Code HeightESC*z#Q Bar Code Header Control 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