Chapter 5: Programming commands
120
A776 (B780) Programming Guide
A776-PG00001 D 07/13
Select memory type (SRAM/flash)
Use this memory to save logos or user-defined 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 flash memory. A logo defined
following this command is not preserved over a power cycle. 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.
n
= 49 (ASCII
n
= 1) HEX 31
Loads active logo to flash memory. This is the default condition for logo flash storage. A logo defined following this
command is stored in flash memory.
n
= 50 (ASCII
n
= 2) HEX 32
Loads user-defined characters to RAM only. This is the default condition for user-defined character storage. Any user-
defined characters defined following this command are not preserved over a power cycle.
n
= 51 (ASCII
n
= 3) HEX 33
Loads user-defined characters to flash memory. An application must use this command to store user-defined
characters in flash memory. Any user-defined characters defined following this command are stored in flash memory. A
user-defined character cannot be redefined in flash memory. The flash memory page must be erased by an application
before redefining user-defined characters. For more information, see the erase user flash sector (1D 40
n
) command.
Specifies whether to load the logos or user-defined characters to logo/font flash memory or to RAM (volatile memory).
The selection remains in effect until it is changed via this command or until the power cycles. To specify permanent
font flash, also send 1D 22 81 01.
Flash memory user sectors allocation
ASCII
GS “ U
n1 n
Hexadecimal
1D 22 55
n1 n2
Decimal
29 34 85
n1 n2
Default Value of
n1
:
1 (see below)
Default Value of
n2
:
1 (see below)
n
1 is the number of 64k sectors used for logos and user-defined characters.
n
2 is the number of 64k sectors used for user data storage.
n
1 +
n
2 <= 6 (dec) (1M)
n
1 +
n
2 <= 22 (dec) 16 (hex) (2M)
If
n
1 +
n
2 is greater than the maximum number of sectors available, the command is ignored. The printer returns
NACK.
Issuing this command with parameters different from current parameters will erase all sectors. The printer returns ACK.
Issuing this command with parameters the same as current parameters will do nothing. The printer returns ACK.
Note:
Flash memory is made up of user and program code. Therefore, the available flash memory space will vary with the
amount of program code utilized.
Содержание 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...