SMC Networks SMCWHS-POS manual Command Set, Hex Code, Function Description

Models: SMCWHS-POS

1 18
Download 18 pages 56.72 Kb
Page 17
Image 17

7. Command Set

No.

Command

Hex Code

Function Description

1

LF

0A

Prints out buffer and advances one line

2

ESC J n

1B

4A n

Prints out buffer and advances n lines

 

 

18<=n<=FF

 

3

ESC 2

1B

32

Sets line space to 1/6 inch or 30 dots

4

ESC 3 n

1B

33 n

Sets line space to n dots, n=30 default

 

 

0B<=n<=FF

 

5

ESC ! n

1B

21 n

Sets fond size, n=00 default

 

 

n=00, 10,

n=10 double height

 

 

20, 30

n=20 double width

 

 

 

 

n=30 double height and double width (This

 

 

 

 

command gets overridden by ESC DC4

 

 

 

 

command.)

6

ESC SO

1B

0E

Sets double width printing for all characters

 

 

 

 

subsequent to the command in a line (This

 

 

 

 

command gets overridden by LF, CR, or ESC

 

 

 

 

DC4 command.)

7

ESC DC4

1B

14

Resets to default font size

8

ESC c 5 n

1B

63 35 n

Enables Feed & Online buttons n=00 default

 

 

00<=n<=01

Disables Feed & Online buttons n=01

 

 

 

 

(The buttons get enabled automatically when

 

 

 

 

paper roll being loaded.)

9

ESC * m n1

1B

2A m n1 Sets dot matrix

 

n2 d1…dx

n2 d1…dx

m=01 8 dots double density

 

 

m=01, 21

m=21 24 dots double density

 

 

00<=n1<=FFn1+256*n2 total number of horizontal dots

 

 

n2=00, 01

d=1 to print the dot

 

 

00<=d<=FF d=0 not to print the dot

 

 

 

 

x denotes the data number

 

 

 

 

x=n1+256*n2 when m=01

 

 

 

 

x=(n1+256*n2)*3 when m=21

10

ESC @

1B

40

Initializes printer and sets all defaults

11

ESC p

1B

70 m

Controls cash drawer

 

m n1 n2

n1 n2

n1 is the time for attracting micro-switch

 

 

m=00

n2 is the time for starting next attractive

 

 

01<n1<=n2

command, attractive time interval=n1*2ms,

 

 

n1<=n2<FF

response time interval=n2*2ms

 

 

 

 

 

16

Page 17
Image 17
SMC Networks SMCWHS-POS manual Command Set, Hex Code, Function Description