Cannot read barcode produced by ZPL Code 39 - barcode

I am trying to print a barcode (code 39) to a label (2" x .75") on a Zebra ZT610 (600 DPI) printer, but none of our 3 barcode scanners will decode the barcode. We are encoding a 14-character alphanumeric value. I created the label using ZebraDesigner, and passed the ZPL to the printer using Zebra Setup Utilities. I also use Labelary to check the label, and change parameter values.
I have tried every conceivable combination of the ^BY and ^B3 commands I can think of, that would fit on the label, including shortening the data for testing (encode only 8 characters). Here is the latest ZPL with a barcode that should be well within the label's printable area, but scanners will not read it:
^XA~JSN^LT0^MNM^MTT^PON^PMN^LH0,0^JMA^PR2,2~SD15^JUS^LRN^CI0^XZ
^XA^MMT^PW1200^LL0449^LS0^XZ
^XA^BY4,3,143^FT82,192^B3N,N,,N,N
^FD2116A83034137M^FS
^FT39,258^AAN,45,25^FH^FD2116A83034137M^FS
^PQ1,0,1,Y^XZ
Unreadable label image:
We also have an old Zebra R110Xi4 (203 DPI) printer that we also print code 39 barcodes to, on the same labels. The barcodes on these labels are perfectly readable by the scanners. This is the ZPL for it:
^XA~JSN^LT0^MNM^MTT^PON^PMN^LH0,0^JMA^PR8,8~SD30^JUS^LRN^CI0^XZ
^XA^MMT^LL0102^PW379^LS0^XZ
^XA^BY1,3,40^FT50,54^B3N,N,,N,N
^FD2116A83034137M^FS
^FT0,73^ABN,11,7
^FD2116A83034137M^FS
^PQ1,0,1,Y^XZ
Are there any suggestions as to what I might try next?
Thank you!

Related

Vietnamese text printing on ZPL printer using Zpl commands

I am trying to print Vietnamese text on my Zebra label using Zpl coding.
But i am getting issues in vietnamese characters. For example, i am trying to print a label with text "Nhập khẩu" but it is giving me the output "Nh p kh u", thus missing the Vietnamese fonts.
I have tried using Andale and Swiss font and also declaring the ^CI28 tag for printing various characters in utf-8 encoding.
If anyone else has any other inputs, please let me know.. thanks in advance..
EDIT:
This is the code i am using..
^XA^CWZ,E:TT0003M_.TTF^FS^XZ
^XA
^CF01,20,15
^CI28
^FO20,20^FDNhập khẩu - LOẠI:For Fujifilm^FS
^XZ
Have you tried google's Noto fonts?
https://fonts.google.com/specimen/Noto+Sans
I have used them to render Vietnamese. If that doesn't work, post the sample ZPL you have tried and we can work through it.
Here is some example ZPL. This assumes the Noto Sans font is saved to the printer as E:NOTOSANS.TTF:
^XA^CI28
^A#N,32,32,E:NOTOSANS.TTF
^FO50,50
^FDNhập khẩu^FS
^XZ

Printing barcodes on Epson thermal printer

I have acquired an Epson thermal printer (TM-T82II) with a control utility (APD5) that allows me to configure and test the printer. I use the utility to (try to) print barcodes, but cannot find any documentation on how to make use of the Code128 support I need.
I want to print out a Code 128 barcode for "PQR123X1122331807110011223344". I seem to be able to do this by specifying a test string of "{APQR123X1122331807110011223344" to encode the string in Font A, and likewise use "{BPQR123X1122331807110011223344" to encode it entirely in Font B. Both generate barcodes too wide for the paper I have. However, there is a large run of digits after the "X" which is more efficiently encoded in Font C and that I know will fit (I have an example from another printer). The obvious thing of using "{APQR123X{C1122331807110011223344" produces garbage.
Can anyone point to documentation that unravels how Epson do font-switching in Code 128?
#Omatai,
Epson's ESC/POS printer language does not use fonts for rendering barcodes. If you are directly sending escape codes to the Epson printer, GS w is the command to set the barcode width in ESC/POS, where w is a number between from 2 (thinnest) to 6 (thickest) which specifies the width of the barcode's minimum element. The actual measurement is dependent on the model of the Epson printer.
Epson ESC/POS Documentation: https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=2
To help you further, this group would need to know more about the programming model that you are using and the associated code that you are attempting to use.
Terry Warwick, Microsoft

Is there a way to override the interpretation line with an arbitrary value in ZPL

I have looked at the Zebra documentation for ZPL as well as searched here on SO to no avail. My scenario is this, I wish to print a barcode on a label using a Zebra printer and ZPL print language but instead of the interpretation line (the human-readable bit below the barcode) being the human-readable version of the barcode I would like it to be a totally different value, e.g. a persons name.
This is the ZPL II guide I am using for reference: http://www.ypsylon.com/download/ZPLII_Guida.pdf
You cannot override the text that prints as part of the interpretation line (aka human readable), however you can turn the interpretation line off and add second text field:
^XA
^BY3,3,146^FT52,166^BCN,,N,N
^FD>:your_barcode_data_here^FS
^FT241,309^A0N,28,28^FH\^FDyour_text_data_here^FS
^PQ1,0,1,Y^XZ
To turn off the human readable set the 3rd parameter of the ^BC command to N.
You can play with the position of the text field to get the desired effect.
Check page page 89 of the current manual for more info.

ZPL PDF-417 barcode symbol generates with extra spaces on Intermec PM4i

We are designing a label to be printed from SAP to an Intermec PM4i printer in ZSim mode. The printer is using the Generic Text driver, meaning that we can send raw ZSim-compatible ZPL code to the printer.
The content of the PDF417 barcode must be one string exactly 100 characters in length. This is my customer's requirement, not mine.
We developed an application that generates the proper ZPL code with all the characters in their proper position. However, when validating the printed barcode with a scanner using Motorola's 123Scan2 utility, all our data is there but we keep getting 6 additional spaces at around position 70 of the string, resulting in a string 106 characters long.
We also sent the ZPL code to the printer from a text editor and observed the same results. Below code snippet is what we are using to generate the barcode.
^XA
^MMT
^PW609
^LL0203
^BY2,4^FT331,111^B7N,4,0,,,N
^FH\^FDMN23012635105 A MN239598U205 QDR-032565.14812 H030^FS
^XZ
I have also experimented with sending the spaces as hex and that actually resulted in more extra spaces.
I am not sure what we are missing. Any ideas or suggestions will be greatly appreciated.

Zebra printer: printed images blurry

My customer recently bought Zebra GK420t printers and wants to print barcodes with them. The barcodes are JPEG files with a resolution of 3000x5000 pixels. The DPI is 203x203 and the images are 1-bit.
The barcodes are printed in Firefox. Because the barcodes only need to be about 150x250 pixels, I included them this way in the HTML-page:
<img src="barcode.jpeg" width="250" height="150" />
UPS is doing this the same way with their labels to keep a good quality image. When I print the labels with a laser printer they just look fine. But when I print them with the Zebra printer they look blurry. I also tried printing it in full size with the Zebra printer and they just look fine then. Below are the results I scanned:
Zebra vs Laser:
Zebra fullsize:
http://img208.imageshack.us/img208/6259/zebra2r.jpg
Does anyone know what I'm doing wrong? Why is the result on the Zebra printer blurry?
Zebra printers have their own printing lanugage called ZPL. And ZPL has a wide range of barcode support you wont need to use jpg's for that. You could simple give the command for the specific barcode you want and what number or text it requires...but you need to study ZPL codes a bit its not super easy, but it will print better then what you showed here.

Resources