HP Value Serial/USB Receipt Printer II User Manual Page 47

  • Download
  • Add to my manuals
  • Print
  • Page
    / 155
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 46
Chapter 3: Programming Commands 47
Select or cancel user-dened character set
ASCII ESC % n
Hexadecimal 1B 25 n
Decimal 27 37 n
Value of n: 0 = Code Page 437
1 = User Dened (RAM)
2 = Code Page 850
Range of n: 0–2
Default: 0 (Code Page 437)
Selectsthecharactersetuntiltheprinterisinitialized,reset,orpoweredoff.WhenanundenedRAMcharacteris
selected,thecurrentactiveROMcodepagecharacterisused.SeeChapter2:ProgrammingthePrinter,“Character
appearance”forthecharactersets.
Exception:
The character sets cannot be used together on the same line.
Related information
InLEGACYemulation,theloworderbitofnisusedtoselecttheuser-denedcharactersetandthecurrentactiveROM
code page is not affected.
Dene user-dened character set
ASCII ESC & s c1 c2 [character 1 data] ... [character k data]
Hexadecimal 1B 26 s c1 c2 [character 1 data] ... [character k data]
Decimal 27 38 s c1 c2 [character 1 data] ... [character k data]
Values and ranges:
s = 3, the number of bytes (vertically) in the character cell
c = the ASCII codes of the rst (c1) and last (c2) characters respectively
c1 = Hex 20–FF (20 is always printed as a space)
c2 = Hex 20–FF (20 is always printed as a space)
To dene only one character, use the same code for both c1 and c2
k = c2 – c1 + 1 = the number of characters to be dened in this command string
[character i data] = [ni d1 ... d(3 x ni)] for 1 ≤ i ≤ k
ni = the number of dot columns for the ith character, 1 ≤ ni ≤ 16
d = the dot data for the characters
The number of bytes for the ith character cell is 3 x ni.
Thebytesareprinteddownandacrosseachcell.
DenesandentersdownloadedcharactersintoRAM.Thecommandmaybeusedtooverwritesinglecharacters.User-
denedcharactersareavailableuntilpoweristurnedoffortheinitializeprintercommand(1B40)isreceived.
Anyinvalidbyte(s,c1,c2,n1)abortsthecommand.
Related information
See1D22n(selectmemorytype)tosaveuser-denedcharacters.






Page view 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 154 155

Comments to this Manuals

No comments