[ESC+2D51] GS1 DataMatrix

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
2D51 <32>16<44>16<35>16<31>16

Parameter

,aa,bb,ccc,ddd

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

Specifying GS1 DataMatrix Code.

Format (Setup part)

<2D51>,aa,bb,ccc,ddd

  • Parameter

    a [Horizontal cell size] = Valid Range: 01 to 99 dots

    b [Vertical cell size] = Valid Range: 01 to 99 dots

    c [Number of cell in one line]

    = Valid Range: 010 to 144

    = 000: (Auto-setting)

    d [Number of cell lines]

    = Valid Range: 008 to 144

    = 000: (Auto-setting)

Format (Data part)

<DN>mmmm,n...n

  • Parameter

    m [Number of data] = Valid Range: 1 to 3116

    n [Print data] = Data

    * When print 7EH, specify [7EH, 7EH].

    * When print 1BH, specify [1BH, 1BH].

    * When print FNC1, specify [1BH, 31H].

    * If Parameter other than above is specified or print data don't match, print is not secured.

Coding Example

Horizontal cell size: 3 dots, Vertical cell size: 3 dots


<A>
<V>100<H>200<2D51>,03,03,000,000
<DN>0014,<1B>161100123456789
<Z>
                    

* <1B>16 specify character code "1BH".

Supplementary Explanation

  1. If Parameter other than above is specified or print data don't match, print is not executed.
  2. When specifying print format, secure more than 2 mm blank space in for sides of the DataMatrix for read margin for the scanner.
  3. When print data is 7EH, specify [7EH, 7EH]. Number of data will be "0002".
  4. When [7EH] is specified solely, the command error occurs and the code will not be printed.
  5. When print data is 1BH, specify [1BH, 1BH]. Number of data will be "0002".
  6. When print data is FNC1, specify [1BH, 31H]. Number of data will be "0002".
  7. When [7EH] is specified solely, the command error occurs and the code will not be printed.
  8. When Auto setup (000) is applied for [Number of cell in one row] and [Number of cell lines], square DataMatrix is printed.
  9. When the same value other than 000 is specified (manual setting) in the "number of cell per 1 line" and "cell lines", square DataMatrix will be printed.
  10. When different value other than 000 is specified (manual setting) in the "number of cell per 1 line" and "cell lines", rectangle DataMatrix will be printed.
  11. The number of data can be specified in the data part depends on the data format. Available data number is as follows.

    (Number of cell is auto setting or the maximum cell number is specified):

    Data format Number of data
    Data format Numeric 3116
    Alphanumeric 2335
    Binary (00H to FFH) 1556
  12. The symbol may not be read by a scanner when the cell size is smaller. In the above case, specify enough cell size for the scanner.
  13. The symbol size available in the GS1 DataMatrix is limited to the 30 types in the below table. Also, the maximum number of data is limited depending on the symbol size. Refer to the "The maximum digit of the number of data" table.
  14. Make sure to specify 1BH and 31H at the beginning of the data.
  15. Commands that allow data size specification and binary data specification (<DN>) will result in a command error if there is no ESC (0x1B) immediately after the specified amount of data.

Symbol size and number of data of GS1 DataMatrix.

Symbol size Maximum data digits
Number of cell in one line(c) Number of cell line(d) Number of block Numeric Alphanumeric Binary
Square 10 10 1 6 3 1
12 12 1 10 6 3
14 14 1 16 10 6
16 16 1 24 16 10
18 18 1 36 25 16
20 20 1 44 31 20
22 22 1 60 43 28
24 24 1 72 52 34
26 26 1 88 64 42
32 32 4 124 91 60
36 36 4 172 127 84
40 40 4 228 169 112
44 44 4 228 214 142
48 48 4 348 259 172
52 52 4 408 304 202
64 64 16 560 418 278
72 72 16 736 550 366
80 80 16 912 682 454
88 88 16 1152 862 574
96 96 16 1392 1042 694
104 104 16 1632 1222 814
120 120 36 2100 1573 1048
132 132 36 2608 1954 1302
144 144 36 3116 2335 1556
Rectangle 18 8 1 10 6 3
32 8 2 20 13 8
26 12 1 32 22 14
36 12 2 44 31 20
36 16 2 64 46 30
48 16 2 98 72 47

* Mixture of Numeric, Alphanumeric and Control code varies according to number of characters.

GS1 DataMatrix Code table

SI SO
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 ` p
0 0 0 1 1 ! 1 A Q a q
0 0 1 0 2 " 2 B R b r
0 0 1 1 3 # 3 C S c s
0 1 0 0 4 $ 4 D T d t
0 1 0 1 5 % 5 E U e u
0 1 1 0 6 & 6 F V f v
0 1 1 1 7 ' 7 G W g w
1 0 0 0 8 ( 8 H X h x
1 0 0 1 9 ) 9 I Y i y
1 0 1 0 A * : J Z j z
1 0 1 1 B + ; K [ k {
1 1 0 0 C , < L ¥ l |
1 1 0 1 D - = M ] m }
1 1 1 0 E . > N ^ n ~
1 1 1 1 F / ? O _ o DEL
Data nData n+1
FNC11BH31H

GS1 DataMatrix can specify from 00H to FFH.

When print data is 7EH, specify [7EH, 7EH].

When print data is 1BH, specify [1BH, 1BH].

When specifying FNC1, specify [1BH, 31H].