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

Why does the online barcode font encoder for Code 128 and UCC 128 give different results


I am testing data for use with the IDAutomationC128 barcode font. We are trying to get the correct data for use on packages for the USPS. The data we are testing is 42060091Ê93789107596195121000000012
the Code 128 gives the encoded result of ÍJ&Â{Ê}n{'[]Ã,*ÂÂÂ,iÎ
the UCC Code 128 gives the encoded result of ÍÊJ&Â{Ê}n{'[]Ã,*ÂÂÂ,'Î

the UCC Code 128 seems to be the correct one. However, manually verifying this results in the MOD 103 check digit value of 73 which is the code 128 result.

Any insight will be appreciated.

Operating System: XP

04-19-13     10.9 year(s) ago    

  Report Abuse

 

Ben

Best Answer

What encoder are you using? The UCC function includes the FNC using Ê. With the Code 128 function, it does not include the FNC. Therefore, to encode it, you will have to insert it on your own.

Posted 10.9 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 (4)
Here is the issue I am having when using the online encoder on the IDAutomation site
https://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.barcodefaq.com/1d/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?

Posted 10.8 year(s) ago

(0)
(0)
   Report Abuse
thanks Ben. We will give it a try.

Posted 10.9 year(s) ago

(0)
(0)
   Report Abuse
If you need to use the Online Font Encoder, you can encode the FNC using parentheses. Though we do not have a full COBOL encoder source, you may want to look at our VBA code and convert it to COBOL.

As a guide, you might be able to use this COBOL encoder (created by a customer):

CALCULATE-CHECK-SUM.
MOVE ZEROS TO BAR-CHECK-SUM.
MOVE 104 TO BAR-CHECK-SUM.
MOVE JOB-ID TO WS-BAR-JOB-ID.
PERFORM VARYING BAR-SUB FROM 1 BY 1 UNTIL BAR-SUB > 14
IF BAR-SUB < 14
IF BAR-SUB = 9
COMPUTE BAR-STR-NUM = 47 - 32 FOR THE /
COMPUTE BAR-CHECK-SUM = BAR-CHECK-SUM +
(BAR-STR-NUM * 9)
END-IF
IF BAR-SUB < 9
IF BAR-JOB-ID(BAR-SUB) = 0 FOR THE MAIN JOB
MOVE 16 TO BAR-JOB-NUM
ELSE
COMPUTE BAR-JOB-NUM = BAR-JOB-ID(BAR-SUB) + 48 - 32
END-IF
COMPUTE BAR-CHECK-SUM = BAR-CHECK-SUM +
(BAR-JOB-NUM * BAR-SUB)
END-IF
IF BAR-SUB = 10
COMPUTE BAR-SUB-1 = BAR-SUB - 1 FOR THE FIRST DIGIT OF SUB JOB
IF BAR-JOB-ID(BAR-SUB-1) = 0
MOVE 16 TO BAR-JOB-NUM
ELSE
COMPUTE BAR-JOB-NUM = BAR-JOB-ID(BAR-SUB-1) +
48 - 32
END-IF
COMPUTE BAR-CHECK-SUM = (BAR-CHECK-SUM +
(BAR-JOB-NUM * BAR-SUB))
END-IF
IF BAR-SUB = 11
COMPUTE BAR-SUB-1 = BAR-SUB - 1 FOR THE SECOND DIGIT OF SUB JOB
IF BAR-JOB-ID(BAR-SUB-1) = 0
MOVE 16 TO BAR-JOB-NUM
ELSE
COMPUTE BAR-JOB-NUM = BAR-JOB-ID(BAR-SUB-1) +
48 - 32
END-IF
COMPUTE BAR-CHECK-SUM = (BAR-CHECK-SUM +
(BAR-JOB-NUM * BAR-SUB))
END-IF
IF BAR-SUB = 12
COMPUTE BAR-SUB-1 = BAR-SUB - 1 FOR THE SPACE
* IF BAR-JOB-ID(BAR-SUB-1) = 0
* MOVE 16 TO BAR-JOB-NUM
* ELSE
* COMPUTE BAR-JOB-NUM = BAR-JOB-ID(BAR-SUB-1) +
* 48 - 32
* END-IF
* COMPUTE BAR-CHECK-SUM = (BAR-CHECK-SUM +
* (BAR-JOB-NUM * BAR-SUB))
END-IF
IF BAR-SUB = 13
COMPUTE BAR-STR-NUM = PART + 48 - 32 FOR THE PART
COMPUTE BAR-CHECK-SUM = BAR-CHECK-SUM +
(BAR-STR-NUM * 13)
END-IF
END-IF
END-PERFORM.
DIVIDE 103 INTO BAR-CHECK-SUM GIVING BAR-RESULT
REMAINDER BAR-REMAINDER.
IF BAR-REMAINDER = 0 MOVE "Â" TO PRT-VALUE CALCULATE THE CHECKSUM
ELSE IF BAR-REMAINDER = 1 MOVE "!" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 2 MOVE '"' TO PRT-VALUE
ELSE IF BAR-REMAINDER = 3 MOVE "#" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 4 MOVE "$" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 5 MOVE "%" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 6 MOVE "&" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 7 MOVE "'" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 8 MOVE "(" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 9 MOVE ")" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 10 MOVE "*" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 11 MOVE "+" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 12 MOVE "," TO PRT-VALUE
ELSE IF BAR-REMAINDER = 13 MOVE "-" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 14 MOVE "." TO PRT-VALUE
ELSE IF BAR-REMAINDER = 15 MOVE "/" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 16 MOVE "0" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 17 MOVE "1" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 18 MOVE "2" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 19 MOVE "3" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 20 MOVE "4" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 21 MOVE "5" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 22 MOVE "6" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 23 MOVE "7" TO PRT-VALUE
ELSE IF BAR-REMAINDER = 24 MOVE "8" TO PRT-VALUE

Posted 10.9 year(s) ago

(0)
(0)
   Report Abuse
Using the online encoder from the IDAutomation website https://www.bcgen.com/fontencoder/Default.aspx

checking it manually using the MOD 103 Calculation Example for Character Set C, a value of 73 which is the code 128 result of i

we here will have to calculate the value manually. we use COBOL programming here and as far as we know there is no other way to calculate it using COBOL.

Posted 10.9 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