Programmers Guide
TH320/420
102
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 among user data storage, logos/user-defined
characters, and electronic journal. This allocation is saved in the EEPROM of the printer and is
therefore saved across power cycles.
When n1 and n2 have been allocated to user data storage and to logos/user defined characters, the
remaining available flash memory will be allocated to electronic journal storage.
The printer will respond to the flash allocation command being sent with ACK (06H).
n1 + n2 <= 5 (dec) (1 M)
n1 + n2 <= 21 (dec) 15 (hex) (2M)
The TH320 has been configured at the factory with 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 are greater than the maximum number of sectors available, the command is ignored.
Reissuing this command with different parameters will erase all sectors.
Erase user flash sector
ASCII
GS @ n
Hexadecimal 1D 40 n
Decimal
29 64 n
Value of n
49 – 50
n = 49 (ASCII n = 1) Hex 31
This command erases all 64K flash memory sectors allocated to user-defined character and logos
storage. Those sectors should be erased in two situations: when the logo definition area is full and an
application is attempting to define new logos, and when an application wants to replace one user-
defined character set with another. In both cases, all logos and character set definitions are erased
and must be redefined.
n = 50
(ASCII n = 2) Hex 32
This command erases all sectors available for user data storage.
Erases a page of flash memory and sends a carriage return when the operation is complete.
Related information
See command “Flash memory user sectors allocation” (1D 22 55 n1 n2).
Important
While erasing flash memory, the printer disables all interrupts, including communications. To provide
feedback to the application, the printer responds to the application when the erase is complete. After
sending the erase user flash sector (1D 40 n) command, an application should wait for the response
from the printer before sending data. Otherwise, data will be lost. If an application is unable to receive
data, it should wait a minimum of ten seconds after sending the erase user flash sector (1D 40 n)
command before sending data.
Summary of Contents for TH320
Page 1: ...TH320 TH420 Two Color Thermal Impact Hybrid Printer Programmers Guide ...
Page 75: ...TH320 TH420 Programmers Guide 67 ...
Page 121: ...TH320 TH420 Programmers Guide 113 Character Sets Character code 437 USA Standard Europe ...
Page 122: ...Programmers Guide TH320 420 114 Codepage 737 Greek ...
Page 123: ...TH320 TH420 Programmers Guide 115 Codepage 850 Multilingual ...
Page 124: ...Programmers Guide TH320 420 116 Codepage 852 Slavic ...
Page 125: ...TH320 TH420 Programmers Guide 117 Codepage 857 Turkish ...
Page 126: ...Programmers Guide TH320 420 118 Codepage 858 with Euro symbol ...
Page 127: ...TH320 TH420 Programmers Guide 119 Codepage 860 Portuguese ...
Page 128: ...Programmers Guide TH320 420 120 Codepage 862 Hebrew ...
Page 129: ...TH320 TH420 Programmers Guide 121 Codepage 863 French Canadian ...
Page 130: ...Programmers Guide TH320 420 122 Codepage 865 Nordic ...
Page 131: ...TH320 TH420 Programmers Guide 123 Codepage 866 Cyrillic ...
Page 132: ...Programmers Guide TH320 420 124 Codepage 1252 Windows Latin 1 ...
Page 134: ...Programmers Guide TH320 420 126 Codepage 1255 Hebrew ...
Page 142: ...Programmers Guide TH320 420 134 TH420 Additional Features ...
Page 156: ......
Page 157: ...TH320 TH420 Programmers Guide Wincor Nixdorf International GmbH D 33094 Paderborn ...