‚ ASCII : GS k m n d1…dn
Decimal : 29 107 m n d1…dn
Hexadecimal : 1D 6B m n d1…dn
Explanation:
For •, 0 ≤ m ≤ 6 (k & d are depends on the barcode system selected)
For ‚, 65 ≤ m ≤ 73 (n & d are depends on the barcode system selected)
Selects the bar code system and print the barcode.
m select the barcode system as follows:
No. of data
m Barcode
GS w 2 GS w 3
Valid data
Format
①
4
48 ≤ d ≤ 57,
65 ≤ d ≤ 90, 32, 36,
37, 43, 45, 46, 47
Format
②
73
0 ≤ d ≤ 127
u n denotes the number of data (or characters) of the barcode. The printer
will process and print it in barcode format from next data(or bytes).
u If invalid data is met, printer will stop proceeding the print barcode
command and treat the data followed as normal data/commands.
u This command follows the barcode setting regardsless of the line spacing
parameters set by command ESC 2 or ESC 3
u If there is data in the print buffer before the print barcode command,
printer will print the buffer data first and then print the barcode.
u After printed the barcode, the next printing position is the beginning of
next line.
When using CODE128 (m = 73):
u Please see Appendix for details about CODE128 barcode and its code sets.
34
u Before using this printer for printing CODE128 barcode, please pay
attention of t he followings about the data:
1. The first data of the barcode data stream must be the start character
for define which code sets (Code A, B or C) is use.
2. Use “{“ and a character to represent some special control code or
character. For represent “{“ is “{{“.
Data Special
control
code
ASCII
Hex Dec
Functions
SHIFT {S 7B,53 123,83 Change code set
CODE A {A 7B,41 123,65 Select code set A
CODE B {B 7B,42 123,66 Select code set B
CODE C {C 7B,43 123,67 Select code set C
FNC1 {1 7B,31 123,49 Function 1
FNC2 {2 7B,32 123,50 Function 2
FNC3 {3 7B,33 123,51 Function 3
FNC4 {4 7B,34 123,52 Function 4
“{” {{ 7B,7B 123,123 Character “{“
<<Example>> Print “No. 123456” as the barcode data
In this example, printer should use Code set B to print “No.” first and then
Code set C for the number.
GS k 73 10 123 66 78 11 46 123 67 12 34 56