EPSON — ^SN

^SN [Name] Serialization data [Format] ^SN i ,d ,z [Function]  Renders the serialization data to the current field.  If “^PQ” has been used to perform multiple-sheet printing, printing is performed by changing the number in the serialization data.  The numeral section of the character string specified by Parameter i is set as the serialization data.  If multiple numeral sections exist in the character string, the numeral section to the farthest right in character string is set as the serialization data.

 After printing the serialized label print quantity specified for Parameter c in “^PQ”, the printer advances the serialization data by the increment or decrement specified for Parameter d.  Whether zero padding is used or not is specified based on Parameter z. If N is specified, a zero to the left of a number other than zero in the serialization data is deleted. For example, if the serialization data is “010”, then 10 is rendered. [Response] None [Reference] Related commands: None [Usage example] ^XA ^FO100,100 ^SN123,1,Y^FS 1. Sets 123 as the initial value and 1 as the increment. ^PQ10 2. Set 10 labels for to the total print quantity. ^XZ 3.

Prints 10 labels, increasing the value by 1 each time: 123, 124, ... ESC/Label Command Reference Guide Rev. L Page 198 Parameters Description Definition range i shipped from factory Numerals and letters of the alphabet d Increment or decrement Numerals and minus symbols within 12 digits z Zero padding z = Y/N Y: Yes (Does not delete zero) N: No (Deletes zeros)