Sum Of Products Calculation - Paxar TC6037PR Reference Manual

Packet reference manual
Table of Contents

Advertisement

S u m o f P r o d u c t s C a l c u l a t i o n
This is an example of how the printer uses Sum of Products to calculate a
check digit for this data:
5 2 3 2 4 5 2 1 9
1.
Weights are applied to each digit, starting with the last digit in the
weight string. They are applied right to left, beginning at the right-most
position of the field. Remember, a weight string must contain at least
two different numbers. This example has a weight string of 1,2,3,4:
field:
weight string:
2.
Each digit in the field is multiplied by the weight assigned to it:
field:
weight string:
products:
3.
Next, the product of each digit is added together. This is the sum of the
products.
20 + 2 + 6 + 6 + 16 + 5 + 4 + 3 + 36 = 98
4.
Divide the sum of the products by the modulus (10 in this case), only to
the whole number. The balance is called the remainder.
3-14 Defining Field Options
5 2 3 2 4 5 2 1 9
4 1 2 3 4 1 2 3 4
5 2 3 2 4 5 2 1 9
4 1 2 3 4 1 2 3 4
20 2 6 6 16
9
10 98
90
8
5 4 3 36

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents