New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions Bookmark and Share

Problem calculating check digit?


Not sure what I am doing wrong here. I have an existing application where I calculate check digit and output GS1-128 barcode no problem but I am trying to modify a part of it and the barcode it creates fails to scan. The issue has to be the check digit but I can't figure out what could be wrong. This is the text I'm trying to encode
(01)60000116012401(20)01(30)000025 (the parantheses are not encoded, just included here for clarity). I am using Code 128C with FNC1 functionality, so I include 105 as the start character and then 102 for the start of each AI.

For the first AI (01) group I get a checksum of 698 [105 + 102*1 + 01*2 + 60*3 + 00*4 + 01*5 + 16*6 + 01*7 + 24*8 + 01*9
For the second AI (20) I get checksum 1252 [102*10 + 20*11 + 01*12
For the third AI (3) I get checksum 2171: [102*13 + 30*14 + 00*15 + 00*16 + 25*17
For a total of 4121 which for MOD 103 = 1 (4121/103 = 40.009708737864078 -40 = 0.009708737864078*103 = 1
I've attached the barcode this outputs using these values and it does not scan. I am using IDAutomationUniS 12 pt.
What am I doing wrong or missing here? Do you have a tools on your end to "force" the read of the barcode to see what it says and how it differs from what should be there. I have sort of done so myself by using a regular font to read the encoding, and all encodings match up and are correct as far as I can tell. Thanks


Attachments:

10-29-20     37 day(s) ago    

  Report Abuse

 

Ben

Best Answer

IDAutomation always recommends using IDAutomation font encoders for standard and Universal barcode fonts to encode and calculate check digits. Our products include the MOD10 check digit calculation.

Standard Font Encoders
Universal Font Encoders

Posted 37 day(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.
Other Answers (1)
Code 128 cannot be read raw. The MOD 103 must be calculated from the entire string, not in parts. I believe you are using the Universal Font Package. For this package, it would be much easier to use the Excel Font Encoder App, and use the VBA Debug function to see how the information is calculated. Is this possible in your situation?

Posted 36 day(s) ago

(0)
(0)
   Report Abuse
Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook