Compaq 5525B/31/32 manual Method, 0 1 2 3 4 - 5 6 7 8 - 9

Models: 5525B/31/32

1 64
Download 64 pages 17.58 Kb
Page 54
Image 54
0 1 2 3 4 - 5 6 7 8 - 9 1

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

Page 54
Image 54
Compaq 5525B/31/32 manual Method, 0 1 2 3 4 - 5 6 7 8 - 9, Configuring the PCL-II Emulation with Control Codes