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
(1)
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.