ZPLToolkit

^MC

Map ClearPreview: partial

Enables or disables the printer's variable-data mode, used with ^FV to update a field without sending the full format again.

Syntax

^MCa

Parameters

ParameterDescription and accepted valuesIf omitted
aY enables variable-data map handling; N disables it.Y enable or N disable variable-data modeN

How it works

^MC controls the memory map used by the printer's variable-data workflow. With variable mode enabled, a host can keep a format on the printer and update only fields that use ^FV, which reduces traffic for repetitive labels.

This is printer state, not visible ink. It must be designed with the printer's stored-format lifecycle, resets and job ordering in mind; it is not a shortcut for ordinary one-off labels sent as complete ^XA through ^XZ formats.

Use the command deliberately with ^FV. A complete label that also includes ^MC still has visible fields, but the command itself only changes how the printer manages later variable data.

Example

ZPL
^XA
^MCY
^FO40,60^A0N,40,40^FDVariable-ready label^FS
^XZ

Rendering…

^MCY is part of the format, while the text field remains the visible output.
Open in the viewer

How the preview on this site handles it

^MC is recognized and draws nothing. The preview renders the visible fields around it, but it does not emulate persistent printer memory or a later host update.

Common mistakes

  • Expecting ^MCY to save a format by itself. Stored-format commands and the printer's memory policy are separate concerns.
  • Testing a variable-data workflow only in a browser preview. The important behavior is what survives and is addressed on the real printer.
  • Leaving variable mode enabled in a mixed job without controlling printer state. Later data can be interpreted against the wrong stored format.

See also