Print Label using zpl

Hi All ,

could you please help us on this. We have QLN320 printers and the paper has double sticker in the same row . When we print, it is printing on the left hand side sticker and leaving right hand side sticker empty and skipping The row. Paper is getting wasted. The requirement is when we give two different prints, it should utilize both left left and right hand side stickers .

thank you in advance

Evgeniy Ananev
do you mean like on this

do you mean like on this label?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Dmitry Prokhorov
Hello Krishna,It would be

Hello Krishna,

It would be nice to have your label file to check it. Has your printer been configured to use ZPL language?

Dmitry Prokhorov

Software Engineer, Kutir Mobility

Posted on behalf of Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Hi Krishna,It looks like you

Hi Krishna,

It looks like you are expecting two lables on the same row, i.e. each sticker is a label. We can achieve that with ZPL and QLn320 printer. Please keep in mind that the printer itself doesn't know many stickers per row. When we use the ZPL to design the label for each sticker, we need to treat two labels (for two stickers) on the same row as if they are one label (or as if they are one sticker). Then the results would be two labels on two stickers per row. Hope this helps.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Krishna Penumatsa
Thank you Steven, Evgeniy

Thank you Steven, Evgeniy Ananev and Dmitry Prokhorov for the reply.

Hi Steven ,

We have been struggling to achieve for the last 3-4 days to design correct zpl  for the below mentioned label  and also just print on the left hand side sticker and use right hand side only when we send print next time.

I have attached the label and paper model for quick reference. It will be great help if you have any sample zpl codes to achieve this.label.pngPaper.jpeg

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
and also just print on the

and also just print on the left hand side sticker and use right hand side only when we send print next time.

This cannot be achieved. As mentioned before, we have to treat two stickers as one label. This is because the thermal printers do not have the rewind. Once a label feeds out, it cannot go back to the printer. To get two labels on one row, the two labels have to be printed out together. In other words, the ZPL for the two labels has to be in one ^XA and ^XZ pair. Hope this helps.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Evgeniy Ananev
Example:^XA^FX LEFT^FO25,25

Example:

^XA

^FX LEFT

^FO25,25^BY1,3.0^B3N,,200,N^FD 90360987345 ^FS

^CFA,30

^FO25,230^FDJohn Doe^FS

^FO25,270^FD100 Main Street^FS

^FO25,310^FDSpringfield TN^FS

^FO25,350^FDUnited States^FS

^FX RIGHT

^FO525,25^BY1,3.0^B3N,,200,N^FD 90360987345 ^FS

^CFA,30

^FO525,230^FDJohn Doe^FS

^FO525,270^FD100 Main Street^FS

^FO525,310^FDSpringfield TN^FS

^FO525,350^FDUnited States^FS

^XZ

Online ZPL Viewer http://labelary.com/viewer.html

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Krishna Penumatsa
Hi Steven ,Thank you for your

Hi Steven ,

Thank you for your reply and help on this. We have around more than 2000 QLN320 printers in stores and if we will have to use two stickers for single label so much of paper gets wasted as we do lot of printing in stores. Is there any workaround to achieve this. Is there any way we can put custom code instead zpl to consider only one sticker in a row for single label . Request you to advise on this.

Thanks,

Krishna

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
The only workaround is inside

The only workaround is inside the applicaiton. If there is only one label to print, the application could hold off the label print until it receives the 2nd label print request. Then the applicaiton can combine the two labels into one ZPL and sends that ZPL off to the printer to have one print on two stickers in a row. It's kind of the "label concatenation" by the application. Below is an example ZPL of making one label look like two labels.

^XA

^FO0,35^GB275,300,2^FS

^FO280,35^GB275,300,2^FS

^FO20,100^ADN,18,10^FDLabel One^FS

^FO300,100^ADN,18,10^FDLabel Two^FS

^XZ

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Krishna Penumatsa
Hi, We are using the below

Hi,

We are using the below mentioned ZPL code but it it is leaving 8 labels empty and printing 9th label . Could you please help us on this.

"^XA
^FWR^CF5,15^FO180,1^FD18J^FS^CF10,15^FO180,120^FD813-1972^FS^BY1,1,50^CF10,15^A0,10,30^FO60,40^CF10,15^BC,100,Y,Y,N^FD1023998^FS^CF10,15^FO40,40^FDAGSMCYHR MDW^FS^CF10,15^FO17,120^FDSALE^FS^CFA,12^CF10,15^FO17,6^FDWAS^FS^CF10,15^FO2,125^FD$24.00^FS^CF10,15^FO2,15^FD$44.99^FS

^FWR^CF10,14^FO385,1^FD18J^FS^CF10,15^FO385,120^FD813-1972^FS^BY1,1,50^CF10,15^A0,10,30^FO275,45^BC,100,Y,Y,N^FD1023998^FS^CF10,15^FO255,40^FDAGSMCYHR MDW^FS^CF10,15^FO235,120^FDSALE^FS^CFA,12^CF10,15^FO235,10^FDWAS^FS^CF10,15^FO220,120^FD$24.00^FS^CF5,15^FO220,15^FD$44.99^FS
^XZ

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Make sure that the printer's

Make sure that the printer's media.type is set to Label and the media.sense_mode is set to Gap or Bar according to the media. After all, please make sure do a ~JC to calibrate the media before printing.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments