Maintaining The Exception Table; User Data Storage; Write To User Data Storage - CognitiveTPG A776 Programming Manual

Two-color thermal/impact hybrid printer
Hide thumbs Also See for A776:
Table of Contents

Advertisement

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.

Maintaining the exception table

Present contents of the exception table can be examined using the read NVRAM command:
0x1B 0x6A k
which reads and returns word k in NVRAM. When the exception table is full, a new entry can replace an older, less
frequently used entry, by merely rewriting the words for that table entry.

User data storage

Write to user data storage

ASCII
ESC ' m a0 a1 a2 d1 ... dm
Hexadecimal
1B 27 m a0 a1 a2 d1 ... dm
Decimal
27 39 m a0 a1 a2 d1 ... dm
Value of m:
0 – 255
Writes m bytes of data to the user data storage flash page at the address specified. The printer waits for m bytes of data
following the 3-byte address, addr.
If any of the memory locations addressed by this command are not currently erased, the command is not executed.
The printer disables interrupts while writing to flash. Any command that cause data to be written to flash should be
followed by a 50 Msec delay to allow significant time for the write operation.
A776-PG00001 C 12/09
Chapter 5: Programming commands
A776 (B780) Programming Guide
121

Advertisement

Table of Contents
loading

This manual is also suitable for:

B780

Table of Contents