Star Micronics SP300 Series manual Code Outline Example

Page 51

FUNCTION

CODE

OUTLINE

FUNCTION

CODE

OUTLINE

EXAMPLE

Enable download character set

<ESC> “%” “1” or <ESC> “%” <1>

(1B)H (25)H (31)H or (1B)H (25)H (01)H

Enables the download character set

Download characters defined by the ESC & 0 code cannot be printed until enabled by this command.

Disable download character set

<ESC> “%” “0” or <ESC> “%” <0>

(1B)H (25)H (30)H or (1B)H (25)H (00)H

Disables the selected download character set and selects the built-in character set. When the power of the printer is initially turned on, the built-in character set is selected.

To print a download character when the 7 × 9 (half dot) font character size is set.

(1)Design the download character to be used at code posi- tions (21)H, (22)H, and (23)H.

m2 m4 m6

m1 m3 m5 m7

D8

D7

D6

D5

D4

D3

D2

D1

m2 m4 m6

m1 m3 m5 m7

D8

D7

D6

D5

D4

D3

D2

D1

m2 m4 m6

m1 m3 m5 m7

D8

D7

D6

D5

D4

D3

D2

D1

Char. Code=(21)H Char. Code=(22)H Char. Code=(23)H

(2) Define the download characters.

When character codes where the download character is written are specified as (21)H, (22)H, (23)H, n1 = (21)H, n2 =(23)H are obtained.

If the relationship between the character pattern data and printing head is specified to “not use pin 9”, m0 = (80)H is obtained. When data m1 to m7 are converted into hexadeci- mal data, they are indicated as follows.

– 47 –

Image 51
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 Page Layout Control Code Used for Graphics PrintingControl Codes Used for Download Characters 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