Start label format
^XAWrap every label format with ^XA and ^XZ.
Search common Zebra ZPL commands, examples, and printer-label notes for layout, text, barcode, graphics, and device setup work.
^XAWrap every label format with ^XA and ^XZ.
^XZMissing ^XZ is one of the easiest ways to break a job.
^PW812Set the label width in dots.
^LL1218Set label length in dots.
^FO50,80Place the next field at x,y coordinates.
^FT50,120Alternative field positioning, often baseline-oriented.
^A0N,40,40Choose font, rotation, height, and width.
^FDHello^FSText or encoded data for a field.
^FSEnds a field. Missing separators cause confusing output.
^GB400,2,2^FSDraw lines, boxes, and separators.
^BY3,2,120Set barcode module width, ratio, and height defaults.
^BCN,120,Y,N,NCommon for shipping and inventory labels.
^BQN,2,6^FDQA,https://example.com^FSUse model 2 QR with module size.
^BXN,5,200Common for compact 2D labels.
^CI28Use before UTF-8 text fields.
^LH0,0Offset the whole label coordinate system.
~SD15Printer setting. Test carefully on real media.
^PR4Printer speed can affect barcode quality.
既定値を使って、期待される ZPL の形を確認します。
本番前にラベルサイズ、DPI、バーコードデータ、プリンター設定を確認します。
ZPL を生成するツールでは、最後にメインの ZPL ビューアで見た目を確認してください。