external Counter

Hey,

i have a Zebra ZT230 in 'peel off' mode. Connected via USB for printing und connected via Serial for ZPL (e.g. printing information ~HS). I want to determine the number of labels which was really printed for an Program on an PC! I`m sending via USB one printjob with a batch of 999 labels. After a while maybe 100 labels are printed and the user want to end the batch. i`m asking the printer over the Serial with ~HS how many 'labels remaining in batch' and end the Job with ~JA. So ~HS will returned 899. BUT after peeling off the label number 100 there comes another label. One more label then i have counted. But in other random cases the counter was right. Exist there other way to solve this Problem? Have someone the same Problem?

 

Thx

Anonymous (not verified)
The printer odometer can help

The printer odometer can help in this case. The ! U1 getvar "odometer.total_label_count" returns the total number of the labels printed. If we read the value before and after the print job, we will get the total number of labels being printed by that print job. Hope this helps.

Vote: 
Vote up!
Vote down!

Points: 1

You voted ‘up’


Jonathan Stefani
Thx for the fast reply. The

Thx for the fast reply. The command "odometer.total_label_count" works.

I can`t find a SGD Command for deleting/canceling the current printing job in the Programming Guide. Do you know a command?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
~JA: Cancel All~JP: Pause and
Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments