CPCL Datamatrix


Audience

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

Submitted by SSi1 on November 05, 2021 Permalink

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

Submitted by scf83600@boofx.com on November 08, 2021 Permalink

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 )

Submitted by scf83600@boofx.com on November 10, 2021 Permalink

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.