Bar Code Commands
^BQ - QR Code Bar Code
Creates 2D QR code with error correction
^BQ - QR Code Bar Code
Overview
The ^BQ command creates a QR (Quick Response) code, a 2D barcode capable of storing large amounts of data in a compact format.
Syntax
^BQa,b,c,d,e
Parameters
- a = Orientation
- N = Normal (0°)
- R = Rotated 90° clockwise
- I = Inverted 180°
- B = Bottom up (270°)
- b = Model
- 1 = Version 1 (small)
- 2 = Version 2 (auto-size)
- c = Magnification (1-10)
- Determines dot size
- Higher = larger QR code
- d = Error correction level
- L = ~7% recovery
- M = ~15% recovery
- Q = ~25% recovery
- H = ~30% recovery (default)
- e = Mask value (rarely used)
Description
- 2D barcode format
- Can store URLs, text, contact info, etc.
- Much higher density than 1D codes
- Includes built-in error correction
- Compatible with smartphones
Usage Notes
- Model 2 recommended (auto-sizing)
- Magnification determines size (typical: 2-4)
- Error correction H recommended for best results
- Minimum size required for scanning
- Can encode up to 4,296 characters
Example
^XA ^FO50,50 ^BQN,2,6,H ^FDhttps://example.com^FS ^XZ
Data Capacity by Version
| Version | Capacity | Size |
|---|---|---|
| 1 | 41 bytes | Small |
| 2-40 | Up to 4,296 bytes | Variable |
Error Correction Levels
| Level | Recovery | Usage |
|---|---|---|
| L | ~7% | Indoor, clean labels |
| M | ~15% | Standard (good choice) |
| Q | ~25% | Outdoor, dirty environments |
| H | ~30% | Harsh conditions |
Common Applications
- Product packaging
- Marketing campaigns
- Inventory tracking
- Mobile payment
- Event tickets
- WiFi credentials
Recommended Settings
^BQN,2,6,H # Best for most applications ^BQN,2,4,M # Smaller code, good error correction ^BQN,2,8,H # Large code, maximum correction
Related Commands
^BC- Code 128^BX- Data Matrix^BY- Change Narrow Bar Width