ZPL commands

^MU · Set Units of Measurement

Sets the unit of measurement for all following values in the format dots, inches or millimeters and can convert a format designed for one resolution to ano…

Sets the unit of measurement for all following values in the format (dots, inches or millimeters) and can convert a format designed for one resolution to another resolution.

Parameters

  • ^MUa,b,c - a: unit: D = dots (default), I = inches, M = millimeters
  • ^MUa,b,c - b: base resolution of the format in dpi: 150, 200 (default) or 300
  • ^MUa,b,c - c: target resolution in dpi: 300 or 600 (default = same as b)

Example

^XA
^MUD,200,300
^FO50,50^A0N,30,30^FDHello^FS
^XZ
ZPL preview: ^MU · Set Units of Measurement

Tip

^MUD,200,300 scales a format built for 203 dpi up for a 300 dpi printer. With ^MUM or ^MUI the following position and size values are in millimeters or inches - ideally place ^MU directly after ^XA.