Chapter 5: Communication
A714 Owner’s Guide
April 1998
22
Using BASIC to Send Commands
Using BASIC to Send Commands
In BASIC, printer commands are sent as a string of characters preceded by the PRINT
command. For example,
PRINT#1, CHR$(&H0A)
(where #1 is the file number of a communication line opened by the
OPEN
“COM1:”
command. For more information, see your BASIC documentation.)
sends the hexadecimal number 0A to the printer, which causes the printer to print the
contents of its print buffer. Previously sent commands tell the printer exactly how this
data should appear on the paper. For example,
PRINT#1, CHR$(&H1b)+CHR$(&H21)+CHR$(&H21); “ABC”; CHR$(&H0A)
sends the hexadecimal numbers 1B 21 21 41 42 43 0A to the printer. This causes the
printer to set itself to double-wide mode (1B 21 21), load the print buffer with “ABC” (41
42 43), and to print (0A). The communication link the BASIC program sends must be
matched to that of the printer.
RS-232C Interface Protocols
RS-232C Interface Protocols
The RS-232C interface uses either XON/XOFF or DTR/DSR protocol. For XON/XOFF, a
particular character is sent back and forth between the host computer and the printer to
regulate the communication. For DTR/DSR, changes in the DTR/DSR signal coordinate
the information flow.
The RS-232C version of the A714 offers the standard options which are selected in Printer
Setup mode. For more information on these settings, see “Printer Setup Mode” on page
26.
XON/XOFF Protocol
XON/XOFF Protocol
The XON/XOFF characters coordinate the information transfer between the printer and
the host computer. The printer sends an XON character when it is ready to receive data
and it sends an XOFF character when it cannot accept any more data. The software on the
host computer must monitor the communication link as shown in the following flowchart
in order to send data at appropriate times.
Содержание A714
Страница 1: ...A714 Impact Printer Owner s Guide A714 D100...
Страница 2: ......
Страница 3: ...A714 Impact Printer Owner s Guide A714 D100 AXIOHM Ithaca New York...
Страница 13: ...Chapter 1 About the A714 Printer A714 Owner s Guide April 1998 4...
Страница 20: ...A714 Owner s Guide Chapter 3 Diagnostics April 1998 11...
Страница 25: ...Chapter 3 Diagnostics A714 Owner s Guide April 1998 16...
Страница 75: ...Chapter 6 Commands A714 Owner s Guide April 1998 66...
Страница 95: ...Chapter 6 Commands A714 Owner s Guide April 1998 86...
Страница 101: ...Appendix A Specifications A714 Owner s Guide April 1998 92...
Страница 105: ...Appendix B Character Sets A714 Owner s Guide April 1998 96 Code Page 737 Greek Code Page 737 Greek...
Страница 107: ...Appendix B Character Sets A714 Owner s Guide April 1998 98 Code Page 860 PC Portuguese Code Page 860 PC Portuguese...
Страница 110: ...A714 Owner s Guide Appendix B Character Sets April 1998 101 Katakana Katakana...
Страница 111: ...Appendix B Character Sets A714 Owner s Guide April 1998 102...
Страница 115: ...Index A714 Owner s Guide April 1998 106...
Страница 116: ......
Страница 117: ...A714 D100 220193F00 0498 AXIOHM is the name and mark of AXIOHM 1998 AXIOHM Printed in U S A...