^FX — Comment
Plain English
A comment — the printer completely ignores everything between ^FX and the next ^FS. Use it to add notes to your ZPL so other people (or future you) can understand what each section does.
When to use
When you want to annotate your ZPL for readability. Great for complex labels.
Syntax
^FX comment text
Parameters
| Parameter | Description |
|---|---|
text | Any text you want — the printer ignores it |
Example
^XA ^FX Header section ^FO50,30^A0N,40,40^FDInvoice^FS ^FX Barcode section ^FO50,100^BY2^BCN,80,Y^FD12345^FS ^XZ
Comments labelling each section of a label