Page 147 - ZPL II Programming Guide
P. 147

ZPL Commands    127
                                                                                                         ~DG


               ~DG


                     Download Graphics

                              Description  The ~DG command downloads an ASCII Hex representation of a graphic
                              image. If .GRF is not the specified file extension, .GRF is automatically appended.

                              For more saving and loading options when downloading files, see ~DY on page 134.

                              Format  ~DGd:o.x,t,w,data

                              This table identifies the parameters for this format:


                               Parameters           Details
                               d = device to store   Accepted Values: R:, E:, B:, and A:
                                    image           Default Value: R:
                               o = image name       Accepted Values: 1 to 8 alphanumeric characters
                                                    Default Value: if a name is not specified, UNKNOWN is used
                               x = extension        Fixed Value: .GRF

                               t = total number of   See the formula in the examples below.
                                    bytes in graphic

                               w = number of bytes   See the formula in the examples below.
                                    per row
                               data = ASCII         The data string defines the image and is an ASCII hexadecimal
                                    hexadecimal     representation of the image. Each character represents a horizontal
                                    string defining   nibble of four dots.
                                    image



                              This is the key for the examples that follow:
                                     x = width of the graphic in millimeters
                                     y = height of the graphic in millimeters
                                     z = dots/mm = print density of the printer being programmed
                                     8 = bits/byte























               9/15/06                              ZPL II Programming  Guide                  45541L-004 Rev. A
   142   143   144   145   146   147   148   149   150   151   152