7. CONTROL CODES

Control Codes Used for Character Setting

Control codes

 

Hexadecimal

Function

Page

 

codes

 

 

 

 

<ESC> “R” n

 

1B 52 n

Select international character set

32

<ESC> “6”

 

1B

36

Select IBM character set #2

32

<ESC> “7”

 

1B

37

Select IBM character set #1

32

<ESC> “M”

 

1B

4D

Select 7 × 9 (half dot) font

33

<ESC> “P”

 

1B

50

Select 5 × 9 (2 pulses + 1 dot) font

33

<ESC> “:”

 

1B

3A

Select 5 × 9 (3 pulses + 1 dot) font

33

<SO>

 

0E

Select expanded character mode

33

<DC4>

 

14

 

Cancel expanded character mode

34

<ESC> “W” “1”

1B 57 31

Select expanded character mode

34

<ESC> “W” <1>

 

1B

57 31

 

 

 

<ESC> “W” “0”

1B 57 30

Cancel expanded character mode

34

<ESC> “W” <0>

 

1B

57 30

 

 

 

<ESC> “E”

 

1B

45

Select emphasized print mode

34

<ESC> “F”

 

1B

46

Cancel emphasized print mode

34

<ESC> “-” “1”

1B 2D 31

Select underline mode

35

<ESC> “-” <1>

 

1B

2D 01

 

 

 

<ESC> “-” “0”

1B 2D 30

Cancel underline mode

35

<ESC> “-” <0>

 

1B

2D 00

 

 

 

<ESC> “_” “1”

1B 5F 31

Select upperline mode

35

<ESC> “_” <1>

 

1B

5F 01

 

 

 

<ESC> “_” “0”

1B 5F 30

Cancel upperline mode

35

<ESC> “_” <0>

 

1B

5F 00

 

 

 

<ESC> “4”

 

1B

34

Select highlighted print mode

35

<ESC> “5”

 

1B

35

Cancel highlighted print mode

36

<SI>

 

0F

Select inverted print mode

36

<DC2>

12

 

Cancel inverted print mode

36

 

 

 

 

 

 

Control Codes Used for Line Spacing

Control codes

 

Hexadecimal

Function

Page

 

codes

 

 

 

 

<LF>

 

0A

Line feed

36

 

 

 

 

 

<CR>

 

0D

Line feed (same as LF)

36

<ESC> “z” “1”

1B 7A 31

Set 1/6-inch line feed

36

<ESC> “z” <1>

 

1B 7A 01

 

 

 

 

 

 

 

 

<ESC> “0”

 

1B 30

Set 1/8-inch line feed

37

<ESC> “a” n

 

1B 61 n

Feed paper n lines

37

– 29 –

Page 33
Image 33
Star Micronics SP300 manual Control Codes Used for Character Setting, Control Codes Used for Line Spacing