Cognitive Solutions A776 All in One Printer User Manual


 
Chapter 5: Programming commands122
A776 (B780) Programming Guide A776-PG00001 C 12/09
Read from user data storage
ASCII ESC 4 m a0 a1 a2
Hexadecimal 1B 34 m a0 a1 a2
Decimal 27 52 m a0 a1 a2
Value of m: 0 – 255
Reads m bytes of data from the user data storage ash page at the address specied. Returns m bytes to the
application, followed by a carriage return (0Dh).
The high order byte of the address (a0) ranges from 0 to n2–1, with n2 specied in the ash allocation command. If the
ash allocation command has been used, the a0 = 0 always.
Read from non-volatile memory
ASCII ESC j k
Hexadecimal 1B 6A k
Decimal 27 106 k
Range of k: 20 – 63 (decimal)
Reads a two-byte word from location k in the history EEROM. The printer returns the word at the next available
opportunity.
Write to non-volatile memory (NVRAM)
ASCII ESC s n1 n2 k
Hexadecimal 1B 73 n1 n2 k
Decimal 27 115 n1 n2 k
Value of n1: 1
st
Byte
Value of n2: 2
nd
Byte
Range of k: 20 – 63 (decimal locations)
Writes the two-byte word, n1 n2, to location k in history EEROM.
Select memory type (SRAM/ash)
Use this memory to save logos or user-dened fonts.
ASCII GS “ n
Hexadecimal 1D 22 n
Decimal 29 34 n
Value of n: 48 – 53
n = 48 (ASCII n = 0) HEX 30
Loads active logo to RAM only. This is used to print a special logo but not have it take up ash memory. A logo dened
following this command is not preserved over a power cycle. The printer disables interrupts while writing to ash. Any
command that cause data to be written to ash should be followed by a 50 Msec delay to allow signicant time for the
write operation.
n = 49 (ASCII n = 1) HEX 31
Loads active logo to ash memory. This is the default condition for logo ash storage. A logo dened following this
command is stored in ash memory.
n = 50 (ASCII n = 2) HEX 32
Loads user-dened characters to RAM only. This is the default condition for user-dened character storage. Any user-
dened characters dened following this command are not preserved over a power cycle.
Continued . . .