Skip to command documentation
Supportedformatrastersession scope
^JM

Set Dots per Millimeter

^JM configures set Dots per Millimeter. It applies to the printer session and subsequent formats and can change pixels in the rendered label.

Syntax
^JMn
n

Set dots per millimeter

Sets set dots per millimeter. It can be omitted when the documented default is suitable.

Default
A
Required
No
Documented valuesAB

n variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

n = A

Uses A for set dots per millimeter while the other command values stay at representative defaults.

ZPLcaret-jm-n-1.zpl
^XA
^PW300
^LL170
^JMA
^FO14,12^GB272,135,2,B,0^FS
^FO28,60^A0N,20,16^FDDot density^FS
^FO14,150^A0N,11,11^FDCaret JM parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

n = B

Uses B for set dots per millimeter while the other command values stay at representative defaults.

ZPLcaret-jm-n-2.zpl
^XA
^PW300
^LL170
^JMB
^FO14,12^GB272,135,2,B,0^FS
^FO28,60^A0N,20,16^FDDot density^FS
^FO14,150^A0N,11,11^FDCaret JM parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

Primary source

Official Zebra reference

Use the manufacturer reference for printer- and firmware-specific behavior beyond ZPLr’s pinned rendering profile.

Open Zebra documentation

ZPLr Command Reference

Independent documentation for the pinned ZPL II 2025 renderer profile. Examples run locally in your browser.

ZPL, ZPL II, Zebra, and Zebra Programming Language are trademarks or registered trademarks of Zebra Technologies Corp. ZPLr is independent and is not affiliated with or endorsed by Zebra Technologies Corp.