(30) Bar Code Printing (GS k n Dn NUL)
Code : [1D]h + [6B]h + n + Dn + [00]h
*{0 is less than or equal to n is less than or equal to 7} Data are described in Hex code. Specifying a type of bar code and printing bar codes.
•The beginning of line is considered as the next printing start position.
•Depending on the value of n, the following bar code can be selected.
•Dn indicates a character code to be printed.
n (Hex) | Bar Code System | Maximum Columns |
0 |
| - |
1 |
| - |
2 | JAN13 (EAN) | - |
3 | JAN 8 (EAN) | - |
4 | CODE 39 | 15 |
5 | ITF | 26 |
6 | CODABAR | 19 |
7 | CODE 128 | 17 |
|
|
|
*maximum columns in the printer
•Data, when being held in the print buffer, are ignored.
•When the character code Dn cannot be printed, the data following after this is printed as ordinary print data.
•When a bar code whose number of characters to be printed is fixed has been selected,
the number of characters have to be always made equal to the number of characters to be printed.
•When the horizontal direction exceeds one line length, the excess part is not printed.
(31)Selecting Bar Code width (GS w n)
Code : [1d]H + [77]H + N
*{2 is less than or equal to n is less than or equal to 4} Data is described in Hex code. Selecting bar code width.
•The initial value of this width is "3".
(32)Selecting Bar Code Height (GS h n)
Code : [1d]H + [68]H + N
*{1 is less than or equal to n is less than or equal to FF} Data is described in Hex code. Selecting bar code height.
•"n" indicates the number of dots in vertical direction.
•The initial value of n is "162".