Recently, we got a development requirement with our ZD420 printer.
The production line has requested that the DataMatrix barcode be printed with dimensions precisely 12mm x 12mm.
Upon investigation, we found that the printer can only print a whole number of dots, which makes it impossible to set an exact size for the DataMatrix.
It's possible that our investigation was incorrect,
so we're seeking expert advice. thanks a lot.
Is there a way to set an exact printing size for the DataMatrix, such as 12x12 mm, 13x13 mm, etc.?
Below is our printing command for reference.
^XA
^FO10,10
^BXN,6,200,24,24
^FD2325500336USN2HCWOJ03ASA0115369390000000002^FS
^XZ
3 Replies
The dimension of a DataMatrix barcode (^BX command in ZPL) cannot be precisely specified in ZPL. The dimension can approximately match with 12mm x 12mm with the following ZPL, by changing the module dimension from 6 to 4.
I got it, thanks a lot.
To print a DataMatrix barcode with precise dimensions on your ZD420 printer, you need to adjust the barcode size in dots according to the printer's DPI (dots per inch).
For 203 DPI:
Copy code
^XA ^FO10,10 ^BXN,8,96 ^FD2325500336USN2HCWOJ03ASA0115369390000000002^FS ^XZ
For 300 DPI:
Copy code
^XA ^FO10,10 ^BXN,12,142 ^FD2325500336USN2HCWOJ03ASA0115369390000000002^FS ^XZ
For 600 DPI:
Copy code
^XA ^FO10,10 ^BXN,24,283 ^FD2325500336USN2HCWOJ03ASA0115369390000000002^FS ^XZ
Adjust the
^BXN
parameters (module height
andsymbol size
) based on your printer's DPI to achieve the desired 12mm x 12mm size.