Transmit Printer Id, Remote Diagnostics Extension - NCR 7158 Owner's Manual

Thermal receipt and impact printer
Table of Contents

Advertisement

Transmit Printer ID, Remote Diagnostics Extension

ASCII:
Hexadecimal:
Decimal:
Values of n:
Range of n:
Performs the remote diagnostic function specified by n.
Eighteen remote diagnostic items are defined: eight printer ID items
and ten printer tally items. A group of four remote diagnostic functions
is assigned to each diagnostic item. Most of the diagnostic items are
maintained in non-volatile memory (NVRAM), but some are
maintained in read-only memory (ROM).
The table that follows describes the variables.
The first item group in the table includes an example of data to send
and to receive. Data sent from the host to write to NVRAM must
contain all digits required by the remote diagnostic item. All data must
be ASCII. The printer returns all ASCII data. It is preceded by the
parameter n to identify the diagnostic item and is followed by a
Carriage Return (0D) to signify the end of the data.
The command performs the remote diagnostic function specified by n
as described in the following table.
Value of n
ASC
Hex
Dec
Space 20
32
!
21
33
GS I @ n
1D 49 40 n
29 73 64 n
Refer to table
32 – 255
(not all defined but reserved)
Remote Diagnostic
Function
Item
Serial #,
Write to NVRAM
Example, send 14 bytes to printer: GS I @ 0x20
10 digit ASCII
1234567890
Serial #
Write to NVRAM, and print on receipt to verify
Example, send 14 bytes to printer: GS I @ !
1234567890
This will print on receipt: Serial # written:
1234567890
Chapter 7: Programming Guide 7-91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents