zpl.tools
Media & Sensor Commands

^MN - Media Tracking

Sets media tracking method

^MN - Media Tracking

Overview

The ^MN command configures how the printer detects and tracks media position during printing.

Syntax

^MNa,b

Parameters

  • a = Media type
    • N = Non-marking media
    • Y = Continuous media
    • W = Web sensing
    • M = Mark sensing
  • b = Web sensor offset in dots

Description

  • Configures media detection method
  • Affects how printer feeds media
  • Critical for label alignment
  • Determines stop/start positions

Usage Notes

  • Set at format beginning
  • Must match media characteristics
  • Affects print accuracy
  • Printer must have correct sensor

Example

^XA
^MNY,0
^FO50,50
^ADN
^FDContinuous Media^FS
^XZ

Media Types

TypeUsageDescription
NGapNon-marking between labels
YContinuousNo gaps
WWebWidth sensing
MMarkBlack mark sensing
  • ^MT - Media Type
  • ^SS - Set Media Sensors
  • ^MM - Print Mode

See Also