最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

datamatrix - ZPL generated GS1 Data Matrix shows as invalid - Stack Overflow

programmeradmin3浏览0评论

I have a ZPL code to print a Datamatrix, the result on ZPL visualizer seems accurate (see image below) but I'm unable to scan it with my scanner app, and a random QR reader says it's an invalid QR.

I Use .html for visualizing

AIs and values

  • 01 00301320005257
  • 10 2416099
  • 17 260520
  • 21 24160992605000008

ZPL Code:

^XA^CF2,25

^FO40,40 ^BXN,7,200,20,20,,_ _10100301320005257_1102416099_117260520_12124160992605000008^FS

^FO200,40^FDGTIN.^FS ^FO300,40^FD00301320005257^FS

^FO200,80^FDB.N.^FS ^FO300,80^FD2416099^FS

^FO200,120^FDEXP^FS ^FO300,120^FD05 2026^FS

^FO200,160^FDS.N.^FS ^FO300,160^FD24160992605000001^FS

^XZ

I have a ZPL code to print a Datamatrix, the result on ZPL visualizer seems accurate (see image below) but I'm unable to scan it with my scanner app, and a random QR reader says it's an invalid QR.

I Use https://labelary/viewer.html for visualizing

AIs and values

  • 01 00301320005257
  • 10 2416099
  • 17 260520
  • 21 24160992605000008

ZPL Code:

^XA^CF2,25

^FO40,40 ^BXN,7,200,20,20,,_ _10100301320005257_1102416099_117260520_12124160992605000008^FS

^FO200,40^FDGTIN.^FS ^FO300,40^FD00301320005257^FS

^FO200,80^FDB.N.^FS ^FO300,80^FD2416099^FS

^FO200,120^FDEXP^FS ^FO300,120^FD05 2026^FS

^FO200,160^FDS.N.^FS ^FO300,160^FD24160992605000001^FS

^XZ

Share Improve this question asked Mar 20 at 13:32 Raghad AlafeefRaghad Alafeef 3532 silver badges6 bronze badges 3
  • Why would you expect a "random QR reader" to read a DataMatrix barcode? Those are two entirely unrelated things. – jasonharper Commented Mar 20 at 13:58
  • Please post a pic of the generated barcode from the zebra printer. Why do you think a qr code app will read a datamatrix barcode? Does the app say it reads datamatrix? – Mark Warren Commented Mar 20 at 13:59
  • It's an app I always use to scan datamatrix, but maybe I shouldn't depend on it. The issue is, even my app that reads data matrices is not capturing anything, here's an example: julebcom-my.sharepoint/:v:/g/personal/raghad_juleb_com/… – Raghad Alafeef Commented Mar 20 at 14:25
Add a comment  | 

2 Answers 2

Reset to default 1

Make sure you Prefix your data with ^FD command.

Labelary shows errors that you have in your ZPL, make sure to review those.

Also, either read the Labelary details of the ^BX command, or read the ZPL documentation so you understand the commands you are passing it. The commands you are using will not allow for a readable barcode.

This produces something scannable:

^FO40,40^BXN,4,200,32,32,,~,1^FD_10100301320005257_1102416099_117260520_12124160992605000008^FS

I found a solution, I checked the example in the docs here (page 146) and removed unnecessary parameters from my command, and added ^FD following the comments here, and it works now :D

Before:

^BXN,7,200,20,20,,_

After:

^BXN,6,200 ^FD

It works without the hash as well, but I added is as an extra separator, will keep it if the printed QR is still accurate.

^XA^CF,25
^FO40,40
^BXN,6,200
^FD0100301320005257102416099#172605302124160992605000008^FS

^FO200,40^FDGTIN.^FS
^FO300,40^FD00301320005257^FS
^FO200,80^FDB.N.^FS
^FO300,80^FD2416099^FS
^FO200,120^FDEXP^FS
^FO300,120^FD12 2026^FS
^FO200,160^FDS.N.^FS
^FO300,160^FD24160992605000001^FS
^XZ

发布评论

评论列表(0)

  1. 暂无评论