Barcodes – Bematech KC-4112 Rev.1.1 User Manual

Page 26

Advertising
background image

User’s Manual

26

Barcodes

Barcodes are obtained using the GS command sequences show below. Please note that all parameters and
numbers are in decimal format, unless noted.

Description

Sets the height n of the barcode generated – each
height unit corresponds to a dot of 0.125 mm, so
the final height is n x 0.125 mm where 1

n

255.

The default is n=162.
Determines the width of the barcode, where n=2
corresponds to normal width, n=3 is double width
and n=4 is quadruple width. The default is n=3.
Choose the position of the human readable
information (HRI) of the barcode
n=0: No HRI
n=1: On top of the barcode (default)
n=2: On the bottom of the barcode
n=3: Both on top and on the bottom of the barcode.
Sets the font used to print the human readable
information (HRI). The default is n=0.
n=0 or n=48: normal
n=1 or n=49: condensed

Prints an UPC-A barcode where d

1

...d

11

is a sequence

of 11 bytes containing the barcode information with
48

d

57. A check sum digit will be added

automatically.

Prints an UPC-E barcode where d

1

...d

6

is a sequence

of 6 bytes containing the barcode information with
48

d

57. A check sum digit will be added

automatically.

Prints an EAN-13 barcode where d

1

...d

12

is a

sequence of 12 bytes containing the barcode
information with 48

d

57. A check sum digit will

be added automatically.

Prints an EAN-8 barcode where d

1

...d

7

is a sequence

of 7 bytes containing the barcode information with
48

d

57. A check sum digit will be added

automatically.

Prints a CODE 39 barcode where n indicates the number
of bytes that will be sent and d

1

…d

n

is the sequence of n

bytes containing the barcode information. The bytes that
can be used in d are 32, 36, 37, 42, 43, 45 to 57 and
65 to 90 (upper case letters) or 97 to 122 (lower case
letters). Lower case and upper case letters can’t be
combined in the same barcode. A check sum digit will be
added automatically. Number of digits in the barcode
limited by the print field as well as the configured barcode
width.

Command

Hexadecimal
Decimal

GS h n

1D 68 n
29 104 n

GS w n

1D 77 n
29 119 n

GS H n

1D 48 n
29 72 n

GS f n

1D 66 n
29 102 n

GS k 0 d

1

…d

11

NUL

1D 6B z 0 d

1

…d

11

0

GS k 65 11 d

1

...d

11

1D 6B 41 0B d

1

…d

11

29 107 65 11 d

1

…d

11

GS k 1 d

1

…d

6

NUL

1D 6B 01 d

1

…d

6

00

29 107 1 d

1

…d

6

0

GS k 66 6 d

1

…d

6

1D 6B 42 06 d

1

…d

6

29 107 66 6 d

1

…d

6

GS k 2 d

1

…d

12

NUL

1D 6B 02 d

1

…d

12

00

29 107 2 d

1

…d

12

0

GS k 67 12 d

1

…d

12

1D 6B 43 0C d

1

…d

12

29 107 67 12 d

1

…d

12

GS k 3 d

1

…d

7

NUL

1D 6B 03 d

1

…d

7

00

29 107 3 d

1

…d

7

0

GS k 68 7 d

1

…d

7

1D 6B 44 07 d

1

…d

7

29 107 68 7 d

1

…d

7

GS k 4 d

1

…d

n

NUL

1D 6B 04 d

1

…d

n

00

29 107 4 d

1

…d

n

0

GS k 69 n d

1

…d

n

1D 6B 45 n d

1

…d

n

29 107 69 n d

1

…d

n

Advertising