Alphanumerics with UCC128 barcode

J Jermaine Quinton 3 years 7 months ago
277 1 0

I have the following zpl code
^FO25,215^A0,N,25,25^BCN,100,N,N,N,U^FN21^FS The customer wants this barcode as a UCC 128 barcode, but their data is alphanumeric. I looked through the zpl docs and it mentions that if you pick option U for the mode it defaults to Subset C, which automatically strips out the alpha characters.
It further mentions that I can prepend the entry with >9 or >7 to make this Subset A which allows alphanumerics. But when I try:
^FO25,215^A0,N,25,25^BCN,100,N,N,N,U^FN>721^FS It still removes the letters from the barcode. Not only that, but it adds 7 as well. How can I get alphanumerics in my barcode?

Please Register or Login to post a reply

1 Replies

E Efkan YILMAZ

Hi Jermaine,
If you just want standard Alphanumeric in a UCC128 barcode, the easiest way is to use the defaults (Subset B):
^FO25,25^A0,N,25,25^BCN,100,N,N,N^FD21Hello^FS
EDIT: encodes "21Hello" in the barcode
This will allow for alphanumerics, but will not pad out to 19 digits.
It looks like in U mode, Subset C is not only the default, but it is the only character option.  The alpha characters are always stripped to allow for correct numeric padding.

Subset A is tricky to deal with because of the numeric pairs you have to give as data. To encode the string "21H", you have to enter ^FD>9181740^FS
Note I changed the ^FN to an ^FD to show the field with alphanumeric data. ^FN is used to specify a field in a format, not data.

CONTACT
Can’t find what you’re looking for?