Sign In
Products
ZPL ViewerBarcode GeneratorImage → ZPLZPL cheat sheetLabel DesignerTemplate Gallery
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutions
Tools
ZPL Diagnostics HubZPL DebuggerSize & DPI AnalyzerDPI ConverterBarcode fit calculatorShipping Label AnalyzerFont InspectorOrientation DebuggerCalibration AssistantPrinter Compatibility CheckerBarcode Readability CheckerPrinter Language DetectorThermal Printer Test PackZPL ToolsEPL ToolsTSPL ToolsCPCL ToolsPrinter Language ConverterAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›ZPL Command Matrix›^JM

^JM — Set Dots per Millimeter

Halves the print density (dots per millimetre), which doubles the size of the printed format.

Syntax^JMn
In Labelixa's previewNot applied in the preview (ZPL1002)

What it does

^JMB turns 24 dots/mm into 12, 12 into 6, 8 into 4 and 6 into 3. Every coordinate is then counted in the larger dots, so the same format prints twice as large and ^FO positions move with it. ^JMA keeps the printhead's native density.

It must come before the first ^FS of the format and stays in effect afterwards. With ^JMB the UPS MaxiCode barcode is out of specification.

In the preview

This command changes the printed label, but Labelixa's preview does not apply it yet. The linter reports it as ZPL1002, so you know the preview and the print will differ.

Example

^XA
^JMB
^FO50,50^A0N,30,30^FDHALF DENSITY^FS
^XZ

The text prints at twice the size it would at the printer's native density.

Parameters

ParameterDescriptionValuesDefault
nA native density (24, 12, 8 or 6 dots/mm), B half (12, 6, 4 or 3 dots/mm)A · BA

Source

Zebra ZPL II Programming Guide (P1134473-11EN Rev A), page 269. Zebra guide page →

^MU · ^FO · ^BD

ZPL commands list and reference →

Try ZPL in the online viewer