Chapter 5: Programming commands 119
A776-PG00001 D 07/13
A776 (B780) Programming Guide
User data storage
Write to user data storage
ASCII
ESC ‘
m
a0 a1 a2 d1 ... dm
Hexadecimal
1B 27
m
a0 a1 a2 d1 ... dm
Decimal
27 39
m
a0 a1 a2 d1 ... dm
Value of
m
:
0 – 255
Writes
m
bytes of data to the user data storage flash page at the address specified. The printer waits for
m
bytes of data
following the 3-byte address,
addr
.
If any of the memory locations addressed by this command are not currently erased, the command is not executed.
The printer disables interrupts while writing to flash. Any command that cause data to be written to flash should be
followed by a 50 Msec delay to allow significant time for the write operation.
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 flash page at the address specified. Returns
m
bytes to the
application, followed by a carriage return (0Dh).
The high order byte of the address (a0) ranges from 0 to
n
2–1, with
n
2 specified in the flash allocation command. If the
flash 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
n
1
n
2
k
Hexadecimal
1B 73
n
1
n
2
k
Decimal
27 115
n
1
n
2
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,
n
1
n
2, to location
k
in history EEROM.
Содержание A776 ColorPOS
Страница 12: ...Contents x A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 14: ...Chapter 1 About this Guide 2 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 160: ...Appendix B Resident Character Sets 148 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 737 Greek...
Страница 161: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 149 Code page 850 Multilingual...
Страница 162: ...Appendix B Resident Character Sets 150 A776 B780 Programming Guide A776 PG00001 D 07 13 Code Page 852 Slavic...
Страница 163: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 151 Code Page 857 Turkish...
Страница 164: ...Appendix B Resident Character Sets 152 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 858 with Eurosymbol...
Страница 165: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 153 Code page 860 Portugese...
Страница 166: ...Appendix B Resident Character Sets 154 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 862 Hebrew...
Страница 167: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 155 Code page 863 French Canadian...
Страница 168: ...Appendix B Resident Character Sets 156 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 865 Nordic...
Страница 169: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 157 Code page 866 Cyrillic...
Страница 170: ...Appendix B Resident Character Sets 158 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 1251 Cyrillic...
Страница 171: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 159 Code page 1252 Windows Latin 1...
Страница 172: ...Code page 1255 Hebrew...
Страница 173: ...Code page KZ_1048 Kazakh Code Page KZ_1048 Kazakh...
Страница 174: ...Appendix C Electronic Journal 162 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 179: ......
Страница 180: ...A776 PG00001 Rev D 07 2013...