Printronix P5000LJ 参照マニュアル
40
Chapter
2
Configuring the PCL-II Emulation with Control Codes
Follow the example below to convert a ZIP Code into a bar code:
1.
Calculate the check digit for the ZIP Code 45834-8844-70:
a.
Add the digits of the ZIP code:
4+5+8+3+4+8+8+4+4+7+0 = 51
b.
Subtract from the next highest multiple of ten:
60-51 = 9
The check digit is 9, so the number for conversion is 45834-8844-709.
2.
Separate the ZIP Code + digit into digit pairs:
45834-8844-709 = 45 83 48 84 47 09
3.
Convert the digit pairs into binary code:
Example:
45 = 01001 01010
4.
Convert the binary code into pairs:
01001 01010 = 01 00 10 10 10
5.
Convert each pair into its text equivalent:
01 00 10 10 10 = }~{{{
6.
Add the frame bars. This can be done in one of two ways: Method 1
(Table 6) uses the frame bars as separate characters, and Method 2
(Table 7) “links” the frame bars to the first and last characters:
(Table 6) uses the frame bars as separate characters, and Method 2
(Table 7) “links” the frame bars to the first and last characters:
Table 6: Method 1
ZIP Code + digit
Frame Bar
+
Digit Pairs
Binary
Code
Conversion
Text
Equivalent
Converted ZIP Code
(Text To Printer)
45 83 48 84 47 09
Frame Bar
1
\
45
01 00 10 10 10
}~{{{
83
10 01 00 01 10
{}~}{
48
01 00 11 00 10
}~`~{
SO\}~{{{{}~}{}~`~{{}~{}}~}~}`~}}~^SI
84
10 01 00 10 01
{}~{}
47
01 00 11 00 01
}~}~}
09
11 00 01 01 00
`~}}~
Frame Bar
1
^
Note: SO = Shift Out (hex 0E), and SI = Shift In (hex 0F)