Star Micronics SP300 Control Codes Used for Page Layout, Control Code Used for Graphics Printing

Page 34

Control Codes Used for Page Layout

Control codes

Hexadecimal

Function

Page

codes

 

 

 

 

<FF>

 

0C

 

Page feed (form feed)

37

 

 

 

 

 

 

<ESC> “C”

n

1B

43 n

Set page length at n lines

37

<ESC> “C” <0> n

1B

43 00 n

Set page length at n inches

37

<ESC> “B”

n1 n2

1B

42 n1 n2

Set vertical tab positions

38

 

 

 

 

 

 

<VT>

 

0B

 

Execute vertical tab

38

<ESC> “N”

n

1B

4E n

Set bottom margin

38

<ESC> “O”

 

1B 4F

Cancel bottom margin

39

 

 

 

 

 

 

<ESC> “1”

n

1B

6C n

Set left margin

39

<ESC> “Q”

n

1B

51 n

Set right margin

39

<ESC> “D”

n1 n2

1B

44 n1 n2

Set horizontal tab position

40

 

 

 

 

 

 

<HT>

 

09

 

Execute the horizontal tab

40

 

 

 

 

 

 

Control Code Used for Graphics Printing

Control codes

 

Hexadecimal

Function

Page

 

codes

 

 

 

 

 

<ESC> “1”

 

 

1B 31

Set 7/72-inch line feed

41

<ESC> “A”

n

 

1B

41 n

Define n/72-inch line feed

41

 

 

 

 

 

 

<ESC> “2”

 

 

1B 32

Set n/72-inch line feed

41

<ESC> “J”

n

 

1B

4A n

One time line feed of n/72-inch

41

<ESC> “z” “0”

1B 7A 30

Set 1/12-inch line feed

41

<ESC> “z” <0>

 

1B 7A 00

 

 

 

<ESC> “3”

n

 

1B

33 n

Set n/216-inch line feed simulation

42

<ESC> “y”

n

 

1B

79 n

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

42

 

 

 

 

 

-pitch paper feed mechanism only)

 

 

 

 

 

 

<ESC> “K”

n1 <0>

 

1B

4B n1 00

8 dot single density bit image

42

<ESC> “L”

n1 n2

 

1B

4C n1 n2

8 dot double density bit image

44

 

 

 

 

 

<ESC> “h” “1”

1B 68 31

Select vertical expanded character mode

45

<ESC> “h” <1>

 

1B 68 01

 

 

 

<ESC> “h” “0”

1B 68 30

Cancel vertical expanded character mode

45

<ESC> “h” <0>

 

1B 68 00

 

 

 

 

 

 

 

 

 

 

Control Codes Used for Download Characters

Control codes

 

Hexadecimal

Function

Page

 

codes

 

 

 

 

<ESC> “&” <0> n1 n2

 

1B 26 00 n1 n2

Definition of down load characters

46

<ESC> “%” “1”

1B 25 31

Enable download character set

47

<ESC> “%” <1>

 

1B 25 01

 

 

 

<ESC> “%” “0”

1B 25 30

Disable download character set

47

<ESC> “%” <0>

 

1B 25 00

 

 

 

 

 

 

 

 

– 30 –

Image 34
Contents Dot Matrix Printer SP300 Series Programmer’s Manual Page Table of Contents IBM Character Set #1 DIP SW2-1 OFF, SW2-2 on LED flashes Validation printing mode is set Basic OperationSwitch Operation Combined Switch Operation Self Print TestMicro Feed Feed + on Line + Power on Page Page Selectable. Refer to Installation Interface SpecificationsTo Installation Manual Parity bit Odd, even or noneInput RXD, CTS Output DTR, FAULT, TXD, RCH, RTSInterface Circuit Input TTY-RXD, TTY-RXDRInput RD, RS Output SD, CSConnectors and Signals RS-232CMA current loop option RS-422A optionInterface Connections Example of interface connections for IBM PCInstalling the Optional Interface Board Installing the optional interface boardDTR mode Data StructureDTR Mark DTR Space ON/X-OFF mode This mode accessed when the DIP switch 3-5 is OFFOFF Status STX-ETX mode Page STX-ETX mode flow diagram for host computer Pulses Handshaking Busy signalsInterface Timing Logic level Compatible with TTL levelTypical interface circuit This connector mates with an Amphenol 57-30360 connectorEmergency Suspension Operating Method This printer can print one line of validation printingOther Printing FormatData format GS data LFAuto cutting control codes Cutting MethodCutting position Other position to be observedControl Codes Used for Character Setting Control Codes Used for Line SpacingControl Code Used for Graphics Printing Control Codes Used for Page LayoutControl Codes Used for Download Characters Control Codes Used for Peripheral Units Other Control CodesFunction Function Function Function Control Codes Used for Line Spacing Control Codes Used for Page Layout Set vertical tab positions Left end Printing area Left margin n Right margin n columns Set horizontal tab position Control Codes Used for Graphics Printing Set n/216-inch line feed simulation ESC 3 n 1BH 33H n Example Printing Possible Code Outline When the 5 × 9 font is set Definition of download charactersCode Outline Example Example of transmitting data 10 × n1 ms 10 × n2 ms Printing and paper feed are prohibited Other Control Codes Function Initialize printer ESC @ 1BH 40H ETX 03HFunction Character Code Tables U.S.A. & Europe DIP SW2-1 ON, SW2-2 onPage IBM Character Set #1 DIP SW2-1 OFF, SW2-2 on Page IBM Character Set #2 DIP SW2-1 ON, SW2-2 OFF Page Japan DIP SW2-1, OFF, SW2-2 OFF Page International Character Sets Memo Page Overseas Subsidiary Companies Star Micronics AMERICA, INC