User Data Storage; Write To User Data Storage; Read From User Data Storage; Read From Non-Volatile Memory (Nvram) - CognitiveTPG A798 Programming Manual

Thermal receipt printer
Hide thumbs Also See for A798:
Table of Contents

Advertisement

96
Chapter 4: Programming Commands

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.
Related information
Result of this write is returned in bit 2 of response to transmit status command 1D 72, n = 4.

Read from user data storage

ASCII
ESC 4 m a0 a1 a2
Hexadecimal
1B 34 m a0 a1 a2
Decimal
27 52 m a0 a1 a2
Value of m:
0 – 255
Reads m bytes of data from the user data storage flash page at the address specified.

Read from non-volatile memory (NVRAM)

ASCII
ESC j k
Hexadecimal
1B 6A k
Decimal
27 106 k
Range of k:
20 – 63 (decimal)
Reads a two-byte word from location k in the history EEROM. The printer returns the word at the next available
opportunity.
Related information:
This is ignored in LEGACY emulation and the parameter byte goes into the print buffer.

Write to non-volatile memory (NVRAM)

ASCII
ESC s n1 n2 k
Hexadecimal
1B 73 n1 n2 k
Decimal
27 115 n1 n2 k
Value of n1:
1
Byte
st
Value of n2:
2
Byte
nd
Range of k:
20 – 63 (decimal locations)
Writes the two-byte word, n1 n2, to location k in history EEROM.
Related information:
This is ignored in LEGACY emulation and the parameter bytes go into the print buffer.
A798-PG00001C
Revision C 12/09

Advertisement

Table of Contents
loading

Table of Contents