ZPLToolkit

^BJ

Standard 2 of 5 Bar CodePreview: partial

The other numeric-only 2 of 5: same idea as Industrial, a different bar pattern, and the two are not interchangeable.

Syntax

^BJo,h,f,g

Parameters

ParameterDescription and accepted valuesIf omitted
oRotation of the bar code on the label.N normal, R 90°, I 180°, B 270°Last ^FW value, else N
hBar height in dots. Overrides the height set by ^BY for this field only.1 to 32000 dotsHeight set by ^BY
fPrints the digits underneath the bars as text.Y or N — print the human-readable lineY
gMoves that text above the bars instead.Y or N — put that line above the barsN

How it works

^BJ prints Standard 2 of 5, also called Matrix 2 of 5 in some specifications. Like Industrial 2 of 5 it encodes digits in the bars alone, but its start and stop patterns differ, so a scanner configured for one will not read the other.

It found a niche in photo processing, warehouse sorting and airline ticketing, and like the rest of the family it is kept alive by existing specifications rather than by being a good choice for new work.

Data is digits only. There is no check digit in the command — if a specification calls for one, it has to be computed and appended before the value reaches ^FD.

Example

ZPL
^XA
^BY2,3,80
^FO60,60^BJN,80,Y,N^FD12345670^FS
^XZ

Rendering…

An eight-digit Standard 2 of 5 at a module width of 2 dots.
Open in the viewer

How the preview on this site handles it

Drawn with a real Standard 2 of 5 encoder, so it scans, and rotation is applied. The wide-to-narrow ratio from ^BY is not applied: the preview always uses 3:1.

Common mistakes

  • Assuming it reads as Industrial 2 of 5. The start and stop patterns differ; the scanner has to be told which one to expect.
  • Expecting a check digit. The command has no parameter for one — append it to the data yourself if the specification wants it.
  • Sending an odd digit count where the specification wants pairs. Some readers of this family expect an even length.

See also