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

怎甘沉沦 提交于 2020-01-12 05:30:08

问题


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.


回答1:


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.




回答2:


I had a similar problem but a different cause (GK420T) - for some reason I had turned of backfeed using ~JSO, and the rest position (~TA) placed the next label already halfway under the print head.

Without backfeed, the printer started from this position so it looked like the bottom of the label was cropped and length and page size was ignored.

Changing the backfeed sequence to ~JSN (default - 90%) causes the printer to roll the label back before printing starts so the whole label is accessible.



来源:https://stackoverflow.com/questions/20885975/cant-define-label-length-zpl-rw-220

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!