zpl printer tear off issue - zpl

I am using zpl II script to print 3 x 2 labels. Its a ethernet printer.I am facing problem that after the print label not properly tear off. So the next print not properly printing.Is that any way in zpl script label is tear off properly adjest.

What is exactly your problem?
I can give you example of my zpl code:
^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR5,5~SD15^LRN^CI0^MMT^PW295^LL0236^LS0^FT29,177^A0N,17,19^FH\^FD_text_^FS^XZ
If I want to tear off: I set MMT. If I want to cut, I'm changing this parameter to MMC.

Related

Add a header in a Bash script, over the output of commands [duplicate]

Under Ubuntu 14.04, I'm writing a script that output a lot of text (several commands...), and I would like to keep one or more lines always on top of the terminal screen to display what's running title.
In other words, I try to reduce terminal vertical scroll zone and write in that non-scrolling zone.
How can I do that? I saw similar stuff using a loop catching output line by line, but I'm unable to find a way to tell the system to print from let's say line 2 or 3.
Thanks for your answers,
Nicolas
Nic, it appears this does quite nicely.
http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html

ZPL Programming - reset settings on each print job

Zebra ZPL label printers carry over the print commands from print job to print job. So if you send a ^FWR command that rotates a label, all future jobs will be rotated, so you have to reset the orientation to ^FWN if you want to have the next label be printed in portrait mode.
Is there a way to automatically reset the 'standard' settings on a Zebra on each print job? So settings from the previous job don't carry over to the next job? I want every zpl file I send to the printer to be printed exactly the same, regardless of what was printed prior.
Or is there a default set of commands that I can send that reset the orientation, fonts, position, dpi, measurements, etc?
There's a command that does a power-on/factory reset, but I don't want to do that on every label print.
You can manually reset all unwanted settings.
This works for me
^PON^LH0,0^FWN
.
FWN resets field orientation
LH resets the offset
PO resets print orientation
Not sure if all of those are needed and/or others would be needed for you too. In my particular case, I did not need FWN.
My printing got messed up when pasting some sample ZPL to the printer. Next 30 labels had orientation and offset changed making them unusable. So I just have above command in beginning of my labels now.
You might specifically have to reset other settings too.
If you can send ZPL Before or After a label you want to print, add the commands you want, like ^PO outside of the begin ^XA/end ^XZ label. It should change it until another similar command is set.

Zebra ZT410 ZPL Clear buffer command

The "~JA" command, as stated in ZPL Programming Guide vol.2, cancels all commands in the buffer.
We were using the ~JA at the start of every PRN file and it worked as intended on ZM400 and ZE500 models. The goal is to have only one printout in case multiple prints are triggered. So if I press "Print" 3 times, only the third label prints out.
I have tried:
- introducing the ~JA command through Zebra Designer interface
- introducing the ~JA manually in the PRN at the start of the PRN file as ~JA~; ~~JA~; ~JA
No luck. On the ZT410 nothing prints out, the printer just hangs there with the data led blinking.
Any ideas?
This is the kind of question that wants a higher level control at a lower level. If you only want 1 label to be printed after a button or print dialog is initiated, it needs to be done at a higher level than ZPL II. Sending a ~JA command typically just flushes the command buffer on a printer less than it does eliminate the ZPL that is being sent before it. In your case, you should eliminate the user's ability to hit the print button 3 times. Effectively adding a de bounce function to your higher level program. It is good however to send a flush command before sending the ZPL you want to print, in case a cached command for a label is stuck in the buffer for the printer. There have been instances where an old label will print out because I have neglected to send this command at the header of my ZPL generator.

Zebra ZT410 ZPL User input

I'm working with Zebra ZT410 and would like to create a template label in ZPL that would be stored on the printer to allow users to print directly from the printer through custom menu in WML.
I'm having no problems creating custom menu, sending it to the printer and calling for the said ZPL file, but the printer is not asking for keyboard input when it should.
Example ZPL code:
CT~~CD,~CC^~CT~
^XA
^PW437
^FT40,167^A0N,25,24^FH\^FN1"EXAMPLE2"^FS
^PQ1,0,1,Y^XZ
When printing from Print Station option on the printer, printer correctly asks for the value of EXAMPLE2, when calling ZPL from custom menu, it just defaults to nothing and prints as there was no input.
Does anyone ever worked with something similar?
Ideally I would need 3 inputs from the barcode scanner to generate a very simple label. Would like to do it with printer and scanner alone if possible.
Thanks in advance.
I have faced with a similar issue.
Zebra support suggested to read WML from printer and see/modify them to create my own Print Station.
PrintStation is in z:TOOLS.WML
You can read files (send to host) with this SGD command
{}{"file.type":"Z:TOOLS.WML"}

zebra zpl printer language - how to tell printer to force cut

good day. is there a command to tell the printer to immediately cut the paper after printing a line of text ? even if the line of text is in the middle of the label.
I've tried ^MMT,N but that command will cut at the end of the label.
^MMC is for cut. MMT is for tear off.
But I am not sure if this is possible to cut just after line of text. In printer there can be a detector to find end of label (you can also try manipulate with force change length of label by manually changing its length)

Resources