I have a simple program print barcodes. The label format is in a preloaded form. The value the barcode is passed by a parameter as follow.
^XA
^XFR:FORM.ZPL
^FN999^FDH654321+Y0001+OABC+^FS
^PQ2,0,1,N
And it print two barcodes
H654321+Y0001+OABC+
H654321+Y0001+OABC+
What I want is the middle part as a serial number, and it will print barcodes like this
H654321+Y0001+OABC+
H654321+Y0002+OABC+
I have tried the ^SN and ^SF
^FN999^FDH654321+Y0001+OABC+^SF%%%%%%%%%dddd%%%%%%,1%%%%%%^FS
But it was not success, two copies are the same. How can I do it in ZPL-II?