Code doesn't fit into label - please help!

Hello,

 

I've searched for a solution, but didn't find one. Perhaps you can help me:

 

I've a small label (4 x 2 cm, GK420D) and I want to place a barcode. The problem is that this barcode will change for every item in type and length. For example: a code with 16 characters (CC00000000001234) is fitting well on the label, BUT a shorter code with just 13 characters (9GG1234L98765) doesn't fit (is to long) ! Why?

 

Here is my ZPL code - what's wrong with it?

 

LOOKS GOOD:

^XA

^LH145,15

^FO0,40^BY2^BCN,40,Y,N,N,A^FDCC00000000001234^FS

^XZ

 

LOOKS BAD:

^XA

^LH145,15

^FO0,40^BY2^BCN,40,Y,N,N,A^FD9GG1234L98765^FS

^XZ

 

I've tested it with ZPL Viewer and printed it, in both situations the barcode is to long - when I'm using the shorter code!

 

Thanks a lot for your help!!!

 

Alex

Samantha Corn
Hi Alex,Unfortunately, Zebra

Hi Alex,

Unfortunately, Zebra barcodes size with the size of the data you encode. While the number of characters has some effect, printing alphanumeric codes also make barcodes longer. You can try making all of your barcodes narrower by changing the ^BY2 to ^BY1, which changes the default module width and results in the whole barcode being narrower.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Alexander Herrmann
Hello Samantha,thanks for

Hello Samantha,

thanks for your reply. Hm, with ^BY1 the barcode and the text below the code is really small / tiny and that's not the perfect solution.

Is there any trick to manage this problem? Perhaps with BY1 and some resolution (DPI) tricks or something else?

Thanks,

Alex

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Samantha Corn
Hi Alex,I'm sorry, the Code

Hi Alex,

I'm sorry, the Code 128 barcodes are pretty set and hard to resize. These barcodes remain the same size even if the printer's resolution is changed. I printed a few tests, and if you change the ^BY2 to ^BY1 and change the ^BCN,40,Y,N,N,A to ^BCN,40,Y,N,N,D, the text is resized and becomes much more readable. The barcode itself also becomes slightly longer.

Vote: 
Vote up!
Vote down!

Points: 1

You voted ‘up’


Alexander Herrmann
Thank you Samantha! It's not

Thank you Samantha! It's not perfect, but it's a solution

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments