Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Code 39 pallet id in South Africa - Check digit

Code 39 pallet id in South Africa - Check digit

Code 39 pallet id in South Africa - Check digit

I've received a barcode coming from South Africa that should represents a pallet id.
The digits are: 284-219-700
Number: 28421970
Check Digit: 0

I've searched almost everywhere, but I wasn't able to find which rules are been used to calculate the check digit.
Does someone has a some ideas?
Thanks in advance

RE: Code 39 pallet id in South Africa - Check digit

Possibly a modulus-11 checksum algorithm?


  2+8+4+2+1+9+7+0+0 = 33

  33 modulus-11 = 0

  number required to be added to modulus to obtain zero = 0

RE: Code 39 pallet id in South Africa - Check digit

Thanks DansDadUK,
I've alredy tried this one, but it doesn't work for the next ones. I have to admit that only one number it's not enough to try guessing the right formula. So herebelow, you'll find other numbers with the check digit at the far right.
Most probably it's better than sudoku ....

28421970  0
28421971  3
28421972  6
28421973  9
28421974  1
28421975  4
28421976  7
28421977  0
28421978  2
28421979  5
28421980  5
28421981  8
28421982  0
28421983  3

Thanks for your help!

RE: Code 39 pallet id in South Africa - Check digit

unfortunately before posting here on this forum, I've already searched the web in order to understand better my problem.
I've found that the Code 39 can have a check digit value that's the sum of all the digits modulo 43.
But this solution doesn't fit my needs.
Let me explain with an example

28421970  0    33
28421971  3    34
28421972  6    35
28421973  9    36
28421974  1    37
28421975  4    38
28421976  7    39
28421977  0    40
28421978  2    41
28421979  5    42
28421980  5    34
28421981  8    35
28421982  0    36
28421983  3    37

First of all the MOD43 return 2 digits, not only one betwenn 0 an 9.

Second, even if it seems to be a progression of 3 between consecutive numbers (0, 3, 6, 9), that's not true because every 4 number the difference between the check digit and the previous one it's 2 not 3.

However, thanks for your help!

RE: Code 39 pallet id in South Africa - Check digit

the reason that i posted the links was to show that the check digit for code 39 is mod43.  i checked it against your example and understand that it does not work but thought that perhaps you didn't break apart the numbers correctly - for example it's not 2 + 8 + 4 ... but 2 + 84 ...
if the check digit is not mod 43 then it is not the proper check digit for code 39.  barcodes are standardized to avoid this specific situation.
my last suggestion is to contact the person / company / entity that sent you this barcode and find out from them what they are doing.

RE: Code 39 pallet id in South Africa - Check digit

As your check digits are always a single character, and all the digits appear to be valid candidates, this implies perhaps that the checksum is based on some modulus-10 algorithm - or perhaps not (my maths is somewhat shaky these days).

Perhaps it is an interleaved algorithm, like the Luhn one (it's not this one specifically - your values don't fit).

RE: Code 39 pallet id in South Africa - Check digit


Each value (1-42) has a one character "value".

0-9 as is

so if the a checksum of 15 is represented by the single
character "F" or chr(70)

Jim Asman

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close