40 × 30 mm label
What layout is the 40 × 30 mm format suitable for?
The example identifies an asset with ASSET A17 text and a QR containing A17. It stores an identifier rather than a URL, allowing an inventory application to look up the record.
What limitation should I consider with 40 × 30 mm?
Replacing A17 with a long URL may increase module count and overall size. Preserve a white margin of at least four modules around the QR and verify the new layout before printing.
Dimensions in pixels (dots) per DPI
| DPI | Width × height (dots) |
|---|---|
| 203 | 320 × 240 |
| 300 | 472 × 354 |
| 600 | 945 × 709 |
Rounded values: dots = mm × DPI / 25.4. Check the actual head density in your printer specifications; some manufacturers state it in dots/mm.
Working area at 203 DPI with a 3 mm margin: 272 × 192 dots. The margin is a choice for this example, not a manufacturer specification.
Example layout by resolution
Educational example; not a certified label or a physical print test. Sample text and codes stay the same in every language for comparison.
40 × 30 mm · 203 DPI
^XA
^PW320
^LL240
^FO24,24^A0N,24,24^FDASSET A17^FS
^FO24,80^BQN,2,3^FDLA,A17^FS
^XZ40 × 30 mm · 300 DPI
^XA
^PW472
^LL354
^FO35,35^A0N,35,35^FDASSET A17^FS
^FO35,118^BQN,2,4^FDLA,A17^FS
^XZ40 × 30 mm · 600 DPI
^XA
^PW945
^LL709
^FO71,71^A0N,71,71^FDASSET A17^FS
^FO71,236^BQN,2,9^FDLA,A17^FS
^XZWhat changes between resolutions
The examples scale positions and sizes with DPI: changing only ^PW and ^LL does not scale the content. ^BY and QR magnification use integer modules, so physical size may vary slightly.
How to adapt and verify the label
Measure width across the media path and height along the roll. Print without fit-to-page; check margins, dimensions and scanning with your intended media and reader. ^LL does not replace sensor calibration.
About the author
Eduard Diaz
Eduard Diaz is an IT technician (development) at S-IE, an official Zebra partner with more than 20 years providing identification and labelling services. He builds and maintains EditorZPL to make working with ZPL and Zebra label printers easier.
s-ie.cat