#1  
Old 01-06-2010, 05:20 AM
chakrd chakrd is offline
Member
 
Join Date: Jul 2008
Posts: 70
Label Printing Page count

Dear All,
I have a unique situation .
I have a screen where a user enters a lot and number of labels to print say lot 12345 and 20 labels. (mind it the 20 labels are in one spool file each separated by the exit string of ascii characters which allows zebra to understand when to start printing a new label)
A batch program gets the details and genrates a spool file which has the 20 labels with proper printer control characters for Zebra printer.
Everything prints fine. Now sometimes say after printing 12 labels the printer goes down. so the next time the same spool resent for printing prints the 20 lables again. i need a way to print the next 8 lables (20-12) instead of the 20.
Is there a way to track the number of labels printed using either the USRDFNOBJ or the USRDRVPGM or any other way. Any suggestions/Advise more than welcome.

Thanks in advance
Debasish

Debasish
Reply With Quote
  #2  
Old 01-06-2010, 06:58 AM
TASullivan@BBDODetroit's Avatar
TASullivan@BBDODetroit TASullivan@BBDODetroit is offline
Member
 
Join Date: Sep 2005
Location: Grosse Pointe, Michigan
Posts: 238
Spool file per label

Change the batch program to print 20 spool files, one for each label.
__________________
Tom Sullivan
Experience is what allows us to recognize a mistake, when we make it again.
Reply With Quote
  #3  
Old 01-11-2010, 01:34 AM
marc_d marc_d is offline
Member
 
Join Date: Aug 2008
Posts: 15
Quote:
a user enters a lot and number of labels to print say lot 12345 and 20 labels. (mind it the 20 labels are in one spool file each separated by the exit string of ascii characters which allows zebra to understand when to start printing a new label)
Only if you are printing 20 times the same label (if I read your post right)

then why don't you use the repeat label command thats part of the ZEBRA printer language? If your labelprinter runs out of labels or thermal transfer ribbon, the printer prints the remaining labels afterwards if you don't turned the printer off.
Reply With Quote
  #4  
Old 01-12-2010, 06:15 AM
chakrd chakrd is offline
Member
 
Join Date: Jul 2008
Posts: 70
Label Printing Count

Hi Marc_d,
yes thats what would be a great solution. Question is can I do it using ZPL language embedded as ascii charcters in the as/400 spool. If possible can you please send me the ascii codes or an example. As you rightly said that will be an ideal solution as I am printing the same labels multiple times. Like same spool file multiple copies.

Thanks & regards

Debasish
Reply With Quote
  #5  
Old 01-14-2010, 01:09 AM
marc_d marc_d is offline
Member
 
Join Date: Aug 2008
Posts: 15
ZPL language embedded as ascii chars in the as/400 spool.

The ZPL print repeat label command is:

P<number of labels you want to print>

You are now printing only 1 label (20 times) ?
Take a look at your generated spoolfile, then you see at the end of each label the ZPL command is:

P1

if you change it to

P20

then it prints the same label 20 times. (you can use any number you want.)

Change your program that generate the ZPL code for your label and try it out.
Reply With Quote
  #6  
Old 01-14-2010, 02:25 AM
chakrd chakrd is offline
Member
 
Join Date: Jul 2008
Posts: 70
Label Printing Page Count

Hi Marc D,
Many thanks for the reply.
I cannot find the P at the end of each label. here is a sample
柔A柔FE:F5.ZPL政S
政N1政D 政S
政N2政DR2072 政S
政N3政DACID ACETILSALICILIC 500mgVRAC政S
政N4政D Z2406H12政S
政N5政D 政S
政N6政D19/09/06政S
政N7政D0001政S
政N8政D0002政S
政N9政D14/08/06政S
柔Z

Shall I add the P1 before the XZ or after the XZ. I guess XA means label start and XZ means label end.
Thanks & Regards

Debasish
Reply With Quote
  #7  
Old 02-03-2010, 09:55 AM
BigMac BigMac is offline
Member
 
Join Date: Sep 2005
Posts: 12
zebra labels generated via ZPL k

If you don't have a solution:

If you spool the printfile so that you generate an as400 page for each label after the 'XZ' (end of label) you can control the start/end just like any other spoolfile. if you view the spoolfle and page down does not move 1 label at the time you probably need to change it. When the page count matches the label count that will be when page control on printer failure or End Of Forms(etc) will work just lke other spoolfiles.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 07:23 AM.