-11-
-10-
5. Control Code Set
HEX
CODE
HEX
CODE
00
NULL
0D
CR
01
Md1
1F 01
US MD1
02
Md2
1F 02
US MD2
03
Md3
1F 03
US MD3
08
BS
1F 0D
US CR
09
HT
1F 42
US B
0A
LF
1F 24
US $
1F 0A
US LF
18
CAN
0B
HOM
1B 3D
ESC =
0C
CLR
1B 40
ESC @
6. ESC/POS
Commands List
Command
Code description Function description
(Hex)
BS
08
Move cursor left
HT
09
Move cursor right
LF
0A
Move cursor down
US LF
1F 0A
Move cursor up
HOM
0B
Move cursor to home position
CR
0D
Move cursor to left-most position
US CR
1F 0D
Move cursor to right-most position
US B
1F 42
Move cursor to bottom position
US $ n m
1F 24 n m
1 <= n (column)
<= 20 m (line)
= 1 or 2
CLR
0C
Clear display screen
CAN
18
Clear cursor line
ESC = n
1B 3D n
Select peripheral device
1 <= n <= 3
ESC @
1B 40
Initialize display
US MD1
1F 01
Specify overwrite mode
US MD2
1F 02
Specify vertical scroll mode
US MD3
1F 03
Specify horizontal scroll mode
ESC % n
1B 25 n
1 <= n <= 3
ESC & s n m
1B 26 s n m
s = 1, 32<=n
<=m<=126
Move cursor to specified position; nth
column and mth line
Select/cancel user-defined character set
Define user-defined character set
Command
Code description Function description
(Hex)
ESC ? n
1B 3F n
32 <= n <= 126
ESC R n
1B 52 n
0 <= n <= 13
ESC t n
1B 74 n
Select character code table
ESC W n m
1B 57 n m
1 <= n <=4
M = 0, 1, 48, 49
US C n
1F 43 n
N = 0, 1, 48, 49
US E n
1F 45 n
0 <= n <= 255
US T h m
1F 54 h m
0 <= h <= 23
0 <= m <= 59
US U
1F 55
Display time counter
US X n
1F 58 n
1 <= n <= 4
US r n
1F 72 n
n = 0,1,48,49
US v n
1F 76 n
n = 0,1,48,49
US @
1F 40
Execute self-test
US :
1F 3A
Start/end macro definition
US ^ n m
1F 5E n m
0 <= n <= 255
0 <= m <= 255
Cancel user-defined characters
Select an international character set
Select/cancel window range
Select/cancel cursor display
Set display screen blink interval
Set and display time counter
Brightness adjustment
Select/cancel reverse characters
Status confirmation by DTR signal
Execute and quit macro
-13-
-12-
-15-
-14-
Command description:
BS-Move cursor left
HT-Move cursor right
LF-Move cursor down
US LF-Move cursor up
Command Name:
BS
Format:
ASCII
BS
Hex08
Decimal8
Description:
Moves the cursor one character position to the
left.
Command Name:
HT
Format:
ASCII
HT
Hex
09
Decimal
9
Description:
Moves the cursor one character position to the
right
.
Command Name:
LF
Format:
ASCII
LF
Hex
0A
Decimal
10
Description:
Moves the cursor down one line.
Command Name:
US
LF
Format:
ASCII
US
LF
Hex
1F
0A
Decimal
31
10
Description:
Moves the cursor up one line.
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
HOM-Move cursor to home position
CR-Move cursor to left-most position
US CR-Move cursor to right-most position
US B-Move cursor to bottom position
Command Name:
HOM
Format:
ASCII
HOM
Hex
0B
Decimal
11
Description:
Moves the cursor to the left-most position on
the
upper line (home position). Home position
indicates
the first column of the upper line.
Command Name:
CR
Format:
ASCII
CR
Hex
0D
Decimal
13
Description:
Moves the cursor to the left-most position on
the
current line. The cursor is moved only within
the
current window.
Command Name:
US
CR
Format:
ASCII
US
CR
Hex
1F
0D
Decimal
31
13
Description:
Moves the cursor to the right-most position on
the
current line.
Command Name:
US
B
Format:
ASCII
US
B
Hex
1F
42
Decimal
31
66
Description:
Moves the cursor to the bottom position.
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
PDF Version
| Previous Page
| Next Page
::
Customer Display FAQ
:: PDF
brochure
:: Specification
:: Software Download
Customer Display
Index:
VFD |
LCD |
Arabic & Chinese Display |
Double Side Display
TYSSO
Product Links:
Barcode Scanner |
Magstripe Card Reader
/ Writer |
POS Customer Display |
POS Keyboard
Touchscreen POS System
| Cash Drawer |
Serial-Ethernet
Converter | Links to Other Sites |
Receipt Printer
www.barcode-manufacturer.com