Star Micronics SP300 Series manual Example

Page 47

EXAMPLE

Actually, let us consider printing as a means of bit image. We will create the design below using bit image.

m1 m2 m3 m4 m5 m6 m7 m8 m9 m10 m11 m12 m13 m14 m15 m16 m17 m18 m19 m20 m21 m22 m23 m24 m25 m26 m27 m28 m29 m30

D8

D7

D6

D5

D4

D3

D2

D1

First, since the volume of data is 30, n1 = (1E)H. If the data m1

~m30 is converted to hexadecimal, it appears as shown below.

Printing Samples

Data

Binary

Hexa-

decimal

 

 

 

m1

00000001

01

 

 

 

m2

00011110

1E

 

 

 

m3

00111110

3E

 

 

 

m4

01011111

5F

 

 

 

m5

00011111

1F

 

 

 

m6

01011110

5E

 

 

 

m7

00011110

1E

m8

00111111

3F

 

 

 

m9

00101111

2F

m10

00111110

3E

Data

Binary

Hexa-

decimal

 

 

 

m11

00111110

3E

 

 

 

m12

00000010

02

 

 

 

m13

00000010

02

 

 

 

m14

00111110

3E

 

 

 

m15

00111110

3E

 

 

 

m16

00101111

2F

 

 

 

m17

00101111

2F

m18

00111110

3E

 

 

 

m19

00101110

2E

m20

00101110

2E

Data

Binary

Hexa-

decimal

 

 

 

m21

00111110

3E

 

 

 

m22

00101110

2E

 

 

 

m23

00101110

2E

 

 

 

m24

00111110

3E

 

 

 

m25

00101111

2F

 

 

 

m26

00101111

2F

 

 

 

m27

00111110

3E

m28

00111110

3E

 

 

 

m29

00000010

02

m30

00000010

02

– 43 –

Image 47
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