iDP-3420/3421/3423 User’s Manual

13.3ESC/POS Commands

13.3.1

Command List

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command

Function

 

Code

Page

 

1

 

HT

 

Horizontal tab

 

 

09H

105

 

2

 

LF

 

Printing and paper feed

 

 

0AH

105

 

3

 

CR

 

Printing

 

 

0DH

106

 

4

 

ESC " " n

Setting thr character right space

1BH 20H n

106

 

5

 

ESC !

n

Setting print mode batch

 

1BH 21H n

107

 

6

 

ESC % n

Specifying/Canceling

the

download

1BH 25H n

108

 

 

 

 

 

character set

 

 

 

 

 

7

 

ESC & s n m

Defining the download character set

1BH 26H s n m

109

 

 

[a[p] s ´ a]

[a[p] a´a] m-n+1

 

 

 

 

 

 

 

 

8

 

ESC * m n1 n2

Specifying the bit image mode

 

1BH 2AH m n1 n2

110

 

 

[d] n1 + 256 ´ n2

 

[d] n1 + 256´n2

 

 

 

 

 

 

 

 

9

 

ESC 2

Setting the 1/6-inch line feed rate

1BH 32H n

111

 

10

 

ESC 3 n

Setting the line feed width in minimum

1BH 33H n

111

 

 

 

 

 

pitch increments

 

 

 

 

 

11

 

ESC <

NOP

 

 

1BH 3CH

 

 

12

 

ESC @

Initializing the printer

 

 

1BH 40H

111

 

13

 

ESC D [n] k NUL

Setting the Horizontal tab position

1BH 44H [n] k 00

112

 

14

 

ESC J n

NOP

 

 

1BH 4AH n

 

 

15

 

ESC R n

Selecting the international character set

1BH 52H n

113

 

16

 

ESC U n

Specifying/Canceling

the

unidirectional

1BH 55H n

114

 

 

 

 

 

print mode

 

 

 

 

 

17

 

ESC c 0 n

NOP

 

 

1BH 63H 30 n

 

 

18

 

ESC c 4 n

Selecting the paper near end sensor valid

1BH 63H 34H n

115

 

 

 

 

 

for print stop

 

 

 

 

 

19

 

ESC c 5 n

Selecting the panel switch enable/disable

1BH 63H 35H n

115

 

20

 

ESC d n

Printing and n-line paper feed

 

1BH 64H n

116

 

21

 

ESC i

 

Full cut

 

 

1BH 69H

116

 

22

 

ESC m

Partial cut

 

 

1BH 6DH

116

 

23

 

ESC p m n1 n2

Specifying the pulse generation

1BH 70H m n1 n2

117

 

24

 

ESC r n

Selecting the printing color

 

1BH 72H n

118

 

25

 

ESC t n

Selecting the character code table

1BH 74H n

118

 

26

 

ESC u n

Sending the status for peripheral device

1BH 75H n

119

 

27

 

ESC v

Sending the printer status

 

1BH 76H

120

 

28

 

ESC { n

Specifying/Canceling the inverted character

1BH 7BH n

121

 

 

 

 

 

print

 

 

 

 

 

29

 

GS E n

NOP

 

 

1DH 45H n

 

 

30

 

ESC ¤

n

Defining the message

 

 

1BH 2FH n

121

 

31

 

ESC DC3 n

Printing the message

 

 

1BH 13H n

122

 

32

 

ESC y n

Setting the print lines after paper near end

1BH 79nH

122

 

 

 

 

 

detection

 

 

 

 

 

33

 

ESC DC2 n1 n2

Deleting the download character, message,

1BH 12H n1 n2

123

 

 

 

 

 

bit image

 

 

 

 

 

34

 

GS * n1 n2

Defining the download, bit image

1DH 2AH n1 n2

124

 

35

 

GS ¤ m

Printing the download, bit image

1DH 2FH m

125

105

CITIZEN

Page 105
Image 105
Citizen Systems iDP-3420, iDP-3421, iDP-3423 user manual 13.3 ESC/POS Commands, ESC NOP 1BH 3CH ESC @, 1BH 6DH, Esc ¤