① GS k m d1…dk NUL , | ② GS k m n d1…dn |
| ||||
[Name] | Print bar code. |
|
|
|
|
|
[Format] | ① ASCII | GS | k | m | d1…dk | NUL |
| Hex | 1D | 6B | m | d1…dk | 00 |
| Decimal | 29 | 107 | m | d1…dk | 0 |
| ② ASCII | GS | k | m | n | d1…dn |
| Hex | 1D | 6B | m | n | d1…dn |
[Range] | Decimal | 29 | 107 | m | n | d1…dn |
① 0 ≤m ≤6 (k and d depends on the bar code system used.) |
②65 ≤m ≤73 (n and d depends on the bar code system used.)
| [Description] | Selects a bar code system and prints the | |||||||||
|
|
|
|
| m selects a bar ode system as follows : | ||||||
|
|
|
|
|
|
| |||||
| m | Bar Code System | Number of Characters |
| Remarks | ||||||
|
| 0 |
|
| 11 ≤k ≤12 |
| 48 | ≤d ≤57 | |||
|
| 1 |
|
| 11 ≤k ≤12 |
| 48 | ≤d ≤57 | |||
|
| 2 |
| JAN13(EAN13) | 12 ≤k ≤13 |
| 48 | ≤d ≤57 | |||
|
| 3 |
| JAN8(EAN8) | 7 | ≤k ≤8 |
| 48 | ≤d ≤57 | ||
| ① | 4 |
| CODE 39 | 1 | ≤k |
|
| 48 | ≤d ≤57, | |
|
|
|
|
| 65 | ≤d ≤90, 32, 36, 37, 43, 45, 46, 47 | |||||
|
|
|
|
|
|
|
|
|
| ||
|
| 5 |
| ITF |
| 1 | ≤k (even number) | 48 | ≤d ≤57 | ||
|
| 6 |
| CODABAR | 1 | ≤k |
|
| 48 | ≤d ≤57, | |
|
|
|
|
| 65 | ≤d ≤68, 36, 43, 45, 46, 47 ,58 | |||||
|
|
|
|
|
|
|
|
|
| ||
|
| 65 |
|
| 11 ≤n ≤12 |
| 48 | ≤d ≤57 | |||
|
| 66 |
|
| 11 ≤n ≤12 |
| 48 | ≤d ≤57 | |||
|
| 67 |
| JAN13(EAN13) | 12 ≤n ≤13 |
| 48 | ≤d ≤57 | |||
|
| 68 |
| JAN8(EAN8) | 7 | ≤n ≤8 |
| 48 | ≤d ≤57 | ||
|
|
|
|
|
|
|
|
|
| 48 | ≤d ≤57, |
|
| 69 |
| CODE 39 | 1 | ≤n ≤255 |
| 65 | ≤d ≤90, 32, 36, 37, 43, 45, 46, 47 | ||
| ② |
|
|
|
|
|
|
|
| d1 | = dk = 42(1) |
|
| 70 |
| ITF |
| 1 | ≤n ≤255 (even | 48 | ≤d ≤57 | ||
|
|
|
| number) |
|
| |||||
|
|
|
|
|
|
|
|
|
| ||
|
| 71 |
| CODABAR | 1 | ≤n ≤255 |
| 48 | ≤d ≤57, | ||
|
|
|
| 65 | ≤d ≤68, 36, 43, 45, 46, 47 ,58 | ||||||
|
|
|
|
|
|
|
|
|
| ||
|
| 72 |
| CODE 93 | 1 | ≤ n ≤255 |
| 0 ≤d ≤127 | |||
|
| 73 |
| CODE 128 | 1 | ≤ n ≤255 |
| 0 ≤d ≤127 | |||
|
|
|
|
|
|
|
|
|
| ||
| GS r n |
|
|
|
|
|
|
|
| ||
| [Name] |
| Transmit status. |
|
|
|
| ||||
| [Format] |
| ASCII | GS | V | n |
|
| |||
|
|
|
|
| Hex | 1D | 72 | n |
|
| |
|
|
|
|
| Decimal | 29 | 114 | n |
|
| |
| [Range] |
| n = 1, 2, 49, 50 |
|
|
|
| ||||
| [Description] | Transmits the status specified by n as follows. |
GS v 0 m xL xH yL yH d1…dk
[Name] | Print raster bit image. |
|
|
|
|
|
|
| ||
[Format] | ASCII | GS | V | 0 | m | xL | xH | yL | yH | d1…dk |
| Hex | 1D | 76 | 30 | m | xL | xH | yL | yH | d1…dk |
| Decimal | 29 | 118 | 48 | m | xL | xH | yL | yH | d1…dk |
[Range] | 0 ≤m ≤3, 48 ≤m ≤51 |
|
|
|
|
|
|
0≤xL ≤255
0≤xH ≤255
0≤yL ≤255
0≤d ≤255
k = (xL + xH ×256) ×(yL + yH ×256) (k ≠0)
[Description] | Selects Raster | |||
|
|
|
|
|
m |
| Mode | Vertical Dot Density (DIP) | Horizontal Dot Density (DIP) |
0, 48 | Normal | 180 DPI | 180 DPI | |
1, 49 | 180 DPI | 90 DPI | ||
2, 50 | 90 DPI | 180 DPI | ||
3, 51 | Quadruple | 90 DPI | 90 DPI |
*xL, xH, select the number of data bits (xL + xH ×256) in the horizontal direction for the bit image.
*yL, yH, select the number of data bits (yL + yH ×256) in the vertical direction for the bit image.
GS w n
[Name] | Set bar code width. |
| ||
[Format] | ASCII | GS | w | n |
| Hex | 1D | 77 | n |
| Decimal | 29 | 119 | n |
[Range] | 2 ≤n ≤6 |
|
|
|
[Description] | Set the horizontal size of the bar code. |
n specifies the bar code width as follows :
| n |
|
| Module width for |
|
|
| ||
|
|
|
|
| Thin element width (mm) | Thick element width (mm) |
| ||
|
|
|
|
|
|
| |||
2 | 0.282 |
|
| 0.282 | 0.706 |
| |||
3 | 0.423 |
|
| 0.423 | 1.129 |
| |||
4 | 0.564 |
|
| 0.564 | 1.411 |
| |||
5 | 0.706 |
|
| 0.706 | 1.834 |
| |||
6 | 0.847 |
|
| 0.847 | 2.258 |
|
*
CODE39, ITF, CODABAR.
48 | 49 |