Computer (DTE)

Printer (DTE)

CD

(pin 1)

RTS

(pin 1)

RD

(pin 2)

TD

(pin 2)

TD

(pin 3)

RD

(pin 3)

DTR

(pin 4)

DSR

(pin 4)

SG

(pin 5)

SG

(pin 5)

DSR

(pin 6)

DTR

(pin 6)

RTS

(pin 7)

#

(pin 7)

CTS

(pin 8)

DTR

(pin 8)

RI

(pin 9)

#

(pin 9)

 

Shell

Shell

 

# Open wire

Figure 5.13b Example of RS-232C cable wiring (9-pin connector at computer side)

5.4.5Data protocols

Different types of protocols are used for the RS-232C serial interface, depending on the computer manufacturer. These protocols prevent the print data receive buffer from overflowing because interface data transmission is faster than buffer data printing. The printer uses specific character codes or an interface signal for each protocol to inform the computer of the buffer status, as follows:

(1)X-ON/X-OFF or DC1/DC3 protocol

With either protocol, the XOFF (DC3) code (hexadecimal 13) is transmitted from the printer when less than 255 bytes of buffer space remains. The XON (DC1) code (hexadecimal 11) is transmitted when less than 255 bytes of data remains in the buffer.

Normal data processing cannot be guaranteed if data is transmitted to the printer when insufficient buffer space is available after the XOFF code has been transmitted.

When the printer is first turned on, the DTR signal is set to the space state (ready) and an XON (DC1) code is transmitted from the printer. When the printer is placed offline, the XOFF code is transmitted even if the buffer is not full. The XON code is transmitted when the printer is placed online again.

5-16

Page 64
Image 64
Fujitsu C145-C037-01EN manual Computer DTE Printer DTE