cannot print 2D Barcode using CPCL

// Expert user has replied.
Y Yuriko Saito 2 years 11 months ago
94 4 3

Hi,
 
I am trying to print 2D barcode(PDF417 and QRcode) using CPCL but cannot print.
Printer : QLn320, ZQ520
Code :
! 0 200 200 421 1
 
B PDF-417 10 20 XD 2 YD 6 C 3 S 1
This is a test PDF417 barcode
ENDPDF
 
B QR 10 100 M 2 U 10
MA,test QR code
ENDQR
 
PRINT
 
 
I could print 1D barcode(code128 and code39) using CPCL,
and could print 2D barcode using ZPL,
I see data icon is blinking when I send the above code to printer,
so I'm sure connection has been made.
I can't find out what is wrong with my code.
Could you please help?
 
Thank you.

Please register or login to post a reply

4 Replies

R Rodrigo Morbach

I am using the example provided in the documentation: https://www.zebra.com/content/dam/zebra_new_ia/en-us/manuals/printers/co...
! 0 200 200 210 1
BARCODE PDF-417 10 20 XD 3 YD 12 C 3 S 2 PDF Data
ABCDE12345
ENDPDF
PRINT
This does not work.
The printer is ZQ520 and I've updated the firmware to V76.20.22Z

T T W

I am having the same issue here, it is printing QR Code with the ZQ520 using CPCL.
Is there any solution to this yet?

S Samantha Corn

Hi Yuriko,

I tried your CPCL on my QLn220 and it successfully printed both bar codes, so it should have at least worked on your QLn320. Could you please send me the allcv report of one of the printers? Here's a walkthrough on how to get that report if you've never done it before.

M Mamoon Yameen

For iOS(iPhone) device SDK i was getting same issue in PDF-417 bar code print with Zebra ZQ210 but successfully managed to overcome this issue.
First You can not generate PDF-417 through CPCL language guide or strings. Printer will not accept it. some how it works with android device SDK.
For iOS first you have to create a PDF417 image through swift(native) code.
Then you need to use printer graphics utilities to print your image.
For further queries find me at linked:https: //www.linkedin.com/in/mamoon-yameen/
 

CONTACT
Can’t find what you’re looking for?