beautypg.com

Control codes used for page layout, Control code used for graphics printing, Control codes used for download characters – Star Micronics SP300 User Manual

Page 34

background image

– 30 –

Control Codes Used for Page Layout

Control codes

Hexadecimal

Function

Page

codes

0C

Page feed (form feed)

37

“C” n

1B 43 n

Set page length at n lines

37

“C” <0> n

1B 43 00 n

Set page length at n inches

37

“B” n1 n2

1B 42 n1 n2

Set vertical tab positions

38

0B

Execute vertical tab

38

“N” n

1B 4E n

Set bottom margin

38

“O”

1B 4F

Cancel bottom margin

39

“1” n

1B 6C n

Set left margin

39

“Q” n

1B 51 n

Set right margin

39

“D” n1 n2

1B 44 n1 n2

Set horizontal tab position

40

09

Execute the horizontal tab

40

Control Code Used for Graphics Printing

Control codes

Hexadecimal

Function

Page

codes

“1”

1B 31

Set 7/72-inch line feed

41

“A” n

1B 41 n

Define n/72-inch line feed

41

“2”

1B 32

Set n/72-inch line feed

41

“J” n

1B 4A n

One time line feed of n/72-inch

41

“z” “0”

1B 7A 30

Set 1/12-inch line feed

41

“z” <0>

1B 7A 00

“3” n

1B 33 n

Set n/216-inch line feed simulation

42

“y” n

1B 79 n

Set n/144-inch line feed (Models with 1/44”

42

-pitch paper feed mechanism only)

“K” n1 <0>

1B 4B n1 00

8 dot single density bit image

42

“L” n1 n2

1B 4C n1 n2

8 dot double density bit image

44

“h” “1”

1B 68 31

Select vertical expanded character mode

45

“h” <1>

1B 68 01

“h” “0”

1B 68 30

Cancel vertical expanded character mode

45

“h” <0>

1B 68 00

Control Codes Used for Download Characters

Control codes

Hexadecimal

Function

Page

codes

“&” <0> n1 n2

1B 26 00 n1 n2

Definition of down load characters

46

“%” “1”

1B 25 31

Enable download character set

47

“%” <1>

1B 25 01

“%” “0”

1B 25 30

Disable download character set

47

“%” <0>

1B 25 00