User manual

A630/A631/A632 Printer Series User Manual Page 51 / 63 Reference: FDE 3106894 Issue F
5.3.9.1.4 P
RINT BAR CODE
First Variation Second Variation
ASCII
GS k m d1…dk NUL GS k m n d1…dn
Hexadecimal 1D 6B m d1…dk NUL 1D 6B m n d1…dn
Comments: The print bar code command selects a bar code, formats the data and prints the bar code
according to the variables m, n and d. The type of bar code is defined by “m” and valid
values are displayed in the table below.
m
Bar code types Mode
0 UPC-A * 1
1 UPC-E * 1
2 EAN13 * 1
3 EAN8 * 1
4 CODE39 ** 1
5 ITF 1
6 NOT ASSIGNED 1
7 CODE128 2
n is the number of digits, used in mode 2 only
d1..dk is the string of characters to be printed as the bar code.
* All of these bar code types use the last character as a checksum of. For example, the UPC-A bar
code needs 11 characters: the 12
th
is calculated automatically. If you enter 12 characters and if the
12
th
character doesn't correspond to the checksum of the 11 first characters, you cannot read the
bar code print out.
** Beginning and finishing characters are necessary: 2A … … … … 2A.
This command will always set the print position to that specified by the ESC $ (print position) command.
Certain error conditions result in data being ignored and nothing being printed, these conditions are:
- Invalid bar code type
- Invalid characters (d) in bar code
- Too many/few characters sent (UPC and EAN bar codes)
- Number of characters sent is not equal to m
- Bar code is wider than paper
5.3.9.1.5 S
ET BAR CODE MAGNIFICATION
ASCII
GS w n
Hexadecimal 1D 77 n
Comments: This command selects magnification (horizontal size) of the bar code.
The range is 1 n 5.
The default value is n = 3.
Note that if the bar code is too longer, no printing.