2
votes

ZPL Code:

Task.txt

^XA

^FO30,390^GFA,8064,8064,32,,:::::::::::::::::::K07VFCM03FC003FE003VFE,K0WFCM07FE007FE003WF,::::::::K0FFCR07FCR07FE003FER03FF,:::::::::K0FFCR07FCW03FER03FF,K0FFC007LFC007FC007FE007FEM03FE003LFE003FF,::::::::K0FFC007LFC007FCW03FE003LFE003FF,K0FFC007LFC007FCR07FE003FE003LFE003FF,:::::::::K0FFC007LFC007FCJ01FF801JFE003FE003LFE003FF,::::::::K0FFCR07FCJ01FF801FF8J03FER03FF,K0FFCR07FCJ01MF8J03FER03FF,::::::::K0FFCR07FCM07FEM03FER03FF,K0WFC007FE007FE007FE003WF,::::::::gK07FE007FE,::::::::::K0MFC007QFE007FE007LFEM03FE,::::::::K0MFC007QFE007FE003LFEM03FE,K0FFC007FCJ01FFK07FE007JF800FF800FF800FF800FF8,::::::::K07FC007FCJ01FFK07FC007JF800FF800FF800FF800FF8,P07FC007FC007FCJ01FF801FF800MF800MF8,:::::::::M01FFK07JF001FF001RF800MF800JFE,M01FFK07JF001FF801RF800MF800KF,M01FFK07JF001FF001RF800MF800KF,:::::::K07JF001RF001MF801MF800MF8,K0KF001RF001MF800MF800MF8,:::::::K0KF001RF801MF801MF800MF8,gK0403JFEM03FEM03JF8,gK07LFEM03FEM03JF8,::::::::gK07FE,K0WFC007FEM07FEM03FEM03FF,::::::::K0FFCR07FC007FE,K0FFCR07FC007LFEM03FEM03JF8,::::::::K0FFCR07FC007FER03FEM03FF,K0FFC007LFC007FC007FEM07FE003FE003FE003FE003FF,::::::::K0FFC007LFC007FC,K0FFC007LFC007FCJ01FF801FF801FF800FF800FF800FF8,K0FFC007LFC007FCJ01FF801FF800FF800FF800FF800FF8,:::::::K0FFC007LFC007FCO01FF800FF800FF800FF8,K0FFC007LFC007FC007FE007JF800MF800JFE003FF,::::::::K0FFCR07FC007FEJ01FF801FF801FF800FFC,K0FFCR07FC007JF801MF800MF800FF8,::::::::K0FFCR07FC007JF801FF801FF800FFC01FF800FFC,K0WFC007JF801FF800MF800PF,:::::::K0WFC007JF801FF801MF800PF,K07VFC007JFI0FF800MF800OFE,,:::::::::::::::::::^FS

^FO30,25^GFA,1512,1512,14,,:::R08,P07FFE,O07JFE,N01LF8,N07LFC,M01NF,M03NF8,M0OFC,L01PF,L03PF8,L07PF8,L0QFC,L0QFE,K01RF,K03RF8,:K07RFC,K07RFE,K0SFE,::J01SFC078,J01SFC001,J01SF80804,J03SFJ01,J03SF01I08,J03RFE02I02,J03RFEK01,J03RFC04J08,J03RF808J04,J03RF808,J03RF01,J03RFM01,J03QFE02,J07QFC04L08,I03RFC04,I07RF808L04,I0SF,003MF01F01F01,003LFE01F03E02M02,007LFE03E03EO02,00MFC07E07C04M02,01MFC07C0F8,01MF80F80F808,03MF01F81F01,03MF01F03F,07LFE03F03E02,07LFE03E07C04,07LFC07C07C,07LF80FC0F808,07LF81F81F81O02,07LF01F01F01O02,07LF03F03E02,07KFE03E03E,07KFC07E07C04O04,07KFC0FC0FC08O04,07KF80F80F8Q08,07KF81F81F01P08,03KF03F03FQ01,03JFE03E03E02,01JFE07E07C04O02,01JFC07C07CQ04,00JFC0FC0F808O08,007IF81F81F8P01,003IF01F01F01O02,001IF03F03E02,I0FFE07E03EP01,I07FE07E07C04N04,I01FC0FC0F808M01,J0F81F80F808M0C,L01F80F00MFE,,::::::::::03C0FF807F8J07F81FE01FF,03C0FFC07FEJ07F81FF01FF8,03C0FFE07FEJ07F81FF81FFC,03C0F3E079FJ07801E7C1F7C,03C0F1E078FJ07801E7C1E3C,03C0F1E078FJ07801C3C1E3C,03C0F3E079EJ07801E781E3C,03C0FFC07FCJ07F01FF81FFC,03C0FFC07FCJ07F01FF01FF8,03C0FFC07FEJ07F01FF01FF,03C0F9E079F07E07801FF01F8,03C0F1E078F07E07801CF01F,03C0F0F078F07E07801CF01E,03C0F1E079FJ07801C781E,03C0FFE07FFJ07F81E781E,03C0FFE07FEJ07F81E7C1E,03C0FF807FCJ07F81E3C1E,01807C003EK03F00C180C,,:::^FS

^CF0,30
^FO490,40^GB310,45,45^FS
^FO500,50^FR^AC^FDPACKING LIST^FS

^CF0,35
^FO30,150^FDAct #: 12345^FS
^FO29,151^FDAct #: 12345^FS

^FO30,178^FDPicker: John Dow^FS
^FO29,179^FDPicker: John Dow^FS

^FO625,150^FDOrder #: 65785^FS
^FO626,151^FDOrder #: 65785^FS

^FO575,178^FDOrder Date: 8/15/17^FS
^FO576,179^FDOrder Date: 8/15/17^FS

^FO30,220^GB755,180,1^FS
^FO400,220^GB1,180,1^FS

^CF0,30
^FO80,250^FDONE STOP TOBACCO, INC^FS
^FO79,251^FDONE STOP TOBACCO, INC^FS


^CF0,30
^FO140,280^FDSamuel Johnson^FS
^FO150,305^FD877.566.6786^FS

^CF0,36
^FO60,360^FDTruck#^FS
^FO59,361^FDTruck#^FS

^CF0,36
^FO133,360^FD:^FS

^CF0,36
^FO150,360^FD102^FS

^CF0,36
^FO240,360^FDStop#^FS
^FO239,361^FDStop#^FS

^CF0,36
^FO303,360^FD:^FS

^CF0,36
^FO323,360^FD02^FS

^CF0,30
^FO420,250^FDShip to:^FS
^FO419,251^FDShip to:^FS

^CF0,30
^FO420,280^FD51w56 South Main Street,^FS
^FO420,310^FDBlock # 14^FS
^FO420,340^FDAtlantic Beach, South Carolina,^FS
^FO420,370^FD89764 - USA^FS

^CF0,55
^FO430,500^FDBOX:^FS

^CF0,200
^FO700,450^FD9^FS

^CF0,30
^FO25,630^GB760,45,45^FS
^FO35,640^FR^FDItem #^FS
^FO145,640^FR^FDDescription^FS
^FO700,640^FR^FDQty^FS

^FO25,670^GB760,460,1^FS
^FO130,670^GB0,460,0^FS
^FO650,670^GB1,460,1^FS

^CF0,35
^FO35,690^FD678998^FS
^FO35,720^FD677868^FS
^FO35,750^FD677848^FS
^FO35,780^FD678888^FS
^FO35,810^FD679838^FS
^FO35,840^FD678588^FS

^CF0,35
^FO150,690^FDDescription 1^FS
^FO150,720^FDDescription 2^FS
^FO150,750^FDDescription 1^FS
^FO150,780^FDDescription 1^FS
^FO150,810^FDDescription 1^FS
^FO150,840^FDDescription 1^FS

^CF0,35
^FO710,690^FD1^FS
^FO710,720^FD2^FS
^FO710,750^FD1^FS
^FO710,780^FD1^FS
^FO710,810^FD1^FS
^FO710,840^FD10^FS

^CF0,30
^FO70,1150^FDHave a Question? Call today: (888) 484-6872^FS

^FO490,1145^FD.^FS
^FO489,1146^FD.^FS
^FO491,1147^FD.^FS

^CF0,30
^FO525,1150^FDwww.usawdistributing.com^FS

^CF0,30
^FO200,1183^FD203 Blount Street, Fayetteville, NC 28301 - USA^FS

^XZ

I have Zebra Technologies ZTC GC420t (EPL) printer connected thorough USB to my Mac.

I have 4 drivers :

  1. Zebra EPL1 label Printer
  2. Zebra EPL2 label Printer
  3. Zebra EPL3 Label Printer
  4. Zebra ZPL label Printer.

I have Selected Zebra ZPL label Printer.

I am new in ZPL.

  1. What should be the extension of file which contains ZPL code?
  2. What should be the proper driver of Zebra ZTC gc420t(EPL) to print ZPL code?
  3. Is it possible that Zebra ZTC GC420t (EPL) can print ZPL code? If yes, then how?

Problem: I wanted the output of my ZPL code like this ZPL Viewer, but I am only getting text, not the output.

Any suggestion will be appreciated.

2

2 Answers

2
votes
  1. I believe a .zpl file extension is correct, but I think it should also work with a .txt extension.

  2. Also, you should be able to print ZPL to a ZTC GC420t, because it's product page says that ZPL II is supported on this printer.

  3. Lastly, to send a ZPL file to a printer via USB on a Mac, you have to use the CUPs driver. You can find tutorials on setting it up for a Zebra printer here:

https://www.zebra.com/us/en/support-downloads/knowledge-articles/mac-linux-or-unix-driver-suggestions-for-zebra-printers.html

0
votes

If you just "Print" the ZPL on the mac, you'll just get a render of the text you're sending regardless of the driver. (but you should use EPL2 or ZPL for best output of a standard "Print") You should be OK to use the OS driver, no need for the CUPS stuff. You just send to the device using command line...

lpr -P <PRINTER_NAME> -o raw <FILENAME.zpl>