Star Micronics SP300 Series manual Control Codes Used for Peripheral Units, Other Control Codes

Page 35

Control Codes Used for Peripheral Units

Control codes

Hexadecimal

Function

Page

codes

 

 

 

<ESC> <BEL> n1 n2

1B 07 n1 n2

Adjust drive pulse width for peripheral unit 1

49

 

 

 

 

<BEL>

07

Deferred drive command for peripheral unit 1

49

<FS>

1C

Immediate drive command for peripheral unit 1

49

<SUB>

1A

Immediate drive command for peripheral unit 2

50

 

 

 

 

<EM>

19

Immediate drive command for peripheral unit 1

50

 

 

 

 

Other Control Codes

Control codes

 

Hexadecimal

 

Function

Page

 

codes

 

 

 

 

 

 

<RS>

 

1E

 

Sound buzzer

50

 

 

 

 

 

 

<CAN>

 

18

 

Cancel print data in buffer & Initialize printer

50

<DC3>

 

13

 

Set deselect mode

51

<DC1>

 

11

 

Set select mode

51

 

 

 

 

 

 

<ESC> “U” “1”

1B 55 31

 

Select uni-directional print mode

52

<ESC> “U” <1>

 

1B 55 01

 

 

 

 

 

<ESC> “U” “0”

1B 55 30

 

Select bi-directional print mode

52

<ESC> “U” <0>

 

1B 55 00

 

 

 

 

 

<ESC> “@”

 

1B 40

 

Initialize printer

52

<ENQ>

05

 

Enquiry

53

 

 

 

 

 

 

<STX>

02

 

Enter STX-ETX mode

53

<ETX>

03

 

Terminate STX-ETX mode

53

<ESC> “d” “0”

1B 64 30

 

 

 

<ESC> “d” <0>

 

1B 64 00

 

Trigger auto-cutter drive

54

<ESC> “d” “1”

1B 64 31

 

(Auto-cutting models only)

 

 

<ESC> “d” <1>

 

1B 64 01

 

 

 

 

 

 

 

 

 

<GS>...<LF>

 

1D...0A

 

Selection of validation characters

54

 

 

 

 

(Models with validation function only)

 

 

 

 

 

– 31 –

Image 35
Contents Dot Matrix Printer SP300 Series Programmer’s Manual Page Table of Contents IBM Character Set #1 DIP SW2-1 OFF, SW2-2 on Basic Operation LED flashes Validation printing mode is setSelf Print Test Switch Operation Combined Switch OperationMicro Feed Feed + on Line + Power on Page Page Parity bit Odd, even or none Interface SpecificationsTo Installation Manual Selectable. Refer to InstallationInput TTY-RXD, TTY-RXDR Output DTR, FAULT, TXD, RCH, RTSInterface Circuit Input RXD, CTSOutput SD, CS Input RD, RSRS-232C Connectors and SignalsRS-422A option MA current loop optionExample of interface connections for IBM PC Interface ConnectionsInstalling the optional interface board Installing the Optional Interface BoardData Structure DTR modeDTR Mark DTR Space This mode accessed when the DIP switch 3-5 is OFF ON/X-OFF modeOFF Status STX-ETX mode Page STX-ETX mode flow diagram for host computer Logic level Compatible with TTL level Handshaking Busy signalsInterface Timing PulsesTypical interface circuit Amphenol 57-30360 connector This connector mates with anEmergency Suspension This printer can print one line of validation printing Operating MethodGS data LF Printing FormatData format OtherOther position to be observed Cutting MethodCutting position Auto cutting control codesControl Codes Used for Line Spacing Control Codes Used for Character SettingControl Codes Used for Download Characters Control Codes Used for Page LayoutControl Code Used for Graphics Printing Other Control Codes Control Codes Used for Peripheral UnitsFunction Function Function Function Control Codes Used for Line Spacing Sets page length at n inches Set 1/8-inch line feed ESC 0 1BH 30HSet 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 Definition of download characters When the 5 × 9 font is setCode 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 03H ETXFunction U.S.A. & Europe DIP SW2-1 ON, SW2-2 on Character Code TablesPage 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