HP Value Serial/USB Receipt Printer II Instrukcja Użytkownika Strona 108

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 155
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 107
Chapter 3: Programming Commands108
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ashpageattheaddressspecied.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.
Related information
Resultofthiswriteisreturnedinbit2ofresponsetotransmitstatuscommand1D72,n =4.
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(0x0D).Iftherangeofrequesteddataexceedsthesectorboundary,theprinterwillonlysend
thedatauptothesectorboundary.
Select memory type (SRAM/ash) where 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.
n = 51 (ASCII n = 3) HEX 33
Loadsuser-denedcharacterstoashmemory.Anapplicationmustusethiscommandtostoreuser-denedcharactersin
ashmemory.Anyuser-denedcharactersdenedfollowingthiscommandarestoredinashmemory.Auser-dened
charactercannotberedenedinashmemory.Theashmemorypagemustbeerasedbyanapplicationbeforeredening
user-denedcharacters.Formoreinformation,seetheeraseuserashsector(1D40n) command.
Specieswhethertoloadthelogosoruser-denedcharacterstologo/fontash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
ash,alsosend1D228101.
Related information
ThiscommandisrecognizedinNativemode.InA793andLEGACYemulations,parameterbytesgointotheprintbuffer.
Przeglądanie stron 107
1 2 ... 103 104 105 106 107 108 109 110 111 112 113 ... 154 155

Komentarze do niniejszej Instrukcji

Brak uwag