Transmit Printer Id, Remote Diagnostics Extension - CognitiveTPG A799II Programming Manual

Two-color thermal receipt printer
Hide thumbs Also See for A799II:
Table of Contents

Advertisement

90
Chapter 4: Programming Commands

Transmit printer ID, remote diagnostics extension

ASCII
GS I @ n
Hexadecimal
1D 49 40 n
Decimal
29 73 64 n
Values of n:
Refer to table
Range of n:
32–255 (not all defined, but reserved)
Twenty-six remote diagnostic items are defined in the following table: five printer ID items and twenty-one 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 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.
Each returned message is defined as: n + data + <CR>
The command performs the remote diagnostic function specified by n as described in the following table.
Value of n
Hex
Dec
Remote diagnostic item
20
32
Serial #, 10 digit ASCII
21
33
Serial #
23
35
Serial #
24
36
Class/model #, 15 digit ASCII
25
37
Class/model #
27
39
Class/model #
33
51
Flash firmware part #, 12 digit ASCII
37
55
Flash firmware CRC, 4 digit ASCII
80
128
Receipt lines tally,
8 digit ASCII numeric,
max 99,999,999
81
129
Receipt lines tally
82
130
Receipt lines tally
83
131
Receipt lines tally
84
132
Knife cut tally, 8 digit ASCII numeric,
max 99,999,999
85
133
Knife cut tally
86
134
Knife cut tally
87
135
Knife cut tally
Function
Write to NVRAM Example, send 14 bytes to printer:
GS I @ 0x20 1234567890
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
Return Serial #, preceded by n to identify Printer
returns 12 bytes in above example: #1234567890<CR>
Write to NVRAM
Write to NVRAM, and print on receipt to verify
Return Class/model #, returns 17 bytes
Return Flash firmware part #, returns 14 bytes
Return Flash firmware CRC, returns 6 bytes
Write to NVRAM Example, send 12 bytes to printer:
GS I @ Ç00010000 To set receipt lines tally to 10,000
Write to NVRAM, and print on receipt to verify
Example, send 12 bytes to printer:
GS I @ ü00010000 This will print on receipt:
Receipt tally written: 10,000
Clear receipt lines tally to 0
Return receipt lines tally, preceded by n to identify
Printer returns 10 bytes in above example:
â00010000<CR>
Write to NVRAM
Write to NVRAM, and print on receipt to verify
Clear knife cut tally to 0
Return knife cut tally, returns 10 bytes
A799-2PG0001B 4/2016

Advertisement

Table of Contents
loading

Table of Contents