User manual

31
10.8. EPSON ESC/POS Command List
EPSON ESC/POS Command List-1
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 ~ 38h
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 2E n Specify period
¾ n = a displayable character code
US , n 1F 2C n Specify comma
¾ n = a displayable character code
US ; n 1F 3B n Specify semicolon (period + comma)
¾ n = a displayable character code
US : 1F 3A Set starting/ending position of macro definition.
Ex.: 1F 3A … (macro string) … 1F 3A
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.