LABELIXA
ZPL PreviewBarcode GeneratorImage → ZPLSolutionsBarcode TypesTemplate GalleryGuidesZPL Command MatrixDocumentationAPI
ENTRDE

CPCL Command Reference

Every command the Labelixa CPCL preview understands, with syntax, an example and its honest support status. Commands outside this list are reported by the validator as unknown.

This tool renders NATIVE CPCL, the language of Zebra mobile printers (QL/ZQ/iMZ and compatibles). Many of these printers also accept ZPL or EPL in separate, manufacturer-documented modes — for those languages use the ZPL or EPL viewer.
Coverage: 5 commands supported, 5 partially supported, 7 recognized as printer-behaviour (not drawn). The preview renders at 203 dpi and is an interpretation of the Zebra CPCL programming guide — it has not been verified against a physical printer.
CommandSyntaxStatusDescription
!! <ofset> <xres> <yres> <h> <adet>
! 0 200 200 210 1
SupportedOpens a print session: offset, horizontal and vertical resolution, label height in dots and copy count. Height and copies drive the preview.
PAGE-WIDTHPAGE-WIDTH <w>
PAGE-WIDTH 576
SupportedSets the label width in dots (short form PW). Without it the preview uses 576 dots.
TEXTTEXT <font> <boyut> <x> <y> <veri>
TEXT 4 0 30 40 Hello World
PartialDraws text (short form T): font number, sub-size, x, y, then the data as the rest of the line. Font heights are approximate; the sub-size is outside the MVP.
TEXT90TEXT90 <font> <boyut> <x> <y> <veri>
TEXT90 4 0 30 40 Dikey
PartialText rotated 90° counter-clockwise; otherwise identical to TEXT.
TEXT180TEXT180 <font> <boyut> <x> <y> <veri>
TEXT180 4 0 30 40 Ters
PartialText rotated 180°; otherwise identical to TEXT.
TEXT270TEXT270 <font> <boyut> <x> <y> <veri>
TEXT270 4 0 30 40 Dikey
PartialText rotated 270° counter-clockwise; otherwise identical to TEXT.
BARCODEBARCODE <tip> <dar> <oran> <h> <x> <y> <veri>
BARCODE 128 1 1 100 50 150 123456
PartialDraws a barcode (short form B): type, narrow width, ratio, height, x, y, data. MVP types: 128, 39, EAN13, UPCA — the shared zint path also used by the ZPL engine.
LINELINE x1 y1 x2 y2 t
LINE 0 300 560 300 2
SupportedDraws a line between two points with the given thickness (short form L).
BOXBOX x1 y1 x2 y2 t
BOX 10 10 560 200 2
SupportedDraws a rectangle outline between two corners with the given border thickness.
PRINTPRINT
PRINT
SupportedEnds the session and prints; the preview treats it as the end of the label.
FORMFORM
FORM
Printer-onlyFeeds to the top of the next form — a printer action with no effect on the image.
CONTRASTCONTRAST n
CONTRAST 0
Printer-onlySets print darkness on the device; recognized, not drawn.
TONETONE n
TONE 0
Printer-onlyFine-tunes print darkness; recognized, not drawn.
SPEEDSPEED n
SPEED 3
Printer-onlySets print speed on the device; recognized, not drawn.
JOURNALJOURNAL
JOURNAL
Printer-onlySwitches to journal (continuous) media mode; recognized, not drawn.
SETMAGSETMAG w h
SETMAG 2 2
Printer-onlyMagnifies the following text by integer factors; outside the MVP, so recognized but not applied.
CENTERCENTER [genislik]
CENTER
Printer-onlyCenters the following fields; layout justification is outside the MVP, so recognized but not applied.

Render your code: CPCL viewer

EnglishTürkçeDeutsch
Feedback

Something wrong? Tell us.

Your label content is NOT sent; only your message, the page you are on and the build version.