^MN Media Tracking
Tells the printer whether the media is continuous or divided by webs, notches or marks, and sets the black mark offset in dots.
^MNa,b
^MN parameters
| Parameter | Meaning | Accepted values | Default |
|---|---|---|---|
amedia being usedp. 307 |
The media type, which decides how the printer finds the start of each label. FirmwareY and W: not supported on the KR403 printer. A: supported only on G-series printers. V: supported only on the KR403 printer. |
|
A value must be entered or the command is ignored. |
bblack mark offset in dotsp. 307 |
The expected position of the media mark relative to the point where documents separate. At 0 the mark is expected at the separation point (the perforation, the cut point and so on). The parameter is ignored unless a is M. If it is missing, the default value is used. |
Depends on the printer: -80 to 283 for direct-thermal-only printers, -240 to 566 for 600 dpi printers, -75 to 283 for KR403 printers, and -120 to 283 for all other printers. |
0
|
^MN notes and gotchas
-
Interaction
With
p. 307^MNV(continuous, variable length) the label is lengthened automatically when printed content falls beyond the set length. This applies to the current label only, and^LLis still needed to give the starting length. -
Interaction
The guide's SGD section lists a printer setting, zpl.zpl_override, that when enabled stops
p. 1101^MN(together with^MMand^MT) from changing the printer's current settings; when disabled these commands override the settings, which is its default. -
Interaction
The guide's SGD entry for media.tof says its coordinate system is the reverse of ZPL, so the media.tof value is the negative of the b value sent with
p. 886^MNM,b(for example^MNM,50reads back as -50). -
Firmware
The command is ignored on the HC100 printer.
Firmware: Ignored on the HC100 printer. p. 308 -
Note
Continuous media has nothing physical that divides one label from the next (no web, notch, perforation or black mark), so
p. 307^LLgives the label length. -
Note
Non-continuous media carries some physical feature (web, notch, perforation or black mark) that divides one label from the next.
p. 307 -
Note
Not stated by the
pp. 307, 308^MNentry: whether the setting is kept when the printer is turned off. -
Guide issue
Footnote 1 ('provides the same result') is printed against Y, W and A. Y and W carry the same description, but the guide does not say what A is the same as.
p. 307
^MN example
^XA ^MNN ^LL600 ^FO30,25^A0N,36,36^FDContinuous^FS ^XZ
Declares continuous media (^MN with the value N), then gives the label length as 600 dots with ^LL before the first ^FS. For continuous media the guide says the length comes from ^LL.
Guides that use ^MN
BarcoderX is a .NET SDK for thermal labels and barcodes. See how it prints and exports labels.
Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 60, 190, 201, 204, 294, 305, 307, 308, 311, 886, 1101.
Written by BarcoderX in its own words. Checked against the guide on 2026-11-14.
ZPL and ZPL II are trademarks of Zebra Technologies Corporation. This reference is written by BarcoderX in its own words from Zebra's published programming guide. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.