
4. Command sets
Command Control code Description
LF 0Ah Line Feed
CR 0Dh Carriage return.
ESC+SP+n 1Bh+20h+n, 0<n<255
Sets the character spacing
ESC+’-’+n 1Bh+2Dh+n, 0<n<1 Enable/Disable under line mode
ESC+’_’+n 1Bh+5Fh+n, 0<n<1 Enable/Disable upper line mode.
ESC+’ ‘ ‘+n+data 1Bh+27h+n+data Print curving graph lines
ESC+’[‘+n+0+data 1Bh+5Bh+n+00h+data
Print the bit image mode
ESC+’*’+m+n1+n2+data 1Bh+2Ah+m+n1+n2+data Print the bit image mode
ESC+’(‘+’B’+n+n1+barcode
data 1Bh+28h+42h+n+n1
1 < n < 5 Barcode printing mode.
(See Table 4)
ESC+’{‘+n 1Bh+7Bh+n, 0<n<1
Enable/Disable upside-down printing
mode
ESC+’@’ 1Bh+40h Initialize printer
ESC+’1’+n 1Bh+31h+n, 0<n<255 Set line spacing rate of minimum
pitch
ESC+’3’+n 1Bh+33h+n, 0<n<255
Set line spacing (Use in graphic
mode)
ESC+’H’+n 1Bh+48h+n, 0<n<6 Select/Cancel n times height
ESC+’K’+n1+n2+data 1Bh+4Bh+n1+n2+data Print the bit image mode
ESC+’M’+n 1Bh+4Dh+n, 0<n<2
Select Ascii character font
(see Table 1) only use in standard
mode
ESC+’R’+n 1Bh+52h+n
0 < n < 6 (Chinese version)
0 < n <10(Standard version)
Select an international character
(see Table 2)
ESC+’W’+n 1Bh+57h+n, 0<n<6 Select/Cancel n times width
ESC+’Z’+n 1Bh+5Ah+n, 0<n<6 Select/Cancel n times height and n
times width
ESC+’b’+n 1Bh+62h+n, 0 < n < 7 Communication speed setting.
(See Table 3)
ESC+’c’+’3’+n 1Bh+63h+33h+n, 0<n<1
Enable/disable paper sensor
ESC+’c’+’5’+n 1Bh+63h+35h+n, 0<n<1
Enable/disable switch
ESC+’c’+’6’+n 1Bh+63h+36h+n, 0<n<1
Enable/disable Temperature sensor
ESC+’d’+n 1Bh+64h+n, 1 < n < 255 After printing feed n lines