Specifications

Reducing Download Time of Graphic Images
There is a method of reducing the actual number of data bytes sent to
the printer when using the ~DG instruction. This is shown in Figures
4.1 and 4.2 along with the graphic.
In Figure 4.2, if the HEX string ends in an even number of zeros (0’s),
a single comma (,) can be substituted for ALL of the zeros. If the
HEX string ends in an odd number of zeros, one zero and a single
comma is required. The exclamation mark (!) and the colon (:)
described under ‘Repeat Values’ on the previous page can also be
used.
NOTE: The text rows in your editor may not be the same as the dot
rows used by ZPL II. The editor may word wrap or truncate the dot
rows. ZPL II ignores the end of a text line (ie. carriage returns and
line feed characters).
NOTE: In Figures 4.1 and 4.2, carriage returns have been inserted
at the end of every dot row for visual clarity.
CHAPTER 5 85
ZPL II Advanced Techniques
~DGTRAINGLE,42,6,
FO0000000000
FF0000000000
FFF000000000
FFFFF0000000
FFFFFF000000
^XA
^FO50,50
^XGTRIANGLE,1,1^FS
^FO100,100
^XGTRIANGLE,10,10^FS
^XZ
Figure 4.1 Complete Graphic
Coding
~DGTRIANGLE,42,6,
FO,
FF,
FFF0,
FFFFF0,
FFFFFF,
^XA
^FO50,50
^XGTRIANGLE,1,1^FS
^FO100,100
^XGTRIANGLE,10,10^FS
^XZ
Figure 4.2 Condensed Graphic