28
Control codes Hexadecimal
codes
Function
<ESC> “I” n 1B 6C n Set left margin
<ESC> “Q” n 1B 51 n Set right margin
<LF> 0A Line Feed
<ESC> “a” n 1B 61 n Feed paper n lines
<FF> 0C Form Feed
<HT> 09 Horizontal tab
<VT> 0B Vertical tab
<ESC> “z” “1” 1B 7A 31 Set line spacing to 4 mm
<ESC> “0” 1B 30 Set line spacing to 3 mm
<ESC> “J” n 1B 4A n One time n/4 mm feed
<ESC> “I” n 1B 49 n One time n/8 mm feed
<ESC> “B” n1 n2…<0> 1B 42 n1 n2 … 00 Set vertical tab stops
<ESC> “D” n1 n2…<0> 1B 44 n1 n2 … 00 Set horizontal tab stops
<ESC> <GS> “A” n1 n2 1B 1D 41 n1 n2 Absolute position setting
<ESC> <GS> “R” n1 n2 1B 1D 52 n1 n2 Relative position setting
<ESC> <GS> “a” n 1B 1D 61 n Alignment
<ESC> “K” n <0>
m1 m2 …
1B 48 n 00 m1 m2 Print normal density graphics
<ESC> “L” n <0>
m1 m2 …
1B 4C n1 n2 m1
m2
Print high density graphics
<ESC> “k” n <0> d1 1B 6B n 00 d1 Print fine density graphics
<ESC> “X” n1 n2 1B 58 n1 n2 Print fine density graphics
<ESC> <FS> “p” n m 1B 1C 70 n m Print NV bit image
<ESC> “&” ”1” ”1”
n m1 m2 … m48
1B 26 31 31 n
m1 m2 … m48
<ESC> “&” <1> <1>
n m1 m2 … m48
1B 26 01 01
n m1 m2 … m48
Define download character
<ESC> “&” ”1” ”0” n 1B 26 31 30 n
<ESC> “&” <1> <0> n 1B 26 01 00 n
Delete a download character
<ESC> “%” “1”
<ESC> “%” <1>
1B 25 31
1B 25 01
Enable download character
set
<ESC> “%” “0”
<ESC> “%” <0>
1B 25 30
1B 25 00
Disable download character
set
<ESC> <GS> “*” xy 1B 1D 2A 78 79 Definition of download bit
image
<ESC> <GS> “/” m 1B 1D 2F 6D Printing of download bit
image
<ESC> <BEL> n1 n2 1B 07 n1 n2 Define drive pulse width for
peripheral device #1.
<BEL> 07 Control peripheral device #1
<FS> 1C Control peripheral device #1
immediately.
<EM> 19 Control peripheral device #2
immediately