1

I currently know how many labels I want to print and use ^PQ# to print that amount but the trouble is getting an incrementing count printed on the corner of each label.

There are a couple problems right now. First is that Zebra doesn't have anything letting me print the odometer value on the zebra printer. It will kind of let me print the number of centimetres or inches using ~WQOD, but it comes with a lot of extra information that I don't want. I couldn't find any commands in the manual just letting me print the number of labels with the reset-able odometer.

I could create a counter outside of the printer then send a request to print each label with a new number on the top right, however, that overloads the printer and causes connection issues with the printer if I print too many labels.

Are there any ways to overcome either of those issues so I can print an incrementing counter on each label?

R. Richards
  • 24,603
  • 10
  • 64
  • 64
  • 1
    The command to print a sequence of numbers is `^SN`. It is specifically used with `^PQ`. To not overload the printer, send all individual labels within one connection, as a single string stream, don't open a separate connection for each. – GSerg Jul 14 '20 at 19:06
  • Amazing answer, thank you! Can you make this reply the answer so I can make it the official answer for the question? – Mackenzie Martyn Jul 15 '20 at 15:14

1 Answers1

3

The command to print a sequence of numbers across labels is ^SN. It is specifically used with ^PQ.

^SN001,1,N^FS
^PQ3

To not overload the printer, send all individual labels within one connection, as a single string stream, don't open a separate connection for each.

GSerg
  • 76,472
  • 17
  • 159
  • 346