User manual
APOS Premium Printer Series User Manual Page 116 /136 Reference: FDE 3107312 Issue A
R
ETURN USER FLASH MEMORY ALLOCATION STATUS
Returns the amount of Flash memory available in user section.
ASCII
US w n
Hexadecimal 1F 77 n
Decimal
31 119 n
Value of n
49
Returns the number of bytes available as a zero terminated ASCII string.
E
RASE USER FLASH SECTOR
Erases a section of user flash memory and sends a carriage return when the operation is complete.
ASCII GS @ n
Hexadecimal 1D 40 n
Decimal 29 64 n
Value of n 49-51
n = 49 (ASCII n = 1)
This command erases all 64K Flash memory sectors allocated to user-defined characters and logos storage.
Those sectors should be erased in two situations: when the logo definition areas 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)
This command erases all 64K Flash memory sectors allocated to user data storage.
n = 51 (ASCII n = 3)
This command erases all 64K Flash memory sectors allocated to EasyFont storage.
Related Information
See command “Flash Memory User Sectors Allocation “1D 22 55 n1 n2”.
Important While erasing flash memory, all communication is disabled. 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 five seconds after
sending the Erase User Flash Sector (1D 40 n) command before sending data.