Hi,
I have a problem with blank labels using ZPL from iOS application to print the label.
We use printer QLn 320 Zebra with firmware V68.19.7Z, non-continuous media with gaps.
The printer prints one required label and two blank labels when I use the ZPL command:
^XA^MNW
^LH20,20^POI
^FT5,5^FH^A0N,30,30^FDLine1^FS
FT5,45^FH^A0N,30,30^FDLine2^FS
^XZ
If I change printer settings and define label length with command:
^XA^MNN^LL200^XZ^XA^JUS^XZ
and use the following ZPL to print the label
^XA
^LH20,20^POI
^FT5,5^FH^A0N,30,30^FDLine1^FS
FT5,45^FH^A0N,30,30^FDLine2^FS
^XZ
The printer prints labels with correct size and doesn’t print blank labels.
So as I understand the problem with auto detection label size.
Could you advice what can be the reason?
Blank labels on Zebra printer using ZPL |
1 Replies
Hi Dmitrij,
The issue here is definitely detection of label length. The ^MNW command only tells the printer that it should expect labels, not how long they are. The printer will still have a default label length it will be looking for. The ^MNN^LL commands effectively tell the printer that you have continuous (receipt) type paper, not labels, so it will eventually be wrong. The command to tell the printer to auto-detect the label length is "~JC" without quotes. It does not need to be in a print format as it is an immediate action command. It will waste 2 labels in order to get the detection complete, but then you should be fine until you change to a different type of label stock.
Robin West