22 english print position control – Star Micronics SP298 Series User Manual

Page 25

Advertising
background image

22

ENGLISH

Print Position Control

Control Codes

Hexadecimal

Codes

Function

<LF>

0A

Line feed

<CR>

0D

Carriage Return

<ESC> “a”

n

1B 61

n

Feeds paper

n

lines

<HT> 09

Horizontal

tab

<ESC> “A”

n

1B 41

n

Defines

n

/72-inch line spacing

<ESC> “2”

1B 32

Sets

n

/72-inch line spacing

<ESC> “z” “0”
<ESC> “z” <0>

1B 7A 30
1B 7A 00

Sets line spacing to 1/12-inch

<ESC> “z” “1”
<ESC> “z” <1>

1B 7A 31
1B 7A 01

Sets line spacing to 1/6-inch

<ESC> “0”

1B 30

Sets line spacing to 1/8-inch

<ESC> “1”

1B 31

Sets line spacing to 7/72-inch

<ESC> “J”

n

1B 4A

n

One time

n

/72-inch feed

<ESC> “j”

n

1B 6A

n

One time

n

/72-inch backfeed

<ESC> “3”

n

1B 33

n

Sets line spacing to

n

/216-inch approximately

<ESC> “y”

1B 79

n

Sets line spacing to

n

/144-inch

<ESC> “D”

n

1

n

2 ...

<0>

1B 44

n

1

n

2 ...

00

Sets horizontal tab stops

<ESC> “l”

n

1B 6C

n

Sets left margin

<ESC> “Q”

n

1B 51

n

Sets right margin

<ESC> <GS> “a” “0”
<ESC> <GS> “a” <0>

1B 1D 61 30
1B 1D 61 00

Left justification (Default)

<ESC> <GS> “a” “1”
<ESC> <GS> “a” <1>

1B 1D 61 31
1B 1D 61 01

Centering

<ESC> <GS> “a” “2”
<ESC> <GS> “a” <2>

1B 1D 61 32
1B 1D 61 02

Right justification

Advertising