^BJ
Standard 2 of 5 Bar CodePreview: partialThe other numeric-only 2 of 5: same idea as Industrial, a different bar pattern, and the two are not interchangeable.
Syntax
^BJo,h,f,gParameters
| Parameter | Description and accepted values | If omitted |
|---|---|---|
| o | Rotation of the bar code on the label.N normal, R 90°, I 180°, B 270° | Last ^FW value, else N |
| h | Bar height in dots. Overrides the height set by ^BY for this field only.1 to 32000 dots | Height set by ^BY |
| f | Prints the digits underneath the bars as text.Y or N — print the human-readable line | Y |
| g | Moves that text above the bars instead.Y or N — put that line above the bars | N |
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
^XA
^BY2,3,80
^FO60,60^BJN,80,Y,N^FD12345670^FS
^XZRendering…
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.