How to calculate Code 128 check digit? Detailed explanation with step by step text and video explanation
Code 128 Barcode Introduction
What is Code 128 barcode?
Code 128 barcode is a high-density linear barcode symbology, which encodes digits, text, control characters, and full ASCII 128 characters. You can view the detailed
information about Code 128 at What is Code 128 barcode?
Code 128 Barcode Check Digit Character
Code 128 barcode contains a mandatory check digit (checksum) character, which is based on module 103 (mod 103).
The Code 128 check digit will not
be displayed in the human readable interpretation (barcode text), and it will not be returned by the barcode decoder also.
Code 128 barcode check digit calculator
The Code 128 barcode check digit (checksum) character shall be calculated according to the following algorithm.
Each symbol character position is given a weighting. The Start character position is weighted 1.
Then, beginning on the left with the first symbol character following the Start character, the weights
are 1, 2 ,3, 4, ... , n, for all following symbol character positions up to, but not including, that of the
symbol check character itself; n denotes the number of symbol characters representing data or
special information in the symbol, exclusive of the Start/Stop characters and symbol check character.
Multiply each symbol character value by its weighting.
Sum the products of the calculation in the previous step
Divide this sum by 103.
The remainder derived from the calculation in the previous step is the symbol character value of the symbol check character.
For example, calculate the check character for Code 128 data "AIM1234"