21

Am doing a formatting of barcode label. We are using Zebra Programming Language , ^BC (Code 128) bar code

As i increase the size of ^FD Field Data , the barcode width is increasing.

But how can i print a broader bar code for a fixed small length data.

I saw magnifying factor for some other types like UPC E barcode.

But i dont find any magnifying factor for ^BC code 128 barcode.

I put some space and it increase width but not effective while reading barcode

zod
  • 12,092
  • 24
  • 70
  • 106

2 Answers2

42

Look at the ^BY command

^XA
^FO100,100^BY7
^BCN,100,Y,N,N
^FD123456^FS
^XZ

The first parameter is the width of the barocdes after it. The default is 2, range is 1-10

To change the font, size, and placement of the text on the intrepretation line, use the ^A command

^XA
^FO100,100^BY7
^A0N,40,30^BCN,100,Y,N,N
^FD123456^FS
^XZ
Ovi Tisler
  • 6,425
  • 3
  • 38
  • 63
  • one doubt. when we increase barcode, human readable data of the barcode also increase or we can set that too – zod Aug 09 '11 at 14:16
  • 2
    Do yo mean the interpretation line? You can use the ^A font command to change the font and the font size. I'll edit my answer to show that – Ovi Tisler Aug 09 '11 at 15:00
  • 7
    We're having problem controlling the width of the barcode. At BY2 the width is too narrow while at BY3 the width is too wide for the label. Is there any other way to control the width? – ian Jul 31 '14 at 02:34
  • 2
    Nope, by default the width can be integers only 1-10 and not 1.7, 3.6 – Nagaraj Raveendran Jun 16 '17 at 18:13
1

I know it's too late to answer your question but I thought it might help others.

I faced the same issue and solved by this trick where I set BC mode to A (for automatic).

example:

^BY3,3,55^FT12,172^BCN,,Y,N,,A
^FD123456789^FS

this resulted a better barcode width for me than when mode is set to its default value.

Note: still you can change BY to suit your needs.

You can refer to the documentation for more information zpl BC command

22dev
  • 11
  • 3