ITEM SYMBOL
Hexadecimal Decimal
FUNCTION
[38]
ESC K n1 n2
[1B,4B,n1,n2,data] H
Prints the 8-pin Standard-density graphic mode(60dpi)
data
[27,75,n1,n2,data] D
The total number of dots in the data is set by
n1+n2
×
256.
[39]
ESC L n1 n2
[1B,4C,n1,n2,data] H
Prints the 8-pin Double-density graphic mode(120dpi)
data
[27,76,n1,n2,data] D
The total number of dots in the data is set by
n1+n2
×
256.
[40]
ESC N n
[1B,4E,n] H [27,78,n] D
Sets bottom margin (1
≤
n
≤
255).
n specifies the number of lines not to be printed at the
end of a page.
For example: If the line spacing is 1/6 inch and the page length is 66 lines,
an ESC N 6 command causes the printer to print 60 lines, then skip 6 lines.
The space to be skipped is 1 inch (1/6 inch
x
6).
[41]
ESC O
[1B,4F] H [27,79] D
Cancels the bottom margin set by ESC N.
[42]
ESC P n
[1B,50] H [27,80] D
Sets/cancels proportional mode.
n=0: the proportional mode is cancelled
n=1: the proportional mode is selected
[43]
ESC Q n
[1B,51,23] H [27,81,35] D
Deselects the printer. DC1 selects the printer.
n=23h: the printer is deselected
n
≠
23h: this command is ignored
[44]
ESC R
[1B,52] H [27,82] D
Initializes horizontal tabs to every 8th column
starting from 9th column and clears vertical tabs.
[45]
ESC S n
[1B,53,n] H [27,83,n] D
Sets superscript or subscript character mode.
n=0: the superscript character mode is set
n=1: the subscript character mode is set
[46]
ESC T
[1B,54] H [27,84] D
Cancels super/subscript character mode.
[47]
ESC U n
[1B,55,n] H [27,85,n] D
Sets or cancels unidirectional printing.
n=0: the unidirectional printing is cancelled and the
bidirectional or predirectional is set according
to the setup options
n=1: unidirectional printing is set
[48]
ESC W n
[1B,57,n] H [27,87,n] D
Sets or cancels double width character mode.
n=0: the double width character mode is cancelled
n=1: the double width character mode is set
[49]
ESC X n m
[1B,5C,n,m] H
Sets left and right margins (0
≤
n<m
≤
255)
[27,92,n,m] D
n: left margin, m: right margin
The print area is between the nth and mth column.
[50]
ESC Y n1 n2
[1B,59,n1,n2,data] H
Prints 8-pin double-speed double-density graphic
data
[27,89,n1,n2,data] D
mode (120dpi). The total number of dots in the data is
set by n1+n2
×
256.
[51]
ESC Z n1 n2
[1B,5A,n1,n2,data] H
Prints 8-pin quadruple-density graphic mode (240dpi).
data
[27,90,n1,n2,data] D
The total number of dots in the data is set by
n1 + n2
x
256.
[52]
ESC [ - n1 n2
[1B,5B,2D,n1,n2,m1,m2] H
Sets various line modes.
m1 m2
[27,91,45,n1,n2,m1,m2] D
n1=2 and n2=0
m1=01h:
Underline is set
m1=02h:
Strike-through is set
m1=03h:
Overscore is set
m2=00h:
line mode at m1 is cancelled
m2=01h:
Single line is set
m2=02h:
Double line is set
m2=FFh:
all line modes are cancelled
105
B. Control code summary (IBM)