EC-520 User’s Manual
Appendix. Commands List
Control Code
Hexadecimal Code
Function
HT
09
Horizontal
tab
LF
0A
Print and line feed
CR
0D
Print and carriage return
FF
0C
Page mode print and return
ESC SP
1B 20 n
Set right-side character spacing
ESC
!
1B 21 n
Select print mode(s)
ESC %
1b 25 n
Select/cancel user-defined character set
ESC &
1B 26 s n m a d1..dn
Define user-defined characters
ESC *
1B 2A m n1 n2
Select bit-image mode
ESC -
1B 2D n
Turn underline mode on/off
ESC 2
1B 32
Set 1/6 inch line spacing
ESC 3
1B 33 n
Set n/144 inch line spacing
ESC <
1B 3C
Return home
ESC ?
n
1B 3F n
Cancel user-defined characters
ESC @
1B 40
Initialize printer
ESC C
1B 43 n
Set the page length according to line spacing
ESC D
1B 45 n1 … nk NULL
Set horizontal tab positions
ESC E
1B 45 n
Turn emphasized mode on/off
ESC G
1B 47 n
Turn double-strike mode on/off
ESC J
1B 4A n
Print and feed paper
ESC K
1B 4B n
Print and reverse feed
ESC U
1B 55 n
Turn unidirectional printing mode on/off
ESC c 4 n 1B 63 34
Select paper sensor(s) to stop printing
ESC c 5 n 1B 63 35
Enable/disable panel buttons
ESC d
n
1B 64 n
Print and feed n lines
ESC e
n
1B 65 n
Print and reversely feed n lines
ESC i
1B 69
Full cut
ESC j
n
1B 6A n
Print and reversely feed n/144 inch
ESC m
1B 6D
Partial cut
ESC p m t1 t2
1B 6F
Generate cash drawer pulse
ESC v
1B 76
Transmit printer status
FS
!
1C 21 n
Select Chinese character mode
FS &
1C 26
Set Chinese language mode
FS -
1C 2D n
Turn Chinese characters underline on /off
FS .
1C 2E
Cancel Chinese language mode
FS 2
1C 32
Define user-defined Chinese characters
FS S
1C 53 n1 n2
Set Chinese character spacing
FS W
1C 57 n
Turn quadruple-size mode on/off for Chinese
characters
GS FF
1D 0C
Print and eject label
- 35 -