Starts the

 

 

 

 

 

STX-ETX mode.

 

 

 

 

 

 

 

Sends an <ENQ>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sends <ENQ>

 

 

Receives status signal.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Receives status byte.

 

Receives a check byte.

 

 

 

 

 

NO

Is the data buffer

 

 

 

 

 

 

Is the status an

YES

 

empty?

 

 

 

 

 

 

 

error?

 

 

YES

 

Horizontal

NO

 

 

 

 

 

 

Sends <STX>

 

 

 

 

 

parity check

 

 

 

Is an odd parity

NO

Check byte =

NO

 

 

 

 

 

 

check?

 

test byte?

 

 

 

 

 

YES

 

 

YES

 

 

 

 

 

(FF) H is set for the text

The test byte is set at (0)H.

Sends <ETX>

 

 

byte.

 

 

 

 

 

 

 

 

 

 

(Printing)

 

 

 

 

 

 

Sends <CAN>

 

Acquires the exclusive OR of the content

 

 

 

 

of the text byte and the data to sent, then

 

 

 

 

it is used as the content of the test byte.

Ends the

 

 

 

 

 

STX-ETX mode.

 

Transmits the data to the printer.

 

 

 

Is there a data block in

NO

NO

 

the STX-ETX mode?

 

 

 

 

Is this the last data in

a block?

YES

YES

RET

Check byte:

Horizotal parity of the printer. Test byte:

Horrizontal parity of the host computer.

STX-ETX mode flow diagram for host computer

– 21 –

Page 25
Image 25
Star Micronics SP300 manual STX-ETX mode flow diagram for host computer