• Ask the community now
  • Publish
Ad

Latest Reviews & Articles

Life At 2 GT/s: 6 GB DDR3-2000 Memory Kits Compared

Life At 2 GT/s: 6 GB DDR3-2000 Memory Kits Compared

Memory vendors put a lot of effort into drumming up excitement over high-end memory kits, but many of those products turn out to be vaporware. We test six DDR3-2000 kits that enthusiasts can actually buy today, and push them as far as they'll go. Read more

DDR3 Memory Scaling On AMD's Phenom II X4

DDR3 Memory Scaling On AMD's Phenom II X4

DDR3 memory is available in speeds ranging from DDR3-800 to DDR3-2133. Which is the best memory choice for AMD’s Phenom II X4? We tested as many speeds as possible using aggressive and conservative timings to find the sweet spot for your next build. Read more

Intel Core i7-975 Extreme And i7-950 Reviewed

Intel Core i7-975 Extreme And i7-950 Reviewed

Today Intel launches two high-end processors that take the place of its i7-965 and i7-940 CPUs. More speed? Same price points? We’ll take it! But are the new chips compelling enough to warrant spending more than you would on an i7-920? Read more

AMD Athlon II X2 / Phenom II X2 And Low-Power CPU Bonanza

AMD Athlon II X2 / Phenom II X2 And Low-Power CPU Bonanza

Eager to let you know it’s been busy, AMD is launching four new processors today: the first Athlon II, a dual-core Phenom II, and two low-power 65W Phenom IIs. We bought ourselves a new Pentium E6300 and let loose with AMD’s latest. Read more

All the Reviews & Articles
Tom's Hardware > Forum > Computer Peripherals > Printers > Zebra ZPL Code - Clearing buffer question

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 793 identified and unidentified users. To see the list of identified users, Click here.

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