Specifications

Programmers Guide TH230/TH230+
146
GS @
Function:
Erase User Flash/RAM Sector
Code ASCII: GS @ n
Code HEX: 0x1D 0x40 n
Range:
49 ≤ n ≤ 50 (TH230)
49 ≤ n ≤ 51 (TH230+ )
Description: n = 49 (ASCII n = 1)
This command erases all 64K Flash Memory sectors allocated to user-defined
character and logos storage in Flash . Those sectors should be erased only in
one situation: when the logo definition area is full and an application is
attempting to define new logos. In both cases, all logos and character set
definitions are erased and must be redefined.
n = 50 (ASCII n = 2)
This command erases all sectors available for user data storage.
n = 51 (ASCII n = 3) (TH230+ only)
This command erases all sectors available for user-defined character and
logos storage in RAM.
Printer returns NAK(0x15) if erase failure or READY (0x0D) if erase is finished
Notes:
Erases a page of Flash Memory and sends a carriage return when the
operation is complete.
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 (GS @ 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 (GS @ n) command before sending data.
Reference: See command “Flash Memory User Sectors Allocation” (GS “ U n1 n2).