# What is the difference between UCC MOD 10 and MSI MOD 10? 关注

What is the difference between UCC MOD 10 and MSI MOD 10?

##### 3 评论

###### Peter Thane

I am not sure of the precise differences but they will both use a different formula to provide the resultant MOD 10 check digit with the MSI MOD 10 being used by MSI barcode symbols whilst the UCC variant is used for your EAN, UPC, JAN, GTIN, GS1 and similar codes.

I think for the UCC Mod 10 you multiply the digits by 1 for the 1st, 3 for the 2nd, 1 for the 3rd , 3 for the 4th etc and then add up the results and take away the sum by the next multiple of 10 (ie for 44 the check digit would be 6 being 50 - 44)

For the MSI I found this online

The checksum algorithm for Mode 10 is to use “Luhn algorithm”:

- Counting from the check digit, which is the rightmost one, and moving left, double (x 2) the value of every second digit.
- Sum the digits of the products (eg, 10 ⇒ 1+0 = 1, 14 ⇒ 1+ 4 =5) together with the un-doubled digits from the original number
- Got the sum, then do: sum Mod 10 = check digit

hi，Peter Thane。In bartender，**Code 39。**

UCC MOD 10,123456 will have a check digit of 5.

MSI MOD 10,123456 will have a check digit of 6.

For the UCC Mod 10 I didnt say what the original number was, I just said if the total came to 44 then the digit would be 6 but you are correct for 123456 the CD would 5

Sorry there was a a typo and for the formula MSI code is correct but I missed off a digit and it should have said 1234567 give a check digit of 4.

请先登录再写评论。