Extract data from a GS1-128 barcode scan
Dear all,
I'm using simple "production labels" consisting on basical data, of which a Datamatrix GS1-128 coded.
I would like to scan this 2D code and extract the information from the GS1-128 code in order to search in an Excel database the product corresponding to the EAN14, etc... the goal is to print a "consumer label" with all the mandatory information (I'm in food industry).
I've seen there is the possibility to tick a box "data is inserted by barcode scanner" in the data input form, so is there an integrated module in bartender 2022 Automation allowing an interpretation of the AI's of a GS1-128?
I mean if I scan 013700189510761310300012610ABC
it will extract automatically the AI(01) for EAN14, AI(3103) for the weight and AI(10) for the lot n° and fill the correct fields on my label?
Or do I have to help bartender to extract the info?
Ex: coding that position 3 to 16 it is EAN14, from 21 to 26 it is the weight, etc...
Knowing that it won't be always the same AI's so it makes the coding more complex.
-
Peter Thane
★ BarTender Hero ★
It should pick it up correctly with the GS1 barcode created like this:
0 -
Geiger Geiger
★ BarTender Hero ★
Good morning Pthane,
Thanks for your answer.
I agree 1st step is to do a text field in data entry form and then link it to a field out of the label.
Then what I want to do is when scanning the EAN128 I need to extract each AI to a specific field of my label.
Ex: the AI(10) will go to my label on field "Lot: XXX", the AI(15) will go to my field "best before: DD/DD/DD", etc...
If it would be always the same structure of the EAN128 in term of AI's it would be easy to troncate the code to extract the information, but sometimes I can have different AI's from different suppliers and it makes the thing harder.
I'm just wondering if I can earn some time by using an existing tool and not to code a full vb script (I'm not a coder).
Since EAN128 is widely used in industries, I would be surprised no integrated EAN128 "translator" would be included in BT.
Thanks.
0 -
Peter Thane
★ BarTender Hero ★
BarTender is a label printing package and not a scanning/verification package so you need to tell BarTender what to print and so although it will print correct GS1 symbols it does not recognise them when they are scanned in and so cannot pick up the AIs etc.
I just noticed your 013700189510761310300012610ABC sting is also incorrect as there is no check digit on the GTIN and so I have added the check digit into the string.
If you add a field onto your label (you can drag it off to the side so it doesn't print) and add three Object Value fields onto the label linked to that you can then use Truncation just to display the correct data and so no need for VB to be used. As you can see below for the GTIN I have discarded the first two characters to the left and then just kept the next 14 characters:
0 -
Geiger Geiger
★ BarTender Hero ★
Good morning Pthan, thank you for the answer.
I know BT is used for printing barcodes, but data transmission from 1 label to another is also important and the barcodes don't do mistake (at the opposite of humans); that's why I thought BT would manage EAN128 "decodification" to transfer the data from a label to another.
I have the same way to deal with EAN128 than you do so I'll follow that way.
Thanks again.
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
4 commentaires