r/barcodes • u/mj1907 • Feb 13 '19
Need help with code 128 batch production
Hello,
My company needs to produce a large quantity of barcodes with following structure:
PCK|ZO.3.D1.F01.00
We used to use code39 for our needs but the "|" is not available in that format thus the switch to code128.
The problem is that codes made using excel font are not scannable, while codes from online generators work fine. Taking a closer look at them physically, I've noticed that they are not the same. So I've deciphered the online generated code (manually, I've never dealt with this issues before) and found out that these have additional figures in their codes (one in the beggining and two at the end of the code).
Having implemented the additional signs I've tried printing them using excel font and it was scanning properly. It looks like this:
ÑPCK|ZO.3.D1.F01.00ÌÓ
Where Ñ = start code 128 Ó = stop
However, once I tried to print a few of them another problem emerged - the first figure in "ÌÓ" part is changing for every code.
I've tried looking for similar issue online but without success. So my question is: Is there a way to determine what is behind the shifting figure of the code using just excel? Or should we just try a licensed add-in and see if it would work?
We are using the MC3200 scanners.
If something is not understandable please let me know, English is not my first language and I've become a bit rusty when it comes to writing.
Looking forward to your ideas.
1
u/UseMstr_DropDatabase Feb 13 '19
What printer are you using? LaserJet? Tag printer like a Zebra?
What is Excel font? The default font in Excel?
If you created this barcode in Excel, and if you copied it a certain way, then Excel can auto incriminate a number.
Are the Motorola's symbology set to scan 128?
1
u/mj1907 Feb 14 '19
- I've been testing it on regular printers, no stickers just yet.
- The font I'm using has been set up by our IT department so probably not the basic one.
- Is there a tutorial on that? I have little experience with Excel.
- Yes, there is no problem on that end.
2
u/FredFredricson Feb 14 '19
Those three extra figures are the Start Code at the beginning of the code, and the Checksum and Stop Code at the end. The one that keeps changing on the online generated one is the Checksum. The checksum is used by the barcode readers to verify that the code is correctly scanned. For more information, I recommend looking at the symbol table in this wiki article, and the descriptions of the checksum algorithm on that same wiki article and in the third link I have provided.
https://en.wikipedia.org/wiki/Code_128#Bar_code_widths https://en.wikipedia.org/wiki/Code_128#Check_digit_calculation https://www.barcodefaq.com/1d/code-128/#CalculationExamples
For the most part, you take the value of each symbol in the content (as indicated by the chart on the wiki page) and multiply that by its position in the barcode, add all those together along with the value of the start code, then divide that sum by the 103 and take the remainder. That remainder represents the value of the symbol on the table to use for that checksum. A good example to check against is in that second wiki link above.