Specifications

ZPL Commands
^XG
282
45541L-004 Rev. A ZPL II Programming Guide 9/15/06
^XG
Recall Graphic
Description The ^XG command is used to recall one or more graphic images for printing.
This command is used in a label format to merge graphics, such as company logos and piece
parts, with text data to form a complete label.
An image can be recalled and resized as many times as needed in each format. Other images
and data might be added to the format.
Format ^XGd:o.x,mx,my
This table identifies the parameters for this format:
Parameters Details
d = source device of
stored image
Accepted Values:
R:, E:, B:, and A:
Default Value: search priority (R:, E:, B:, and A:)
o = name of stored
image
Accepted Values:
1 to 8 alphanumeric characters
Default Value: if a name is not specified, UNKNOWN is used
x = extension l
Fixed Value:
.GRF
mx
= magnification
factor on the x-
axis
Accepted Values:
1 to 10
Default Value: 1
my
= magnification
factor on the y-
axis
Accepted Values:
1 to 10
Default Value: 1
Example • This is an example of using the ^XG command to recall the image
SAMPLE.GRF from DRAM and print it in five different sizes in five different locations on
the same label:
^XA
^FO100,100^XGR:SAMPLE.GRF,1,1^FS
^FO100,200^XGR:SAMPLE.GRF,2,2^FS
^FO100,300^XGR:SAMPLE.GRF,3,3^FS
^FO100,400^XGR:SAMPLE.GRF,4,4^FS
^FO100,500^XGR:SAMPLE.GRF,5,5^FS
^XZ