开始标签格式
^XA每个标签格式都应由 ^XA 开始、^XZ 结束。
快速搜尋常用 Zebra ZPL 指令、範例與標籤列印說明,涵蓋版面、文字、條碼、圖形與設備設定。
^XA每个标签格式都应由 ^XA 开始、^XZ 结束。
^XZ缺少 ^XZ 是打印任务失败的常见原因。
^PW812Width in dots = physical width in mm × actual dpmm.
Changing print width does not scale existing fields.
^LL1218Label length in dots = physical height in mm × actual dpmm.
A larger ^LL does not move or stretch content; choose matching preview dimensions.
^FO50,80x,y in dots; the field starts at this origin.
Coordinates are not millimeters. Global offsets and rotation can change placement.
^FT50,120x,y in dots; text uses the typesetting baseline.
Using the same y as ^FO does not give the same text position.
^A0N,40,40选择字体、旋转方向、高度和宽度。
^FDHello^FS字段中的文本或编码数据。
^FS结束一个字段。缺少分隔符会造成难以排查的输出。
^GB400,2,2^FS绘制线条、方框和分隔线。
^BY3,2,120设置条码模块宽度、比例和高度默认值。
^BCN,120,Y,N,Norientation,height,human-readable,above,check-digit,mode. Example: ^BCN,100,Y,N,N.
Use ^BY for module width, preserve quiet zones, and verify decoded data with a scanner.
^BQN,2,6^FDQA,https://example.com^FSN orientation, model 2, magnification in dots. ^FDLA,data selects error correction L and automatic input.
Missing the data prefix can change interpretation. Leave a quiet zone of four modules and test the output.
^BXN,5,200orientation,module size,ECC quality,columns,rows,format,escape. Example: ^BXN,5,200,0,0,1,~.
Module size is in dots, not bar height. ECC 200 uses a numeric quality value. GS1 requires FNC1, not a literal GS character at the start.
^CI28Select UTF-8 before the text fields; save the source as UTF-8.
The printer font must contain the requested glyphs. Encoding alone does not install fonts.
^LH0,0偏移整个标签坐标系统。
~SD15打印机设置。请在真实耗材上谨慎测试。
^PR4打印速度会影响条码质量。
透過預設值了解工具預期的 ZPL 結構和輸出形態。
上線前檢查標籤尺寸、DPI、條碼資料和印表機相關設定。
當工具生成 ZPL 時,建議繼續用主 ZPL 預覽器做最終視覺檢查。