Sign In
Products
ZPL ViewerBarcode GeneratorImage → ZPLZPL cheat sheetLabel DesignerTemplate Gallery
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutions
Tools
ZPL Diagnostics HubZPL DebuggerSize & DPI AnalyzerDPI ConverterBarcode fit calculatorShipping Label AnalyzerFont InspectorOrientation DebuggerCalibration AssistantPrinter Compatibility CheckerBarcode Readability CheckerPrinter Language DetectorThermal Printer Test PackZPL ToolsEPL ToolsTSPL ToolsCPCL ToolsPrinter Language ConverterAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›ZPL Command Matrix›^CV

^CV — Code Validation

Turns barcode data validation on or off: invalid data prints an INVALID message instead of a barcode.

Syntax^CVa
In Labelixa's previewNot applied in the preview (ZPL1002)

What it does

With ^CVY every barcode's data is checked for characters outside the symbology's set, a wrong check digit, data too long or too short, and incorrect parameters. On an error the printer prints INVALID - X in reverse where the barcode would be: C character, E check digit, L too long, S too short, P parameter (only some barcodes). Only the first error found is shown.

The switch stays on from format to format until another ^CV or power-off, and it is not saved permanently. It checks the data — not whether a printed barcode scans well.

In the preview

This command changes the printed label, but Labelixa's preview does not apply it yet. The linter reports it as ZPL1002, so you know the preview and the print will differ.

Example

^XA
^CVY
^FO50,50^BY2
^BEN,100,Y,N
^FD123456789012^FS
^XZ

Twelve digits encode normally; put a letter in the data and the printer prints INVALID - C instead.

Parameters

ParameterDescriptionValuesDefault
acode validation on (Y) or off (N)N · YN

Source

Zebra ZPL II Programming Guide (P1134473-11EN Rev A), page 167. Zebra guide page →

^BE · ^BC · ^BY

ZPL commands list and reference →

Try ZPL in the online viewer