ZPL commandsBarcodes
^BXData Matrix bar code
✓Supported by zplkit· Same size as a printer's symbol; data can be encoded differently
Data Matrix, a square or rectangular 2D symbol that stores a lot of data in a small area. Common for marking parts and healthcare items.
Format
^BXo,h,s,c,r,f,g,aParameters
| Parameter | Description | Default |
|---|---|---|
o | OrientationN normal, R 90°, I 180°, B 270° | Current ^FW value |
h | Height of each module, in dots | |
s | Quality level0, 50, 80, 100, 140 or 200 (ECC 200) | 0 |
c | Number of columns | |
r | Number of rows | |
f | Format ID0 to 6 | 6 |
g | Escape sequence control character (quality 200 only) | _ on firmware V60.13.0.12 and later, ~ on older firmware |
a | Aspect ratio1 square, 2 rectangular | 1 |
Example
Edit it to see what prints
In zplkit: label.dataMatrix() or <DataMatrix>
^BUUPC-A bar code
UPC-A, the standard 12-digit retail product code in North America. Send 11 digits and the printer adds the check digit.
^BYBar code field default
Sets the default module width, wide to narrow ratio and height for the bar codes that follow. Put it before a bar code command to control its size.