32
Page Formatting
Control codes
<ESC> "C" n
<ESC> "C" <0> n
<ESC> "N" n
<ESC> "O"
<ESC> "1" n
<ESC> "Q" n
Print Position Control
Control codes
<LF>
<CR>
<ESC> "a" n
<FF>
<HT>
<VT>
<ESC> "A" n
<ESC> "2"
<ESC> "z" "1"
<ESC> "z" <1>
<ESC> "0"
<ESC> "1"
<ESC> "J" n
<ESC> "j" n
<ESC> "3" n
<ESC> "y" n
<ESC> "I" n
<ESC> "B" n1 n2 ... <0> 1B 42 n1 n2 ... 00
<ESC> "D" n1 n2 ...
<0>
Hexadecimal codes
Function
1B 43 n
Set page length in lines
1B 43 00 n
Set page length in inches
1B 4E n
Set bottom margin
1B 4F
Cancel bottom margin
1B 6C n
Set left margin
1B 51 n
Set right margin
Hexadecimal codes
Function
0A
Line feed
0D
Carriage Return
1B 61 n
Feed paper n lines
0C
Form feed
09
Horizontal tab
0B
Vertical tab
1B 41 n
Define n/72-inch line spacing
1B 32
Set line spacing to n/72-inch
Set line spacing to 4 mm
1B 7A 31
1B 7A 01
Set line spacing to 1/6-inch
Set line spacing to 3 mm
1B 30
Set line spacing to 1/8-inch
1B 31
Set line spacing to 7/72-inch
One time n/4 mm feed
1B 4A n
One time n/72-inch feed
One time n/4 mm backfeed
1B 6A n
One time n/72-inch backfeed
1B 33 n
Set line spacing to n/216-inch
1B 79 n
Set line spacing to n/144-inch
1B 49 n
One time n/8-mm feed
Set vertical tab stops
1B 44 n1 n2 ... 00
Set horizontal tab stops
Receipt-
Slip
Page
printer
printer
46
46
46
46
47
47
Receipt-
Slip
Page
printer
printer
48
48
48
48
48
49
49
49
49
49
50
50
50
50
50
51
51
51
51
51
52
52