Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Barcode 39 ZPL too wide

Hello,

I don't know if I'm right here, but I should print a barcode 39 and it is too wide for our label...

Here are the ZPL commands I used (printer is a Zebra ZM400):

^XA

^FO50,145

^B3N,N,126,Y

^FD300614500038930005805010737^FS

^XZ

I tried using the ^BY1 Command but then it is too small - so the scanner isn't able to read it.

The width should have max 8,5cm. Now it has about 11,5 cm.

Could you help me please?

Thanks in advance!

Best regards

Marcel

Former Member
replied

Hello Marcel,

I see you are composing the ZPL commands directly in the SAP form.

From the ZPL2 manual I see that width and height parameters of  barcodes can be set via the ^BY command ("Barcode Field Default"):

^BYw,r,h

where

w = module (narrow bar) width in dots  (1 ..10)

r = wide bar to narrow bar width ratio (2.0 ... 3.0)

h = height of bars in dots (1..32000)

Attention: according to the manual, these settings stay in effect for consecutive barcodes as well!

Regards,

  Alex

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question