Specifications
6-13
(c) Used Memory Capacity of Data Matrix
The total empty area of area1 to 4 shown in Table 6-7 is necessary for Data Matrix print.
For an example, when number of bar code dat
a byte =20 and symbol size=22 (vertical)
22
(horizontal);
Area1 = 20 bytes
Area2 = 2230 bytes
Area3 = (30+20+1)
2 = 102 bytes
Area4-A = 1
(30+68) 2 = 196 bytes
Area4-B= 33
{
[ ][ ]
}
222
16
1522
int20
16
1520
int ×
+
+×
+
= 168 bytes
Total = 2548 bytes (Area4 uses a value of Area4-A.)
(Empty area size is an even byte number.)
Table 6-7 GS 'p' 2 Used Memory Capacity of Data Matrix Print
Area Memory usage
Area1 N bytes
1*
Area2 2230 bytes
Area3 (D+E+1)2 bytes
2*
Area4-A I(B+68) 2 bytes
3*4*
Area4-B
{
[ ][]
}
2Y
16
15X
intYm
16
15Xm
int ×
+
+×
+
bytes
3*5*
*1: N: Number of bar code data
When empty capacity of the external RAM is an odd number, one more byte is necessary
When number of bar code data byte is an odd number, one more byte is necessary
*2: D: Number of data code word.
E: Number of error correction code word.
These value are decided from symbol sizes. See Table 6-8
*3: Area 4-A and area 4-B are used commonly. The larger number will be used
*4: The I will be calculated as follows:
・When E is 68 or less, I=1
・When E exceeds 68,
I=int
( )
68
67E +
When the above value is an odd number, plus 1 to the value.
B will be calculated as follows:
B=int
( )
I
1ID -+
*5: X: Horizontal size of the symbol
Y: Vertical size of the symbol
Xm: Horizontal size of the map matrix
Ym: Vertical size of the map matrix
See Table 6-8 for sizes of the map matrixes.
The int () means that less than a decimal point will be omitted.