M-S Cash Drawer 7193 manual Set Relative Starting Position

Page 73

Commands

7193 Owner’s Guide

Set Relative Starting Position

Moves the print starting position the specified number of dots either right (up to the right margin) or left (up to the left margin) of the current position.

The print starting position is reset to the first column after each line.

Hex

Decimal

ASCII

Value of n

1B 5C n1 n2

27 92 n1 n2

ESC \ n1 n2

See Examples Below

To Move the Relative Starting Position Right of the Current Position

n = Number of dots to be moved right of the current position n1 = Remainder after dividing n by 256

n2 = Integer after dividing n by 256

The values for n1 and n2 are two bytes in low byte, high byte word orientation.

Determine the value of n by multiplying the number of columns to move right of the current position by 10 (standard pitch) or 8 (compressed pitch). The example shows how to set the relative position two columns in standard pitch (10 dots per column) to the right of the current position.

2 x 10 = 20 dots (two columns to be moved right of the current position) 20/256 = 0, remainder of 20

n1 = 20

n2 = 0

To Move the Relative Starting Position Left of the Current Position

n = Number of dots to be moved left of the current position n1 = Remainder after dividing (65,536-n) by 256

n2 = Integer after dividing (65,536-n) by 256

The values for n1 and n2 are two bytes in low byte, high byte word orientation.

Determine the value of n by multiplying the number of columns to move left of the current position by 10 (standard pitch) or 8 (compressed pitch). The example shows how to set the relative position two columns in standard pitch (10 dots per column) to the left of the current position.

2 x 10 = 20 dots (two columns to be moved left of the current position) 65,536-20 = 65516

65,516/256 = 255, remainder of 236

n1 = 236

n2 = 255

70

May 1996

Image 73
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 Mode1BH 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 Column Set 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