
7156 Owner’s Guide
Chapter 6: Commands
September 1997
109
The three high order bits of each byte mark the character type. The characters can be
marked in three ways: check serial # character, account # character, or “skip this character
or symbol.” The five low order bits of each byte contain the number of characters of that
type to extract. Most exceptions will not need to use all six bytes; in that case clear the
unused bytes to zero.
Bits within Byte
7
6
5
4
3
2
1
0
check serial # character string
0
0
1
n
n
n
n
n
account # character string
0
1
0
n
n
n
n
n
character string to ignore
1
0
0
n
n
n
n
n
Example 1
t123456780t12349876543210o
1234 is the check serial #
9876543210 is the account #
To load the second table entry, which starts at word 25, the transit number 123456780
would be stored in the first two words of its table entry using this string of commands:
0x1B 0x73 0x12 0x34 25
0x1B 0x73 0x56 0x78 26
After the right transit symbol are immediately the four characters of the check serial #,
followed immediately by the ten characters of the account number. These would be bitwise
encoded as:
0 0 1 0 0 1 0 0 (check #, four characters)
and
0 1 0 0 1 0 1 0 (account #, 10 characters)
then stored in the other three words of the table entry using:
0x1B 0x73 0x24 0x4A 27
0x1B 0x73 0x00 0x00 28
0x1B 0x73 0x00 0x00 29
Example 2
t22137-632t001 6042202o927540
2754 is the check serial #
6042202 is the account #
To load the third table entry, which starts at word 30, the transit number 2137-632 would
be stored in the first two words of its table entry using this string of commands:
0x1B 0x73 0x22 0x13 30
0x1B 0x73 0x76 0x32 31
After the right transit symbol are four characters to skip, a seven digit account number,
two characters to skip, and finally a four digit check serial #. The final character to skip
need not be encoded. These would be bitwise encoded as:
1 0 0 0 0 1 0 0 (skip four characters)
0 1 0 0 0 1 1 1 (account #, seven characters)
1 0 0 0 0 0 1 0 (skip two characters)
0 0 1 0 0 1 0 0 (check #, four characters)
then stored in the other three words of the table entry using:
0x1B 0x73 0x84 0x47 32
0x1B 0x73 0x82 0x24 33
0x1B 0x73 0x00 0x00 34.
Содержание 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...