Skip to command documentation
Unsupportedformatjobsession scope
^JM

Set Dots per Millimeter

^JM configures set Dots per Millimeter. It applies to the printer session and subsequent formats and changes job or printer-session state used while processing labels.

ZPLr compatibility note

  • Changing printhead resolution inside a ZPL job is not modeled; select printDensity in the render options.

These are code examples only. This command is recognized but not implemented by the local renderer.

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
^JMA

n = B

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

ZPLcaret-jm-n-2.zpl
^JMB

Primary source

Official Zebra reference

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

Open Zebra documentation