What's the ZPL command for "page-break" on continious vs mark-based labels? - zpl

I need help finding out the appropriate ZPL-command for issuing a "page-break".
If the labels are continious I imagine it's a ^LL-job, and if existing, add a cutter command.
But for pre-printed (with optical delimiters), how do I feed to "next label"?
I guess the ~JS command is involved, can't just get it together. Thanks for any advices.

Finish current label with ^XZ and start a new one with ^XA. This would result in label feed to the length set in ^LL.

I was working with ZPL commands with a little Windows Application Form to print Labels with a GK420t printer and I just had to repeat a segment of the ZPL commands sequence
Only check this sequence:
CT~~CD,~CC^~CT~
^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR5,5~SD15^JUS^LRN^CI0^XZ
^XA
^MMT
^PW456
^LL0252
^LS0
^FT436,201^A0I,28,31^FH\^FDProducto de Prueba 1^FS
^BY3,2,149^FT379,40^BEI,,Y,N
^FD0123456789012^FS
^PQ1,0,1,Y^XZ
^XA
^MMT
^PW456
^LL0252
^LS0
^FT436,201^A0I,28,31^FH\^FDProducto de Prueba 2^FS
^BY3,2,149^FT379,40^BEI,,Y,N
^FD0123456789012^FS
^PQ1,0,1,Y^XZ
^XA
^MMT
^PW456
^LL0252
^LS0
^FT436,201^A0I,28,31^FH\^FDProducto de Prueba 3^FS
^BY3,2,149^FT379,40^BEI,,Y,N
^FD0123456789012^FS
^PQ1,0,1,Y^XZ
I hope this could help you!

Related

ZebraDesigner - Saving zpl code does not actually save code as zpl

title might be a bit weirdly formulated, so let me try to explain:
I use ZebraDesigner 3 Essentials in order to make a label. I then "print to file", which leaves me with a .prn containing code. I also tried the answer from this question:
How to get ZPL code from a ZebraDesigner label?
, leaving me with a .zpl file, which has the same content as the .prn file.
That content is similiar to zpl, but it seemingly is not the same. This is the result of a simple label, where "Text" is in the middle of it:
CT~~CD,~CC^~CT~
^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR2,2~SD20^JUS^LRN^CI0^XZ
^XA
^MMT
^PW1046
^LL0267
^LS0
^FO448,96^GFA,00768,00768,00012,:Z64:
eJzl0TEOQiEMBuASho69gb2I4V3rDcRg3sHEm3CEjh2M6PMV0Lg4GBc7fUMD/w8AfzBUq7zZpWF8NfgMnxhlmC+Y8SQPT1dfyBzZCU+bZ0oSbF8w6b7Zpxg3u+Jz0GEWc62ZyzDlYWwu93pP7vur2zniIEi/N0cdGdQywIzHnvPAruzMay9G6X1pUXsHSnjWL/7Yz+YGfRNqLw==:7BBD
^PQ1,0,1,Y^XZ
The second line from the button upwards is the problem, I believe. Around there is where, normally, "Text" would be standing, however, now there's just gibberish.
I absolutly need this to be saved correctly, as I later need to access it via python. Please help me by explaining why this happens, and / or how I can fix this.
You need to use a font that is built into the printer. If you set the font to Zebra 0 you get something like:
CT~~CD,~CC^~CT~
^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR4,4~SD22^JUS^LRN^CI0^XZ
^XA
^MMT
^PW812
^LL1218
^LS0
^FT160,391^A0N,135,134^FH\^FDhello^FS
^PQ1,0,1,Y^XZ

zebra printer not printing latin characters

I have a problem with zebra printer ZT410, i'm trying to print in latin characters such as ñ, ç and ò and so on.
^XA
^CI28
^MMT
^PW1040
^LL840
^A#N,50,49,E:STI000.FNT^FT50,-230^FH\^FDRajoy^FS
^A#N,50,49,E:STI000.FNT^FB1040,2,25,C^FT0,-421^FH\^FDThañk yòú fôr showing me that there are people^FS
^A#N,50,49,E:STI000.FNT^FB1040,1,0,C^FT0,-509^FH\^FDlike you in this world.^FS
^A#N,50,49,E:STI000.FNT^FB1040,1,0,C^FT0,-572^FH\^FD^FS
^A#N,50,49,E:STI000.FNT^FB1040,1,0,C^FT0,-635^FH\^FDLoveç you.^FS
^A#N,50,49,E:STI000.FNT^FB1040,1,0,C^FT0,-698^FH\^FDMarta.^FS
^A#N,50,49,E:STI000.FNT^FT50,-790^FH\^FDDavid^FS
^XZ
But instead of printing the special characters, they are omited, I've checked that the special font used (Stingray) contains all those characters, I don't know how to print them. Any help would be appreciated. Thanks
Edit: I actually fixed it by using ^CI27 instead of ^CI28 since I have an older version of the Zebra firmware that doesn't support ^CI28
Here's something simple that works with some of the text you have:
^XA
^CI28
^FO50,20^A0N,40,40^FDThañk yòú fôr showing me that there are people^FS
^XZ

How to print French characters with an acute (like 'é') with a Zebra P4t printer

My question is about printing French characters with an acute like: é è à ô etc. with a Zebra P4t printer.
Consider the ZPL instructions below:
^XA
^FO20,20
^CI28
^A0,20,20
^FD
Amitié
^FS
^XZ
I have put these instructions into a file encoded as UTF-8.
When I send this file to a Zebra GK420t printer, I get the expected result concerning the character with an acute é at the end of the French word Amitié that you can see above. It is printed properly.
Now, when I send this very same file to a Zebra P4t printer it prints something like |-® instead of the é character.
The firmware of the printer is SHCPT11z48.
Alos, if you consider the ZPL instructions below:
^XA
^FO20,60
^A0,20,20
^FD
Amitié
^FS
^XZ
I have put these instructions into a file encoded as ANSI.
Now, when I send this very same file to a Zebra P4t printer it prints Ú instead of the é character.
I really don't see where this character Ú is coming from.
What can I do to solve that problem?
Is a font missing in the printer?
Am I not sending compatible ZPL instructions?
Thank you and best regards.
You have to prefix the field with UTF-8 characters with ^FH (Field Hexadecimal Indicator) and replace every UTF-8 character with their unicode hexadecimal code prefixed by an _ (list, example for é):
^XA
^FO20,20
^CI28
^A0,20,20
^FD
Amiti_C3_A9
^FS
^XZ
Simple solution without having to replace anything:
After the opening tag ^XA add ^CI28.
^XA^CI28
your content
^XZ
Zebra support talking about it here.

Zebra RW 420 not printing last or first inch using ZPL

Zebra RW 420 not printing last or first inch(depending on rotation) using ZPL.
this link was suppose to give a solution since it is the same symptom; but I've try all combinations of "Back Feed" (~JSN, ~JSA, ~JSB) with no results.
here is my ZPL code(generated from ZebraDesigner print to file command) It doesn't print "Hello 22" completely:
^XA~TA000~JSN^LT0^MNM^MTT^POI^PMN^LH0,0^JMA^PR2,2~SD10^JUS^LRN^CI0^XZ
^XA
^MMT
^PW812
^LL2233
^LS0
^FO272,76^A0N,56,55^FH\^FDHello 11^FS
^FO320,2000^A0N,56,55^FH\^FDHello 22^FS
^PQ1,0,1,Y^XZ
I had the same problems with print output. I ended up abandoning use of ^FO and went with ^FT, and everything has been perfect since. I don't know why ^FO is so temperamental, but ^FT is very straightforward. You get what you expect.
I'd suggest getting rid of that entire first row that ZebraDesigner made. You don't need it.
I've solved the problem with the help of Zebra support.
The actual problem was the var "zpl.label_length" that was set to 2014 instead of 2233; the ^LL command is ignored in this printer and the label length is controlled only by "zpl.label_length".
It printed the whole label(11")after sending the command:
! U1 setvar "zpl.label_length" "2233"

Barcode printer Zebra 105LS - text below barcode

I have simple label created in ZPL language for Zebra printer.
I want to enlarge the size of the text below the barcode.
I tried to find solution in web and I used command ^ADN,40 - text was moved to the left position.
My label is here:
http://sunpic.me/vIzoilyu/barcodemale.jpg
^XA^JZN
^BY3^FS
^FO68,35^ADN,40^FD TRW ORS 34186401A^FS
^FO30,69^GB568,0,6^FS
^FO30,55^GB0,20,6^FS
^FO591,55^GB0,20,6^FS
^FO49,83
^BC,126,Y,N,N,N
^FD>;8640>61AAH44300E
^FS
^PQ1,,,
^XZ
Here is the ZPL code to print a barcode without human readable content:
^XA
^FXAutorizacao de Usuario
^FO50,35
^BY4,10,100
^BC,126,N,N,N,N
^FD0123456789
^FS
^CF0,40
^FO50,200^GB700,1,3^FS
^CF0,50
^FO50,220^FDBRUNO LEITAO^FS
^XZ
You can also test it online
Labelary Online ZPL Viewer
According to Zebra's ZPL docs:
The font specified by command ^A is used only once for that ^FD entry.
If a value for ^A is not specified again, the default ^CF font is used
for the next ^FD entry.
So, I suggest you to try the following code:
^XA^JZN
^BY3^FS
^FO68,35^ADN,40^FD TRW ORS 34186401A^FS
^FO30,69^GB568,0,6^FS
^FO30,55^GB0,20,6^FS
^FO591,55^GB0,20,6^FS
^FO49,83
^BC,126,Y,N,N,N
^ADN,40^FD>;8640>61AAH44300E
^FS
^PQ1,,,
^XZ
If necessary, you can also change the "D" font by another bigger bitmapped font, as "F", "Q", etc.
Another suggestion:
^XA^JZN
^BY3^FS
^CFD,40^FO68,35^FD TRW ORS 34186401A^FS
^FO30,69^GB568,0,6^FS
^FO30,55^GB0,20,6^FS
^FO591,55^GB0,20,6^FS
^FO49,83
^BC,126,Y,N,N,N
^FD>;8640>61AAH44300E
^FS
^PQ1,,,
^XZ

Resources