Compaq 5525B/31/32 manual Printing Bar Codes

Page 45

Bar Codes

Printing Bar Codes

Generally, sending bar code information to the printer is performed in two steps:

Step 1: Selecting the bar code printing specifications; bar code type, height, and header control information.

Step 2: Moving the cursor to the desired label location and sending the bar code data.

Step 1.

Before positioning and printing the bar code data, the type of code, height of the label, and header placement may be specified. Once this is done, the succeeding labels will be printed using these specifications until a new type, height, or header control is specified. In other words, the bar code print specifications can be sent once and need not be sent again unless the printer is reset or new print specifications are desired. The following example specifies the print specifications for bar codes that are 0.5 inches in height, have a header above the label, and are printed in the UPC A code.

ESC*z8v5h1Q

 

ESC*z8v

Select UPC A code

5h

Label is to be .5 inches high

1Q

Places header above bar code

Notice that the last letter in the escape sequence (Q) is upper-case while the other letters in the sequence (v and h) are lower-case. (See “Escape Sequences” on page 15 for more information concerning combining two or more sequences.)

Step 2.

To print a bar code label, the cursor must be placed in the desired position and the bar code data must be sent. The following escape sequence moves the cursor to column 25, sends the data “1234567” to the printer, and initiates printing.

ESC*z25c<1234567>Z

ESC*z25c Places start of label at column 25

<Indicates start of bar code data

1234567 Bar code data

>Signals end of bar code data

Z

Upper case Z initiates printing *

*Note that an upper-case “Z” terminator results in the bar code being printed and an automatic carriage return (CR) being executed.

45

Image 45
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*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