Recall format containing a ^SN command not decrementing correctly

Article ID: 79488589

Issue / Question

Decrementing order of a recalled format with ^SN is not correct.

The values are out of order when counting down

Issue Details

When recalling a ZPL format containing a ^SN command with a decrementing value the order is not correct.

Applicable To

ZPL compatible printers - XML recall functionality in regards to the serialization command ^SNv,n,z

Resolution / Answer

Parameter "n" needs to match the number of digits that can decrement. (ZPL command format: ^SNv,n,z) Read More>>
This means that when you have a parameter "v" value of 10 you need to decrement with -01 
Another example would be if you have a parameter "v" value of 1000 you would need to use -0001 for parameter "n"

Example:
Send this ZPL script to the printer to store it in R: memory:

^XA^DFR:TEST.ZPL
^FO50,50^A0,50,50^FN1^FD^SNIncrement,-1,Y,^FS
^XZ

Recall the template using XML:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE labels SYSTEM "label.dtd">
<labels _JOBNAME="J1" _PRINTERNAME="" _QUANTITY="10" _FORMAT="TEST.ZPL">
<label>
<variable name="Increment">10</variable>
</label>
</labels>

The result would be:

10 - 19 -18 -17 -16- 15 -14 -13- 12 - 11

However if ^SN would be used in this manner :

^XA^DFR:TEST.ZPL
^FO50,50^A0,50,50^FN1^FD^SNIncrement,-01,Y,^FS
^XZ

The result would be:

10 - 9 - 8 - 7 - 6 - 5 - 4 - 3-  2 - 1

+ Applicable Products

  • 105SL
  • 105SLPlus
  • 110PAX3
  • 110Xi4 Industrial Printer
  • 140Xi4
  • 140Xi4 Industrial Printer
  • 140XiIII
  • 140XiIIIPlus
  • 170PAX3
  • 170PAX4
  • 170Xi4 Industrial Printer
  • 170XiIII
  • 170XiIIIPlus
  • 220Xi4 Industrial Printer
  • 220XiIII
  • 220XiIIIPlus
  • 2746e
  • 90XiIII
  • 90XiIIIPlus
  • 96XiIII
  • EM220II Mobile Printers
  • EM220II Mobile Printers
  • EZ320 Mobile Printers
  • GC420d Desktop Printer
  • GC420t Desktop Printer
  • GK420 Healthcare Desktop Printers
  • GK420d Desktop Printer
  • GK420d Healthcare Desktop Printer
  • GK420t Desktop Printer
  • GK420t Healthcare Desktop Printer
  • GT800 Desktop Printer
  • GX420Rx Desktop Printer
  • GX420d Desktop Printer
  • GX420t Desktop Printer
  • GX430d Desktop Printer
  • GX430t Desktop Printer
  • H 2824-Z
  • HC100 Wristband Printer
  • LP 2824
  • LP 2824 Plus
  • LP 2824-Z
  • LP 2844
  • LP 2844-Z
  • P4T Mobile Printers
  • P4T Mobile Printers
  • QL 220 Plus
  • QL320 Mobile Printer
  • QL420 Mobile Printer
  • QLn220 Healthcare
  • QLn220 Mobile Printer
  • QLn320 Healthcare
  • QLn320 Mobile Printer
  • QLn420 Mobile Printer
  • R110PAX4
  • R110Xi
  • R110Xi HF
  • R110Xi4 RFID Printer
  • R170Xi
  • R2844-Z
  • R2844-Z Passive RFID Printers
  • R402
  • RP4T RFID Printers
  • RP4T RFID Printers
  • RPAX Passive RFID Printers
  • RW 220 Mobile Printer
  • RW 420 Mobile Printer
  • RW 420 Print Station
  • RZ400
  • RZ600
  • S400
  • S4M
  • S4M Series
  • S600
  • TLP 2824
  • TLP 2824 Plus
  • TLP 2824-Z
  • TLP 2844
  • TLP 2844-Z
  • TLP 3842
  • Z4M
  • Z4Mplus
  • Z6M
  • Z6Mplus
  • ZD410 Series
  • ZD420 Series
  • ZD500 Desktop Printer
  • ZD500 Desktop Printer
  • ZD500R RFID Printers
  • ZD500R RFID Printers
  • ZE500 Print Engines
  • ZE500 Print Engines
  • ZE500R RFID Print Engine
  • ZE500R RFID Print Engine
  • ZM400
  • ZM600
  • ZM600
  • ZQ110 Mobile Printers
  • ZQ510 Mobile Printer
  • ZQ520 Mobile Printer
  • ZQ520 RFID
  • ZT220 Industrial Printer
  • ZT230 Industrial Printer
  • ZT410 Industrial Printer
  • ZT410 RFID Industrial Printer
  • ZT420 Industrial Printer
  • ZT420 RFID Industrial Printer
  • ZT510 Industrial Printer
  • ZT610 Industrial Printer
  • ZT610 RFID Industrial Printer
  • ZT620 Industrial Printer
  • ZT620 RFID Industrial Printer
  • iMZ220 Mobile Printer
  • iMZ320 Mobile Printer
  • zp450 Desktop Printer