[ESC+BW] Barcode Print by Specified Ratio

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
BW <42>16<57>16

Parameter

aabbbn...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 barcode ratio, saved by <BT>

Format

<BW>aabbbn...n

  • Parameter

    a [Narrow bar] = Valid Range: 01 - 36 dot

    b [Height of Barcode] = Valid Range: 001 - 999 dot

    n [Print data] = Barcode data

Coding Example

Narrow bar: 02, Height of Barcode: 120


<A>
<BT>103060306
<V>100<H>200<BW>02120*ABCD*
<Q>2
<Z>
                    

Supplementary Explanation

  1. Barcode character pitch is available for CODABAR (NW-7), CODE39, Industrial 2of5, Matrix 2of5.
    To specify barcode character pitch, insert Character Pitch <P> right before Barcode symbology. When <P> is omitted, character pitch will be as same as narrow space width set by Barcode ratio.
  2. If there is no Registration of Bar Width Ratio <BT>, barcode based on pre-registered bar width ratio of narrow and wide bars will be printed. Note that specification of <BT> is required beforehand to print.
  3. For print data for Barcode type, refer to Code table for each Barcode.
    Command Ratio Narrow space width <P> specification Gap between characters:
    Narrow bar width is [1]
    Gap between characters:
    Narrow bar width is [2]
    <BT> 3:5 3 None 3 6
    <P>0 3 6
    <P>1 1 2
    <P>2 2 4
    <P>3 3 6
    <P>4 4 8

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 and not be printed.
  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 beforehand.
  6. Adjust Print Speed <CS> or Print Darkness <#F> in case of scanner reading problem.
  7. Matrix 2of5 is expressed as Coop2of5/NEC2of5. (Japan model only) * Other than PW4NX.
  8. When CODABAR (NW-7) and CODE39 is specified and Start/Stop character is not included in it, Barcode is printed but Scanner cannot read it.

CODABAR (NW-7) Code table

SI S0
B8 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
B7 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
B6 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
B5 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
B4 B3 B2 B1 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 0 0 0 0
0 0 0 1 1 1 A a
0 0 1 0 2 2 B b
0 0 1 1 3 3 C c
0 1 0 0 4 $ 4 D T d t
0 1 0 1 5 5 E e
0 1 1 0 6 6
0 1 1 1 7 7
1 0 0 0 8 8
1 0 0 1 9 9
1 0 1 0 A * :
1 0 1 1 B +
1 1 0 0 C
1 1 0 1 D -
1 1 1 0 E . N n
1 1 1 1 F /
  • As a standard, 0x 20 (SP) is not available, and no error will occur to printer and space will be printed due to the specification.
  • Characters which can be used as Start/Stop characters are [A, B, C, D, E, N, T, a, b, c, d, e, n, t, *] in the chart of character code.
  • Characters [$, +, -, ., /, 0-9, :] can be used as print data.

CODE39 Code table

SI S0
B8 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
B7 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
B6 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
B5 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
B4 B3 B2 B1 0 1 2 3 4 5 6 7 8 9 A B C D E F
0 0 0 0 0 SP 0 P
0 0 0 1 1 1 A Q
0 0 1 0 2 2 B R
0 0 1 1 3 3 C S
0 1 0 0 4 $ 4 D T
0 1 0 1 5 % 5 E U
0 1 1 0 6 6 F V
0 1 1 1 7 7 G W
1 0 0 0 8 8 H X
1 0 0 1 9 9 I Y
1 0 1 0 A * J Z
1 0 1 1 B + K
1 1 0 0 C L
1 1 0 1 D - M
1 1 1 0 E . N
1 1 1 1 F / O