
85
Learning ZPL
Basic ZPL Exercises and Examples
10/29/2010 Software Integrator Guide P1026208-001 Rev. B
Exercise 20 • This exercise shows how Text (^A) and Field Orientation (^FW) interact.
This exercise shows that the ^A Font selection command rotation parameter overrides the
global setting of the
^FW command.
In this exercises example code below, notice the first format (form) has a change to media
tracking (
^MNV default changes to ^MNN) and the cut margin on the leading edge is
reduced to 2 mm (
^KV0,9 default values are changed to ^KV0,2),
1. Send these formats (forms) to the printer:
2. Reprint the receipts. Note the first text field of the first receipt has the last ^FW setting.
3. Now, reset the printer (cycle power, send a reset command with the driver or as a ~JR
[Power On Reset] command). Reprint the receipt. Note that the form prints the same
as in step 1 of this exercise.
4. Change the ^FWI to ^FWN and reprint to clear the text rotation.
Printing off the TOP and LEFT sides of the image map overwrites the printout. See the
"Simple Line Graphics as Objects: Placement and Order" on page 105 and the next
exercise.
ZPL II CODE
GENERATED LABEL
^XA
^MNN
^KV0,2
^CF0,75,75
^XZ
^XA
^FT350,050^FDZEBRA-1^FS
^
FWN
^FT150,200^FDZEBRA-1^FS
^FWR
^FT050,400^FDZEBRA-3^FS
^CN1
^PN0
^XZ
^XA
^FWB
^FT350,050^FDZEBRA-1^FS
^FT150,200^FDZEBRA-1^FS
^FWI
^FT150,450^FDZEBRA-4^FS
^CN1
^PN0
^XZ
First Receipt Out
Second Receipt Out
Kommentare zu diesen Handbüchern