Canon K10158 Printer User Manual


 
Function ASCII Dec. Hex.
Set/cancel proportional spacing mode
ESC P n 27 80 n 1B 50 n
n = 0: End proportional spacing
n = 1: Start proportional spacing
Deselect printer ESC Q n 27 81 n 1B 51 n
n = 35, 36 or 37
Set all tabs to default setting ESC R 27 82 1B 52
Set super/subscript mode ESC S n 27 83 1B 53
Cancel by ESC T.
n = 0: Select superscript mode
n = 1: Select subscript mode
Cancel super/subscript mode ESC T 27 84 1B 54
Set by ESC S.
Select print direction ESC U n 27 85 n 1B 55 n
n = 0: Select bidirectional printing
n = 1: Select unidirectional printing (default)
Set/cancel double-wide mode ESC W n 27 87 n 1B 57n
n = 0: Cancel double-wide mode
n = 1: Start double-wide mode
Set horizontal margins ESC X n m 27 88 n m 1B 58 n m
n: Define the left margin
m: Define the right margin
Set double density image graphics mode
ESC Y n1 n2 data 27 89 n1 n2 data 1B 59 n1 n2 data
Set quadruple density image graphics mode
ESC Z n
1 n2 data 27 90 n1 n2 data 1B 5A n1 n2 data
Set presentation highlight *4 ESC [ @ n
1 n2 27 91 64 n1 n2 1B 5B 40 n1 n2
m1 m2 m3 m4 m1 m2 m3 m4 m1 m2 m3 m4
Set initial condition
ESC [ K n1 n2 n3 id 27 91 75 n1 n2 n3 id 1B 5B 4B n1 n2 n3 id
p1 p2 p1 p2 p1 p2
n1: High-order byte specifies a code page
n2: Low-order byte specifies a code page
Set code page ESC [ T 4 0 27 91 84 4 0 1B 5B 54 04 00
0 0 n
1 n2 0 0 n1 n2 00 00 n1 n2
Change graphics line spacing ESC [ \ 4 0 27 91 92 4 0 1B 5B 5C 04 00
0 0 n
1 n2 0 0 n1 n2 00 00 n1 n2
Select high resolution graphics mode
ESC [ g n1 n2 27 91 103 n1 n2 1B 5B 67 n1 n2
m data m data m data
*4 Set or cancel the presentation highlight (double-high) mode.
ASCII ESC [ @ n
1 n2 m1 m2 m3 m4
DEC 27 91 64 n1 n2 m1 m2 m3 m4
HEX 1B 5B 40 n1 n2 m1 m2 m3 m4
The parameters are set as follows:
n
1 = 4 n2 = 0 m1 = 0 m2 = 0
m
3 determines the character height and line feed amount:
m
3 Line Feed Character Height
0 No change No change
1 No change Single high
2 No change Double high
16 Normal line feed No change
17 Normal line feed Single high
18 Normal line feed Double high
32 Double line feed No change
33 Double line feed Single high
34 Double line feed Double high
m4 determines character width:
m4 = 0: No change m4 = 1: Single wide
m
4 = 2: Double wide
118
Appendix C Printer Command Summaries