M-S Cash Drawer 7193 manual Communication Overview, Interfaces, Sending Commands

Page 49

7193 Owner’s Guide

Communication

Communication

Communication Overview

In order for a receipt to be printed, a program must be in place that translates the data from the host system into a language that the printer can understand. This program must tell the printer exactly how to print each character. This chapter describes how to create such a program or modify an existing one.

Interfaces

In order for the printer to communicate with the host, a communication link must be set up. The 7193 supports the following three communication interfaces:

RS-232C Interface

Parallel Interface

Each of these has a protocol associated with it that the host must understand and adhere to. Only when the interface parameters are matched and the proper protocol is used will the host and the printer be able to communicate. See the respective sections in this chapter for a description of the protocol associated with each type of interface.

Sending Commands

Once the communication link is established, commands can be sent to the printer. This section describes how to send commands to the printer using DOS and BASIC. This section does not take into account the necessary protocol, but is meant as a general introduction to how the printer functions.

May 1996

Image 49
Contents Owners Guide Information to User Quick Reference How to Obtain More Information How to Use This BookWho Should Use this Book? Contents Solving Problems Appendix B Print Characteristics 107 About the 7193 Printer Models FeaturesCommunication Interfaces OptionsThermal Printhead Ordering Thermal Paper Ordering Paper and SuppliesRecommended Suppliers Kanzaki Specialty Papers Other Qualified SuppliersOrdering the Printer Wall-Mount Kit Ordering the Power Supply and CablesOrdering Cash Drawers Cleaning the Printer Removing the Packing Material What Is in the Box?Repacking the Printer Choosing a Location Setting Switches Owner’s Guide Attaching the Feet Connecting Cash Drawer Cables RS-232C Models Connecting Communication and Power CablesParallel Models Turning On the Printer Loading and Changing Paper When to Change the PaperRemoving the Paper Roll Putting In the Paper Roll Advancing Paper Testing the Printer 3cx39pi Mounting the Printer on a Wall Bracket Mounting the Power Supply on a Wall Holder Operator Panel Lights Solving ProblemsService-Related Problems Correcting ProblemsOperator-Correctable Conditions No Power to Printer or Power Voltages Incorrect Contacting a Service RepresentativePrint is Light or Spotty Level 0 Diagnostics DiagnosticsEerom Level 1 DiagnosticsSetting Data Error and Data Buffer options Setting Printhead Resistance Setting Default Lines per Inch Setting Partial Cut Distance Ignoring/Using the Carriage Return Enter the Data Scope Mode Running the Data Scope Mode 1BH Exit the Data Scope ModeTesting Receipt Printing Level 3 Diagnostics Level 2 DiagnosticsCommunication Overview Sending CommandsInterfaces Using Basic to Send Commands Using DOS to Send CommandsRS-232C Interface DTR/DSR Protocol XON/XOFF ProtocolConnectors RS-232C Technical SpecificationsCash Drawer Connectors Switch Settings OFF Parallel Protocol Parallel InterfaceParallel Connectors Parallel Technical SpecificationsParallel Printers Parallel Switch Settings Command List CommandsPrinter Function Commands Owner’s Guide Print Characteristics Commands Printer Status Commands Graphics CommandsBar Code Commands Real Time CommandsHorizontal Tab Command DescriptionsLine Feed Clear Printer Carriage ReturnFeed n Print Lines Add n Extra Dot Rows Feed n Dot RowsPrint Partial Knife Cut Full Knife CutGenerate Tone Set ColumnSet Absolute Starting Position Set Character Right-Side SpacingSet Line Spacing to n Minimum Units Set Line Spacing to 1/6 InchSelect Printer Initialize PrinterPrint and Feed n Minimum Units Set Horizontal Tab PositionsSet Relative Starting Position Align Character Positions Enable or Disable Panel SwitchSelect Sensors to Stop Printing Print and Feed n LinesGenerate Pulse to Open Cash Drawer Read from Non-Volatile MemoryWrite to Non-Volatile Memory Select Single-Wide Characters Select Double-Wide CharactersRotate Characters Counter-Clockwise Select Pitch Column Width Set Print ModeDefine User-Defined Character Set Select Character SetSelect Character Code Table Copy Character Set from ROM to RAMSet or Cancel Upside-Down Characters Set or Cancel Rotated Characters ClockwiseSummary of Rotated Printing Set Bit Image Mode N1 + 256 x n2 N1 + 256 x n2 Number of Bytes of Data Double-Density Graphics Single-Density GraphicsDefine Downloaded Bit Image Print Downloaded Bit Image Transmit Cash Drawer Status Request Alternate Status Transmit Printer Status First Implementation Alternate Implementation Rules for Using Real Time CommandsMoving Data Through the Buffer Busy Line and Fault Conditions GS Sequence Real Time Status Transmission= Transmit Printer Status = Transmit RS-232C Busy Status = Transmit Receipt Paper Status Real Time Request to PrinterDLE Sequence Real Time Printer Status Transmission Clear Printer CommandRecognizing Data from the Printer Select Pitch of HRI Characters Select Printing Position of HRI CharactersSelect Height of Bar Code JAN8 EAN Print Bar CodeSelect Width of Bar Code Print Code 128 Bar CodeReliability Appendix a SpecificationsEnvironmental Conditions Power RequirementsPrinting Specifications Dimensions and WeightPrint Zones Duty Cycle Restrictions Printing Solid Blocks Density of Receipt Print LinesAppendix B Print Characteristics Appendix B Print Characteristics Owner’s Guide 110 May May Index Index112 Owner’s Guide Owner’s Guide 114 Owner’s Guide Owner’s Guide Axiohm IPB