CognitiveTPG A760 User Manual
Page 123

A760 User Guide: Programming Supplement
Chapter 4: Programming commands
123
Revision F January 2010
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 – 51
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 flash memory or to RAM (volatile memory).
The selection remains in effect until it is changed via this
command or until the power cycles.
Related information
This command is recognized in A760 native mode. In
A756 and emulations, parameter bytes go into
the print buffer.
Flash memory user sectors allocation
ASCII
GS “ U n1 n
Hexadecimal 1D 22 55 n1 n2
Decimal
29 34 85 n1 n2
Default Value of n1:
1 (see below)
Default Value of n2:
1 (see below)
n1 is the number of 64k sectors used for logos and
user-defined characters.
n2 is the number of 64k sectors used for user data storage.
This command sets the allocation of flash sectors between
user data storage and logos/user-defined characters. This
allocation is saved in the EEPROM of the printer and is
therefore saved across power cycles.
The printer will respond to the flash allocation command
being sent with ACK (06H).
n1 + n2 <= 5 (dec) (1M)
n1 + n2 <= 21 (dec) 15 (hex) (2M)
The A760 has been configured at the factory with 1M or
2M of flash memory.
Note: Flash memory is made up of user and program code.
Therefore, the available flash memory space will vary with
the amount of program code utilized.
If n1 + n2 is greater than the maximum number of
sectors available, the command is ignored. Reissuing this
command with different parameters will erase all sectors.
Exception
This command is available only in A758 emulation and
A760 native modes.