ZEBRA MZ 320 3" 4mb Direct Mobile Thermal Receipt Printer With Bluetooth

Programming Manual - Page 53

For MZ 320.

PDF File Manual, 497 pages, Read Online | Download pdf file

MZ 320 photo
Loading ...
Loading ...
Loading ...
Mobile Printing Systems
CPCL Programming Manual
Section 5
Linear Bar
Codes
pg. 5-9
Interleaved 2 of 5 Bar Codes
The Interleaved 2 of 5 (or ITF) bar code is used for applications that have a fixed data length for all
items scanned. A date, telephone number, or a SKU of fixed length would be a good application for
this bar code. The symbology specification states that a ITF bar code may be partially decoded without
any recognizable difference. Therefore, to prevent this problem, you must keep the length of data to
a constant and perform an error checking routine on the decoding program to determine if the data is
correct.
Only the digits 0-9 can be encoded, and there should be an even number of digits in the data. If there is
an odd number of digits, the printer will automatically insert a zero (0) at the beginning of the bar code.
There are two bar code varieties with a checksum: Interleaved 2 of 5 “with checksum” and German Post
Code. German Post Code has fixed length – either 12 or 14 characters (including checksum).
Here is an example how to calculate modulo 10 checksum:
Step 1: To calculate the checksum, first ensure that you are starting with an odd number of digits in the
data. If not, add a zero (0) to the beginning of the data.
Step 2: Multiply every other digit by 3, and add up the numbers. So, if your data was “43827” your
calculation should be (4 x 3) + 3 + (8 x 3) + 2 + (7 x 3) = 62.
Step 3: Divide this number by 10, resulting in 6 with a remainder of 2. Subtract the remainder from 10.
In our example, 10 - 2 = 8. The checksum is this final number, 8. Append this to the end of your data.
Note that if the remainder was a zero, your checksum should be zero.
Interleaved 2 of 5 Specications
Bar Code
Symbology
Bar Code
Type
Input Length Characters Ideal Wide/
Narrow Ratio
Ideal Narrow
Dot Width
Checksum Calculation
Interleaved 2 of 5 I2OF5 Varies 0-9 only 2.5:1 2 See text
Interleaved 2 of 5
with checksum
I2OF5C Varies 0-9 only 2.5:1 2 See text
German Post
Code
I2OF5G 11, 12,13 or 14 0-9 only 2.5:1 2 mod 10, weights 4,9
continued
Loading ...
Loading ...
Loading ...