It is possible generate automatically check digit SSCC18 in ^SF Field.

L Luis Carlos Prieto 3 years 5 months ago
39 1 0

We currently use an initial format containing a SSCC18 bar code and later we send the values for the variable field containing the full value for the SSCC18.

Our problem is that if we send more than 1000 labels, 100% are not printed.

The code is sent in 2 steps

Step 1

^XA
^DFR:Format1.zpl
^PW1200
^FT998,36^A0R,46,45^FH\^FDSSCC:^FS
^FT998,162^A0R,46,45^FH\^FN1^FS
^BY4,3,129^FT101,88^BCR,,N,N,Y,U
^FN1^FS
^XZ

Step 2

^XA^XFR:Format1.zpl
^FN1^FD000227000000000012^FS
^XZ

^XA^XFR:Format1.zpl
^FN1^FD000227000000000029^FS
^XZ
.
.
.
^XA^XFR:Format1.zpl
^FN1^FD000227000000010004^FS
^XZ

We would like to know if it is possible to send with the ^PQ1000 instruction and Serial Field as described below

^XA
^FO50,200^BCN,150,Y,N,,D
^FD(00) 00022700 000000001^SF%%%%%%%%%%%%%%ddddddddd,1^FS
^FT100,100^A0N,46,45^FH\^FD(00) 00022700 000000001^SF%%%%%%%%%%%%%%ddddddddd,1^FS (How to make the verifier digit print on this line)
^PQ1000,1,1,Y
^XZ

The printer model is zebra ze500 6 right hand.

Thanks.

Please Register or Login to post a reply

1 Replies

D Dmitry Prokhorov

Hello Luis,

You are using additional field for interpretation line. Seems a check digit will be generated automatically only with interpretation line together. For the case of separate interpretation line field used you can see a following note on a page 84 of ZPL manual: "You have to make sure you enter the correct check digit in the text field.":
https://www.zebra.com/content/dam/zebra/manuals/printers/common/program…

As a working example of check digit generation you can see an example code from page 83 in section "Using D for the mode (m) parameter":
https://www.zebra.com/content/dam/zebra/manuals/printers/common/program…

Following ZPL code is based on your example and it works ok:
^XA^FO50,200^BCN,150,Y,N,,D^FD(00) 00022700 000000001^SF%%%%%%%%%%%%%ddddddddd,1^FS^PQ1000,1,1,Y^XZ
Dmitry Prokhorov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies

CONTACT
Can’t find what you’re looking for?