CognitiveTPG A799 User Manual
Page 99

Chapter 4: Programming Commands
99
Revision D 12/09
A799-PG00001D
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 CPI
1 = Compressed Pitch at 20 CPI
Default:
0 (Standard Pitch at 15 CPI)
Selects standard and compressed font for printing bar code characters.
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
Default:
216
Sets the bar code height to (n/154 inch).
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 to compensate for the code 128 bar code, which can accept a NUL character as
part of the data. With the second variation, the length of byte is specified at the beginning of the string.
Bar codes can be aligned left, center, or right using the align positions command (1B 61).
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.
Rotated barcodes set with small modules (select bar code width command 1D 77 n , with n=1 or 2) and PDF 417 barcodes
in any orientation are printed at low speed, for better readability.
Exceptions
The command is only valid at the beginning of a line.
Illegal data cancels the command.