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