Sie sind auf Seite 1von 2

ZPL conversion

ZPL conversion
Within the ZPL printer range there is the ability to convert native ZPL code written for one particular head
density to another, unfortunately this only works for the following resolutions:

150dpi
150dpi
200dpi
300dpi

->
->
->
->

300dpi
600dpi
600dpi
600dpi

There is NO ability to convert 150dpi -> 200dpi, however this program supplies an answer to this
shortcoming.
The relevant ZPL command would be:
^MU

(Set Units of Measurement)

Description
This command sets the printer units of measurement. The ^MU command works on a field by field basis.
Once the mode units is set, it carries over from field to field until a new mode units is entered. ^MU also
allows for printing at lower resolutions -- 600 dpi printers are capable of printing at 300, 200, and 150 dpi;
300 dpi printers are capable of printing at 150 dpi.

Format
^MUa,b,c

Parameters
a = units
Accepted Values:
D = dots
I = inches
M = millimetres
Default Value: D

b = format base in dots per inch


Accepted Values: 150, 200, 300
Default Value: a value must be entered or the command is ignored.

c = desired dots per inch conversion


Accepted Values: 300, 600
Default Value: a value must be entered or the command is ignored.

1/2

ZPL conversion

Example 1: Setting Units


Assume 8 dot per millimetre (203 dot per inch) printer.
Field based on dots:
^MUd^FO100,100^GB1024,128,128^FS
Field based on millimetres:
^MUm^FO12.5,12.5^GB128,16,16^FS
Field based on inches:
^MUi^FO.493,.493^GB5.044,.631,.631^FS

Example 2: Converting DPI Values:


Convert a 150 dpi format to a 300 dpi format with a base in dots:
^MUd,150,300
Convert a 150 dpi format to a 600 dpi format with a base in dots:
^MUd,150,600
Convert a 200 dpi format to a 600 dpi format with a base in dots:
^MUd,200,600

To reset the conversion factor to the original format, enter matching values for
parameters b and c:
^MUd,150,150
^MUd,200,200
^MUd,300,300
^MUd,600,600

Comments:
This command should appear at the beginning of the label format to be in proper ZPL II format.
To turn the conversion off, enter matching values for parameter b and c.
Obviously there will be some values that cannot be converted without a remainder, this remainder
is just ignored there is no attempt to round the value up or down.

2/2

Das könnte Ihnen auch gefallen