Cognitive Solutions A776 All in One Printer User Manual


 
Chapter 5: Programming commands 85
A776-PG00001 C 12/09 A776 (B780) Programming Guide
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 dened but reserved)
Preforms the remote diagnostic function specied by n.
Eighteen remote diagnostic items are dened: eight printer ID items and ten printer tally items. 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 rst 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 specied by n as described in the following table.
Value of n
ASCII Hex Dec Remote diagnostic item Function
Space 20 32 Serial #, 10 digit ASCII Write to NVRAM Example, send 14 bytes to printer:
GS I @ 0x20 1234567890
! 21 33 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
22 34 Serial # Not available, cannot clear serial # item
# 23 35 Serial # Return Serial #, preceded by n to identify Printer
returns 12 bytes in above example: #1234567890<CR>
$ 24 36 Class/model #, 15 digit ASCII Write to NVRAM
% 25 37 Class/model # Write to NVRAM, and print on receipt to verify
27 39 Class/model # Return Class/model #, returns 17 bytes
+ 2B 43 Boot rmware part #, 12 digit ASCII Return Boot rmware part #, returns 14 bytes
/ 2F 47 Boot rmware CRC, 4 digit ASCII Return Boot rmware CRC, returns 6 bytes
3 33 51 Flash rmware part #, 12 digit ASCII Return Flash rmware part #, returns 14 bytes
7 37 55 Flash rmware CRC, 4 digit ASCII Return Flash rmware CRC, returns 6 bytes
Ç 80 128 Receipt lines tally, Write to NVRAM Example, send 12 bytes to printer:
8 digit ASCII numeric, GS I @ Ç00010000 To set receipt lines tally to 10,000
max 99,999,999
ü 81 129 Receipt lines tally 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