38
EPSON ESC/POS Command List
Command
Code (hex)
Function Description
US r
n
1F 72
n
Select/cancel reverse character.
n
= 00,01
US MD1
1F 01
Specify overwrite mode.
US MD2
1F 02
Specify vertical scroll mode.
US MD3
1F 03
Specify horizontal scroll mode.
CAN
18
Clear cursor line
ESC #
n
1B 23
n
Command type select
n
= 30h ~ 37h
US #
n x
1F 23
n x
Turn annunciator on/off.
n
= 0 for annunciator off
n
= 1 for annunciator on
x
= 1 ~ 14h, for columns location.
US C
n
1F 43
n
Set cursor on/off
n
= 00, 01
BS
08
Move cursor left
HT
09
Move cursor right
US LF
1F 0A
Move cursor up
LF
0A
Move cursor down
US CR
1F 0D
Move cursor to right-most position
CR
0D
Move cursor to left-most position
HOM
0B
Move cursor to home position
US B
1F 42
Move cursor to bottom position
US $
x y
1F 24
x y
Move cursor to specified position
x
= 1 ~ 14h, for columns location.
y
= 1 ~ 2, for lines location.
CLR
0C
Clear display screen
US E
n
1F 45
n
Blink display screen
n
= 00h ~ FFh
n
= 0 for no blink
ESC @
1B 40
Initialize display
US ,
n
1F 2C
n
Specify comma
n
= a displayable character code
US .
n
1F 2E
n
Specify period
n
= a displayable character code
US ;
n
1F 3B
n
Specify semicolon ( comma)
n
= a displayable character code
US :
1F 3A
Set starting/ending position of macro
definition.
Ex.: 1F 3A … (macro string) … 1F 3A
US ^
n m
1F 5E
n m
Execute and quit macro. It’s an interval of n
between the two words. It’s an interval of m
between the two strings.
00 (
n
,
m
) FFh
n
= Word time
m
= show string time
US @
1F 40
Execute self - test
US T h m
1F 54 h m
Display time
0
≦
h
≦
17h, for hours setting.
0
≦
m
≦
3Bh, for minutes setting.
US U
1F 55
Display time continuously
US X
n
1F 58
n
Brightness adjustment
n
= 1 ~ 4