ZPL 命令参考与速查表
ZPLCraft更新于 2026年9月6日

本文是常用 ZPL II 命令的实用参考,涵盖格式结构、文字、字体、条码、图形和打印机控制。所有位置和尺寸均以 打印机点为单位(203 dpi = 8 点/毫米——参见 什么是 ZPL?了解基础知识)。语法列中的参数说明:x,y= 距左上角的位置, h,w= 高度和宽度,o= 方向(N 正常,R 90°,I 180°,B 270°)。
标签格式
| 命令 | 语法 | 功能说明 |
|---|---|---|
^XA | ^XA | 标签格式开始。每个标签均以此命令开头。 |
^XZ | ^XZ | 标签格式结束。打印机收到此命令后渲染并打印标签。 |
^FX | ^FXcomment | 注释——打印机忽略。与其他字段一样以 ^FS 结尾。 |
^PW | ^PWwidth | 打印宽度(点)。设置为标签宽度,防止字段被裁切。 |
^LL | ^LLlength | 标签长度(点)。主要用于连续(无间距)介质。 |
^LH | ^LHx,y | 标签原点——偏移所有后续 ^FO 位置的起点。 |
^PQ | ^PQqty | 打印数量——此标签打印多少份副本。 |
^PR | ^PRspeed | 打印速度(英寸/秒)。较慢的速度通常打印更深、更清晰。 |
^MD | ^MDdarkness | 介质深度调整,范围 -30 至 30。打印浅淡时适当调高。 |
字段与文字
| 命令 | 语法 | 功能说明 |
|---|---|---|
^FO | ^FOx,y | 字段原点——将下一字段定位在距标签原点 x,y 点处。 |
^FD | ^FDdata | 字段数据——当前字段的内容(文字或条码数据)。 |
^FS | ^FS | 字段分隔符——关闭当前字段。每个字段后均需使用。 |
^FB | ^FBwidth,lines,space,align | 字段块——将 ^FD 文字排版成块:最大宽度、最大行数、行间距、对齐方式(L/C/R/J)。 |
^FR | ^FR | 字段反色——在与黑色区域重叠处将字段打印为黑底白字。 |
^FH | ^FH | 字段十六进制——允许在 ^FD 中使用 _xx 十六进制转义,例如 _C3_A9 表示 é。 |
^CI | ^CIencoding | 字符集;^CI28 选择 UTF-8,推荐用于任何非 ASCII 文字。 |
字体
| 命令 | 语法 | 功能说明 |
|---|---|---|
^A | ^Afo,h,w | 下一字段的字体:字体字母 f(0–9, A–Z)、方向、高度和宽度(点)。^A0N,40,40 表示默认可缩放字体,高度 40 点。 |
^CF | ^CFf,h,w | 更改所有后续未设置 ^A 的字段的默认字体。 |
^A@ | ^A@o,h,w,name | 使用打印机上存储的字体文件(例如已下载的 TrueType 字体)。 |
字体 0 是可缩放矢量字体,通常为首选;字体 A–H 是固定大小的位图字体,只在其原生尺寸或整数倍时效果正常。
条码
| 命令 | 语法 | 功能说明 |
|---|---|---|
^BY | ^BYw,r,h | 条码字段默认值:模块(窄条)宽度(点)、宽窄比、默认高度。在条码命令之前设置。 |
^BC | ^BCo,h,f,g,e,m | Code 128——物流行业最常用的一维条码。f=Y 打印人类可读行,g=Y 将其打印在条码上方。 |
^B3 | ^B3o,e,h,f,g | Code 39——部分工业和国防规范仍要求使用的较旧一维码制。 |
^BE | ^BEo,h,f,g | EAN-13 零售条码(UPC-A 请使用 ^BU)。 |
^BQ | ^BQa,model,mag,ec | QR 码。放大倍数 1–10 设置模块大小;ec 设置纠错等级(H/Q/M/L)。数据前需加编码模式前缀,例如 ^FDQA,https://… |
^BX | ^BXo,h,s,c,r,f | Data Matrix——广泛应用于电子产品和医疗标签的紧凑型二维码。 |
^B7 | ^B7o,h,m,c,r,t | PDF417——用于证件和部分物流单据的堆叠式二维码。 |
条码尺寸因码制而异。使用 ^BY 设置模块宽度、宽窄比和高度,然后按照适用的码制、承运商或行业规范确定最小尺寸和静区。预览不能替代使用生产扫描器和介质对实物打印结果进行验证。
图形
| 命令 | 语法 | 功能说明 |
|---|---|---|
^GB | ^GBw,h,t,c,r | 图形方框:宽度、高度、边框厚度、颜色(B/W)、圆角程度 0–8。细 ^GB 即可绘制线条。 |
^GC | ^GCd,t,c | 图形圆形,直径 d,边框厚度 t。 |
^GD | ^GDw,h,t,c,o | 在 w×h 方框内绘制图形斜线;o 设置方向(L 或 R)。 |
^GF | ^GFa,b,c,d,data | 图形字段——将位图(如徽标)以十六进制或二进制数据直接嵌入标签。 |
~DG | ~DGd:name,t,w,data | 下载图形——将图像存储到打印机,然后通过 ^XG 调用。 |
^XG | ^XGd:name,mx,my | 在当前字段原点处调用已存储的图形,并设置 x/y 放大倍数。 |
打印机控制与状态
| 命令 | 语法 | 功能说明 |
|---|---|---|
~HS | ~HS | 主机状态——打印机返回缺纸、暂停、缓冲区和里程计信息。 |
~HI | ~HI | 主机识别——型号、固件版本、DPI 和内存。 |
^MM | ^MMmode | 打印模式:T 撕离,P 剥离,R 回卷,C 切割。 |
^MN | ^MNtype | 介质检测:Y 间隙/网格检测,M 黑标检测,N 连续。 |
~JC | ~JC | 运行介质校准(打印机进给几张标签以找到间隙)。 |
~JA | ~JA | 取消打印机缓冲区中的所有标签格式。 |
^JUS | ^JUS | 将当前设置保存到闪存,断电后不丢失。 |
所有 ZPL 命令
文本与字体
^A Scalable/Bitmapped Font
^Afo,h,w
预览取决于参数和资源。渲染限制会显示在源码旁。
Built-in fonts use published cell metrics with bundled replacement outlines; their glyph shapes can differ from printer firmware. N/J/L use local Noto fonts. Embedded TrueType fonts load locally; fonts stored only on a printer are unavailable.
f- Font identifier
o- Orientation
h- Character height in dots
w- Character width in dots
^A0 Scalable Font 0
^A0o,h,w
预览取决于参数和资源。渲染限制会显示在源码旁。
Built-in fonts use published cell metrics with bundled replacement outlines; their glyph shapes can differ from printer firmware. N/J/L use local Noto fonts. Embedded TrueType fonts load locally; fonts stored only on a printer are unavailable.
o- Orientation
h- Character height in dots
w- Character width in dots
^A@ Use Font Name to Call Font
^A@o,h,w,d:f.x
预览取决于参数和资源。渲染限制会显示在源码旁。
Built-in fonts use published cell metrics with bundled replacement outlines; their glyph shapes can differ from printer firmware. N/J/L use local Noto fonts. Embedded TrueType fonts load locally; fonts stored only on a printer are unavailable.
o- Orientation
h- Character height in dots
w- Character width in dots
d- Storage device
f- Font filename
x- Filename extension
^CF Change the Alphanumeric Default Font
^CFf,h,w
预览取决于参数和资源。渲染限制会显示在源码旁。
Built-in fonts use published cell metrics with bundled replacement outlines; their glyph shapes can differ from printer firmware. N/J/L use local Noto fonts. Embedded TrueType fonts load locally; fonts stored only on a printer are unavailable.
f- specified default font
h- individual character height (in dots)
w- Default character width in dots
^CI Change International Font/Encoding
^CIa,s1,d1,s2,d2,...
预览取决于参数和资源。渲染限制会显示在源码旁。
a- Character encoding
s1- First output character
d1- First input character
s2- Second output character
d2- Second input character
^CW Font Identifier
^CWa,d:o.x
预览取决于参数和资源。渲染限制会显示在源码旁。
Built-in fonts use published cell metrics with bundled replacement outlines; their glyph shapes can differ from printer firmware. N/J/L use local Noto fonts. Embedded TrueType fonts load locally; fonts stored only on a printer are unavailable.
a- letter of existing font to be substituted, or new font to be added
d- device to store font in (optional)
o- name of the downloaded font to be substituted for the built- in, or as an additional font
x- Font file extension
^FL Font Linking
^FL<ext>,<base>,<link>
预览取决于参数和资源。渲染限制会显示在源码旁。
Resources must be defined in this source document. The preview cannot read files from printer memory.
ext- Extension font
base- Base font
link- Link or unlink (1 or 0)
^HT Host Linked Fonts List
^HT
^LF List Font Links
^LF
^PA Advanced Text Properties
^PAa,b,c,d
预览取决于参数和资源。渲染限制会显示在源码旁。
Missing-glyph, bidirectional ordering, contextual shaping and OpenType feature switches apply locally. The missing-glyph marker is a consistent hollow box; a custom font’s proprietary .notdef outline may differ.
a- default glyph
b- bidirectional text layout
c- character shaping
d- OpenType table support
^SE Select Encoding Table
^SEd:o.x
此命令无法在本地预览。原始 ZPL 会保留。
d- location of encoding table
o- name of encoding table
x- Encoding filename extension
^TB Text Blocks
^TBa,b,c
条码
^B0 Aztec Barcode Parameters
^B0a,b,c,d,e,f,g
预览取决于参数和资源。渲染限制会显示在源码旁。
Single Aztec symbols and runes are rendered. Structured append is not rendered.
a- orientation
b- magnification factor
c- extended channel interpretation code indicator
d- error control and symbol size/type indicator
e- menu symbol indicator
f- number of symbols for structured append
g- optional ID field for structured append
^B1 Code 11 Barcode
^B1o,e,h,f,g
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
e- check digit
h- barcode height (in dots)
f- print interpretation line
g- print interpretation line above code
^B2 Interleaved 2 of 5 Bar Code
^B2o,h,f,g,e,j
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- bar code height (in dots)
f- print interpretation line
g- print interpretation line above code
e- calculate and print Mod 10 check digit
^B3 Code 39 Barcode
^B3o,e,h,f,g
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
e- Mod-43 check digit
h- bar code height (in dots)
f- print interpretation line
g- print interpretation line above code
^B4 Code 49 Barcode
^B4o,h,f,m
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- height multiplier of individual rows
f- print interpretation line
m- starting mode
^B5 Planet Code Barcode
^B5o,h,f,g
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation code
h- barcode height (in dots)
f- interpretation line
g- determines if the interpretation line is printed above the barcode
^B7 PDF417 Bar Code
^B7o,h,s,c,r,t
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- bar code height for individual rows (in dots)
s- security level
c- number of data columns to encode
r- number of rows to encode
t- truncate right row indicators and stop pattern
^B8 EAN-8 Barcode
^B8o,h,f,g
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- bar code height (in dots)
f- print interpretation line
g- print interpretation line above code
^B9 UPC-E Barcode
^B9o,h,f,g,e
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- barcode height (in dots)
f- print interpretation line
g- print interpretation line above code
e- print check digit
^BA Code 93 Barcode
^BAo,h,f,g,e
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- bar code height (in dots)
f- print interpretation line
g- print interpretation line above code
e- print check digit
^BB CODABLOCK Barcode
^BBo,h,s,c,r,m
预览取决于参数和资源。渲染限制会显示在源码旁。
Codablock F is rendered. Codablock A and E are not rendered.
o- orientation
h- bar code height for individual rows (in dots)
s- security level
c- number of characters per row (data columns)
r- number of rows to encode
m- mode
^BC Code 128 Barcode (Subsets A, B, and C)
^BCo,h,f,g,e,m
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- barcode height (in dots)
f- print interpretation line
g- print interpretation line above code
e- UCC check digit
m- mode
^BD UPS MaxiCode Bar Code
^BDm,n,t
^BE EAN-13 Barcode
^BEo,h,f,g
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- barcode height (in dots)
f- print interpretation line
g- print interpretation line above code
^BF MicroPDF417 Barcode
^BFo,h,m
^BI Industrial 2 of 5 Bar Codes
^BIo,h,f,g
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- bar code height (in dots)
f- print interpretation line
g- print interpretation line above code
^BJ Standard 2 of 5 Bar Code
^BJo,h,f,g
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- Barcode height (in dots)
f- print interpretation line
g- print interpretation line above code
^BK ANSI Codabar Bar Code
^BKo,e,h,f,g,k,l
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
e- check digit
h- Barcode height (in dots)
f- print interpretation line
g- print interpretation line above code
k- designates a start character
l- designates stop character
^BL LOGMARS Barcode
^BLo,h,g
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- Barcode height (in dots)
g- print interpretation line above code
^BM MSI Bar Code
^BMo,e,h,f,g,e2
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
e- check digit selection
h- Barcode height (in dots)
f- print interpretation line
g- print interpretation line above code
e2- inserts check digit into the interpretation line
^BO Aztec Bar Code Parameters
^BOa,b,c,d,e,f,g
预览取决于参数和资源。渲染限制会显示在源码旁。
Single Aztec symbols and runes are rendered. Structured append is not rendered.
a- orientation
b- magnification factor
c- extended channel interpretation code indicator
d- error control and symbol size/type indicator
e- menu symbol indicator
f- number of symbols for structured append
g- optional ID field for structured append
^BP Plessey Barcode
^BPo,e,h,f,g
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
e- print check digit
h- barcode height (in dots)
f- print interpretation line
g- print interpretation line above code
^BQ QR Code Barcode
^BQa,b,c,d,e
预览取决于参数和资源。渲染限制会显示在源码旁。
a- field orientation
b- model
c- magnification factor
d- error correction
e- mask value
^BR GS1 Databar (formerly Reduced Space Symbology)
^BRa,b,c,d,e,f
预览取决于参数和资源。渲染限制会显示在源码旁。
a- orientation
b- symbology type in the GS1 DataBar family
c- magnification factor
d- separator height
e- Barcode height
f- the segment width (GS1 DataBar Expanded only)
^BS UPC/EAN Extensions
^BSo,h,f,g
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- Barcode height (in dots)
f- print interpretation line
g- print interpretation line above code
^BT TLC39 Barcode
^BTo,w1,r1,h1,w2,h2
此命令无法在本地预览。原始 ZPL 会保留。
TLC39 composite rendering is not available in the local preview.
o- orientation
w1- width of the Code 39 bar code
r1- wide to narrow bar width ratio the Code 39 bar code
h1- height of the Code 39 bar code
h2- row height of the MicroPDF417 bar code
w2- narrow bar width of the MicroPDF417 bar code
^BU UPC-A Barcode
^BUo,h,f,g,e
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- Barcode height (in dots)
f- print interpretation line
g- print interpretation line above code
e- Include check digit in text
^BX Data Matrix Barcode
^BXo,h,s,c,r,f,g,a
预览取决于参数和资源。渲染限制会显示在源码旁。
ECC 200 Data Matrix is rendered. Legacy ECC 000–140 is not rendered.
o- orientation
h- dimensional height of individual symbol elements
s- quality level
c- columns to encode
r- rows to encode
f- format ID (0 to 6)
g- escape sequence control character
a- Square or rectangular symbol
^BY Bar Code Field Default
^BYw,r,h
预览取决于参数和资源。渲染限制会显示在源码旁。
w- Narrow module width in dots
r- Wide to narrow bar ratio
h- Default barcode height in dots
^BZ Postal Barcode
^BZo,h,f,g,t
预览取决于参数和资源。渲染限制会显示在源码旁。
o- orientation
h- Barcode height (in dots)
f- print interpretation line
g- print interpretation line above code
t- Postal code type
字段
^FB Field Block
^FBa,b,c,d,e
预览取决于参数和资源。渲染限制会显示在源码旁。
a- width of text block line (in dots)
b- maximum number of lines in the text block
c- add or delete space between lines (in dots)
d- text justification
e- hanging indent (in dots) of the second and remaining lines
^FC Field Clock
^FCa,b,c
预览取决于参数和资源。渲染限制会显示在源码旁。
Date and time fields use the local preview clock. A printer clock may produce different values.
a- primary clock indicator character
b- secondary clock indicator character
c- third clock indicator character
^FD Field Data
^FDa
^FE Field Concatenation
^FEa
^FH Field Hexadecimal Indicator
^FHa
^FM Multiple Field Origin Locations
^FMx1,y1,x2,y2,...
预览取决于参数和资源。渲染限制会显示在源码旁。
PDF417 and MicroPDF417 split into linked symbols only when needed. Excluded origins retain their segment indexes; too few origins or insufficient macro capacity suppress the group.
x1- x-axis location of first symbol (in dots)
y1- y-axis location of first symbol (in dots)
x2- x-axis location of second symbol (in dots)
y2- y-axis location of second symbol (in dots) …
^FN Field Number
^FN#"a"
^FO Field Origin
^FOx,y,z
预览取决于参数和资源。渲染限制会显示在源码旁。
x- x-axis location (in dots)
y- y-axis location (in dots)
z- Field justification
^FP Field Parameter
^FPd,g
^FR Field Reverse Print
^FR
^FS Field Separator
^FS
^FT Field Typeset
^FTx,y,z
预览取决于参数和资源。渲染限制会显示在源码旁。
x- x-axis location (in dots)
y- y-axis location (in dots)
z- Field justification
^FV Field Variable
^FVa
^FW Field Orientation
^FWr,z
^FX Comment
^FXc
^SF Serialization Field (with a Standard ^FD String)
^SFa,b
预览取决于参数和资源。渲染限制会显示在源码旁。
The source preview shows the initial value. Batch export applies the serialization mask to each output copy.
a- mask string
b- increment string
^SN Serialization Data
^SNv,n,z
预览取决于参数和资源。渲染限制会显示在源码旁。
The source preview shows the initial serial value. Batch export applies increments to each output copy.
v- starting value
n- increment or decrement value
z- add leading zeros (if needed)
图形
^GB Graphic Box
^GBw,h,t,c,r
预览取决于参数和资源。渲染限制会显示在源码旁。
w- box width (in dots)
h- box height (in dots)
t- border thickness (in dots)
c- line color
r- Corner rounding, 0–8
^GC Graphic Circle
^GCd,t,c
^GD Graphic Diagonal Line
^GDw,h,t,c,o
预览取决于参数和资源。渲染限制会显示在源码旁。
w- box width (in dots)
h- box height (in dots)
t- border thickness (in dots)
c- line color
o- orientation (direction of the diagonal)
^GE Graphic Ellipse
^GEw,h,t,c
预览取决于参数和资源。渲染限制会显示在源码旁。
w- ellipse width (in dots)
h- ellipse height (in dots)
t- border thickness (in dots)
c- line color
^GF Graphic Field
^GFa,b,c,d,data
预览取决于参数和资源。渲染限制会显示在源码旁。
a- compression type
b- binary byte count
c- graphic field count
d- bytes per row
data- data
^GS Graphic Symbol
^GSo,h,w
预览取决于参数和资源。渲染限制会显示在源码旁。
Symbols A–E, including UL and CSA approval marks, use local vector representations. Their outlines can differ from printer bitmap glyphs.
o- field orientation
h- character height proportional to width (in dots)
w- Symbol width in dots
标签布局
^LH Label Home
^LHx,y
^LL Label Length
^LLy,x
^LR Label Reverse Print
^LRa
^LS Label Shift
^LSa
^LT Label Top
^LTx
^MU Set Units of Measurement
^MUa,b,c
^PM Printing Mirror Image of Label
^PMa
^PO Print Orientation
^POa
^PW Print Width
^PWa
^XA Start Format
^XA
^XZ End Format
^XZ
文件与内存
^CM Change Memory Letter Designation
^CMa,b,c,d
预览取决于参数和资源。渲染限制会显示在源码旁。
a- memory alias for B:
b- memory alias for E:
c- memory alias for R:
d- memory alias for A:
^CO Cache On
^COa,b,c
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- cache on
b- amount of additional memory to be added to cache (in K)
c- cache type
~DB Download Bitmap Font
~DBd:o.x,a,h,w,base,space,#char,c,data
此命令无法在本地预览。原始 ZPL 会保留。
d- drive to store font
o- name of font
x- extension
a- orientation of native font
h- maximum height of cell (in dots)
w- maximum width of cell (in dots)
base- dots from top of cell to character baseline
space- width of space or non-existent characters
#char- number of characters in font
data- structured ASCII data that defines each character in the font
~DE Download Encoding
~DEd:o.x,s,data
^DF Download Format
^DFd:o.x
预览取决于参数和资源。渲染限制会显示在源码旁。
Resources must be defined in this source document. The preview cannot read files from printer memory.
d- device to store the image
o- image name
x- ZPL filename extension
~DG Download Graphics
~DGd:o.x,t,w,data
预览取决于参数和资源。渲染限制会显示在源码旁。
Resources must be defined in this source document. The preview cannot read files from printer memory.
d- device to store the image
o- image name
x- extension
t- total number of bytes in the graphic
w- number of bytes per row
data- ASCII hexadecimal string defining image
~DN Abort Download Graphic
~DN
~DS Download Intellifont (Scalable Font)
~DSd:o.x,s,data
此命令无法在本地预览。原始 ZPL 会保留。
d- device to store image
o- image name
x- extension
s- size of font in bytes
data- ASCII hexadecimal string that defines font
~DT Download Bounded TrueType Font
~DTd:o.x,s,data
~DU Download Unbounded TrueType Font
~DUd:o.x,s,data
预览取决于参数和资源。渲染限制会显示在源码旁。
Resources must be defined in this source document. The preview cannot read files from printer memory.
d- font location
o- font name
x- extension
s- font size
data- data string
~DY Download Objects
~DYd:f,b,x,t,w,data
预览取决于参数和资源。渲染限制会显示在源码旁。
Resources must be defined in this source document. The preview cannot read files from printer memory.
d- file location .NRD and .PAC files reside on E: in firmware versions V60.15.x, V50.15.x, or later.
f- file name
b- format downloaded in data field .TTE and .TTF are only supported in firmware versions V60.14.x, V50.14.x, or later.
x- extension of stored file
t- total number of bytes in file
w- total number of bytes per row
data- data
~EG Erase Download Graphics
~EG
^HF Host Format
^HFd,o,x
^HG Host Graphic
^HGd:o.x
^HW Host Directory List
^HWd:o.x
^HY Upload Graphics
^HYd:o.x
^ID Object Delete
^IDd:o.x
^IL Image Load
^ILd:o.x
预览取决于参数和资源。渲染限制会显示在源码旁。
Resources must be defined in this source document. The preview cannot read files from printer memory.
d- location of the stored object
o- object name
x- extension
^IM Image Move
^IMd:o.x
预览取决于参数和资源。渲染限制会显示在源码旁。
Resources must be defined in this source document. The preview cannot read files from printer memory.
d- location of stored object
o- object name
x- extension
^IS Image Save
^ISd:o.x,p
预览取决于参数和资源。渲染限制会显示在源码旁。
Resources must be defined in this source document. The preview cannot read files from printer memory.
d- location of the stored object
o- object name
x- extension
p- print image after storing
^TO Transfer Object
^TOs:o.x,d:o.x
预览取决于参数和资源。渲染限制会显示在源码旁。
s- source device of stored object
o- stored object name
x- extension
d- destination device of the stored object
^WD Print Directory Label
^WDd:o.x
^XF Recall Format
^XFd:o.x
预览取决于参数和资源。渲染限制会显示在源码旁。
Resources must be defined in this source document. The preview cannot read files from printer memory.
d- source device of stored image
o- name of stored image
x- extension
^XG Recall Graphic
^XGd:o.x,mx,my
预览取决于参数和资源。渲染限制会显示在源码旁。
Resources must be defined in this source document. The preview cannot read files from printer memory.
d- source device of stored image
o- name of stored image
x- extension
mx- magnification factor on the x-axis
my- magnification factor on the y-axis
介质
^CN Cut Now
^CNa
^CP Remove Label
^CPa
~JC Set Media Sensor Calibration
~JC
~JG Graphing Sensor Calibration
~JG
~JL Set Label Length
~JL
^JS Sensor Select
^JSa
~JS Change Backfeed Sequence
~JSb
^JW Set Ribbon Tension
^JWt
^MD Media Darkness
^MDa
^MF Media Feed
^MFp,h
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
p- feed action at power-up
h- feed action after closing printhead
^ML Maximum Label Length
^MLa
^MM Print Mode
^MMa,b
^MN Media Tracking
^MNa,b
^MT Media Type
^MTa
^PF Slew Given Number of Dot Rows
^PF#
^PH Slew to Home Position
^PH
~PH Slew to Home Position
~PH
~PL Present Length Addition
~PLa
^PN Present Now
^PNa
~SD Set Darkness
~SD##
^SI Set Sensor Intensity
^SIa,b
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- indicates the setting to modify
b- the value to use for the sensor being configured
^SS Set Media Sensors
^SSw,m,r,l,m2,r2,a,b,c
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
w- web (3-digit value)
m- media (3-digit value)
r- ribbon (3-digit value)
l- label length (in dots, four-digit value)
m2- intensity of media LED (3-digit value)
r2- intensity of ribbon LED (3-digit value)
a- mark sensing (3-digit value)
b- mark media sensing (3-digit value)
c- mark LED sensing (3-digit value)
~TA Tear-off Adjust Position
~TA###
^XB Suppress Backfeed
^XB
^XS Set Dynamic Media Calibration
^XSlength,threshold
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
length- dynamic length calibration
threshold- dynamic threshold calibration
打印
~JA Cancel All
~JA
~JP Pause and Cancel Format
~JP
~JX Cancel Current Partially Input Format
~JX
^JZ Reprint After Error
^JZa
^MC Map Clear
^MCa
^PP Programmable Pause
^PP
~PP Programmable Pause
~PP
^PQ Print Quantity
^PQq,p,r,o,e
预览取决于参数和资源。渲染限制会显示在源码旁。
The source preview shows one label. Batch export includes the requested copies within its page limit.
q- total quantity of labels to print
p- pause and cut value (labels between pauses)
r- replicates of each serial number
o- override pause count
e- cut on error label (RFID void is an error label) o parameter is set to Y, the printer cuts but does not pause,
~PR Applicator Reprint
~PR
^PR Print Rate
^PRp,s,b
~PS Print Start
~PS
^SP Start Print
^SPa
状态与诊断
~HB Battery Status
~HB
~HD Head Diagnostic
~HD
^HH Configuration Label Return
^HH
~HI Host Identification
~HI
~HM Host RAM Status
~HM
~HQ Host Query
~HQquery-type
~HS Host Status Return
~HS
~HU Return ZebraNet Alert Configuration
~HU
^HV Host Verification
^HV#,n,h,t,a
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
n- number of bytes to be returned
h- header to be returned with the data
t- termination
a- command applies to
^HZ Display Description Information
^HZb
~JD Enable Communications Diagnostics
~JD
~JE Disable Diagnostics
~JE
~JN Head Test Fatal
~JN
~JO Head Test Non-Fatal
~JO
^JT Head Test Interval
^JT####,a,b,c
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- manually select range of elements to test
b- first element to check when parameter a is Y
c- last element to check when parameter a is Y
~WC Print Configuration Label
~WC
~WQ Write Query
~WQquery-type
打印机设置
^CC Change Caret
^CCx
~CC Change Caret
~CCx
^CD Change Delimiter
^CDa
~CD Change Delimiter
~CDa
^CT Change Tilde
^CTa
~CT Change Tilde
~CTa
^CV Code Validation
^CVa
^JB Initialize Flash Memory
^JBa
~JB Reset Optional Memory
~JB
~JF Set Battery Condition
~JFp
^JH Early Warning Settings
^JHa,b,c,d,e,f,g,h,i,j
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- Media or supplies warning
b- Labels per roll
c- Media replaced
d- Ribbon length
e- Ribbon replaced
f- Maintenance warning
g- Printhead cleaning interval
h- Printhead cleaned
i- Printhead life threshold
j- Printhead replaced
^JI Start ZBI (Zebra BASIC Interpreter)
^JId:o.x,b,c,d
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
d- location of program to run after initialization
o- name of program to run after initialization
x- extension of program to run after initialization
b- console control
c- echoing control
~JI Start ZBI (Zebra BASIC Interpreter)
~JI
^JJ Set Auxiliary Port
^JJa,b,c,d,e,f
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- operational mode for auxiliary port
b- application mode
c- application mode start signal print
d- application label error mode
e- reprint mode
f- ribbon low mode
^JM Set Dots per Millimeter
^JMn
~JQ Terminate Zebra BASIC Interpreter
~JQ
~JR Power On Reset
~JR
^JU Configuration Update
^JUa
~KB Kill Battery (Battery Discharge Mode)
~KB
^KD Select Date and Time Format (for Real Time Clock)
^KDa
^KL Define Language
^KLa
^KN Define Printer Name
^KNa,b
^KP Define Password
^KPa,b
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- mandatory four-digit password
b- password level (applicable to the S4M printer only)
^KV Kiosk Values
^KVa,b,c,d,e
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- kiosk cut amount
b- kiosk cut margin
c- kiosk present type
d- kiosk present timeout
e- presenter loop length
^MA Set Maintenance Alerts
^MAtype,print,printlabel_threshold,frequency,units
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
type- type of alert
print- determines if the alert prints a label printlabel
threshold- the distance where the first alert occurs
frequency- distance before reissuing the alert
units- odometer and printhead maintenance commands
^MI Set Maintenance Information Message
^MItype,message
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
type- identifies the type of alert
message- message that prints on the label when a maintenance alert occurs
^MP Mode Protection
^MPa
^MW Modify Head Cold Warning
^MWa
~PM Decommissioning Mode
~PMa,b
~RO Reset Advanced Counters
~ROc
^SC Set Serial Communications
^SCa,b,c,d,e,f
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- baud rate
b- word length (in data bits)
c- parity
d- stop bits
e- protocol mode
f- Zebra protocol
^SL Set Mode and Language (for Real-Time Clock)
^SLa,b
预览取决于参数和资源。渲染限制会显示在源码旁。
The preview formats one label at a time, using the selected date language. Queue-time clock updates are not simulated.
a- mode
b- Clock language
^SO Set Offset (for Real-Time Clock)
^SOa,b,c,d,e,f,g
预览取决于参数和资源。渲染限制会显示在源码旁。
Offsets apply to the preview clock only.
a- clock set
b- months offset
c- days offset
d- years offset
e- hours offset
f- minutes offset
g- seconds offset
^SQ Halt ZebraNet Alert
^SQa,b,c
^SR Set Printhead Resistance
^SR####
^ST Set Date and Time (for Real-Time Clock)
^STa,b,c,d,e,f,g
预览取决于参数和资源。渲染限制会显示在源码旁。
Sets a clock value within this preview only. It does not change the computer or printer clock.
a- month
b- day
c- year
d- hour
e- minute
f- second
g- format
^SX Set ZebraNet Alert
^SXa,b,c,d,e,f
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- condition type
b- destination for route alert
c- enable condition set alert to this destination
d- enable condition clear alert to this destination
e- destination setting
f- port number
^SZ Set ZPL Mode
^SZa
^ZZ Printer Sleep
^ZZt,b
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
t- number of second (idle time) prior to shutdown
b- label status at shutdown
网络
^KC Set Client Identifier (Option 61)
^KCa,b,c,d
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- enable or disable
b- device
c- prefix (optional)
d- Client identifier
^NB Search for Wired Print Server during Network Boot
^NBa
^NC Select the Primary Network Device
^NCa
~NC Network Connect
~NC###
^ND Change Network Settings
^NDa,b,c,d,e,f,g,h,i,j
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- the device that is being modified
b- IP resolution
c- IP address
d- subnet mask
e- default gateway
f- WINS server address
g- connection timeout checking
h- timeout value
i- ARP broadcast interval
j- base raw port number
^NI Network ID Number
^NI###
^NN Set SNMP
^NNa,b,c,d,e,f
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- system name
b- system contact
c- system location
d- get community name
e- set community name
f- trap community name
^NP Set Primary/Secondary Device
^NPa
~NR Set All Network Printers Transparent
~NR
^NS Change Wired Networking Settings
^NSa,b,c,d,e,f,g,h,i
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- IP resolution
b- IP address
c- subnet mask
d- default gateway
e- WINS server address
f- connection timeout checking
g- timeout value
h- ARP broadcast interval
i- base raw port number
^NT Set SMTP
^NTa,b
~NT Set Currently Connected Printer Transparent
~NT
^NW Set Web Authentication Timeout Value
^NWa
^WA Set Antenna Parameters
^WAa,b
^WE Set WEP Mode
^WEa,b,c,d,e,f,g,h
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- encryption mode
b- encryption index
c- authentication type
d- encryption key storage
^WL Set LEAP Parameters
^WLa,b,c
~WL Print Network Configuration Label
~WL
^WP Set Wireless Password
^WPa,b
^WR Set Transmit Rate
^WRa,b,c,d,e
~WR Reset Wireless Radio Card and Print Server
~WR
^WS Set Wireless Radio Card Values
^WSe,o,p,h,i,j,k
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
e- ESSID value
o- operating mode
p- wireless radio card preamble
h- wireless pulse
i- wireless pulse interval
j- channel mask
k- international mode
^WX Configure Wireless Securities
^WXa,[supporting parameters]
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- security type
i- user ID*
m- Key Distribution Center (KDC)*
n- Pre-Shared Key (PSK) value*
RFID
^HL Return RFID Data Log to Host
^HL
~HL Return RFID Data Log to Host
~HL
^HR Calibrate RFID Tag Position
^HRa,b,c,d,e,f,g,h,i
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
a- start string
b- end string
c- start position
d- end position
e- antenna and read/write power level detection
f- start of read/ write power range
g- end of read/write power range
h- start of antenna range
i- end of antenna range
^RB Define EPC Data Structure
^RBn,p0,p1,p2, ..., p15
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
n- Total EPC bit count
p0- First partition size
p1- Second partition size
p15- Last partition size
^RF Read or Write RFID Format
^RFo,f,b,n,m
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
o- Read or write operation
f- Data representation
b- Password or starting block
n- Byte count
m- Memory bank
^RL Lock/Unlock RFID Tag Memory
^RLP | ^RLB,s,n | ^RLM,k,a,e,u
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
s- Starting section
n- Section count
k- Kill password lock
a- Access password lock
e- EPC memory lock
u- User memory lock
^RS Set Up RFID Parameters
^RSt,p,v,n,e,a,c,s
打印机命令。保留在 ZPL 中供打印机执行;不在此预览中绘制标签内容。
t- RFID tag type
p- Tag programming position
v- Void label length
n- Retry label count
e- Error action
a- Applicator signal mode
c- Reserved
s- Void label print speed
^RU Read Unique RFID Chip Serialization
^RUa,b
^RW Set RF Power Levels for Read and Write
^RWr,w,a
综合示例
一个使用上述大部分命令组的典型 4×6 物流标签:
^XA
^PW812
^LL1218
^CI28
^CF0,32
^FO40,40^FDSHIP TO:^FS
^FO40,80^A0N,44,44^FDAcme Industries^FS
^FO40,130^FD500 Warehouse Way^FS
^FO40,170^FDSpringfield, IL 62701^FS
^FO40,230^GB732,3,3^FS
^FO40,260^FDOrder #A-10592 / 3 of 4^FS
^BY3,2,120
^FO140,320^BCN,120,Y,N,N^FD4210159200083^FS
^XZ手动编辑点坐标很快就会令人厌烦——每次调整布局都需要修改数字并重新打印。如果您更希望将字段拖放到位并让 ZPL 自动生成,ZPLCraft 编辑器可将可视画布编译为正是这种干净的 ZPL 代码,并支持 通过兼容的浏览器到打印机 USB 路径发送 ZPL,前提是浏览器、操作系统和打印机提供可占用的接口。