^XA · Label start
Marks the beginning of the ZPL format.
Syntax and practical example
^XA ... ^XZEverything that follows belongs to the current label.
^XA
^PW600
^LL400
^FO40,40^A0N,30,30^FDLABEL A^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 ^XA
The example opens a format with ^XA, declares width and height, adds LABEL A and ends with ^XZ. That pair delimits a complete label. Start another independent label after the closing command, not inside the first block.
What should I check if ^XA does not give the expected result?
A second ^XA does not separate fields or replace ^FS. When importing ERP files, check that each block is complete and its opening was not removed while extracting a response or log.
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