User Data Storage; Write To User Data Storage; Read From User Data Storage; Select Memory Type (Sram/Flash) Where To Save Logos Or User-Defined Fonts - CognitiveTPG A799II Programming Manual

Two-color thermal receipt printer
Hide thumbs Also See for A799II:
Table of Contents

Advertisement

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. Returns m bytes to the application,
followed by a carriage return (0x0D). If the range of requested data exceeds the sector boundary, the printer will only send
the data up to the sector boundary.

Select memory type (SRAM/flash) where to save logos or user-defined fonts

ASCII
GS " n
Hexadecimal
1D 22 n
Decimal
29 34 n
Value of n:
48 – 53
n = 48 (ASCII n = 0) HEX 30
Loads active logo to RAM only. This is used to print a special logo but not have it take up flash memory. A logo defined
following this command is not preserved over a power cycle. 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.
n = 49 (ASCII n = 1) HEX 31
Loads active logo to flash memory. This is the default condition for logo flash storage. A logo defined following this
command is stored in flash memory.
n = 50 (ASCII n = 2) HEX 32
Loads user-defined characters to RAM only. This is the default condition for user-defined character storage. Any user-
defined characters defined following this command are not preserved over a power cycle.
n = 51 (ASCII n = 3) HEX 33
Loads user-defined characters to flash memory. An application must use this command to store user-defined characters in
flash memory. Any user-defined characters defined following this command are stored in flash memory. A user-defined
character cannot be redefined in flash memory. The flash memory page must be erased by an application before redefining
user-defined characters. For more information, see the erase user flash sector (1D 40 n) command.
Specifies whether to load the logos or user-defined characters to logo/font flash memory or to RAM (volatile memory).
The selection remains in effect until it is changed via this command or until the power cycles. To specify permanent font
flash, also send 1D 22 81 01.
Related information
This command is recognized in Native mode. In A793 and LEGACY emulations, parameter bytes go into the print buffer.
A799-2PG0001B 4/2016
Chapter 4: Programming Commands
127

Advertisement

Table of Contents
loading

Table of Contents