4.1.8 CD5220 Command Mode
Command Hex Function Description
ESC DC1 1B 11
Overwrite mode
ESC DC2 1B 12
Vertical scroll mode
ESC DC3 1B 13
Horizontal scroll mode
ESC Q A CR 1B 51 41 [N]20
0D
Set string display mode, write string to upper line
ESC Q B CR 1B 51 42 [N]20
0D
Set string display mode, write string to lower line
ESC Q D CR 1B 51 44 [N]m20
0D
Upper line message scroll continuously m<40
ESC [ D 1B 5B 44
Move cursor left
BS 08
Move cursor left
ESC [ C 1B 5B 43
Move cursor right
HT 09
Move cursor right
ESC [ A 1B 5B 41
Move cursor up
ESC [ B 1B 5B 42
Move cursor down
LF 0A
Move cursor down
ESD [ H 1B 5B 48
Move cursor to home position
HOM 0B
Move cursor to home position
ESC [ L 1B 5B 4C
Move cursor to left-most position
CR 0D
Move cursor to left-most position
ESC [ R 1B 5B 52
Move cursor to right-most position
ESC [ K 1B 5B 4B
Move cursor to bottom position
ESC l x y 1B 6C x y
Move cursor to specified position
1 x 20 (column) ; y=1,2 (row)≦≦
ESC @ 1B 40
Initialize display
ESC W s x1
x2 y
1B 57 s x1 x2 y
Enable or disable the window range at horizontal
scroll mode
s=0,1 (disable, enable)
1 x1 x2 20 (column) ; y=1,2 (row)≦≦≦
CLR 0C
Clear display screen, and clear string mode
CAN 18
Clear cursor line, and clear string mode
ESC * n 1B 2A n
Brightness adjustment
1n4≦≦
ESC & s n m
[a(pl..p5)]
(m-n+1)
1B 26 s n m
[a(pl..p5)]
(m-n+1)
Define download characters
s=1 ; 32 n m 126 ; a=5≦≦ ≦
( p1..p5 = pattern1..pattern5 )
ESC ? n 1B 3F n
Delete download characters
32 n 126 (n=character code)≦≦
ESC % n 1B 25 n
Select / cancel download character set.
n=0, canceled ; n=1, selected
ESC _ n 1B 5F n
Set cursor ON/OFF
n=0,1 (Off,On)
ESC f n 1B 66 n
Select international fonts set
ESC c n 1B 63 n
Select fonts, ASCII code or JIS code
ESC = n 1B 3D n
Select peripheral device
n=1, printer ; n=2, display ; n=3, printer & display