-30-
-31-
Command Code
Function description
description
(REMARK)
*
(hex)
ESC R n
1B 52 n
set international font sets
n=30~44
-n
international fonts code
ESC = n
1B 3D n
select peripheral
n=31~33
-n
31=printer only,
32=customer display only,
33=both peripheral
n=34H
only for double sides display
n=35H
n
34=message for customer side
35=message for operator side
Using command "ESC E r z", the value of
parameter:
r
58 = all rows
55 = upper row
44 = lower row
z
special function, the value is one of
30 = shift mode(default display mode)
31 = rotation mode
32 = blink mode
33= clear this row and switch to shift mode
34= overwrite mode
35= vertical mode
Mode 6: CD 5220 standard mode commands list
Command
Code description Function description
(hex)
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]x20 0D
set the string display mode,
write string to upper line
ESC Q B.....CR 1B 51 42 [n]x20 0D
set the string display mode,
write string to lower line
ESC Q D.....CR 1B 51 44 [n]x20 0D
upper line message scroll
continuously
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 1 x y
1B 6C x y
move cursor to specified
1<=x<=20, y=1,2
position