Specifications
TH230/TH230+ Programmers Guide
169
GS k
Function:
Print bar code
Code ASCII:
(without 2D)
➀ GS k m d1 … dk NUL
Code HEX:
(without 2D)
➀ 0x1D 0x6B m d1 … dk NUL
Code ASCII:
(without 2D)
➁ GS k m n d1 ... dn
Code HEX:
(without 2D)
➁ 0x1D 0x6B m n d1 ... dn
Code ASCII:
(with 2D)
➁ GS k m n d1 ... dk | dk+2 … dn
Code HEX:
(with 2D)
➁ 0x1D 0x6B m n d1 … dk 0x7C dk+2 … dn
Range:
(without 2D)
➀ 0 ≤ m ≤ 6, 10 ≤ m ≤ 18 (k and d depend on the bar code system
used)
Range:
(with 2D)
➁ 65 ≤ m ≤ 73, 75 ≤ m ≤ 82 (k, j and d depend on the bar code
system used.
n = k + j +1)
Description: Selects a bar code system and prints the bar code.
• Command is only valid at start of line!
All characters after GS k are used as normal characters, if command not
used at start of line.
• UPC-A, UPC-E, EAN-8, EAN-13, GS1 Databar support in ➁ mixed 1D/2D
data. With 2D-data the barcodes will be encoded like the composite code
specification. Without 2D Data, the barcodes will be encoded like the
normal specific 1D code specification.
• | (0x7C) of barcodes which supports 1D/2D data indicates the separator
between 1D and 2D data. Data before the separator are 1D, behind 2D data.
• k of ➀ indicates the number of the 1D bar code data to be printed. k does
not need to be sent. For some barcodes k could be infinite, but the printer
has an limitation until 255.
• n of ➁ indicates the number of the 1D + Separator + 2D bar code data.
• d indicates the character code of the bar code data to be printed.
• m specifies a bar code system as follows: (“SP” in the table indicates
space.)