29 of 32 commands supported in the playground 91%

System Commands

<STX>LSupported
Start Label Format

Begins a label formatting block. All label commands and format records must appear between <STX>L and the terminating E command. Think of it as opening a new document — everything you draw goes inside this block.

<STX>cSupported
Set Continuous Paper Length

Sets the label length in dots for continuous media. This tells the printer how far to feed between labels when no gap or mark sensor is used. At 203 DPI, 203 dots equals roughly 1 inch.

<STX>mSupported
Set Metric Mode

Switches the printer to metric mode. Subsequent dimension commands that accept units will interpret values in millimetres rather than inches.

<STX>nSupported
Set Imperial Mode

Switches the printer to imperial mode. Subsequent dimension commands will interpret values in inches. This is the default mode on most Datamax printers.

<STX>ESupported
Print Stored Label Quantity

Prints the specified number of copies of the last stored label format. This lets you reprint without resending the entire label data.

<STX>GSupported
Print Last Label

Reprints the last label that was sent to the printer. A quick way to get another copy without resending data.

<STX>FSupported
Form Feed

Advances the media to the next label position without printing. The printer uses gap or mark detection to find the next label boundary.

<STX>SSupported
Set Print Speed

Sets the print speed. The value is a single character representing the speed level: A (slowest) through F or higher depending on the printer model. Slower speeds generally produce better print quality.

<STX>ZUnsupported
Print Configuration Label

Prints a configuration label showing the current printer settings, firmware version, memory status, and other diagnostic information.

Label Commands

DSupported
Set Dot Size

Sets the width and height multiplier for the dot size of subsequent format records. D11 is the default (1x1). D22 doubles both dimensions. This affects all format records that follow until changed.

HSupported
Set Heat (Darkness)

Sets the printhead heat level (darkness/density). Values range from 00 to 30, where higher values produce darker output. Start around 07-10 and adjust based on print quality and barcode scan results.

PSupported
Set Print Speed (Label)

Sets the print speed within a label block. This overrides the system-level speed setting for the current label. Values are single characters from A to F.

QSupported
Set Quantity

Sets the number of copies to print for the current label. The value is a 4-digit zero-padded number. Q0001 prints one copy; Q0100 prints one hundred.

CSupported
Set Column Offset

Sets a horizontal (column) offset in dots for the entire label. All format record column positions are shifted by this amount. Use it to adjust horizontal alignment without changing every format record.

RSupported
Set Row Offset

Sets a vertical (row) offset in dots for the entire label. All format record row positions are shifted by this amount. Use it to adjust vertical alignment without changing every format record.

MSupported
Set Mirror Mode

Sets the mirror mode for the label. M0 disables mirroring (default), M1 enables horizontal mirroring. Used when labels are applied to the inside of transparent packaging and read from the outside.

ESupported
End Label / Print

Ends the label formatting block and triggers printing. This is the closing counterpart to <STX>L. When the printer encounters E, it prints the label using the quantity set by Q and exits label mode.

Text

Barcodes

Barcode A (Code 39)Supported
Code 39 Barcode

A barcode format record using Code 39 symbology. The format is the same 15-byte header as text, but the font/type field is set to A for Code 39. Code 39 supports uppercase letters, digits, and symbols (- . $ / + % space).

Barcode E (Code 128)Supported
Code 128 Barcode

A barcode format record using Code 128 symbology. Code 128 is the most versatile 1D barcode, supporting the full ASCII character set. It produces compact barcodes and is widely used in shipping and logistics.

Barcode F (EAN-13)Supported
EAN-13 Barcode

A barcode format record using EAN-13 symbology. EAN-13 is the standard barcode for retail products worldwide (the 13-digit number under the barcode on most products). Data must be exactly 12 digits; the check digit is calculated automatically.

Barcode B (UPC-A)Supported
UPC-A Barcode

A barcode format record using UPC-A symbology. UPC-A is the standard US retail barcode — the 12-digit number printed on virtually every product sold in North America. Data must be exactly 11 digits; the check digit is calculated automatically.

Barcode C (UPC-E)Supported
UPC-E Barcode

A barcode format record using UPC-E symbology. UPC-E is the compressed version of UPC-A designed for small packages where space is limited. Data is 6-7 digits.

Barcode D (I2of5)Supported
Interleaved 2 of 5 Barcode

A barcode format record using Interleaved 2 of 5 symbology. I2of5 encodes pairs of digits, so the data must contain an even number of digits. It is a compact numeric-only barcode widely used in shipping and warehousing.

Barcode G (EAN-8)Supported
EAN-8 Barcode

A barcode format record using EAN-8 symbology. EAN-8 is the short version of EAN-13, designed for small packages where a full 13-digit barcode will not fit. Data must be exactly 7 digits; the check digit is calculated automatically.

Barcode H (HIBC)Supported
HIBC Barcode

A barcode format record using HIBC (Health Industry Bar Code) symbology. HIBC is used in healthcare for device and product identification. It supports alphanumeric data and automatically adds the + prefix and check character required by the HIBC standard.

Barcode I (Codabar)Supported
Codabar Barcode

A barcode format record using Codabar symbology. Codabar supports digits and the characters - . $ / + : as well as start/stop characters A-D. It is commonly used in libraries, blood banks, and FedEx airbills.

Barcode O (Code 93)Supported
Code 93 Barcode

A barcode format record using Code 93 symbology. Code 93 is a compact barcode that supports the full ASCII character set. It produces denser output than Code 39 and is used in logistics and by Canada Post for delivery routing.

Graphics

Configuration

Try these commands live

The DPL Playground lets you write DPL and see labels render in real time - with syntax highlighting, autocomplete, and the full command reference built in.