7197 Owner’s Manual Chapter 5: CommunicationsNovember 200261Chapter 5: CommunicationCommunication OverviewIn order for a receipt to be printed, a program must be in place that translates the datafrom the host computer into a language that the printer can understand. This programmust tell the printer exactly how to print each character. This chapter describes how tocreate such a program or modify an existing one.InterfaceIn order for the printer to communicate with the host, a communication link must be setup. The 7197 supports the industry standard RS-232C communication interface. Thisinterface has a protocol associated with it that the host computer must understand andadhere. The priner also supports USB communications.Only when the interface parameters are matched and the proper protocol is used will thehost and the printer be able to communicate. See the section, “RS-232C Interface” on thenext page for a description of the protocol associated with the RS-232C interface.Sending CommandsOnce the communication link is established, commands can be sent to the printer. Thissection describes how to send commands to the printer using DOS and BASIC. Thissection does not take into account the necessary protocol, but is meant as a generalintroduction to how the printer functions.Using DOS to Send CommandsOne way of getting commands to the printer is to send them directly from DOS. Forexample, the commandCOPY CON: COM1:This sets the computer up such that the Hex code corresponding to any key that waspressed would be sent to the RS-232C communication port COM1 when the COPY modeis exited. If the printer is connected to COM1, then the data will go to the printer.Exit the COPY mode by typingCTRL Zand then pressing the ENTER key. This directs the data from any print command to theproper port, commands can be sent from any software program.