Specifications

ZPL Commands
Basic ZPL Exercises and Examples
6
45541L-004 Rev. A ZPL II Programming Guide 9/15/06
Exercise 1 This exercise shows you how to specify a location for an entered name.
1. Print your name on the label.
2. Start by printing just your name on the label. Use this format as a model:
3. Send this format to the printer:
4. When the label prints correctly, alter the first number after the ^FOx. See how that
change affects the print position. Alter the second number after the
^FO50,x and see
how that the print position.
Font instruction
^ADN
1. Alter the numbers after the ^ADN,x,x command.
18,10 is the smallest size you can make the D font.
The first number is the height of the font in dots. The second number is the width in
dots.
You can use direct multiples up to ten times that size as a maximum.
25,18 would not be a valid size. The printer rounds to the next recognizable size.
2. Check the font matrices tables for other fonts to try. See Fonts and Bar Codes
on page 351.
3. Try the zero scalable font ^A0N,x,x.
This font is scalable, and you can choose any height and width.
Important • Your name goes where you see xxxxxxxxxxx in the second line of code.
1
Every format starts with the ^XA command
2
^FO (field origin) command
3
^FS (field separator) command
4
Every format ends with the ^XZ command
5
^FD (field data) command
^XA
^FO50,50^ADN,36,20^FDxxxxxxxxxxx
^FS
^XZ
1
5
3
4
2
Example • 180,100 is the largest you can make the D font.