Bar codes – CognitiveTPG B780 User Manual

Page 112

Advertising
background image

Chapter 5: Programming commands

100

A776 (B780) Programming Guide

A776-PG00001 C 12/09

Bar codes

These commands format and print bar codes and are described in order of their hexadecimal codes.

Select printing position of HRI characters

ASCII

GS H n

Hexadecimal 1D 48 n

Decimal

29 72 n

Value of n:

Printing position

0 = Not printed

1 = Above the bar code

2 = Below the bar code

3 = Both above and below the bar code

Default:

0 (Not printed)

Prints HRI (human readable interface) characters above or below the bar code.

Select pitch of HRI characters

ASCII

GS f n

Hexadecimal 1D 66 n

Decimal

29 102 n

Value of n:

0 = Standard pitch at 15.2 CPI

1 = Compressed pitch at 19 CPI

Default:

0 (Not printed)

Selects standard and compressed font for printing bar code characters.

When slip is selected as the interface, HRI is always compressed.

Select bar code height

ASCII

GS h n

Hexadecimal 1D 68 n

Decimal

29 104 n

Value of n:

Number of dots

Range of n:

1–255 (decimal)

01-FF (hexadecimal)

Default:

162 (decimal)

A2 (hexadecimal)

Sets the bar code height to (n/154”) for receipt and

(n/172”) for slip.

Print 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 00 1D 6B m n d1…dn

Decimal

29 107 m d1 dk 0

29 107 m n d1…dn

(0 = End of command)

Selects the bar code type and prints a bar code for the ASCII characters entered. If the width of the bar code exceeds
one line, the bar code is not printed.

There are two variations to this command. The first variation uses a NUL character to terminate the string; the second
uses a length byte at the beginning of the string.

The check digit is calculated for UPC and JAN (EAN) codes if it is not sent from the host computer.
Six-character zero-suppressed UPC-E tags are generated from full 11 or 12 characters sent from the host computer
according to standard UPC-E rules. Start/stop characters are added for code 39 if they are not included.
Continued . . .

Advertising
This manual is related to the following products: