[ESC+D] Barcode (Ratio 1:2)

CL4NX CL6NX CL4NX-J CL6NX-J PW208/PW208m PW208NX/PW208mNX FX3-LX CT4-LX/HC4-LX PW4NX LR4NX-FA S84NX/S86NX CL4-SXR CL6-SXR

Hexadecimal code

ESC <1B>16
D <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 1:2 between narrow bar and wide bar.

Format

<D>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:2
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:2
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:2
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
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
5 Industrial 2of5 Barcode character pitch is enabled.
For print data specifications, refer to table of Industrial 2of5 code.
1:2
6 Matrix 2of5 Barcode character pitch is enabled.
For print data specifications, refer to table of Matrix 2of5 code.
1:2
H UPC-A This barcode has no 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<D>003120A1234A
<Q>2
<Z>
                    

Coding Example 2

Barcode symbology: ITF, Narrow bar width: 02, Height of barcode: 080

Print data: 98002345678163


<A>
<V>100<H>100<D>20208098002345678163
<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<D>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.

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.

e.g.)

Command Ratio Narrow space width <P> specification Gap between characters:
Narrow bar width is [1]
Gap between characters:
Narrow bar width is [2]
<D> 1:2 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

  1. If the value other than valid range is set, command error will occur and barcode will not be printed.
  2. Barcode will be printed even if the data exceed the printable area.
  3. Increasing narrow bar width may exceed the print area.
  4. 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.
  5. For specifying the narrow bar width, consider the reading compatibility of scanner and head density beforehand.
    203 dpi: 2dots or more
    305 dpi: 2dots or more
    609 dpi: 4dots or more
  6. Adjust Print Speed <CS> or Print Darkness <#F> in case of scanner reading problem.
  7. Matrix 2of5 will be expressed as Coop2of5/NEC2of5. (Japan model only) * Other than PW4NX.
  8. 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.
  9. 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.