Erase User Flash Sector - NCR 7158 Owner's Manual

Thermal receipt and impact printer
Table of Contents

Advertisement

7-150 Chapter 7: Programming Guide

Erase User Flash Sector

ASCII:
Hexadecimal:
Decimal:
Value of n:
Erases a page of Flash Memory and sends a carriage return when the
operation is complete.
n = 49 (ASCII n = 1)
This command erases all sectors available for user-defined characters
and multiple logos. The page 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)
This command erases all sectors available for user data storage.
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 five seconds after sending the Erase User
Flash Sector (1D 40 n) command before sending data.
GS @ n
1D 40 n
29 64 n
49 - 50

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents