ZPL commands

^BQ · QR Code Bar Code

Generates a QR Code. Error correction and input mode are additionally given as a prefix in ^FD e.g. MA, .

Generates a QR Code. Error correction and input mode are additionally given as a prefix in ^FD (e.g. MA,).

Parameters

  • ^BQa,b,c,d,e - a: orientation (N = normal only)
  • ^BQa,b,c,d,e - b: model: 1 = original, 2 = enhanced (default, recommended)
  • ^BQa,b,c,d,e - c: magnification factor (1–10)
  • ^BQa,b,c,d,e - d: error correction: H = ~30 %, Q = ~25 %, M = ~15 %, L = ~7 %
  • ^BQa,b,c,d,e - e: mask value (0–7, default 7)
  • ^FD<level><input>,<data> - prefix: error correction H/Q/M/L, then A = automatic input (default) or M = manual input; the data follows after the comma

Example

^XA
^FO50,50^BQN,2,8,M^FDMA,https://zplcloud.com^FS
^XZ
ZPL preview: ^BQ · QR Code Bar Code

Tip

For URLs and mixed content use MA, (or QA,/HA,) - with A the printer selects the encoding mode itself. With manual input (MM,) the character mode (N, A, B or K) must follow directly after the comma, e.g. MM,AAC-42.

Notes

Model 1 is obsolete - always use model 2. Higher error correction makes the code more robust but also larger.