zplCore.comzplCore.com

ZplFaultKind

public enum ZplFaultKind

Printer conditions and communication faults simulated by ZplVirtualPrinter (ZplVirtualPrinter.Faults).

Values

NameValueDescription
PaperOut0Media out: ~HS paper out flag, ~HQES error 0x1. Labels stay in the buffer until cleared.
RibbonOut1Ribbon out: ~HS ribbon out flag, ~HQES error 0x2.
HeadOpen2Printhead open: ~HS head up flag, ~HQES error 0x4, SGD head.latch "open".
HeadOverTemperature3Printhead over temperature: ~HS over temperature flag, ~HQES error 0x10.
MotorOverTemperature4Motor over temperature: ~HQES error 0x20.
CutterFault5Cutter fault / jam: ~HQES error 0x8 (also raised for cutter modes when the printer has no cutter).
Pause6Pause (like ~PP or the PAUSE key): ~HS pause flag, ~HQES error 0x10000; cleared by ~PS.
HeadUnderTemperature7Printhead under temperature: ~HS under temperature flag (the printer keeps printing).
CorruptRam8Corrupt RAM (configuration data lost): ~HS flag j.
PaperNearEnd9Paper near end: ~HQES warning 0x8.
CleanPrinthead10Clean printhead: ~HQES warning 0x2.
ReplacePrinthead11Replace printhead: ~HQES warning 0x4.
BufferFull12Receive buffer full: ~HS buffer full flag; the printer stops reading from the socket (TCP back-pressure).
OutOfMemory13Printer memory full: ~DG/~DY/~DU/^DF downloads are rejected (also raised as an event when the memory is exhausted).
RfidVoid14RFID encode error: labels with ^RF/^WT/^RQ print VOID and are retried (^RS n tries, error handling e).
DropLabels15Labels are lost: rendered but not printed (LabelDropped).
Disconnect16Connection reset (RST): with ZplFaultTrigger.AfterBytes exactly at that byte (the rest of the job is lost), otherwise all open connections.
CommunicationTimeout17Communication timeout: the printer neither reads nor answers (connections stay open).
Latency18Every response is delayed by ZplFaultRule.Delay.
SlowReceive19Data is read at ZplFaultRule.BytesPerSecond (slow printer, host writes block).
PartialWrites20Responses are written in pieces of ZplFaultRule.ChunkSize bytes with ZplFaultRule.Delay in between.
PowerOff21Printer switched off: connections are reset, new connections refused, the buffer is lost; clearing powers it on again.