Page 279 - ZPL II Programming Guide
P. 279

ZPL Commands    259
                                                                                                         ^SN


               ^SN


                     Serialization Data

                              Description  The ^SN command allows the printer to index data fields by a selected
                              increment or decrement value, making the data fields increase or decrease by a specified value
                              each time a label is printed. This can be performed on 100 to 150 fields in a given format and
                              can be performed on both alphanumeric and bar code fields. A maximum of 12 of the right-
                              most integers are subject to indexing. The first integer found when scanning from right to left
                              starts the indexing portion of the data field.

                              If the alphanumeric field to be indexed ends with an alpha character, the data is scanned,
                              character by character, from right to left until a numeric character is encountered. Serialization
                              takes place using the value of the first number found.

                              Format  ^SNv,n,z

                              This table identifies the parameters for this format:


                               Parameters           Details

                               v = starting value   Accepted Values: 12-digits maximum for the portion to be indexed
                                                    Default Value: 1
                               n = increment or     Accepted Values: 12-digit maximum
                                    decrement value  Default Value: 1

                                                        To indicate a decrement value, precede the value with a minus
                                                        (–) sign.
                               z = add leading zeros  Accepted Values:
                                    (if needed)         N = no
                                                        Y = yes
                                                    Default Value: N



                               Example • This example shows incrementing by a specified value:


























               9/15/06                              ZPL II Programming  Guide                  45541L-004 Rev. A
   274   275   276   277   278   279   280   281   282   283   284