BTP-M300 Service Manual
- 41 -
Appendix 2 Command list
Code Hex Decimal Description
HT 09 009 Horizontal tab
LF 0A 010 Print and line feed
CR 0D 013 Print and carriage return
DLE EOT n 10 04 n 016 004 n Real-time status transmission
DLE ENQ n 10 05 n 016 005 n Real-time request to printer
DLE DC4 10 14 016 020
Generate cash drawer open pulse at
real-time
XON 11 017 Allow data back
XOFF 13 019
Generate cash drawer open pulse at
real-time
ESC SP n 1B 20 n 027 032 n Allow data back
ESC ! n
1B 21 027 033 n Select character print mode(s)
ESC % n 1B 25 n 027 037 n
Select/cancel user-defined character
set
ESC & 1B 26 027 038 Define user-defined characters
ESC * 1B 2A 027 042 Select bit-image mode
ESC - n 1B 2D n 027 045 n Turn on/off underline mode
ESC 2 1B 32 027 050 Select default line spacing
ESC 3 n 1B 33 n 027 051 n Set line spacing
ESC < 1B 3C 027 060 Print head back to original position
ESC = n 1B 3D n 027 61 n Select printer
ESC ? n
1B 3F n 027 063 n Cancel user-defined characters
ESC @ 1B 40 027 064 Initialize printer
ESC D 1B 44 027 068 Set horizontal tab positions
ESC E n 1B 45 n 027 069 n Turn on/off bold mode
ESC G n 1B 47 n 027 071 n Turn on/off double printing mode
ESC J n 1B 4A n 027 074 n Print and feed n lines
ESC K n 1B 4B n 027 075 n Print and reverse feed n lines
ESC M n 1B 4D n 027 077 n Select font
ESC R n 1B 52 n 027 082 n Select an international character set
ESC U n 1B 55 n 027 085 n
Select /cancel unidirectional printing
mode
ESC a n 1B 61 n 027 097 n Select justification
ESC c 3 n 1B 63 33 n 027 099 051 n
Select paper sensor(s) to output
paper-end signals
ESC c 4 n 1B 63 34 n 027 099 052 n Select paper sensor(s) to stop printing
ESC c 5 n 1B 63 35 n 027 099 053 n Enable/disable panel buttons
ESC d n 1B 64 n 027 100 n Print and feed n lines
ESC e n 1B 65 n 027 101 n Print and reverse feed n lines
ESC p m 1B 70 n 027 112 m General cash drawer control pulse
ESC r n 1B 72 n 027 114 n Select print color
ESC t n 1B 74 n 027 116 n Select code page