Ref: "Ap1400ProgGuide1_2.docx"
Page 15 of 42
Document Revision: “1.2”
Document Date: “9 Apr. 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 is powered off.
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 is powered off. Note that the user should verify that a given barcode will fit on the paper,
especially when using the variable length barcodes.
Mark Sense Operation
Please refer to the factory for more detailed information before using the Mark Sense feature.
Reserved Commands
In general, commands which are not implemented and described above should not be sent to the
printer, as the outcome may not be as expected. However, some additional EPSON ESCPOS
commands are recognised, and an attempt is made to decode them, so that following commands will
remain in synchronism and correctly interpreted. Please refer to Able Systems in case of difficulty.