Compaq 5525B/31/32 manual 2 3 4 5 6 7 8 9

Page 54

Chapter 2 Configuring the PCL-II Emulation with Control Codes

The printer does not calculate the check digit, or automatically generate frame bars. They must be generated by the computer resident software, and sent to the printer. To do this, it is necessary to design a program that will convert a pair of digits into ten vertical bars.

NOTE: Each digit is five bars, with each printable character being two bars.

Thus, 2 1/2 characters are needed to print one digit.

Frame

 

Correction

Frame

Bar

0 1 2 3 4 - 5 6 7 8 - 9 1

Digit

Bar

 

Check Digit

 

 

 

 

1

11000

00011

00101

00110

01001

01010

01100

10001

10010

10100

00011

00101

1

00 =

01 =

 

 

10 =

 

11 =

 

 

 

 

= \ (5C/h)

= ~ (7E/h)

 

 

 

= } (7D/h)

 

 

= { (7B/h)

 

= ‘ (60/h)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

= ^ (5E/h)

Perform the following steps to determine the check digit for 45834-8844-70:

1.Calculate the check digit:

Add the digits of the postal code: 4+5+8+3+4+8+8+4+4+7+0 = 51

2.Subtract from the next highest multiple of ten: 60-51 = 9

The check digit is 9.

The barcode can be created one of two ways. The first, uses the frame bars as separate characters, the second “links” the frame bars to the first and last characters.

 

Method 1:

 

Frame Bar:

\

(1)

Characters “45”:

}~{{{

(01001 01010)

Characters “83”:

{}~}{

(10010 00110)

Characters “48”:

}~`~{

(01001 10010)

Characters “84”:

{}~{}

(10010 01001)

Characters “47”:

}~}~}

(01001 10001)

Characters “09”:

`~}}~

(11000 10100)

Frame Bar:

^

(1)

Text sent to Printer:

SO\}~{{{{}~}{}~`~{{}~{}}~}~}`~}}~^SI

54

Image 54
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