ZPL II command cheat sheet openzpl.com/zpl/commands/ LABEL FORMAT ^XA Start Format: Opens a label. Everything up to ^XZ is one label. ^XZ End Format: Closes the label opened by ^XA and prints it. ^PW Print Width: Sets the label width in dots. ^LL Label Length: Sets the label length in dots. ^LH Label Home: Moves the origin that every field position is measured from. ^LS Label Shift: Shifts every field left by the given number of dots. ^LT Label Top: Moves the whole label up or down by the given number of dot rows. ^PO Print Orientation: Prints the label normally (N) or upside down (I). ^PM Print Mirror: Mirrors the whole label horizontally when set to Y. ^PQ Print Quantity: Sets how many labels to print; each one counts as a label in the preview. ^MU Set Units: Changes the unit of measurement to dots, inches or millimetres. ^CI Change International Encoding: Selects the character set. ^CI28 is UTF-8. FIELDS AND POSITION ^FO Field Origin: Sets the field position: x, y coordinates in dots from the top-left corner. ^FT Field Typeset: Positions a field by its baseline instead of its top-left corner. ^FD Field Data: The text or barcode data of the current field. ^FS Field Separator: Ends the current field. ^FB Field Block: Wraps text into a block with a width, line count and alignment. ^FR Field Reverse Print: Prints the field white on black over whatever is under it. ^FH Field Hexadecimal Indicator: Lets ^FD contain hex escapes such as _0D. ^FW Field Orientation: Sets the default rotation for the fields that follow. ^FN Field Number: Names a variable field in a stored format. ^FX Comment: A comment. The printer ignores everything up to the next command. ^SN Serialization Data: Prints a number that increments on each label. TEXT AND FONTS ^A Scalable/Bitmapped Font: Selects the font, rotation and size for the next text field. ^A@ Use Font Name: Selects a font by its file name on the printer. ^CF Change Default Font: Sets the font and size used when a field has no ^A. ^TB Text Blocks: Wraps a text field inside a box of given width and height. ^CW Font Identifier: Assigns a one-letter name to a font file. BARCODES ^BY Bar Code Field Default: Sets module width, wide-to-narrow ratio and height for the barcodes that follow. ^BC Code 128: Code 128 barcode, the most common one on shipping labels. ^B3 Code 39: Code 39 barcode. ^B2 Interleaved 2 of 5: Interleaved 2 of 5 barcode, numeric only. ^BE EAN-13: EAN-13 retail barcode. ^B8 EAN-8: EAN-8 retail barcode. ^BU UPC-A: UPC-A retail barcode. ^B9 UPC-E: UPC-E retail barcode. ^BQ QR Code: QR Code. The field data starts with the error correction level and input mode, as in ^FDQA,text. ^BX Data Matrix: Data Matrix 2D barcode. ^B7 PDF417: PDF417 stacked 2D barcode. ^BO Aztec: Aztec 2D barcode. ^BD MaxiCode: MaxiCode, used by UPS. ^B0 Aztec (alias): Aztec 2D barcode; the same command as ^BO. ^BA Code 93: Code 93 barcode: denser than Code 39, with two built-in check characters. ^BK ANSI Codabar: Codabar barcode, used by libraries, blood banks and some couriers. ^BL LOGMARS: LOGMARS barcode, the US military's Code 39 with a mandatory check digit. ^B1 Code 11: Code 11 barcode, numeric, used on telecom equipment. ^BM MSI: MSI (Modified Plessey) barcode, numeric, used on shelf labels. ^BP Plessey: Plessey barcode, numeric, with a CRC check digit. ^BS UPC/EAN Extensions: The 2- or 5-digit add-on printed next to a UPC or EAN code. ^BZ POSTAL: US postal barcodes: POSTNET, PLANET and Intelligent Mail. ^B5 Planet Code: USPS PLANET barcode. ^BR GS1 DataBar: GS1 DataBar (formerly RSS): compact GTIN barcodes for produce and coupons. ^BF MicroPDF417: MicroPDF417, a smaller PDF417 for little labels. GRAPHICS ^GB Graphic Box: Draws a box or a line: width, height, border thickness, colour and rounding. ^GC Graphic Circle: Draws a circle: diameter, border thickness and colour. ^GE Graphic Ellipse: Draws an ellipse. ^GD Graphic Diagonal Line: Draws a diagonal line. ^GF Graphic Field: Embeds a bitmap image in the label (ASCII hex, binary or Z64). ^GS Graphic Symbol: Prints a registered, copyright or other symbol. STORED FORMATS AND IMAGES ^DF Download Format: Stores the label format on the printer under a name. ^XF Recall Format: Recalls a stored format to fill its ^FN fields. ~DG Download Graphic: Stores an image on the printer under a name. ^XG Recall Graphic: Prints an image stored with ~DG. ^IM Image Move: Prints a stored image at the current field origin.