Can't define label length - ZPL (RW 220)

AFMeirelles picture AFMeirelles · Jan 2, 2014 · Viewed 11.6k times · Source

fellows,

what I'm trying to do should be simple: to print an example label from ZPL II Programming Guide. But no matter what I write, the label is always printed with 40mm length.

This is the code:

^XA
^LH0,30
^FO20,10^AD^FDVERSUL^FS
^XZ

I tried changing the label's settings in the printer's properties, tried to add the ^LL command, set units to dots. I'm using the console from Zebra Setup Utilities, and I've already changed the language to ZPL. Nothing changed.

Do you know what I'm doing wrong or if is there any other place I should change the label's settings?

BTW: the printer is working fine in CPCL mode, it looks like it's something regarding ZPL's configuration.

Thanks in advance.

Answer

Ovi Tisler picture Ovi Tisler · Jan 2, 2014

Do you have gap or black mark label media loaded in the printer? Or continuous receipt paper?

If the printer is in non-continuous mode with receipt paper, it will look for a label gap (or black mark) so that it can feed up to the next label. If the printer is loaded with continuous receipt paper, it will not find it and feed up to some maximum. Look at the ^MN command and try to set it to continuous, while also using the ^LL command in your ZPL format. You can send ^XA^MNN^LL400^XZ^XA^JUS^XZ to set and save the printer in continuous mode, 400 dots length just to see if it works.