[ESC+B] Barcode (Ratio 1:3)
Hexadecimal code
| ESC | <1B>16 |
|---|---|
| B | <42>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 1:3 between narrow bar and wide bar.
Format
<B>abbcccn...n
-
Parameter
a [Barcode type] = Refer to table below
b [Narrow bar width] = Valid range: 01 to 36 dots
c [Barcode height] = 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 symbol | Description | 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. |
1:3 |
| 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. |
1:3 |
| 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. |
1:3 |
| 3 | JAN/EAN13 | This barcode has no guard bars and no human-readable characters
For print data specifications, refer to table of JAN/EAN13 code |
Fixed
(11, 12, 13 digit) |
| 4 | JAN/EAN8 | This barcode has no guard bars and no human-readable characters
For print data specifications, refer to table of JAN/EAN8 code |
Fixed
(7, 8 digit) |
| 5 | Industrial 2of5 | Barcode character pitch is enabled.
For print data specifications, refer to table of Industrial 2of5 code |
1:3 |
| 6 | Matrix 2of5 | Barcode character pitch is enabled.
For print data specifications, refer to table of Matrix 2of5 code |
1:3 |
| A | MSI | Specify 13-digit number for print data.
For print data specifications, refer to table of MSI code. |
Fixed |
| C | CODE93 | Refer to [ESC+BC] CODE 93 Barcode. | Fixed |
| E | UPC-E | Specify 6-digit number for print data.
For print data specifications, refer to table of UPC-E code. |
Fixed |
| F | UPC add-on code
Bookland |
Refer to [ESC+BF] UPC Add-on (Bookland). | Fixed |
| G | CODE128 | Refer to [ESC+BG] Code 128 Barcode. | Fixed |
| H | UPC-A | This barcode has no guard bars and no human-readable characters
For print data specifications, refer to table of UPC-A code. |
Fixed |
| I | GS1-128 (UCC/EAN128) |
Refer to [ESC+BI] GS1-128 (UCC/EAN128) (Standard Carton ID Only). | Fixed |
| P | Postnet | Refer to [ESC+BP] Postnet. | Fixed |
| S | USPS code | Refer to [ESC+BS] USPS Barcode. | Fixed |
Coding Example 1
Barcode symbology: CODE39 Narrow bar width: 03 Height of barcode: 120
Print data: *1234AB*
<A>
<V>100<H>100<B>103120*1234AB*
<Q>2
<Z>

Coding Example 2
Barcode symbology: JAN-8 Narrow bar width: 02 Height of barcode: 080
Print data: 4912345
<A>
<V>100<H>100<B>4020804912345
<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 narrow space and will become multiples of a narrow bar.
| Command | Ratio | Narrow space width | <P> specification | Character pitch: Narrow bar width is [1] |
Character pitch: Narrow bar width is [2] |
|---|---|---|---|---|---|
| <B> | 1:3 | 1 | None | 1 | 2 |
| <P>0 | 1 | 2 | |||
| <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.
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.
203 dpi: 2 dots or more
305 dpi: 2 dots or more
609 dpi: 4 dots or more - 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.