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

Is there something we are missing?


Here is the issue I am having when using the online encoder on the IDAutomation site
http://www.bcgen.com/fontencoder/Default.aspx

the data to encode is Ê42060091Ê93789107596195121000000010 encoding the following
ÍÊJ&Â{Ê}n{'[]Ã,*ÂÂÂ*hÎ ok great. check value of 72 which "h" is the MOD 103 check digit and I have data to put into my recently purchased font.

oops. we need to calculate the MOD 103 check digit manually here. Using the example provided on the site https://www.idautomation.com/barcode-faq/code-128/#Creating_GS1-128 under the example of how to calculate the check character for Character Set C

The following table is an example of how to obtain the check character for the number "667390" using character set C.

Start C 66 73 90 STOP
weighting 1 2 3
values 105 66 73 90
totals 105 66 146 270
Separate the numbers into pairs and choose the appropriate character from the character set table that represents the number pair.
Calculate the Total: 105 + (66*1) + (73*2) + (90*3) = 587
Calculate the Checksum: 587 divided by 103 = 5 remainder of 72. Therefore, the check digit equals a value of 72. The character to print for the value of 72 is ASCII 104.
To print the data "667390" as a barcode, the text of ÍbizhÎ is combined with the Code 128 Barcode Fonts.

Using the data we have to manually calculate the check digit. Ê42060091Ê93789107596195121000000010 along with the example the check digit value is 38 which is code C value of "F" NOT the result as the online encoder

Is there something we are missing

Operating System: XP

04-23-13     11.3 year(s) ago    

  Report Abuse

 

Ben

Best Answer

The Online Font Encoder's Code 128 option is Code 128 Auto--a character set that switches between sets A, B, and C. To generate GS1-128, the start character should be set to C. As long as the data is numeric, the Code 128 Auto function will start in set C. Therefore, encoding the data, Ê42060091Ê93789107596195121000000010, will produce a check digit of h. There is no need to manually calculate a mod 103,104, or 105 as the font encoder does it.

If you need to calculate a mod 10, then it requires the ~m procedure.

Though manually calculating the check digit uses only addition, multiplication, and division, it can still be a painful process as there is always room for error. The logic used for the online font encoder as well as the other encoders is correct.

Posted 11.3 year(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 (2)
You may want to use the VBA code as a base; it includes the Code 128 Auto, Code 128 A, Code 128 B, Code 128 C, ApplyTilde, and Mod10 functions. As for the Mod103, it is included as an automatic calculation for Code 128.

Posted 11.3 year(s) ago

(0)
(0)
   Report Abuse
Good to know the encoders are correct. We can use them for a check. Unfortunately, we will need to calculate the MOD 103. We here are using COBOL. The results we are getting for MOD 103 are not even close to correct. This is why we were trying it manually. Is there a place to look for that explains the ~m procedure?

Posted 11.3 year(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