^XZ · Label end
Closes the ZPL format.
Syntax and practical example
^XZSends the label to print or render.
^XA
^PW600
^LL400
^FO40,40^A0N,30,30^FDLABEL A^FS
^XZ
^XA
^PW600
^LL400
^FO40,40^A0N,30,30^FDLABEL B^FS
^XZEducational example; not a certified label or a physical print test. Sample text and codes stay the same in every language for comparison.
Expected result with ^XZ
There are two complete blocks: LABEL A and LABEL B. Each ^XZ closes its own format; sent to a ready printer, they represent two separate labels. In a viewer that shows only one label, inspect each block separately.
What should I check if ^XZ does not give the expected result?
^FS only closes a field; it does not replace ^XZ. If only the first batch label arrives, check that the second block is fully transmitted, including its closing command, before changing the layout.
Related commands
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