Download Programmer`s Manual

Transcript
Serial Communications
The proper baud rate and protocol settings are required to communicate with the host device. The printer
defaults to 19200 BAUD, 8 DATA BITS, NO PARIT, and one STOP BIT on initial power up.
Two communication handshaking protocols are supported, Serial Busy protocol and XON/XOFF protocols.
Serial Busy Protocol
For the serial busy handshaking mode, the Request To Send printer input (RTS) and Clear To Send printer
output (CTS) are used to control data flow to and from the printer.
RTS and CTS are considered to be valid or active when the signal level is positive (3 to 12VDC). A positive
RTS signal from the host device enables the printer. The RTS signal is monitored during data transmission
from the printer to the host device, the printer transmits data to the host device only if RTS input is high.
The printer raises CTS when it is ready to accept data. The printer lowers CTS when the print buffer has less
than 256 unused locations.
XON/XOFF Protocol
For the XON/XOFF handshaking mode, the printer transmits XON (0x11) when it is ready to accept data, and
XOFF (0x13) for the print buffer has less than 256 unused locations. Under XON/XOFF protocol, the data flow
out of the printer's serial port is halted on receipt of XOFF from Host device and resumed on receipt of XON.
RS232C Connections
The RS232C Interface signals for the printer are terminated on a 6 PIN RJ type data connector located at the
back of the printer.
Six connections are provided from the Serial Interface to the host computer. The table below lists the Serial
Interface signals and pin out on the RJ connector followed by the pin locations on the connector.
28