Using the print counter within a prn file

Hello,

I am using a ZE 500 300dpi RH and sending it the .prn file indicated below.

The label is reprinted 1000 times according to the use of the ^PQ function.

My question is how can i get the field ^FT349,420^A0B,83,81^FH\^FD00001^FS to increment the value for every lable that is printed?  This would mean that the first label has a value of 00001 with the last a value of 01000.

Thanks in advance for you thoughts.

Bryan

~JA CT~~CD,~CC^~CT~

^JJ0,0,p,e,d,d^XA

^PW827

^BY5,3,118^FT726,1625^BCB,,N,N

^FD>;>81715120010>6C>5123456>8300024^FS

^FT787,1449^A0B,42,40^FH\^FD(17)151200(10)C123456(30)0024^FS

^BY144,144^FT243,382^BXB,12,200,12,12,1,~

^FH\^FD00001 ^FS

^FT349,420^A0B,83,81^FH\^FD00001^FS

^FT153,1611^A0B,83,81^FH\^FDProduct Description ^FS

^FT257,1611^A0B,83,81^FH\^FD+ Dose^FS

^FT358,1611^A0B,42,40^FH\^FDRegulatory Statement 1B^FS

^FT459,1611^A0B,50,50^FH\^FDStorage And Handling Instructions^FS

^FT564,902^A0B,50,50^FH\^FDQTY: 24 EA^FS

^FT564,1232^A0B,50,50^FH\^FDLOT: C123456^FS

^FT564,1611^A0B,50,50^FH\^FDEXP: DEC 2015^FS

^PQ1000,0,1,Y^XZ

EDIT:  Would I be correct in presuming that the best way to do this is by changing the text to a ^SN field ?

Dmitry Prokhorov
Hello Bryan,You are right,

Hello Bryan,

You are right, you need to use ^SN ZPL command. There is a command description and examples:

https://www.zebra.com/content/dam/zebra/manuals/printers/common/programming/zpl-zbi2-pm-en.pdf#page=315

Dmitry Prokhorov

Software Engineer, Kutir Mobility

Posted on behalf of Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments