Draws a barcode: type letter, narrow/wide bar ratio, height and the human-readable flag are read from the parameters.
Engine status: Partially rendered
The command is drawn but some of its parameters are ignored; the detail is in the note below.
Bx,y,rot,type,narrow,wide,h,B/N,"data"N
q812
Q1218,24
B50,150,0,1,3,7,120,B,"123456"
P2Open this example in the preview →
Output of the example above in our renderer (203 dpi). Not verified on a physical printer.
| Parameter | Meaning |
|---|---|
x,y | Top-left corner of the barcode, in dots |
rot | Rotation code 0–3 in clockwise quarter turns, as in the A command |
type | Barcode type code: 1 Code 128, 3 Code 39, E30 EAN-13, UA0 UPC-A in the preview |
narrow | Narrow bar width in dots; sets the module width of the drawn barcode |
wide | Wide bar width in dots; accepted but not used by the Labelixa preview |
h | Bar height in dots, without the human-readable line |
B/N | B prints the human-readable line under the bars, N leaves it out |
"data" | Barcode data in double quotes; empty data is skipped with a warning |
Using the TSPL/CPCL type name: in EPL, Code 128 is type 1, not 128. B50,150,0,128,3,7,120,B,"123456" names an unsupported type and the preview skips the barcode.
ZPL equivalent: ^BY · ^BC · TSPL BARCODE · Language comparison
N · q · Q · A · LO · LW · X · P · R · S · D · I · JF · ZT · ZB · FS · FE · FR · FK · FI · V · ?