M-S Cash Drawer 7193 manual Moving Data Through the Buffer

Page 92

7193 Owner’s Guide

Commands

Moving Data Through the Buffer

Applications should not let the buffer fill up with Real Time commands when the printer is busy at the RS-232C interface. A busy condition at the RS-232C interface can be determined by bit 3 of the response to GS ENQ or GS EOT 1 or DLE EOT 1. The reason for a particular busy condition can be determined by other responses to GS EOT n or DLE EOT n.

Although the printer responds to Real Time commands when it is busy, it will place them into the buffer behind any other data there, and flush them out in the order in which they were received. When the printer is busy due simply to buffer full (that is, it can’t print data as fast as it can receive it), then data continues to be processed out of the buffer at approximately print speed and the Real Time commands will eventually get flushed out.

When the printer is busy due to an error condition, then data stops being processed of the buffer until the condition clears one way or another. In either case, but more quickly in the case of an error condition, the buffer can fill with Real Time commands.

When the DLE sequences are being used, the last byte stored when the buffer fills up could be the DLE code, with no room for the subsequent EOT or ENQ. When this lone DLE byte is finally processed out of the buffer it will be interpreted as a Clear Printer command.

Similarly, when the GS sequences are being used, the last byte stored when the buffer fills up could be the GS code, with no room for the subsequent EOT or ETX or ENQ. When this lone GS byte is finally processed out of the buffer it will use the next byte, whatever it is, as the second byte in its GS sequence.

To guard against this situation, the application must determine the cause of a busy condition and take appropriate action or pace the Real Time commands to avoid filling the buffer. There are a minimum of 256 bytes available in the printer’s buffer when it goes busy.

May 1996

Image 92
Contents Owners Guide Information to User Quick Reference Who Should Use this Book? How to Use This BookHow to Obtain More Information Contents Solving Problems Appendix B Print Characteristics 107 About the 7193 Printer Features ModelsCommunication Interfaces OptionsThermal Printhead Recommended Suppliers Ordering Paper and SuppliesOrdering Thermal Paper Other Qualified Suppliers Kanzaki Specialty PapersOrdering Cash Drawers Ordering the Power Supply and CablesOrdering the Printer Wall-Mount Kit Cleaning the Printer What Is in the Box? Removing the Packing MaterialRepacking the Printer Choosing a Location Setting Switches Owner’s Guide Attaching the Feet Connecting Cash Drawer Cables Connecting Communication and Power Cables RS-232C ModelsParallel Models Turning On the Printer When to Change the Paper Loading and Changing 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 Solving Problems Operator Panel LightsOperator-Correctable Conditions Correcting ProblemsService-Related Problems Print is Light or Spotty Contacting a Service RepresentativeNo Power to Printer or Power Voltages Incorrect Diagnostics Level 0 DiagnosticsLevel 1 Diagnostics EeromSetting Data Error and Data Buffer options Setting Printhead Resistance Setting Default Lines per Inch Setting Partial Cut Distance Ignoring/Using the Carriage Return Running the Data Scope Mode Enter the Data Scope ModeExit the Data Scope Mode 1BHTesting Receipt Printing Level 2 Diagnostics Level 3 DiagnosticsInterfaces Sending CommandsCommunication Overview RS-232C Interface Using DOS to Send CommandsUsing Basic to Send Commands XON/XOFF Protocol DTR/DSR ProtocolRS-232C Technical Specifications ConnectorsCash Drawer Connectors Switch Settings OFF Parallel Interface Parallel ProtocolParallel Technical Specifications Parallel ConnectorsParallel Printers Parallel Switch Settings Commands Command ListPrinter Function Commands Owner’s Guide Print Characteristics Commands Graphics Commands Printer Status CommandsReal Time Commands Bar Code CommandsLine Feed Command DescriptionsHorizontal Tab Feed n Print Lines Carriage ReturnClear Printer Print Feed n Dot RowsAdd n Extra Dot Rows Full Knife Cut Partial Knife CutGenerate Tone Set ColumnSet Character Right-Side Spacing Set Absolute Starting PositionSet Line Spacing to 1/6 Inch Set Line Spacing to n Minimum UnitsSelect Printer Initialize PrinterSet Horizontal Tab Positions Print and Feed n Minimum UnitsSet Relative Starting Position Enable or Disable Panel Switch Align Character PositionsSelect Sensors to Stop Printing Print and Feed n LinesWrite to Non-Volatile Memory Read from Non-Volatile MemoryGenerate Pulse to Open Cash Drawer Rotate Characters Counter-Clockwise Select Double-Wide CharactersSelect Single-Wide Characters Set Print Mode Select Pitch Column WidthSelect Character Set Define User-Defined Character SetCopy Character Set from ROM to RAM Select Character Code TableSet or Cancel Rotated Characters Clockwise Set or Cancel Upside-Down CharactersSummary of Rotated Printing Set Bit Image Mode N1 + 256 x n2 N1 + 256 x n2 Number of Bytes of Data Single-Density Graphics Double-Density GraphicsDefine Downloaded Bit Image Print Downloaded Bit Image Transmit Cash Drawer Status Request Alternate Status Transmit Printer Status First Implementation Rules for Using Real Time Commands Alternate ImplementationMoving Data Through the Buffer Busy Line and Fault Conditions Real Time Status Transmission GS Sequence= Transmit Printer Status = Transmit RS-232C Busy Status Real Time Request to Printer = Transmit Receipt Paper StatusDLE Sequence Clear Printer Command Real Time Printer Status TransmissionRecognizing Data from the Printer Select Height of Bar Code Select Printing Position of HRI CharactersSelect Pitch of HRI Characters Print Bar Code JAN8 EANPrint Code 128 Bar Code Select Width of Bar CodeAppendix a Specifications ReliabilityPower Requirements Environmental ConditionsDimensions and Weight Printing SpecificationsPrint Zones Density of Receipt Print Lines Duty Cycle Restrictions Printing Solid BlocksAppendix B Print Characteristics Appendix B Print Characteristics Owner’s Guide 110 May Index May Index112 Owner’s Guide Owner’s Guide 114 Owner’s Guide Owner’s Guide Axiohm IPB