[ESC+BD] Barcode (Ratio 2:5)
Hexadecimal code
| ESC | <1B>16 |
|---|---|
| BD | <42>16<44>16 |
Parameter
abbcccn...n
Initial value
Nil
Valid range and term of command
| When the power switch is OFF | The set parameter is not maintained. |
| Valid range within items | The set parameter becomes invalid. |
| Valid range between items | The set parameter becomes invalid. |
Function
Specifies a barcode with a ratio of 2:5 between narrow bar and wide bar.
Format
<BD>abbcccn...n
-
Parameter
a [Barcode symbology] = Refer to the table below
b [Narrow bar width] = Valid Range: 01 to 36 dots
c [Height of barcode] = Valid Range: 001 to 999 dots
n [Print data] = data
Barcode symbology (Ratio of module composition may not be available depending on the barcode symbology)
| A | Barcode symbology | Descriptions | Ratio |
|---|---|---|---|
| 0 | CODABAR (NW-7) | Set print data including Start/Stop character.
Start/Stop characters are [A, B, C, D, E, N, T, a, b, c, d, e, n, t, *]. Note that scan result of the characters [E, N, T, a, b, c, d, e, n, t, *] is [D, B, A, A, B, C, D, D, B, A, C]. e.g.) When barcode print data is [123], specify [A123A]. Barcode character pitch becomes enabled. For print data, refer to the CODABAR (NW-7) code table. |
2:5 |
| 1 | CODE39 | Set print data including Start/Stop character.
Start/Stop Character is [*]. e.g.) When barcode print data is [12345], specify [*12345*]. Barcode character pitch becomes enabled. For print data, refer to the CODE39 code table. |
2:5 |
| 2 | ITF | Specify print data in even-numbered digit.
If specifying in odd-numbered digit, add "0" to the head of print data. For print data, refer to the ITF code table. |
2:5 |
| 3 | JAN/EAN13 | This barcode has guard bars and human-readable characters.
For print data specifications, refer to table of JAN/EAN13 code. |
Fixed |
| 4 | JAN/EAN8 | This barcode has guard bars and human-readable characters.
For print data specifications, refer to table of JAN/EAN8 code. |
Fixed |
| 5 | Industrial 2of5 | Barcode character pitch is enabled.
For print data specifications, refer to table of Industrial 2of5 code. |
2:5 |
| 6 | Matrix 2of5 | Barcode character pitch is enabled.
For print data specifications, refer to table of Matrix 2of5 code. |
2:5 |
| H | UPC-A | This barcode has human-readable characters but guard bar.
For print data specifications, refer to table of UPC-A code. |
Fixed |
Coding Example 1
Barcode symbology: CODABAR (NW-7), Narrow bar width: 03, Height of barcode: 120,
Print data:A1234A
<A>
<V>100<H>100<BD>003120A1234A
<Q>2
<Z>

Coding Example 2
Barcode symbology: ITF, Narrow bar width: 03, Height of barcode: 120,
Print data: 98002345678163
<A>
<V>100<H>100<BD>20212098002345678163
<Q>2
<Z>

Coding Example 3
Barcode symbology: UPC-A, Narrow bar width: 03, Height of barcode: 120
Print data: 20123948573
<A>
<V>240<H>100<BD>H0312020123948573
<Q>2
<Z>

Supplementary Explanation
- The inter-character pitch of the barcode is valid at CODABAR (NW-7), CODE39, Industrial 2of5 and
Matrix 2of5.
The barcode inter-character pitch is set by specifying the character pitch <P> immediately before.
If not set, the inter-character pitch will be of the same size as a space command.Command Ratio Narrow space width <P> Inter-character gap:
Narrow bar width: 1Inter-character gap:
Narrow bar width: 2<BD> 2:5 2 Nil 2 4 <P>0 2 4 <P>1 1 2 <P>2 2 4 <P>3 3 6 <P>4 4 8 - For print data of each barcode type, refer to the code tables of barcode.
- The barcode translation of following codes will be restricted to conditions below: JAN/EAN8,
JAN/EAN13, UPC-A
In case of 8 dots/mm (203 dpi): Narrow bar width must be [02], [03]
In case of 12 dots/mm (305 dpi): Narrow bar width must be [03], [04]
In case of 12 dots/mm (609 dpi): Narrow bar width must be [06], [07], [08]
HRI will not be printed if the value other than the listed above is specified.
Note
- If the value other than valid range is set, command error will occur and barcode will not be printed.
- Barcode will be printed even if the data exceed the printable area.
- Increasing narrow bar width may exceed the print area.
- Scanner may not read the barcode with valid character pitch when Character Pitch <P> is
increased.
Also, increasing the narrow bar width may cause the same type of problem. For more information, refer to the documentation of your scanner. - For specifying the narrow bar width, consider the reading compatibility of scanner and head density beforehand.
- Adjust Print Speed <CS> or Print Darkness <#F> in case of scanner reading problem.
- Matrix 2of5 will be expressed as Coop2of5/NEC2of5. (Japan model only) * Other than PW4NX.
- If Start/Stop character is not included in print data at the time of CODABAR (NW-7) or CODE39 specified, barcode will be printed; however, scanner cannot read it.
- If sending the print data including check digit at the time of JAN/EAN-13 or JAN/EAN-8 specified, set the correct calculated value. Barcode will be printed even when the data includes improper check digit; however, scanner cannot read it.