CPCL Datamatrix

// Expert user has replied.
A Alberto Rossi 3 years ago
31 4 0

Hi,
I use ZebraDesigner for create my labels and after created i print on file for get cpcl code generated automatically.
I have a problem ( i'am novice) when i use "Barcode" i don't have problem for code, but when i use 2DBarcode ( e.g. datamatrix ) i receive this string ( i use this printer ZQ220 )

" 3 2 K K ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ   x ÇÿƒÁàÁø>ƒÁÿƒÁàÁø>ƒÁÿƒÁàÁø>ƒÁÿƒÁàÁø>ƒÁÿƒÁàÁø>ƒÁÿƒÂÿÁÁÁð|ƒÂÿÁÁÁð|ƒÂÿÁÁÁð|ƒÂÿÁÁÁð|ƒÂÿÁÁÁð|€ ÁÿÁÁÁðÁÿ€ ÁÿÁÁÁðÁÿ€ ÁÿÁÁÁðÁÿ€ ÁÿÁÁÁðÁÿ€ ÁÿÁÁÁðÁÿ€Áø?Áð|€Áø?Áð|€Áø?Áð|€Áø?Áð|€Áø?Áð|€ÁøÃÿ€ÁøÃÿ€ÁøÃÿ€ÁøÃÿ€ÁøÃÿƒÁàÁÿÁð ƒÁàÁÿÁð ƒÁàÁÿÁð ƒÁàÁÿÁð ƒÁàÁÿÁð ƒÁÿ ?ÃÿƒÁÿ ?ÃÿƒÁÿ ?ÃÿƒÁÿ ?ÃÿƒÁÿ ?ÃÿƒÁàÁÀÁüƒÁàÁÀÁüƒÁàÁÀÁüƒÁàÁÀÁüƒÁàÁÀÁüƒÁàÁÿÁþÂÿƒÁàÁÿÁþÂÿƒÁàÁÿÁþÂÿƒÁàÁÿÁþÂÿƒÁàÁÿÁþÂÿ€Å €Å €Å €Å €Å "

i don't find an example for create a datamatrix without ZebraDesigner.
How i can resolve this problem ?
Thank you

Update:
I found an example
( ! 0 200 200 500 1
B QR 10 100 M 2 U 10
MA,QR code ABC123
ENDQR
T 4 0 10 400 QR code ABC123
FORM
PRINT ) but when paste in my code ( for every end line i add \r\n ) i don't have a qrcode

Please Register or Login to post a reply

4 Replies

S Steven Si

Your CPCL QR code is correct.

! 0 200 200 500 1
B QR 10 100 M 2 U 10
MA,QR code ABC123
ENDQR
T 4 0 10 400 QR code ABC123
FORM
PRINT

I am able to print it out from a ZQ310 printer. See the pic below. I don't have ZQ220 at my hand right now. It should work with ZQ220, as ZQ220 supports CPCL.

CPCL_QR

A Alberto Rossi

Thank you for reply, but for Datamatrix i don't find solution this is my code
! 0 200 200 500 1\n" +
"B DATAMATRIX 10 100 M 2 U 10\n" +
"DATAMATRIX code ABC123\n" +
"ENDDATAMATRIX\n" +
"T 4 0 10 400 DATAMATRIX code ABC123\n" +
"FORM\n" +
"PRINT"

printer receive the command ( bt is blinking ) but don't write.

This is another example that i found ( https://support.zebra.com/cpws/docs/mobile/so8248.pdf ) :

! 0 200 200 400 1
JOURNAL
B DATAMATRIX 20 40 S 200
0123456789ABCD
ENDDATAMATRIX
PRINT

but i have the same behavior ( bt on printer blink but don't write )

S Steven Si

You need to have "\r\n" at the end for each CPCL statement. I would suggest to use the Printer Setup Utility for Windows to verify the CPCL script first before you put them in the code. When sending the CPCL script to the printer via the code, the "\r\n" is required for each CPCL statement.

A Alberto Rossi

Hi,
First all thank you for your answered :) !.
for "\r\n" yes you have rigth, but when i copy and past in Android i see that is not necessary because the output is write correctally, but aniway i update my code.
At last very very thanks for yours suggest , i did not know this "test" :) thank you.

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