Suresh Namani
asked on
How to manually calculate checksum for Code 128 or GS1-128
Hi Experts,
I am trying to generate a GS1-128 barcode string and I am having the issues with the check digit. My barcode has combination of subset B and C. I have tried to calculate based on calculations given in some websites. But I am not getting correct check digit.
Below mentioned are the examples of my barcodes.
40327641468+99000952123001
40327605999+99000900000000
Example of combination of subsets: Start C FCN1 '4032764146' Set B '8+' Set C '9900095212300'
Please help me how to calculate the check digit manually.
I am trying to generate a GS1-128 barcode string and I am having the issues with the check digit. My barcode has combination of subset B and C. I have tried to calculate based on calculations given in some websites. But I am not getting correct check digit.
Below mentioned are the examples of my barcodes.
40327641468+99000952123001
40327605999+99000900000000
Example of combination of subsets: Start C FCN1 '4032764146' Set B '8+' Set C '9900095212300'
Please help me how to calculate the check digit manually.
Here are several Code 128 check character calculation examples.
ASKER
Hi,
Thank you for the help.
I tried to calculate based on the examples given in the link.
for the barcode '40327641468+9900095212300 1' I have calculated as below.
Step1 : 105+(40*1)+(32*2)+(76*3)+( 41*4)+(46* 5)+ set B values (24*6)+(11*7)+ set C values (99*8)+(00*9)+(09*10)+(52* 11)+(12*12 )+(30*13)+ (01*14)
105+40+64+228+164+230+144+ 77+792+0+9 0+572+144+ 390+14 = 3054
Step2: 103 *29 = 2987
Step3: 3054 - 2987 = 67.
Here I got the chekcsum value 67.
But the barcode mentioned above has the checksum value as 95.
Is there anything mistake happened in my calculation.
Kindly advice.
Thanks & Regards,
Suresh Namani
Thank you for the help.
I tried to calculate based on the examples given in the link.
for the barcode '40327641468+9900095212300
Step1 : 105+(40*1)+(32*2)+(76*3)+(
105+40+64+228+164+230+144+
Step2: 103 *29 = 2987
Step3: 3054 - 2987 = 67.
Here I got the chekcsum value 67.
But the barcode mentioned above has the checksum value as 95.
Is there anything mistake happened in my calculation.
Kindly advice.
Thanks & Regards,
Suresh Namani
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.