zpl.tools
CommandsPrint control

^JZ - Reprint After Error

Automatically reprints labels interrupted by errors

^JZ - Reprint After Error

Overview

The ^JZ command is used to automatically reprint a partially printed label that was interrupted due to a Ribbon Out, Media Out, or Head Open error condition. The label will be reprinted as soon as the error condition is corrected. This instruction sets the error recovery mode for the printer and remains active until another ^JZ instruction is sent or the printer is powered down.

Syntax

^JZa

Parameters

  • a = Reprint After Error flag
    • Y = Yes, enable automatic reprint (default)
    • N = No, disable automatic reprint

Description

  • Enables or disables automatic label reprint after error recovery
  • Useful for critical applications where interrupted labels must be reprinted
  • Applies to Ribbon Out, Media Out, and Head Open errors
  • Setting persists until changed or power is cycled
  • Helps ensure no labels are skipped due to temporary error conditions

Usage Notes

  • Default setting is the last permanently saved value
  • The instruction is ignored if no parameter is given or parameter is incorrect
  • Only affects labels printed after the command is issued
  • When enabled, partially printed labels are automatically reprinted after error correction
  • Useful for critical barcode/label applications

Example - Enable Reprint After Error

^XA
^JZY
^FO50,50^A0N,30,30^FDSample Label^FS
^XZ

Example - Disable Reprint After Error

^XA
^JZN
^FO50,50^A0N,30,30^FDSample Label^FS
^XZ

Error Conditions Handled

  • Ribbon Out - Ribbon cartridge is empty or missing
  • Media Out - Label stock is depleted
  • Head Open - Printhead has been opened manually
  • ^ZZ - Printer Sleep
  • ^PQ - Print Quantity
  • ^PR - Print Rate
  • ^MM - Print Mode

See Also