Chapter 6: Commands
7156 Owner’s Guide
September 1997
100
Print Bar Code (Receipt Station)
Selects the bar code type and prints a bar code for the ASCII characters entered. The
command is only valid at the beginning of a line. If the width of the bar code exceeds one
line, the excess data is not printed. Illegal data cancels the command.
There are two variations to this command: the first uses a NULL 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 NULL character as part of the data.
Note:
Fixed-length codes can be aligned left, center, or right using the Align Positions
(1B 61) command. Variable-length codes are always center aligned.
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.
First Variation: String terminated with NULL Character
Hexadecimal
Decimal
ASCII
1D 6B m [d]n 00
29 107 m [d]n 0
GS k m [d]n NUL
0 = End of command.
m = 0-6 (see the table)
d = 32-126 (see the table)
n = 1-255 (see the table)
m
Bar Code
d
n, Length
0
UPC-A
48- 57 (ASCII numerals)
Fixed Length: 11, 12
1
UPC-E
48- 57
Fixed Length: 11, 12
2
JAN13 (EAN)
48- 57
Fixed Length: 12, 13
3
JAN8 (EAN)
48- 57
Fixed Length: 7,8
4
Code 39
48- 57,
65- 90 (ASCII alphabet),
32, 36, 37, 43, 45, 46, 47 (ASCII
special characters)
d1 = dk = 42 (start/stop code is
supplied by printer if necessary)
Variable Length
5
Interleaved 2 of 5
48- 57
Variable Length
(Even Number)
6
Codabar
65- 68, start code
48- 57,
36, 43, 45, 46, 47, 58
Variable Length
Содержание 7156
Страница 1: ...BD20 1436 A Issue B September 1997 NCR 7156 Thermal Receipt and Impact Slip RS232 Owner s Guide...
Страница 6: ...Contents 7156 Owner s Guide September 1997 iv...
Страница 31: ...7156 Owner s Guide Chapter 2 Setting Up and Using the Printer September 1997 25 Sample Print Test...
Страница 38: ...Chapter 3 Solving Problems 7156 Owner s Guide September 1997 32...
Страница 118: ...Chapter 6 Commands 7156 Owner s Guide September 1997 112...
Страница 122: ...Appendix A Specifications 7156 Owner s Guide September 1997 116...
Страница 129: ...7156 Owner s Guide Appendix B Print Characteristics September 1997 123...
Страница 130: ...Appendix B Print Characteristics 7156 Owner s Guide September 1997 124...
Страница 136: ...Index 7156 Owner s Guide September 1997 6...