Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emulate ZPL printer

To emulate ZPL printer on my mac I searched through internet for a few days. Finally I've got a solution to post here, so other users could find it helpful. I wanted to post my solution here Emulate Zebra printer

But "thanks" for those who decided that this question duplicates another one, which in my opinion totally false. So the only option for me is to create another question and answer to it.

like image 481
ZuzEL Avatar asked Oct 11 '15 15:10

ZuzEL


People also ask

What printers are compatible with ZPL?

ZPL compatible Zebra Printers. Excluding the non-ZPL language printers: 2824 Series, 2844 Series, S4M (E53 Firmware Version), ZM Series (E53 Firmware), 888 DD/TT Series, MZ Series, ZQ110, EM220, EM220II, All Kiosk (except KR403).


2 Answers

So, to emulate ZPL printer on your mac (possibly windows too):

  1. Install this chrome app Zpl Printer
  2. Go to printer settings, add new one. enter image description here

Port can vary. Double-check it.

  1. Make sure everything turned on.

To test it, try in your terminal:

lp -o "raw" -q1 -d zpl <<< "CT~~CD,~CC^~CT~^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR6,6~SD15^JUS^LRN^CI0^XZ^XA^MMT^PW508^LL0203^LS0^BY4,3,138^FT48,155^BCN,,Y,N^FD>;12^FS^PQ1,0,1,Y^XZ"

If everything tuned properly, in ZPL printer you will see:

enter image description here

like image 118
ZuzEL Avatar answered Sep 26 '22 14:09

ZuzEL


Step by step to install on windows (tested in windows-10):

  1. Install the ZPL Printer app from the Chrome store
  2. Run the app and make sure it's toggled On. toggled On
  3. Open Printers & scanners or Devices & Printers in Control Panel.
  4. Add a printer. (Optional! Only if you select from control panel)
  5. Select "The printer I want wasn't listed"
  6. Select Add a Local Printer. Then next add local printer
  7. Create a new port - Standard TCP/IP. Use IP 127.0.0.1
  8. Let Windows detect the port and it will eventually return an error.
  9. Select Device Type -> Custom.
  10. Press settings and make sure you have IP Address 127.0.0.1, Protocol RAW and port 9100.
  11. Click OK and Next.
  12. Wait for it to fail to detect driver model.
  13. Select Generic and Generic/Text Only.
  14. Next a few times then Name your printer.
  15. Create your test script

    ^XA
    ^FO250,40^A0N,70,70^FDLPN^FS
    ^FO30,120^A0N,50,50
    ^BCN,100,N,N,N
    ^FD1000001^SFddddddd^FS
    ^FO200,300^A0N,50,50
    ^FD1000001^SFddddddd^FS
    ^PQ50
    ^XZ
    
  16. Print, select your new named printer and Print. print
  17. Viola! printed
like image 33
Mukyuu Avatar answered Sep 24 '22 14:09

Mukyuu