Turns barcode data validation on or off: invalid data prints an INVALID message instead of a barcode.
^CVaWith ^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.
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.
^XA
^CVY
^FO50,50^BY2
^BEN,100,Y,N
^FD123456789012^FS
^XZTwelve digits encode normally; put a letter in the data and the printer prints INVALID - C instead.
| Parameter | Description | Values | Default |
|---|---|---|---|
a | code validation on (Y) or off (N) | N · Y | N |
Zebra ZPL II Programming Guide (P1134473-11EN Rev A), page 167. Zebra guide page →