Chapter 5: Programming commands 117
A776-PG00001 D 07/13
A776 (B780) Programming Guide
Loading the exception table
The exception table begins at word 20 in NVRAM. Each entry takes five words. There is room for eight exceptions. An
application can load local exceptions into the printer using the write NVRAM command:
0x1B 0x73 n1 n2 k
which writes the two byte word n1:n2 to word k in NVRAM.
Exception table entry format
Each exception table entry consists of five words. The first two words contain the first eight characters of the transit
number by packing the low order nibble of the numeric transit number characters. For Canadian checks, eliminate the
dash and store the eight numerics.
The next three words are used as six individual bytes to tell the firmware how to interpret the MICR characters that fall
to the right of the rightmost transit symbol. Each of the six bytes is positional and consists of two parts: character type
and number.
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 #
0 0
1 n
n n
n
n
character string
Account #
0 1
0 n
n n
n
n
character string
Character string
1 0
0 n
n n
n
n
to ignore
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
Содержание A776 ColorPOS
Страница 12: ...Contents x A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 14: ...Chapter 1 About this Guide 2 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 160: ...Appendix B Resident Character Sets 148 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 737 Greek...
Страница 161: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 149 Code page 850 Multilingual...
Страница 162: ...Appendix B Resident Character Sets 150 A776 B780 Programming Guide A776 PG00001 D 07 13 Code Page 852 Slavic...
Страница 163: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 151 Code Page 857 Turkish...
Страница 164: ...Appendix B Resident Character Sets 152 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 858 with Eurosymbol...
Страница 165: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 153 Code page 860 Portugese...
Страница 166: ...Appendix B Resident Character Sets 154 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 862 Hebrew...
Страница 167: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 155 Code page 863 French Canadian...
Страница 168: ...Appendix B Resident Character Sets 156 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 865 Nordic...
Страница 169: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 157 Code page 866 Cyrillic...
Страница 170: ...Appendix B Resident Character Sets 158 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 1251 Cyrillic...
Страница 171: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 159 Code page 1252 Windows Latin 1...
Страница 172: ...Code page 1255 Hebrew...
Страница 173: ...Code page KZ_1048 Kazakh Code Page KZ_1048 Kazakh...
Страница 174: ...Appendix C Electronic Journal 162 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 179: ......
Страница 180: ...A776 PG00001 Rev D 07 2013...