Tom's Hardware > Forum > Computer Peripherals > Printers > Zebra ZPL Code - Clearing buffer question

Zebra ZPL Code - Clearing buffer question

Forum Computer Peripherals : Printers - Zebra ZPL Code - Clearing buffer question

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: comp.periphs.printers (More info?)

 

I need to write some ZPL code that will clear out what ever is
currently printing on the label printer (in my case a Zebra 170PAX
label applicator system) before submitting a new label. For example, If
the printer is currently printing label 5 of 100, I want to
programatically mimic the action of taking the prijnter offline,
pressing Cancel, and put the printer back online, thus cancelling the
current print job and submitting the new job.


here is an excerpt of my label code:

^LH0,1219 /* Set Label home to Upper Right corner */
^LL1219 /* Label Length 1219 dots = ~6 inches */
^MD0 /* Media Darkness Leave at default */
^XA /* Start Format */

^CF0,30,^FT85,800 /* Chg font to 0, 30 dots high; move to 85,800
*/
^FB400,1,,C, /* Field Block - 400 wide, 1 line, Centered */
^FWB /* Field Orientation - Bottom up (270 degrees)
*/
^FDABB Inc.^FS /* Field Data, Field Separator */
^CF0,30,^FT115,800 /* Chg font to 0, 30 dots high; move to 115,800
*/
^FB400,1,,C, /* Field Block - 400 wide, 1 line, Centered */
^FWB /* Field Orientation - Bottom up (270 degrees)
*/
^FDGreensboro, North Carolina^FS /* Field Data, Field Separator */

^PQ100 /* Set Label Quantity to 100 */

^XZ /* End Format */

I have tried placing the ^JA /* Cancel All */ command ahead of the ^LH
but it doesn't work. I have also tried placing the ^JR /* Power on
Reset */ command ahead of the ^LH but it doesn't work either. I must
be doing something wrong! I have called Zebra three times and spoke to
three different techs, but they were of no help.
Anyone have any ideas how I can accomplish this?

Sponsored Links
Register or log in to remove.

Archived from groups: comp.periphs.printers (More info?)

 

If memory serves me the proper format is:
~JA for cancel and ~JR for POR
Tilde instead of caret

Jeff

<steven.strawn@us.abb.com> schreef in bericht
news:1106143165.595723.183480@c13g2000cwb.googlegroups.com...
>I need to write some ZPL code that will clear out what ever is
> currently printing on the label printer (in my case a Zebra 170PAX
> label applicator system) before submitting a new label. For example, If
> the printer is currently printing label 5 of 100, I want to
> programatically mimic the action of taking the prijnter offline,
> pressing Cancel, and put the printer back online, thus cancelling the
> current print job and submitting the new job.
>
>
> here is an excerpt of my label code:
>
> ^LH0,1219 /* Set Label home to Upper Right corner */
> ^LL1219 /* Label Length 1219 dots = ~6 inches */
> ^MD0 /* Media Darkness Leave at default */
> ^XA /* Start Format */
>
> ^CF0,30,^FT85,800 /* Chg font to 0, 30 dots high; move to 85,800
> */
> ^FB400,1,,C, /* Field Block - 400 wide, 1 line, Centered */
> ^FWB /* Field Orientation - Bottom up (270 degrees)
> */
> ^FDABB Inc.^FS /* Field Data, Field Separator */
> ^CF0,30,^FT115,800 /* Chg font to 0, 30 dots high; move to 115,800
> */
> ^FB400,1,,C, /* Field Block - 400 wide, 1 line, Centered */
> ^FWB /* Field Orientation - Bottom up (270 degrees)
> */
> ^FDGreensboro, North Carolina^FS /* Field Data, Field Separator */
>
> ^PQ100 /* Set Label Quantity to 100 */
>
> ^XZ /* End Format */
>
> I have tried placing the ^JA /* Cancel All */ command ahead of the ^LH
> but it doesn't work. I have also tried placing the ^JR /* Power on
> Reset */ command ahead of the ^LH but it doesn't work either. I must
> be doing something wrong! I have called Zebra three times and spoke to
> three different techs, but they were of no help.
> Anyone have any ideas how I can accomplish this?
>

Reply to Anonymous
Tom's Hardware > Forum > Computer Peripherals > Printers > Zebra ZPL Code - Clearing buffer question
Go to:

There are 735 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them