zpl.tools
Media & Sensor Commands

^MU - Mode Units

Sets measurement units (dots/millimeters/inches)

^MU - Mode Units

Overview

The ^MU command sets the measurement unit system for all dimension parameters in ZPL commands.

Syntax

^MUa

Parameters

  • a = Unit type
    • d = Dots (default)
    • m = Millimeters
    • i = Inches
    • c = Centimeters

Description

  • Sets default unit for all measurements
  • Affects ^FO, ^LH, ^LL, and similar commands
  • Converts parameters to internal dot representation
  • Useful for different measurement preferences

Usage Notes

  • Set at beginning of format
  • Affects all subsequent measurements
  • Default is dots
  • Must be consistent throughout format

Example

^XA
^MUi
^FO0.25,0.25
^ADN
^FDLabel at 0.25 inches^FS
^XZ

Unit Reference

UnitAbbreviationUsageNotes
DotsdDefault1/203 inch @ 203 DPI
InchesiImperial203 dots = 1 inch
MillimetersmMetric8 dots = 1 mm
CentimeterscMetric80 dots = 1 cm

Conversion Examples

MeasurementDotsInchesMM
2032031.0"25.4
4064062.0"50.8
8128124.0"101.6
  • ^LH - Label Home
  • ^LL - Label Length
  • ^FO - Field Origin

See Also