Ref: "ProgGuide1_7.docx"
Page 17 of 26
Document Revision: “1.7”
Document Date: “11 Sep. 2013”
Barcode Commands
GS,"H",n
1DH,48H,n
Select automatic text in barcode
n is encoded so:
bit 0 cleared
(0)
No barcode text above barcode symbol (default)
bit 0 set
(1)
Print barcode text above barcode symbol
bit 1 cleared
(0)
No barcode text below barcode symbol (default)
bit 1 set
(1)
Print barcode text below barcode symbol
This setting is retained and used for all subsequent barcodes, but is cleared to the default when the
printer enters sleep mode
GS,"h",n
1DH,68H,n
Select height of barcode
+
Height of barcode = (n x 0.125mm) n is valid in the range 1 <= n <= 150.
Default value 100; a zero value is ignored; a value of 150 is used in place of values greater than
150. This setting is retained and used for all subsequent barcodes, but is cleared to the default
when the printer is powered off.
GS,"k",..
1DH,6BH,m,d1..dk,t
Print barcode using data provided
N.B. This command must always be terminated with value “t” shown below.
The number and type of bytes of data varies with barcode type "m".
Valid m values:
Terminator (t)
0: UPC-A
Numeric only ASCII data: supply 11 digits
00H
1: UPC-E
Numeric only ASCII data: supply 6 digits
00H
2: EAN-13
Numeric only ASCII data: supply 12 digits
00H
3: EAN-8
Numeric only ASCII data: supply 7 digits
00H
4: Code 39
Alphanumeric ASCII data: variable length (Max 22)
00H
5: Int2 of 5
Numeric only ASCII data: variable length (Max 23)
00H
6: Code 128A Alphanumeric ASCII data 0x00 to 0x5F: variable length (Max 14)
FFH
7: Code 128B Alphanumeric ASCII data 0x20 to 0x7F: variable length (Max 14)
FFH
8: Code 128C Numeric only ASCII data 30H to 39H: variable length (Max 14 bytes)
FFH
9: Code 93
Alphanumeric ASCII data 0x00 to 0x7F: variable length (Max 16)
FFH
Note that the user should verify that a given barcode will fit on the paper, especially when using the
variable length barcodes. Barcodes may not be mixed with normal text.
GS,"w",n
1DH,77H,n
Select width of barcode
Width of barcode element (narrow bar) = (n x 0.125mm)
n is valid in the range 2 <= n <= 4. Other values are ignored; Default value is 3.
This setting is retained and used for all subsequent barcodes, but is cleared to the default when the
printer enters sleep mode. Note that the user should verify that a given barcode will fit on the paper,
especially when using the variable length barcodes.
Cutter Control Commands (ATB102 driving M-T102A Only)
The ATB102 has two additional commands for control of the cutter (when driving the M-T102A only):
ESC,"i"
1BH,69H
Execute a Full Cut
Perform a full cut.
ESC,"m"
1BH,6DH
Execute a Partial Cut
Perform a partial cut.
Mark Sense Operation
Please refer to the factory for more detailed information before using the Mark Sense feature.