NCR 7158 Thermal Receipt and Impact Printer Release 1.
The product described in this book is a licensed product of NCR Corporation. NCR is a registered trademark of NCR Corporation. It is the policy of NCR Corporation (NCR) to improve products as new technology, components, software, and firmware become available. NCR, therefore, reserves the right to change specifications without prior notice. All features, functions, and operations described herein may not be marketed by NCR in all parts of the world.
Owner's Guide Preface Important Information to the User In order to ensure compliance with the Product Safety, FCC and CE marking requirements, you must use the power supply, power cord, and interface cable, which were shipped with this product or which meet the following parameters: Power Supply UL Listed (QQGQ), Class 2 power supply with SELV (Secondary Extra Low Voltage), non-energy hazard output, limited energy source, input rated 100-240 Vac, 1.5/0.8 A, 50/60 Hz, output rated 24 Vdc, 2.3 A.
ii Owner's Guide How to Use This Book Use this book as a training guide for teaching users how to operate the printer or as a reference for programming the host computer to communicate with the printer. In addition, information is also provided about the character sets and graphics that are available. The book is divided into chapters that relate to each of these areas. See the Contents, or Index for detailed listings.
Owner's Guide iii Table of Contents Chapter 1: About the Printer Introducing the 7158 Printer................................................................ 1-1 Standard Features ................................................................................. 1-2 Connectivity Features .................................................................... 1-2 Advanced Interface Design........................................................... 1-2 Electronics and Firmware....................................
iv Owner's Guide Chapter 3: Using the Printer Printer Controls..................................................................................... 3-1 Changing the Receipt Paper ................................................................ 3-3 Replacing the Ribbon Cassette............................................................ 3-5 Printing on Forms or Checks............................................................... 3-7 Verifying and Validating Checks..........................................
Owner's Guide v Check Flip Option .................................................................... 3-28 Basic Troubleshooting ........................................................................ 3-29 Printer Beeps ................................................................................. 3-31 Printer Will Not Print................................................................... 3-32 On-Line, Paper Status, Error LED Flashes................................ 3-33 Poor Forms Print Quality ...
vi Owner's Guide Standard Receipt Features............................................................. 5-5 Optional Features ........................................................................... 5-7 Reliability ............................................................................................... 5-8 Certifications.......................................................................................... 5-9 EMI: ..............................................................................
Owner's Guide vii Electrical Interfaces ...................................................................... 5-26 Switch Settings.............................................................................. 5-27 Character Sets................................................................................ 5-27 Code Page 437........................................................................... 5-28 Code Page 850...........................................................................
viii Owner's Guide Chapter 7: Programming Guide Command Conventions ....................................................................... 7-1 List of Commands and Location......................................................... 7-2 By Command Code ........................................................................ 7-2 By Function...................................................................................... 7-8 Printer Function Commands ....................................................
Owner's Guide ix Additional Remote Diagnostics ............................................. 7-19 Comparison Chart ........................................................................ 7-20 Command Descriptions ..................................................................... 7-22 Printer Function Commands ...................................................... 7-22 Clear Printer.............................................................................. 7-22 Exceptions: ..........................
x Owner's Guide Print and Eject Slip................................................................... 7-36 Print and Carriage Return....................................................... 7-37 Feed n Print Lines..................................................................... 7-37 Feed n Dot Rows ...................................................................... 7-38 Add n Extra Dot Rows............................................................. 7-39 Print......................................
Owner's Guide xi Select or Cancel User-Defined Character Set ....................... 7-58 Define User-Defined Characters ............................................ 7-59 Defining User-Defined Characters for the Slip and Receipt Station .......................................................................... 7-60 Select or Cancel Underline Mode .......................................... 7-62 Copy Character Set from ROM to RAM ............................... 7-62 Cancel User-Defined Characters...........
xii Owner's Guide Transmit Peripheral Device Status ........................................ 7-86 Request Alternate Status (Parallel Only) .............................. 7-87 Transmit Printer Status ........................................................... 7-88 Transmit Printer ID.................................................................. 7-89 Transmit Printer ID, Remote Diagnostics Extension .......... 7-91 Transmit Status.........................................................................
Owner's Guide xiii Set Absolute Vertical Print Position in Page Mode ........... 7-127 Set Relative Vertical Print Position in Page Mode............. 7-128 Macro Commands ...................................................................... 7-129 Start or End Macro Definition .............................................. 7-129 Execute Macro ........................................................................ 7-130 MICR Commands.......................................................................
xiv Owner's Guide Request Printer ID.................................................................. 7-152 Return Segment Number Status of Flash Memory ........... 7-152 Select Flash Memory Sector to Download.......................... 7-153 Get Firmware CRC................................................................. 7-153 Return Microprocessor CRC................................................. 7-154 Erase the Flash Memory........................................................
Owner's Guide xv Uninstalling the Drivers .............................................................. 8-17 Troubleshooting .................................................................................. 8-19 Frequently Asked Questions ............................................................. 8-20 USB Printer Performance Under Windows 95 .........................
xvi Owner's Guide Radio Frequency Interference Statements Federal Communications Commission (FCC) Information to User This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to Part 15 of FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment.
Chapter 1: About the Printer Introducing the 7158 Printer The 7158 is an extremely fast, quiet, and reliable point-of-sale printer. It consists of two specialized printers in one compact package: a thermal printer on top that prints receipts, and an impact slip printer in front to print on forms and checks that you insert. The thermal printer is optimized for ease-of-use in busy environments. There is no ribbon or ink cartridge to change, and you load the paper by simply dropping in a new roll.
1-2 Chapter 1: About the Printer Standard Features Connectivity Features Industry standard RS-232C interface for communication with the host computer; other interfaces are available as options. • Cash drawer kickout connector and software support for up to two cash drawers. Advanced Interface Design • Sensors detect whether any of the covers are open, the paper is low in the receipt printer, or the paper is positioned properly in the slip printer.
Chapter 1: About the Printer 1-3 Thermal Receipt Printer • Extremely fast and quiet thermal printhead. • No ribbon or ink cartridge to change. • Drop-in paper loading. • Double high, double wide, bold, inverse, underlined, superscript and subscrip, italics, scalable and rotated print modes. • Resident character sets: Code Pages 437 (US), 850 (Multilingual), 852 (Slavic), 858 (with Euro symbol), 860 (Portuguese), 863 (FrenchCanadian), and 865 (Nordic) and 866 (Cyrillic).
1-4 Chapter 1: About the Printer Impact Slip Printer • Bi-directional impact printhead designed for a very long life. • Snap-on ribbon cassette. • Prints on forms up to five plies. • Horizontal flatbed slip table with an optional extension (which is standard with the MICR check reader option). • Form insertion flexibility: insert forms in front or from the side. • Form alignment sensors and LED indicator. • Double wide and rotated print modes; a double strike print mode improves contrast.
Chapter 1: About the Printer 1-5 Options Connectivity Options • RS-232C is supported on all printers. USB is also supported on some later models. • Communications cables are available for RS-232C and USB. • Power supplies are available in 55 Watt or 75 Watt versions. • 3-pin to 6-pin power connection adapter to allow previous version power supplies (or terminal cables) to be connected to the 7158. Thermal Receipt Printer Options • The optional receipt cutter.
1-6 Chapter 1: About the Printer Model Identification Key A758 Model ID Key A 7 5 8 - X X X X 1 = no knife 5 = knife 0 = no MICR 1 = MICR 2 = MICR and check flip 5 = check flip 0 = 512K Flash memory (standard) 1 = 1MB Flash memory 2 = 2MB Flash memory 1 = standard color
Chapter 1: About the Printer 1-7 The set of options installed on a particular printer can be determined by looking at the printer's model number. The printer's model number appears on a label on the right side of the printer. Four-digit model numbers are assigned to the various 7158 models based on the following formula: • The first digit indicates the release vintage and color of the printer's case. • The second digit indicates the amount of flash memory installed in the printer.
1-8 Chapter 1: About the Printer
Chapter 2: Setup Guide Unpacking the Printer Save all packing materials in case you need to repack the printer. Check that the materials shipped with the printer match.
2-2 Chapter 2: Setup Guide Choosing a Location Receipt Cover 280 mm (11.0 in.) Extended Slip Table 178 mm (7.0 in.) 229 mm (9.0) 264 mm (10.4 in.) 347 mm (13.7 in.) The 7158 printer takes up relatively little counter space and may be set on or near the host computer. With the RS-232C interface, you can place the printer up to 50 feet from the host computer and power supply.
Chapter 2: Setup Guide 2-3 Remove the Packing Restraints Front Cover Cardboard Support Carriage Foam Restraint 1. Open the front cover, remove the foam restraint holding the carriage. 2. Remove the cardboard support from the slip path.
2-4 Chapter 2: Setup Guide Receipt Cover Paper Roll Supports Paper Roll Test Printout 1. Open the receipt cover and remove the test printout. 2. Lift the thermal paper roll out of the paper bucket and remove the paper roll supports.
Chapter 2: Setup Guide 2-5 Connecting the Cables Caution: Connect the cables to the printer before plugging in the power supply. If power is received from the host computer, turn it off before connecting any cables. Strain Relief Back of Printer DIP Cash Power Drawer Switches Supply Connector Connector Communication Connector (9-pin connector shown) Note: Depending on your printer configuration, the connector panel may vary from the above illustration.
2-6 Chapter 2: Setup Guide Cash Drawer Cables The cash drawer cable connects the printer to one or two cash drawers. 1. Plug the cable into the cash drawer connector (standard phone jack) located at the rear of the printer. Y-Cable Drawer Printer Drawer Printer Connector (Standard Phone Jack) Note: a. If your system has two cash drawers, attach a Y-cable to the printer’s cash drawer connector as shown. b. Leave some slack in the cord to route through the strain relief at a later time.
Chapter 2: Setup Guide 2-7 Power Supply Cable Connect the power supply cable last. 1. Plug the power cord into the power supply. To the Communications Connector Strain Relief Power Supply or Adapter Cable Communications Cable Cash Drawer Cable Cash Drawer Cable 2. Route the cash drawer and the power supply cables through the stain relief as shown. 3. Plug the power cord into the power supply, then plug the power supply into an outlet. The Green LED on the top cover will light up.
2-8 Chapter 2: Setup Guide Loading Receipt Paper 1. Tear off the end of the roll so that the edge is loose. 2. Place the roll into the paper bucket with the paper unrolling from the bottom of the roll, and with a few inches of paper extending over the cabinet front. Note: Paper must unroll from the bottom of the roll to insure that the image will print. 3. Close the cover while holding the paper over the front of the cabinet.
Chapter 2: Setup Guide 4. Remove the excess paper by tearing it against the tear-off blade. 5. Press the Paper Feed Button to advance the paper.
2-10 Chapter 2: Setup Guide Putting In the Ribbon Cassette Note: You must use an approved NCR ribbon cassette with the check flip option to prevent jamming or other ribbon problems. 1. Unwrap and tighten the ribbon by turning the knob on the cassette in the direction of the arrow. Caution: DO NOT remove the mylar shield. Front Cover Knob Ribbon Cassette (Shown in Position) Cassette Printhead Ribbon Mylar Shield 2.
Chapter 2: Setup Guide 2-11 Testing the Printer The Configuration Menu allows you to set general printer parameters. The test prints a list of various printer settings and partially cuts the paper if a knife is installed. The test printouts may vary depending on the printer model. To change the default settings, enter the Configuration Menu as instructed on the bottom of the test printout. The printout may be useful to a service representative if there is a problem.
2-12 Chapter 2: Setup Guide Configuration Menu and Print Test samples (shown approximately 60% of size). Caution: Be extremely careful changing any of the printer settings to avoid inadvertently changing other settings that might affect the performance of the printer. 3. Press the Paper Feed Button the number of clicks for the printer settings you want. Note: Press the Paper Feed Button for at least one second to validate the selection.
Chapter 3: Using the Printer Printer Controls Receipt Cover Receipt Front Cover Slip or Check Paper Feed Button On-Line, Paper Status, Error LED (Green) Extended Slip Table Slip In LED (Green) Reset Button The printer has the following controls: • The Paper Feed Button advances the receipt paper. • The On Line, Paper Status, Error LED shows the printer status by shining or flashing. • The Slip-in LED indicates that a form is inserted properly.
3-2 Chapter 3: Using the Printer The printer also indicates its status when it is first turned on, or after it has been reset, by beeping. A single beep indicates the printer has successfully completed its startup routine. But if the printer beeps in a single, double, or triple pattern at first power on, please call your service representative.
Chapter 3: Using the Printer 3-3 Changing the Receipt Paper Change the paper when either a colored stripe appears on the receipt paper or the printer’s On Line, Paper Status, Error LED slowly flashes (indicating that 5 + 10 feet of paper remains on the roll). Change the paper as soon as possible to avoid running out of paper part way through a transaction. If the On Line, Paper Status, Error LED blinks fast, the paper is out. Change the paper immediately or data may be lost.
3-4 Chapter 3: Using the Printer 1. Open the cover and remove the used roll. 2. Tear off the end of the new roll so that the edge is loose. 3. Place the roll into the paper bucket with the paper unrolling from the bottom of the roll, and with a few inches of paper extending over the cabinet front. Paper must unroll from the bottom of the roll to insure the image will print. 4. Close the cover while holding the paper over the front of the cabinet. 5.
Chapter 3: Using the Printer 3-5 Replacing the Ribbon Cassette Change the impact printer’s ribbon cassette if it is printing lightly. Note: You must use an approved NCR ribbon cassette with the check flip option to prevent jamming or other printing problems.
3-6 Chapter 3: Using the Printer 1. Open the printer’s front cover and pinch the tabs of the old ribbon cassette to remove it. Front Cover Knob Ribbon Cassette (Shown in Position) Cassette Printhead Ribbon Mylar Shield 2. Unwrap and tighten the new ribbon by turning the knob on the cassette in the direction of the arrow. Caution: Do not remove the Mylar shield. 3. Position the new ribbon cassette onto the carriage, making sure the ribbon is underneath the printhead. 4.
Chapter 3: Using the Printer 3-7 Printing on Forms or Checks There are several types of transactions that may require the insertion of a form or check into the printer: • Credit card transaction • Multiple-part forms such as credit transactions or merchandise returns • Electronic funds transfers • Check printing (printing the date, payee, and amount on the check face) • Check endorsement
3-8 Chapter 3: Using the Printer Although the illustration on the following page shows a check being inserted into the printer, these instructions apply to any type of form. The 7158 can print on forms up to five parts thick.
Chapter 3: Using the Printer 3-9 To print on a form or check: 1. Insert the form or check (check shown in the illustration) from the front and place it on the Slip Table with the print side up. If the form is extra long, you may need to insert it from the side. A slight resistance may be felt when the form comes in contact with the Form Stop. 2. Slide the form or check to the right until it aligns against the Check Guide. 3.
3-10 Chapter 3: Using the Printer Verifying and Validating Checks If the printer has the optional MICR check reader, checks are verified and then validated. If the printer also has the optional check flip feature, the printer is able to flip the check over and print on the front of the check. Note: To ensure that checks are properly verified and validated, they must be free of folds and wrinkles and inserted correctly into the MICR printer. Smooth a wrinkled or folded check for best performance.
Chapter 3: Using the Printer 3-11 To verify and validate a check: 2. Place the check, face down on the Slip Table, with the bottom edge of the check to the right. Move the check to the right until it aligns against the Check Guide. 3. Slide the check straightforward into the printer until it stops. The green Slip-in LED on the front of the printer comes on. Note: IMPORTANT: Hold the check to the right, against the Check Guide and release it as soon as the printer begins to run. 4.
3-12 Chapter 3: Using the Printer Clearing Check Flip Paper Jams Check Check Flip Window Door
Chapter 3: Using the Printer 3-13 To clear a paper jam from the optional check flip assembly: 1. Look in the window of the check flip assembly. If the jammed check is visible, open the window and remove it. Front Cover 2. If the jammed check is not visible in the window, open the Front Cover and remove the jammed check from behind the check flip assembly.
3-14 Chapter 3: Using the Printer Testing the Printer The Configuration Menu allows you to set general printer parameters. The test prints a list of various printer settings and partially cuts the paper if a knife is installed. The test printouts may vary depending on the printer model. The printout may be useful to a service representative if there is a problem. To change the default settings, enter the Configuration Menu as instructed on the bottom of the test printout.
Chapter 3: Using the Printer Configuration Menu and Print Test samples (show approximately 60% of size).
3-16 Chapter 3: Using the Printer Printer Configuration Printers are generally shipped with all appropriate configuration settings pre-set at the factory. The only time the user should need to change the printer configuration is if a new option is installed or the firmware is changed. It is also possible the user may need to run certain tests using the Configuration Menu. The user configures the printer using a convenient Configuration Menu that is printed on receipt paper.
Chapter 3: Using the Printer • 3-17 Hardware Options Print Density Maximum Power Knife Options Paper Low Sensor Printhead Resistance MICR Option Check Flip Option Configuring the Printer Use the Configuration Menu to select functions or change various settings as indicated in the preceding sections. The Configuration Menu prints instructions and setting options interactively as the user goes through the configuration process.
3-18 Chapter 3: Using the Printer 1. Set DIP Switch 1 to On.
Chapter 3: Using the Printer 3-19 2. Press the Reset Button while holding the Paper Feed Button. The printer beeps, prints the current configuration, then prints the first SELECTION. 3. Follow all the instructions on the scrolling menu.
3-20 Chapter 3: Using the Printer 4. Press the Paper Feed Button to make the selections. The instructions indicate whether to select something with a short click, a long click, or a series of short clicks. Indicate Yes with a long click, No with a short click. Press and hold the Paper Feed Button for at least one second for a long click. Press the Paper Feed Button quickly for a short click. 5. When finished, set DIP Switch 1 to Off and reset printer. 6. Press the Reset Button.
Chapter 3: Using the Printer 3-21 Diagnostic Modes This function allows the user to put the printer into the following diagnostic modes: • Normal Mode: this is the normal operating mode of the printer. • Datascope Mode: the receipt printer prints incoming commands and data in hexadecimal format. • Receipt Test Mode: the receipt printer prints two code pages. • Slip Test Mode: the slip printer prints two code pages.
3-22 Chapter 3: Using the Printer 3. Run a transaction from the host computer. All commands and data sent from the host computer will be printed as hexadecimal numbers as shown in the illustration. To exit the Datascope Mode: 1. 1. Enter the Configuration Menu again. 2. Disable the Datascope Mode. 3. Exit the Configuration Menu. The printer is in Normal Mode and can communicate with the host computer. Receipt Test Mode To run the Receipt Test Mode: 1.
Chapter 3: Using the Printer 3-23 7. Exit the Configuration Menu. The printer is in Normal Mode and can communicate with the host computer. Slip Test Mode To run the Slip Test Mode: 1. Enable the Slip Test Mode through the Configuration Menu, (See “Configuring the Printer,” for instructions on how to enter the Configuration Menu). Then exit the Configuration Menu. 2. Insert a slip into the slip station. 3. Push the Paper Feed Button. 4. Two code pages will be printed. 5.
3-24 Chapter 3: Using the Printer 2. After enabling the MICR Test Mode through the Configuration Menu, exit the Configuration Menu. 3. Insert a check into the slip station. (See “Verifying and Validating Checks” section.) 4. The printer waits until a check is inserted and detected before the platen closes and the characters are read by the MICR check reader. The decoded data is printed on receipt paper, the platen is opened, and the test is re-started. 5.
Chapter 3: Using the Printer 3-25 Check Flip Test Mode To run the Check Flip Test Mode: 1. Enable the Check Flip Test Mode through the Configuration Menu (See “Configuring the Printer,” for instructions on how to enter the Configuration Menu), then exit the Configuration Menu. 2. Insert a check as if validating the check, lengthwise and face down into the slip station. (See “Verifying and Validating Checks” section to insert check.
3-26 Chapter 3: Using the Printer 3. Push Paper Feed Button. The check then goes through the flip routine only—no printing takes place. To exit the Check Flip Test Mode: 4. Enter the Configuration Menu again. 5. Disable the Check Flip Test Mode. 6. Exit the Configuration Menu. The printer is in Normal Mode and can communicate with the host computer. Emulation/Software Options Printer Emulations Printer emulations determine the commands that are available to the printer.
Chapter 3: Using the Printer 3-27 Default Lines Per Inch This function allows the user to set the default lines per inch printed by the thermal receipt printer to 6, 7.52 or 8.13. (See “Configuring the Printer” for instructions on how to enter the Configuration Menu to change this setting.) Carriage Return Usage This function allows the printer to ignore or use the Carriage Return (hexadecimal 0D) command depending on the application.
3-28 Chapter 3: Using the Printer Knife Option This function makes it possible to set the Knife Option if it is installed in the printer. This setting should only be changed if the option is added or removed. Paper Low Sensor Paper Low Sensor setting makes it possible to enable or disable the paper low sensor for particular printer configurations. Printhead Resistance The printhead in the thermal receipt printer can be one of two types.
Chapter 3: Using the Printer 3-29 Basic Troubleshooting The 7158 printer is a simple, generally trouble-free printer, but from time to time minor problems may occur. For example, the power supply may be disconnected or the thermal printhead may overheat. The On Line, Paper Status, Error LED on the operator panel may signal that something is wrong. The light on the front right side of the printer is used only to indicate when a form is inserted properly. It does not indicate an error.
3-30 Chapter 3: Using the Printer If something is wrong with the printer, take the following general steps: • Cycle the power of the printer and note its behavior. • Check the On Line, Paper Status, Error LED and compare its behavior to the table below.
Chapter 3: Using the Printer 3-31 Printer Beeps Problem/Symptom Possible Causes What to Do Printer beeps in a single, double, or triple The printer has a problem with its electronics. pattern at first power on, the On Line, Paper Status, Error LED blinks in the same pattern, and the printer won’t power up. Contact a service representative. Printer beeps during normal operation. Consult your application software manual.
3-32 Chapter 3: Using the Printer Printer Will Not Print Problem/Symptom Possible Causes What to Do The On Line, Paper Status, Error LED is blinking and the printer won’t print. The receipt paper may be out, the cover open, the knife jammed, the supply voltage out of range, or the printhead temperature out of range. Check that the receipt paper is properly loaded and covers are closed. See the table at the beginning of this section. For problems not user correctable, contact a service representative.
Chapter 3: Using the Printer 3-33 On-Line, Paper Status, Error LED Flashes Problem/Symptom Possible Causes What to Do On Line, Paper Status, Error LED is blinking. Receipt paper is out. Change the paper now. Do not run a transaction without paper as the data may be lost. Change the paper immediately. See “Loading and Changing the Receipt Paper” in the Owner’s Guide. Receipt, front or flip cover is open. Close the cover. The printer will not operate with any of the covers open. The knife is jammed.
3-34 Chapter 3: Using the Printer Poor Forms Print Quality Problem/Symptom Possible Causes What to Do Printer starts to print, but stops while the form is being printed. Communication error or software error. Check the interface cable. Check that the software is working properly. Forms print is light or spotty. Form not inserted incorrectly. See “Printing on Forms or Checks” in this document. Impact printhead is dirty or defective. Contact a service representative.
Chapter 3: Using the Printer Thermal printhead is dirty. 3-35 Use recommended thermal receipt paper. Clean the thermal printhead with an alcohol pen. Do not spray the thermal printhead with household cleaner as this may damage it and the electronics. The thermal printhead does not normally require cleaning if the recommended paper grades are used. If non-recommended paper has been used for an extended period of time, cleaning the printhead with an alcohol pen will not be of much benefit.
3-36 Chapter 3: Using the Printer Slip Station, MICR and Flip Problems Problem/Symptom Possible Causes What to Do Slip Table LED does not come on. Form or check not inserted properly. Line up the form or check against the Check Guide (wall) and slide it toward the back of the printer until it contacts the Form Stop and can't go any further. Extra long forms may need to be inserted from the side to disengage the Form Stop.
Chapter 3: Using the Printer 3-37 Knife Does Not Operate Problem/Symptom Possible Causes What To Do Receipt is not cut. Paper is jammed. Open the receipt cover, inspect the knife, and clear any jammed paper. The printer has a knife but the firmware is not configured for a knife. All other problems. Enable the knife option by reconfiguring the printer. See “Configuring the Printer” in this document. Contact a service representative.
3-38 Chapter 3: Using the Printer Other Serious Problems The following problems all need to be corrected by a qualified service representative. See the next section, “Contacting a Service Representative.
Chapter 3: Using the Printer 3-39 Returning a Printer Follow these instructions if you need to return a printer for servicing. 1. If you are sending the printer to NCR for repair, call NCR for a Return Material Authorization number (RMA#). Be prepared to answer questions concerning shipping and billing. Request an RMA process be sent to you, if required. 2.
3-40 Chapter 3: Using the Printer a. Place receipt paper between the receipt cover and the printhead for protection. Front Cover Cardboard Support Carriage Foam Restraint b. Remove the ribbon cassette, move the carriage to the right, and place the foam restraint between the left side of the printer and the carriage to protect the carriage. c. Place the cardboard support on the Slip Table. d.
Chapter 4: Printer & Media Supplies Ordering Thermal Paper Thermal Paper Specifications The printer requires qualified thermal paper with the following dimensions: Width Diameter Length 80 mm + .2 mm - .6 mm (3.15 + .008 in. - .024 in.) 90 mm max. (3.54 in.) 98 meters (322 ft.) 2.4 mil thick 73.5 meters (241 ft.) 3.2 mil thick The paper must not be attached at the core. Use paper with a colored stripe at the end to indicate that the paper is running low.
4-2 Chapter 4: Printer & Media Supplies Ordering Parts and Supplies Ordering Cash Drawers Order cash drawers from the following suppliers: Cash Drawers Number NCR 7052-K657 Ordering Power Supply Cord and Adapters Contact your sales representative to order the power supply and power cords listed in the table. The numbers are for NCR reference only. Suppliers may use other numbers. Item Type Number Power supply (55 watt) with attached cable to printer and U.S.
Chapter 4: Printer & Media Supplies 4-3 Ordering Communication Cables Contact your sales representative to order the communication cables listed in the table. The numbers are for reference only. Suppliers may use other numbers. Communication Cables Length Order Number RS-232C 9-pin to 9 pin (0.7 meters—2 ft.) 1416-C359-0007 RS-232C 9-pin to 9 pin (4.0 meters—13 ft.) 1416-C266-0040 Forms Specifications The 7158 prints on single- or multiple-part forms in the slip station (up to five-part forms).
4-4 Chapter 4: Printer & Media Supplies Check Specifications Check American Standards ANSI X9.13 and ANSI X9.18, and International Standard ISO 1004 define specifications for paper. • Minimum check size: 70 mm (2.75 in.) wide x 152 mm (6.00 in.) long • Maximum check size: 95 mm (3.75 in.) wide x 222 mm (8.75 in.
Chapter 5: Technical Specifications Functional Description Standard Slip Features Print Technology Bidirectional, logic-seeking, nine wire impact printhead Printhead Features Automatic homing and jam detection Ink Means 3 or 5 million character life Carriage mounted ribbon cassette Print Resolution Standard 139 DPI X 72 DPI Compressed 171 DPI X 72 DPI Character Cell 10 Half Dots x 7 Dots High Print Line Width Standard 66 characters @ 13.9 CPI Compressed 80 characters @ 17.
5-2 Chapter 5: Technical Specifications Forms Capability * See notes on the following page. Maximum thickness .40 mm (.016 inch) max., 5 plies Minimum .08 mm (.003 inch) Minimum Form Reflectivity 60% Minimum Length: 68 mm (2.68 inches) w/o check flip option 70 mm (2.75 inches) with flip option Minimum Width: 51 mm (2.00 inches) [Ensures that forms cover both the optical slip detectors and expose about one inch of the form to push in place.
Chapter 5: Technical Specifications 5-3 Slip Forms - Recommendations The slip form should be flat and void of curls or wrinkles, especially at the top. Considerations for bound edges on slip paper (multi-page forms): • Binding on the leading edge (top): Best method, however paper feeding and insertion can be affected by the binding method, the length of the edge, and the quality of glue used.
5-4 Chapter 5: Technical Specifications MICR Head Slip Sensor Slip/LED Sensor Slip Side Guide 19 mm (0.747 in.) 8 mm (0.315 in.) 6 mm (0.236 in.) Slip Edge Paper Feed Direction Paper Holes and Low Reflection Prohibited Areas B A The Slip/LED Sensors use a reflective photo sensor. • Do not use paper that has holes or is translucent at the Slip/LED Sensor location. (See “A” in above illustration.
Chapter 5: Technical Specifications 5-5 MICR Reader – Additional Information • The check must be flat and void of curls, folds, or wrinkles (especially at the edges). Wrinkled checks may rub against the ribbon causing them to become ink-stained. • Checks must be void of clips or staples. Paper jams, MICR read errors, and/or MICR head damage could occur. • Immediately release the check once the printer starts to feed it.
5-6 Chapter 5: Technical Specifications Character Sets PC Code Page 437 PC Code Page 850 PC Code Page 852 PC Code Page 858 PC Code Page 860 PC Code Page 863 PC Code Page 865 PC Code Page 866 resident Additional Flash memory for user-defined characters Graphics 203 DPI X 203 DPI bit-mapped, input as 24 dot high print lines Bar Code Fonts UPC-A UPC-E JAN8 JAN13 (EAN) Code 39 Interleaved 2 of 5 Codabar Code 128 PDF-417 Two-dimensional Code Code 93
Chapter 5: Technical Specifications 5-7 Optional Features Paper Cutter Rotary partial cut knife leaves 5.0 mm (0.2 inch) uncut on left edge. Slip Table Kits Extends Slip Table 38 mm (1.5 in.) or 76 mm (3.0 in.) in front. The 76 mm slip table comes standard with the MICR and Flip options. MICR Reader Integrated into the slip station. Reads MICR checks oriented for validation on the back of the check, and communicates the character string to the host computer.
5-8 Chapter 5: Technical Specifications Reliability The numbers in the table refer to the Mean Cycles Between Failure (MCBF) for the items indicated. Thermal Receipt Printer 45 Million Lines Impact Slip Printer 15 Million Lines Impact Printhead 200 Million Characters Knife 1.
Chapter 5: Technical Specifications Certifications EMI: • FCC, Class A • Industry Canada, Class A • VCCI, Class A • CE Mark, Class B • Austel, Class B Safety: • UL 1950 • CSA 22.2 No.
5-10 Chapter 5: Technical Specifications Physical and Operating Environment Temperature and Humidity Temperature in Degrees Operating: w/ Knife %Humidity 5C to 28C ( 41F to 82F) 10 to 90 28C to 45C ( 82F to 113F) 10 to 35 5C to 35C ( 41F to 95F) 5 to 90 35C to 50C ( 95F to 122F) 5 to 40 Storage: -10C to 50C ( 14F to 122F) 5 to 90 Transit: -40C to 60C (-40F to 140F) 5 to 95 Operating: w/o Knife Electrical The 7158 printer complies with the regulatory EMI standards and levels indicated in t
Chapter 5: Technical Specifications 5-11 Minimum form length (feed direction) for forms inserted from the front up to the slip stop is 68 mm (2.68 inches) w/o check flip option and 70 mm (2.75 inches) w/Flip option. Minimum form width (print direction) is 51 mm (2.00 inches). These minimums ensure the form covers both optical slip detectors, and expose about one inch of the form to push in place. The form must be at least 127 mm (5.00 inches) wide to print all 66 standard or 80 compressed columns.
5-12 Chapter 5: Technical Specifications Migration The 7158’s standard command set allows it to work with software written for NCR or other ESC/POS™ compliant printers. The 7158 supports two modes of operation: “A756 emulation” and “A758 native” modes. When the 7158 is configured for A756 emulation mode through the Configuration Menu, the printer is backward compatible to 7156 slip and receipt applications except that receipt print resolution is increased from 6 to 8 dots/mm.
Chapter 5: Technical Specifications 5-13 Slip Format Maximum print line width: 120.7 mm (4.752 inches) starting 3.20 mm ± 1.5 mm (.125 inch ± .060 inch) from the right edge of the form. Standard Font Compressed Font Character Cell 10 half dots x 7 dots 10 half dots x 7 dots Character Size 7x7 7x7 Character Per Line 66 @ 13.9 CPI 80 @ 17.
5-14 Chapter 5: Technical Specifications Slip Throughput Bi-directional line speed is based on a printhead speed of 260 CPS. Throughput (±5%) at the standard line spacing (7.2 LPI) depends on line length expressed in characters: Line Length Character Density Lines Per Minute 40 Chars. 13.9 CPI (standard) 290 LPM 52 Chars. 13.9 CPI (standard) 237 LPM 66 Chars. 13.9 CPI (standard) 195 LPM 80 Chars. 17.
Chapter 5: Technical Specifications 5-15 Character Format The 7158 can place 66 standard characters, or 80 compressed characters, or 33 rotated characters, or 330 adjacent bits of graphics (660 addressable positions) in the 121 mm (4.752 inch) wide print zone. Minimum line height is 7 dots (.097 inch) for vertical print or graphics, and 6 dots (.083 inch) for rotated print.
5-16 Chapter 5: Technical Specifications Dimension Standard mm inch Compressed mm inch Rotated mm inch A .36 .0144 .30 .0117 .36 .0144 B .35 .0139 .35 .0139 .35 .0139 C 1.46 .0576 1.19 .0468 2.56 .1008 D 2.47 .0973 2.47 .0973 1.76 . 0695 E 1.83 .0720 1.48 .0585 3.66 .1440 F N/A N/A N/A N/A 2.11 .0834 G .35 Max. .014 Max. .35 Max. .014 Max. .35 Max . .014" Max.
Chapter 5: Technical Specifications Receipt Printing Receipt Format, 80mm Paper Width Print line width: 576 dots @ 8 dots/mm centered on 80 mm. Standard Font Compressed Font Character Cell 13 x 24 dots 10 x 24 dots Character Per Line 44 @ 15.6 CPI 56 @ 20.3 CPI Nominal Margins 4.25 mm (.167 inch) 5.00 mm (.200 inch) Minimum Margins 2.00 mm (.079 inch) 2.50 mm (.098 inch) Print line height: 24 dots @ 8 dots/mm + Extra Dot Rows between lines 0 EDR: 3.00 mm (.118 inch) ±3% 1 EDR: 3.12 mm (.
5-18 Chapter 5: Technical Specifications Print Zone Paper Width = 80 mm (3.15 in.) Printable Zone, 576 Dots = 72 mm (2.835 in.) Nominal Margins, 4 mm (0.157 in.) Cut Edge Cut Edge Top Margin, 17.8 mm (.70 in.) Minimum 44 Standard Columns = 71.5 mm (2.815 in.) 56 Compressed Columns = 70 mm (2.756 in.) The application centers 44 standard character cells (13 X 24 dots), or 56 compressed character cells (10 X 24 dots), or 576 addressable bits of graphics across an 80 mm wide receipt.
Chapter 5: Technical Specifications 5-19 When printing graphics or logos, converted from 6 dot/mm to 8 dot/mm (i.e. designed for 7156), the printable zone is expanded to 598 dots. Character Pattern for Standard 15.
5-20 Chapter 5: Technical Specifications 11 Dots 1.368 mm 0.054 in. 13 Dots 1.625 mm 0.064 in. Character Cell Character 19 Dots 2.388 mm 0.094 in. 24 Dots 3.00 mm 0.118 in. B - Upper Case m - Lower Case g - With Descender Ö - With Ascender $ - Both Ascender and Decsender # - Graphic Symbol Character Pattern for Compressed 20.3 CPI Pitch 8 Dots .995 mm .039 in. Character Character Cell 19 Dots 2.388 mm .094 in. 10 Dots 1.244 mm .049 in. 24 Dots 3.00 mm .118 in.
Chapter 5: Technical Specifications 5-21 Receipt Throughput: Maximum throughput is achieved at any dot coverage up to 25%, which includes any amount of text. But above that, throughput is dependent on the dot coverage and available electrical power. 25% Dot Coverage (Max Speed) 50% Dot Coverage and 75 W 50% Dot Coverage and 55 W 100% Dot Coverage and 75 W 100% Dot Coverage and 55 W Dot line period: 0.95 ms 0.95 ms 1.33 ms 2.05 ms 3.
5-22 Chapter 5: Technical Specifications Allowable Duty Cycle (measured over one minute of continuous printing) Amount of Dot Coverage Ambient Temperature 25°C 35°C 50°C 20% 100% 50% 20% 40% 50% 25% 10% 100% 20% 10% 4% Partial Cut Knife The "partial cut" produces a partial cut that leaves 5.0 ± 1.5 mm (.20 ± .06 inch) paper remaining on the left edge. Receipt Paper Low: The paper low assembly lights the On Line, Paper Status, Error LED when the roll is almost exhausted.
Chapter 5: Technical Specifications 5-23 Interface Description Human Interfaces • Receipt Paper-loading Door, on top of the cabinet. The receipt station will not print when this door is open. See “Loading Receipt Paper”. • Ribbon Cassette-loading Door, in front of the cabinet. The slip station will not print when this door is open. See “Putting in the Ribbon Cassette”. • Paper Feed Button, on top of the cabinet. • Manual Reset Button, accessed by opening the front door of the printer.
5-24 Chapter 5: Technical Specifications Receipt Cover Receipt Front Cover Slip or Check Paper Feed Button On-Line, Paper Status, Error LED (Green) Extended Slip Table Slip In LED (Green) Front of Printer Front Cover Reset Button
Chapter 5: Technical Specifications 5-25 Switch 1 is shown in the ON position On Off 4 3 2 1 DIP Switch DIP Switch Back of Printer Location of Human and Electrical Interfaces Power Requirements The 7158 draws 24VDC ±10% power from its standard 55W, or optional 75W, remote supply. The 7158 printer can accept 24VDC ±10% power from a host terminal. To meet NEC Class 2 safety requirements, the host terminal must provide a time delay fuse on the 24V input.
5-26 Chapter 5: Technical Specifications Electrical Interfaces The 7158 RS-232C is equipped with a 9 Pin male D-shell connector, which will accept an RS-232 cable with a mating female D-shell. The 7158 is equipped with a 3 Pin female, which mates with the integral shielded cable on the power supply. The power supply may be plugged into either a 110 or 240 VAC outlet with a grounded AC cord. The 7158 RS-232C has a cash drawer driver, which use a 6-contact Modular Jack (RJ11).
Chapter 5: Technical Specifications Switch Settings These are out-of-service tests or printer settings invoked via the 4 position DIP switch in the back of the printer. Level 1 diagnostics is entered (or exited) by turning switch 1 ON (or off) and resetting or power cycling the printer. Switch Setting Paper Feed Button Printer Function Switch 1 OFF Not actuated during reset Printer ready for normal operation. Actuated during reset Printer configuration message.
5-28 Chapter 5: Technical Specifications Code Page 437
Chapter 5: Technical Specifications Code Page 850 5-29
5-30 Chapter 5: Technical Specifications Code Page 852
Chapter 5: Technical Specifications Code Page 858 5-31
5-32 Chapter 5: Technical Specifications Code Page 860
Chapter 5: Technical Specifications Code Page 863 5-33
5-34 Chapter 5: Technical Specifications Code Page 865
Chapter 5: Technical Specifications Code Page 866 5-35
5-36 Chapter 5: Technical Specifications Dimensions and Weight Receipt Cover 280 mm (11.0 in.) Extended Slip Table 178 mm (7.0 in.) 229 mm (9.0 in.) 264 mm (10.4 in.) 347 mm (13.7 in.) Height 178 mm (7.0 inches) Height with Cover Open 280 mm (11.0 inches) Width 229 mm (9.0 inches) Depth 264 mm (10.4 inches) Depth with Extended Slip Table 347 mm (13.7 inches) Weight 4.3 kg (9.4 lbs.), Non-MICR 4.4 kg (9.6 lbs.), MICR and Extended Slip Table 4.9 kg (10.8 lbs.
Chapter 6: Communication Interface Communication Overview In order for the printer to communicate with the host, a communication link must be set up. The 7158 printer supports either the RS-232C or USB interfaces. The RS-232C interface has a protocol associated with it that the host must understand and adhere to. Only when the interface parameters match and the proper protocol are used will the host and the printer be able to communicate.
6-2 Chapter 6: Communication Interface Using BASIC to Send Commands In BASIC, printer commands are sent as a string of characters preceded by the LPRINT command. For example: LPRINT CHR$(&H0A) Sends the hexadecimal number 0A to the printer, which causes the printer to print the contents of its print buffer. Commands sent prior to 0A tell the printer exactly how data should appear on the paper. For example: LPRINT CHR$(&H12); "ABC"; CHR$(&H0A) Sends the hexadecimal numbers 12 41 42 43 0A to the printer.
Chapter 6: Communication Interface 6-3 RS-232C Interface The RS-232C interface uses either the XON/XOFF (software) or DTR/DSR (hardware) protocol to control the flow of information between the computer and the printer. For XON/XOFF, a particular character is sent back and forth between the host and the printer to regulate the communication. For DTR/DSR, changes in the DTR/DSR signal on the RS 232 interface coordinate the information flow.
6-4 Chapter 6: Communication Interface If the application sends data at 9600 baud and pauses between lines for as short a time as 50 milliseconds, the printer will never be able to print at full speed. However, if the application sends data at 19.2 K baud and does not pause between lines, the printer will be able to print at its full speed of 2400 lines/minute.
Chapter 6: Communication Interface No Delay after Each Line Characters/Line Lines/Receipt Transmit Time (19.2 K Baud) Process Time* 20 20 0.2 Seconds 0.5 Seconds 20 40 0.4 Seconds 1.0 Seconds 44 20 0.44 Seconds 0.5 Seconds 44 40 0.88 Seconds 1.0 Seconds RS-232C Communications The 7158 offers an industry standard RS-232C serial point-to-point interface, with options available to the user.
6-6 Chapter 6: Communication Interface [DTR SPACE] - When ready to accept data. - Remaining space in the 4K buffer rises above 512 bytes. ** [XON sent] - When ready to accept data after power on. - Remaining space in the 4K buffer rises above 512 bytes. ** [XOFF sent] - In an error state. - Remaining space in the 4K buffer falls below 256 bytes* * - 10 bytes in line mode. ** - 20 bytes in line mode. Sending data (status): In DTR/DSR mode, data is sent only when DSR is SPACE.
Chapter 6: Communication Interface XON character = hexadecimal 11. XOFF character = hexadecimal 13. DTR/DSR Protocol The DTR signal is used to control data transmission to and from the printer. It is driven low when the printer is ready to receive data and driven high when it cannot accept any more data. Data is transmitted from the printer after it confirms that the DSR signal is low.
6-8 Chapter 6: Communication Interface Connector Pin-outs This section describes the pin settings for the connectors on the back of the printer. Communication Connectors The following illustrations show the RS-232C communication connectors and pin assignments. The connectors are located at the rear of the printer, and are specified as: male DB9, 9-pin or female DB-25, 25 pin D-shell, with RTS and CTS pins connected.
Chapter 6: Communication Interface 6-9 Cash Drawer Connector A 6-contact modular jack (RJ11) is available to drive a cash drawer with dedicated feedback, or up to two cash drawers without feedback. The following illustration shows the pinouts for the cash drawer connector. Pin 1 Pin 6 The following table shows the pinouts for the cash drawer. The connector can support two cash drawers with a Y cable, and is located at the rear of the printer.
6-10 Chapter 6: Communication Interface
Chapter 7: Programming Guide Command Conventions The following information describes how each command is organized: Name: Name of command. ASCII: The ASCII control code. Hexadecimal: The Hexadecimal control code. Decimal: The Decimal control code. Value: A description of the command operands. Range: The upper and lower limits of the command operand. Default: The command operand default after printer reset. Description: Brief description and summary of the command.
7-2 Chapter 7: Programming Guide List of Commands and Location Commands control all operations and functions of the printer. This includes selecting the size and placement of characters and graphics on the receipt or the slip and feeding and cutting the paper. Any of the commands may be used in any combination to program a host computer to communicate with the printer (unless otherwise noted). Some commands listed and described here may not be implemented. They will be identified as “not implemented”.
Chapter 7: Programming Guide Code (Hexadecimal) Command Page 16 n Add n Extra Dot Rows 39 17 Print 40 18 Open Form 23 18 Cancel Print Data in Page Mode 121 19 Perform Full Knife Cut 24 1A Perform Partial Knife Cut 24 1B followed by the BMP file data characters Download BMP Logo 74 1B 07 Generate Tone 24 1B 0C Print Data in Page Mode 121 1B 12 Select 90 Degree Counter-Clockwise Rotated Print 54 1B 14 n Set Column 45 1B 16 n Select Pitch (Column Width) 55 1B 20 n Set C
7-4 Chapter 7: Programming Guide Code (Hexadecimal) Command Page 1B 34 m a0 a1 a2 Read from User Data Storage 147 1B 3A 30 30 30 Copy Character Set from ROM to RAM 62 1B 3C Return Home 25 1B 3D n Select Peripheral Device (For MultiDrop) 25 1B 3F n Cancel User-defined Characters 63 1B 40 Initialize Printer 26 1B 43 n Set Slip Paper Eject Length 26 1B 44 [n] k 00 Set Horizontal Tabs 47 1B 45 n Select or Cancel Emphasized Mode 63 1B 47 Select Double Strike (A756 Emulation) 64
Chapter 7: Programming Guide Code (Hexadecimal) Command Page for MICR Read 1B 63 31 n Select Receipt or Slip for Setting Line Spacing 28 1B 63 33 n Select Paper Sensors to Output Paper End Signals (Parallel Only) 29 1B 63 34 n Select Sensors to Stop Printing 30 1B 63 35 n Enable or Disable Panel Buttons 30 1B 63 36 n Enable or Disable Online Switch 31 1B 64 n Print and Feed n Lines 43 1B 65 n Print and Reverse Feed n Lines 43 1B 66 m n Set Slip Paper Waiting Time 31 1B 69 Perfor
7-6 Chapter 7: Programming Guide Code (Hexadecimal) Command Page 1D 00 Request Printer ID 152 1D 01 Return Segment Number Status of Flash Memory 152 1D 02 n Select Flash Memory Sector to Download 153 1D 03 n Real Time Request to Printer (DLE Sequence) 107 1D 04 n Real Time Status Transmission (GS Sequence) 103 1D 05 Real Time Printer Status Transmission 109 1D 06 Get Firmware CRC 153 1D 07 Return Microprocessor CRC 154 1D 0E Erase the Flash Memory 154 1D 0F Return Main Progr
Chapter 7: Programming Guide Code (Hexadecimal) Command Page 1D 48 n Select Printing Position for HRI Characters 114 1D 49 n Transmit Printer ID 89 1D 49 40 n Transmit Printer ID, Remote Diagnostics Extension 91 1D 4C nL nH Set Left Margin 51 1D 50 x y Set Horizontal and Vertical Minimum Motion Units 44 1D 56 m Select Cut Mode and Cut Paper 34 1D 56 m n Select Cut Mode and Cut Paper 34 1D 57 nL nH Set Printing Area Width 52 1D 5C nL nH Set Relative Vertical Print Position in Pag
7-8 Chapter 7: Programming Guide By Function All items in BOLD are new or have additional functionality when compared to the 7156.
Chapter 7: Programming Guide 1B 7A n Select or Cancel Parallel Printing Mode on R&J 32 1C Select Slip Station 33 1D 56 m Select Cut Mode and Cut Paper 34 1D 56 m n Select Cut Mode and Cut Paper 34 1E Select Receipt Station 35 1F 74 Print Test Form 35 Vertical Positioning and Print Commands Code (Hexadecimal Command Page 0A Print and Feed Paper One Line 36 0C Print and Return to Standard Mode/Print and Eject Slip 36 0D Print and Carriage Return 37 14 n Feed n Print Lines 37
7-10 Chapter 7: Programming Guide Horizontal Positioning Commands Code (Hexadecimal Command Page 09 Horizontal Tab 45 1B 14 n Set Column 45 1B 24 n1 n2 Set Absolute Starting Position 46 1B 44 [n] k 00 Set Horizontal Tabs 47 1B 5C n1 n2 Set Relative Print Position 48 1B 61 n Select Justification 50 1D 4C nL nH Set Left Margin 51 1D 57 nL nH Set Printing Area Width 52
Chapter 7: Programming Guide 7-11 Print Characteristic Commands Code (Hexadecimal Command Page 12 Select Double-Wide Characters 53 13 Select Single-Wide Characters 53 1B 12 Select 90 Degree Counter-Clockwise Rotated Print 54 1B 16 n Select Pitch (Column Width) 55 1B 20 n Set Character Right-Side Spacing 56 1B 21 n Select Print Modes 57 1B 25 n Select or Cancel User-Defined Character Set 58 1B 26 s c1 c2 d1…dn Define User-Defined Characters 59 1B 2D n Select or Cancel Underline
7-12 Chapter 7: Programming Guide Graphics Commands Code (Hexadecimal Command Page 1B followed by the BMP Download BMP Logo file data characters 74 1B 2A m n1 n2 d1…dn Select Bit Image Mode 75 1B 4C n1 n2 d1…dn Select Double-Density Graphics (in A756 Emulation Mode) 78 1B 59 n1 n2 d1…dn Select Double-Density Graphics 78 1D 23 n Select Current Logo (Downloaded Bit Image) 79 1D 2A n1 n2 d1…dn] Define Downloaded Bit Image 81 1D 2F m Print Downloaded Bit Image 83 1F 04 n Convert 6 Dots
Chapter 7: Programming Guide Real Time Code (Hexadecimal Command Page 10 04 n Real Time Status Transmission (DLE Sequence) 103 10 05 n Real Time Request to Printer (GS Sequence) 107 1D 03 n Real Time Request to Printer (DLE Sequence) 107 1D 04 n Real Time Status Transmission (GS Sequence) 103 1D 05 Real Time Printer Status Transmission 109 Auto Status Back Code (Hexadecimal Command Page 1D 61 n Select or Cancel Auto Status Back 110 Barcode Commands Code (Hexadecimal Command Page
7-14 Chapter 7: Programming Guide Page Mode Commands Code (Hexadecimal Command Page 0C Print and Return to Standard Mode/Print and Eject Slip 120 18 Cancel Print Data in Page Mode 121 1B 0C Print Data in Page Mode 121 1B 4C Select Page Mode 122 1B 53 Select Standard Mode 123 1B 54 n Select Print Direction in Page Mode 124 1B 57 n1, n2…n8] Set printing Area in Page Mode 125 1D 24 nL nH Set Absolute Vertical Print Position in Page Mode 127 1D 5C nL nH Set Relative Vertical Print
Chapter 7: Programming Guide MICR Parsing Code (Hexadecimal Command Page 1B 77 50 Define Parsing Format, Save in NVRAM 132 1B 77 70 Define Parsing Format, Do Not Save Permanently 132 Code (Hexadecimal Command Page 1B 77 46 Check Flip Command 146 Check Flip Commands User Data Storage Commands Code (Hexadecimal Command Page 1B 27 m addr d1…dm Write to User Data Storage 146 1B 34 m addr Read from User Data Storage 147 1B 6A k Read from Non-Volatile Memory 147 1B 73 n1 n2 k Write t
7-16 Chapter 7: Programming Guide Flash Download Commands Code (Hexadecimal Command Page 1B 5B 7D Switch Flash Download Mode 151 1D 00 Request Printer ID 152 1D 01 Return Segment Number Status of Flash Memory 152 1D 02 n Select Flash Memory Sector to Download 153 1D 06 Get Firmware 153 1D 07 Return Microprocessor CRC 154 1D 0E Erase the Flash Memory 154 1D 0F Return Main Program Flash CRC 154 1D 10 n Erase Selected Flash Sector 155 1D 11 aL aH cL cH d1…dn Download to Active
Chapter 7: Programming Guide 7-17 Comparison to 7156 New Features There are a number of new firmware features in the A758 Native Mode. These include: 1. Page Mode on the receipt 2. Additional Code pages 3. Additional character attributes 4. Flip 5. More flexible handling of User-defined Characters and Logos (Downloadable Bit Image) 6. Higher baud rates 7. 8 High graphics on slip 8. Macro capabilities 9.
7-18 Chapter 7: Programming Guide Additional character attributes The 7158 includes support for additional character attributes including Bold, Italics, Underline, Black/White Reverse Print, Superscript, Subscript, and Scaling. Flip The 7158 can flip a check on command. Additional flexibility when using User-defined Characters and Logos (Downloadable Bit Image) The 7158 can process User-defined Characters and Logos simultaneously.
Chapter 7: Programming Guide Macro Capability The 7158 supports the ability to record and execute a series of commands called a macro. Additional Remote Diagnostics The 7158 supports 5 additional remote diagnostics.
7-20 Chapter 7: Programming Guide Comparison Chart The following table details the list of commands whose behavior differs from the 7156 because of the physical differences of a 6 dots/mm head (7156) versus an 8 dots/mm head (7158). Command Description Difference between 7156 and 7158 configured inA 756 Emulation Mode. 15 n Feed n Dot Rows This command will move the paper on the receipt in n/203 inch steps instead of n/152 inch steps.
Chapter 7: Programming Guide Command Description 7-21 Difference between 7156 and 7158 configured inA 756 Emulation Mode. Graphics scales the graphics to provide the best match. 1B 5C n1 n2 Set Relative Print Position The parameter to this command is in units of dots. However, the command moves and aligns to character positions.
7-22 Chapter 7: Programming Guide Command Descriptions Printer Function Commands The printer function commands control the following basic printer functions and are described in order of their hexadecimal codes: 1. Station Select 2. Platen Control 3. Resetting the printer 4. Cutting the paper 5. Opening the cash drawers Clear Printer ASCII: DLE Hexadecimal: 10 Decimal: 16 Clears the print line buffer without printing and sets the printer to the following condition: 1. Receipt station is selected 2.
Chapter 7: Programming Guide 7-23 Exceptions: In printers with the Parallel interface, this command also returns paper exhaust to the paper status line if an alternate status has been requested. A DLE command followed by an 04 or 05 is interpreted as a “real time command”. (See Real Time commands) Close Form ASCII: Hexadecimal: Decimal: DC1 11 17 Closes the feed roller and platen (forms compensation arm assembly) and retracts the forms arm stop unconditionally.
7-24 Chapter 7: Programming Guide Perform Full Knife Cut ASCII: Hexadecimal: Decimal: EM or ESC i 19 or 1B 69 25 or 27 105 Cuts the receipt, leaving .20 inch (5 mm) of paper. This command is implemented the same as Partial Knife Cut (1A, 1B 6D). There are two codes for this command. Both codes perform the same function. Line Feed is executed first if print buffer is not empty. This command is processed regardless of which station is selected.
Chapter 7: Programming Guide 7-25 Return Home ASCII: Hexadecimal: Decimal: ESC < 1B 3C 27 60 Moves the impact printhead (unless already there) to the home position. Related Information: The printer is able to detect carriage motor jams, eliminating the need to home the printhead after each slip transaction.
7-26 Chapter 7: Programming Guide Initialize Printer ASCII: Hexadecimal: Decimal: ESC @ 1B 40 27 64 Default: Character Pitch Column Width Extra Dot Rows Character Set Printing Position Receipt 15.6 CPI 44 characters 2 Code Page 437 Column One Slip 13.9 CPI 66 characters 3 Code Page 437 Column One Clears the print line buffer and resets the printer to the default settings for the startup configuration (refer to Default settings above.
Chapter 7: Programming Guide 7-27 Select Receipt or Slip for Printing; Slip for MICR Read ASCII: Hexadecimal: Decimal: ESC c 0 n 1B 63 30 n 27 99 48 n Value of n : 1, 2, 3 Receipt selected 4 Default of n : Slip selected 1 Selects the station for printing. When slip is selected, the printer waits (based on the slip waiting time setting [ie: 1B 66 m n]) for the paper to be inserted. When slip has already been selected and the selection is changed, the form is opened.
7-28 Chapter 7: Programming Guide Select Receipt or Slip for Setting Line Spacing ASCII: Hexadecimal: Decimal: ESC c 1 n 1B 63 31 n 27 99 49 n Value of n: 1, 2, 3 Select receipt 4 Default of n : Select Slip 1 Selects which station receives the effects of the following commands: 1. Select Default Line Spacing (1B 32) 2. Set Line Spacing (1B 33) 3. Add n extra dot rows (16 n) Exceptions: This command is ignored if n is out of range.
Chapter 7: Programming Guide 7-29 Select Paper Sensors to Output Paper End Signals (Parallel Only) ASCII: Hexadecimal: Decimal: ESC c 3 n 1B 63 33 n 27 99 51 n Value of n : If either bit 0 or bit 1 is on, the paper roll near-end sensor is selected as the paper sensor outputting paper-end signals. If either bit 2 or bit 3 is on, the paper roll end sensor is selected as the paper sensor outputting paper-end signals.
7-30 Chapter 7: Programming Guide Select Sensors to Stop Printing ASCII: Hexadecimal: Decimal: ESC c 4 n 1B 63 34 n 27 99 52 n Value of n : Bit of n Bit Function Bit 0, 1 Stop Receipt on Receipt Low Bit 4 Stop Slip if Trailing Edge Uncovered Bit 5 Stop Slip if Leading Edge Uncovered Default: 0 Determines which sensor stops printing on the respective station.
Chapter 7: Programming Guide 7-31 Enable or Disable Online Switch ASCII: Hexadecimal: Decimal: ESC c 6 n 1B 63 36 n 27 99 54 n Value of n : 0, 1 Since the 7158 does not have an Online Switch, this command is ignored. Set Slip Paper Waiting Time ASCII: Hexadecimal: Decimal: ESC f m n 1B 66 m n 27 102 m n Value of m : Value of n : Minutes Tenths of seconds Sets the time (in m minutes) that the printer waits for a slip to be inserted into the slip station. It also sets the time (n x 0.
7-32 Chapter 7: Programming Guide Generate Pulse to Open Cash Drawer ASCII: Hexadecimal: Decimal: ESC p n p1 p2 1B 70 n p1 p2 27 112 n p1 p2 Value of n : 0, 48 = Drawer 1 1, 49 = Drawer 2 Value of p1 Value of p2 : : 0 - 255 0 - 255 Sends a pulse to open the cash drawer. Formulas: The value for either p1 or p2 is the hexadecimal number multiplied by 2 msec to equal the total time. 1. On time = p1 x 2 msec 2.
Chapter 7: Programming Guide 7-33 Select Slip Station ASCII: Hexadecimal: Decimal: FS 1C 28 Selects the Slip Station for all functions. The receipt station is the default setting after the printer is initialized or the Clear Printer (0x10) command is received.
7-34 Chapter 7: Programming Guide Select Cut Mode and Cut Paper ASCII: Hexadecimal: Decimal: Value of m Value of n : GS V m 1D 56 m 29 86 m : GS V m n 1D 56 m n 29 86 m n Selects the mode as shown in the table Determines cutting position only if m is 65 or 66. M Feed and Cut Mode 0, 48 Full cut (no extra feed). Partial cut on the 7158. 1, 49 Partial cut (no extra feed). 65 Feeds paper to cutting position + (n times vertical motion unit), and cuts the paper completely.
Chapter 7: Programming Guide 7-35 Select Receipt Station ASCII: RS Hexadecimal: 1E Decimal: 31 Selects the Receipt Station for all functions. The receipt station is the default setting after the printer is initialized or the Clear Printer (0x10) command is received. Print Test Form ASCII: Hexadecimal: Decimal: AX t 1F 74 31 116 Prints the current printer configuration settings on the receipt. Disabled in page mode. Exception: This command is available in A758 Native Mode only.
7-36 Chapter 7: Programming Guide Vertical Positioning and Print Commands The vertical positioning and print commands control the vertical print positions of characters on the receipt and slip. Print and Feed Paper One Line ASCII: Hexadecimal: Decimal: LF 0A 10 Prints one line from the buffer and feeds paper one line. Carriage Return/Line Feed pair prints and feeds only one line.
Chapter 7: Programming Guide 7-37 Print and Carriage Return ASCII: Hexadecimal: Decimal: CR 0D 13 Prints one line from the buffer and feeds paper one line. The printer can be set through the configuration menu to ignore or use this command. Some applications expect the command to be ignored while others use it as print command. Related Information: See Ignoring/Using the Carriage Return in Diagnostics for more information. Carriage Return/ Line Feed pairs prints and feeds only one line.
7-38 Chapter 7: Programming Guide Feed n Dot Rows ASCII: Hexadecimal: Decimal: NAK n 15 n 21 n Value of n: Slip Receipt n/203 inch n/72 inch Range of n : 0 – 127 A756 Emulation Mode 0 – 255 A758 Native Mode Feeds paper n dot rows without printing. Receipt moves n rows if the print buffer is empty.
Chapter 7: Programming Guide Add n Extra Dot Rows ASCII: Hexadecimal: Decimal: SYN n 16 n 22 n Value of n: Slip Receipt n/203 inch n/72 inch Range of n: 0 - 12 Default: Receipt 3 Slip 3 Adds n extra dot rows to the character height to increase space between print lines or decrease number of lines per inch.
7-40 Chapter 7: Programming Guide Print ASCII: Hexadecimal: Decimal: ETB 17 23 Prints one line from the buffer and feeds paper one line. Executes LF on receipt. Executes LF on slip if previous character was not a CR. Set Line Spacing to 1/6 Inch ASCII: Hexadecimal: Decimal: ESC 2 1B 32 27 50 Default: 0.13 Inch (3.33 mm) Sets the default line spacing to 1/6 of an inch (4.25 mm).
Chapter 7: Programming Guide 7-41 Set Line Spacing ASCII: Hexadecimal: Decimal: ESC 3 n 1B 33 n 27 51 n Value of n: n/406 inches on receipt n/144 inches in slip Range of n: 0 – 255 Default: .13 inch (3.37 mm or 7.52 lines per inch, 3 Receipt extra dot rows.) Slip .14 inch (7.2 lines per inch, 3 extra dot rows.) Sets the line spacing for the receipt and for the slip. For the receipt the spacing is set to n/406 inches. For the slip, the line spacing is set to n/144 inches.
7-42 Chapter 7: Programming Guide Print and Feed Paper ASCII: Hexadecimal: Decimal: ESC J n 1B 4A n 27 74 n Value of n: n/203 inches receipt n/144 inches slip Range of n: 0 - 255 Prints one line from the buffer and feeds the paper. On the receipt station, the line height equals the character height when n is too small. This does not apply to the slip station. Use n = 0 to print a line without feeding the paper. This allows the printer to print on the last line of the slip (at .
Chapter 7: Programming Guide 7-43 Print and Feed n Lines ASCII: Hexadecimal: Decimal: ESC d n 1B 64 n 27 100 n Value of n: Number of lines to be printed and fed. Range of n: 1 – 255 (0 is interpreted as 1 on the receipt station) Prints one line from the buffer and feeds paper n lines at the current line height. Print and Reverse Feed n Lines ASCII: Hexadecimal: Decimal: ESC e n 1B 65 n 27 101 n Value of n: The number of lines on the slip station to be reverse fed.
7-44 Chapter 7: Programming Guide Reverse Feed n Dots ASCII: Hexadecimal: Decimal: GS NAK n 1D 15 n 29 21 n Value of n: n dots at 1/72 inch Range of n : 0 – 127 A756 Emulation Mode 0 – 255 A758 Native Mode Reverses the paper feed in the slip station by n dots at 1/72 inch (NCR 7150™ command). This command is ignored if receipt station is selected.
Chapter 7: Programming Guide 7-45 Horizontal Positioning Commands The horizontal positioning commands control the horizontal print positions of characters on the receipt and slip. Horizontal Tab ASCII: Hexadecimal: Decimal: HT 09 9 Moves the print position to the next tab position set by the Set Horizontal Tab Positions (1B 44 n1 n2 ... 00) command. The print position is reset to column one after each line.
7-46 Chapter 7: Programming Guide Set Absolute Starting Position ASCII: Hexadecimal: Decimal: ESC $ n1 n2 1B 24 n1 n2 27 36 n1 n2 Value of n: Number of dots to be moved from the beginning of the line. Value of n1 : Remainder after dividing n by 256. Value of n2 : Integer after dividing n by 256. The values for n1 and n2 are two bytes in low byte, high byte word orientation. Sets the print starting position to the specified number of dots (up to the right margin) from the beginning of the line.
Chapter 7: Programming Guide 7-47 Set Horizontal Tabs ASCII: Hexadecimal: Decimal: ESC D [n] k NUL 1B 44 [n] k 00 27 68 [n] k 0 Value of n: Column for tab minus one. n is always less than or equal to the current selected column width. Value of k: 0 - 32 Default: print. Every 8 characters from column. 1 (9, 17, 25, etc.) for normal Sets up to 32 horizontal tab positions n columns from column one, but does not move the print position. See the Horizontal Tab (09) command.
7-48 Chapter 7: Programming Guide Set Relative Print Position ASCII: Hexadecimal: Decimal: ESC \ n1 n2 1B 5C n1 n2 27 92 n1 n2 Value of n: To Move the Relative Starting Position Right of the Current Position by n dots: 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.
Chapter 7: Programming Guide 7-49 65,516/256 = 255, remainder of 236 n1 = 236 n2 = 255 To move to the right: Determine the value of n by multiplying the number of columns to move right of the current position by 10 (slip or receipt standard pitch) or 8 (receipt 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.
7-50 Chapter 7: Programming Guide Select Justification ASCII: Hexadecimal: Decimal: ESC a n 1B 61 n 27 97 n Value of n: 0, 48 = Left Aligned 1, 49 = Center Aligned 2, 50 = Right Aligned Range of n: 0 – 2, 48-50 Default: 0 (Left aligned) Specifies the alignment of the characters, graphics, logos, and bar codes on the receipt station. Exceptions: The command is valid only when input at the beginning of a line.
Chapter 7: Programming Guide 7-51 Set Left Margin ASCII: Hexadecimal: Decimal: GS L nL nH 1D 4C nL nH 29 76 nL nH Range of nL: 0 - 255 Range of nH: 0 - 255 Default 576 dots (the maximum printable area) : Sets the left margin of the printing area. The left margin is set to (((nH X 256) + nL) times horizontal motion unit) inches. The horizontal motion units are set by the Set Horizontal and Vertical Minimum Motion Units command (1D 50), described in this manual.
7-52 Chapter 7: Programming Guide Set Printing Area Width ASCII: Hexadecimal: Decimal: GS W nL nH 1D 57 nL nH 29 87 nL nH Range of nL: 0 – 255 Range of nH: 0 - 255 Default: 576 dots (the maximum printable area) Sets the width of the printing area. If the setting exceeds the printable area, the maximum value of the printable area is used. The width of the printing area is set to (((nH X 256) + nL) times horizontal motion unit) inches.
Chapter 7: Programming Guide 7-53 Print Characteristic Commands These commands control what the printed information looks like: selection of character sets, definition of custom-defined characters, and setting of margins. The commands are described in order of their hexadecimal codes Select Double-Wide Characters ASCII: Hexadecimal: Decimal: DC2 12 18 Prints double-wide characters. The printer is reset to single-wide mode after a line has been printed or the Clear Printer (0x10) command is received.
7-54 Chapter 7: Programming Guide Select 90 Degree Counter-Clockwise Rotated Print ASCII: Hexadecimal: Decimal: ESC DC2 1B 12 27 18 Rotates characters 90 degrees counter-clockwise. The command remains in effect until the printer is reset or until a Clear Printer (0x10), Select or Cancel Upside-Down Print (1B 7B), or Select or Cancel Rotated Print (1B 56) command is received. Exceptions: This command is valid only at the beginning of a line.
Chapter 7: Programming Guide 7-55 Select Pitch (Column Width) ASCII: Hexadecimal: Decimal: ESC SYN n 1B 16 n 27 22 n Value of n: 0 = Standard Pitch 1 = Compressed Pitch Default: 0 (Standard pitch) Selects the character pitch for a print line. Formulas: The following table provides the print characteristics for both pitches on the receipt and slip stations. Pitch Receipt Columns Receipt CPI Slip Columns Slip CPI Standard 44 15.6 66 13.9 Compressed 56 20.3 80 17.
7-56 Chapter 7: Programming Guide Set Character Right-Side Spacing ASCII: Hexadecimal: Decimal: ESC SP n 1B 20 n 27 32 n Range of n: 0 - 32 Default 0 : Sets the right side character spacing to [n x horizontal or vertical motion units]. Values for this command are set independently in Standard and Page Mode. The units of horizontal and vertical motion are specified by the Set Horizontal and Vertical Minimum Motion Units (1D 50…) command.
Chapter 7: Programming Guide 7-57 Select Print Modes ASCII: Hexadecimal: Decimal: ESC ! n 1B 21 n 27 33 n Value of n: Pitch selection (standard, compressed, double high, or double wide.) Value of n Bit Function 0 1 Pitch1 Bit 0 Pitch Standard Compressed Pitch 44 Col/Line, 15.6 CPI (Rec) 56 Col/Line, 20.3 CPI (Rec) 66 Col/Line, 13.9 CPI (Slip) 80 Col/Line, 17.
7-58 Chapter 7: Programming Guide Related Information: The bits in this command perform the same function as the standalone functions: 1B 16 n Select Pitch 1B 45 n Emphasized 12 Double-wide 13 Single-wide 1B 2D n Underline Select or Cancel User-Defined Character Set ASCII: Hexadecimal: Decimal: ESC % n 1B 25 n 27 37 n Value of n: 0= Code Page 437 1= User-defined (RAM character set) with Code Page 437 as the basis 2= Code Page 850 3= User-defined (RAM character set) with Code Page 850 as the basis Ran
Chapter 7: Programming Guide 7-59 Define User-Defined Characters Receipt ASCII: ESC & 3 c1 c2 n1 d1 ... nn dn Hexadecimal: 1B 26 3 c1 c2 n1 d1 ... nn dn Decimal: 27 38 3 c1 c2 n1 d1 ... nn dn Slip ESC & 0 c1 c2 d1 ... dn 1B 26 0 c1 c2 d1 ... dn 27 38 0 c1 c2 d1 ... dn Defines and enters downloaded characters into RAM or Flash. The command may be used to overwrite single characters. User-defined characters are available until power is turned off or the Initialize Printer command (1B 40) is received.
7-60 Chapter 7: Programming Guide Defining User-Defined Characters for the Slip and Receipt Station Defines and enters downloaded characters into RAM.
Chapter 7: Programming Guide 7-61 n = 1-10 (standard pitch), 12 and less accepted but ignored n = 1-8 (compressed pitch), 12 and less accepted but ignored d = the column data for the nth character as specified by d1 ... dn The number of bytes for a particular character cell is 3 x n1. The bytes are printed down and across each cell.
7-62 Chapter 7: Programming Guide Select or Cancel Underline Mode ASCII: Hexadecimal: Decimal: ESC - n 1B 2D n 27 45 n Value of n: 0, 48 = Cancel underline mode 1, 49 = Select underline mode Default of n: 0 (Cancels underline mode) Turns underline mode on or off. Underlines cannot be printed for spaces set by the Horizontal Tab, Set Absolute Start Position, or Set Relative Print Position commands. This command and the Select Print Mode(s) command (1B 21) turn underline on and off in the same way.
Chapter 7: Programming Guide 7-63 Cancel User-Defined Characters ASCII: Hexadecimal: Decimal: ESC ? n 1B 3F n 27 63 n Value of n: Specified character code Range of n: 32 - 255 Cancels the pattern defined for the character code specified by n. After the user-defined character is canceled, the corresponding pattern from Code Page 437 is printed. Exceptions: This command is ignored if n is out of range or if the user-defined character is not defined.
7-64 Chapter 7: Programming Guide Select Double Strike A756 Emulation ASCII: Hexadecimal: Decimal: ESC G 1B 47 27 71 Value of n: 0 = Off 1 = On A758 Native ESC G n 1B 47 n 27 71 n Turns double strike mode on for the slip station. Overprints a second pass of the print line on the slip station to improve penetration of multi-part forms and increase print contrast. The second pass is printed the same direction as the first to ensure accuracy of the overprint.
Chapter 7: Programming Guide Select or Cancel Italic Print ASCII: Hexadecimal: Decimal: ESC I n 1B 49 n 27 73 n Value of n: 0 = Off 1 = On (When 0 and 1 are the Least Significant Bit, LSB) Default: 0 (Off) Turns Italic print mode on or off. This command is only available in A758 Native Mode. Italic print mode is available for built-in, userdefined characters. This command only works on the receipt station. Exceptions: Only the lowest bit of n is valid.
7-66 Chapter 7: Programming Guide Select International Character Set ASCII: Hexadecimal: Decimal: ESC R n or 1B 52 n or 27 82 n or ESC t n 1B 74 n 27 116 n A758 Native Mode A756 Emulation Value of n: 0 = Code Page 437 1 = Code Page 850 2 = Code Page 852 3 = Code Page 860 4 = Code Page 863 5 = Code Page 865 6 = Code Page 858 7 = Code Page 866 0 = Code Page 437 1 = Code Page 850 Default: 0 (Code Page 437) Selects the character set to be used. See Print Specifications for the character sets.
Chapter 7: Programming Guide 7-67 Select or Cancel Unidirectional Printing Mode ASCII: Hexadecimal: Decimal: ESC U n 1B 55 n 27 85 n Value of n: 0 = select bi-directional 1 = select unidirectional Default: 0 Toggles between unidirectional and bi-directional printing on the slip station. Unidirectional printing increases column alignment and provides higher quality printing. Printing is normally bi-directional because of the faster speed.
7-68 Chapter 7: Programming Guide Select or Cancel Upside Down Printing Mode ASCII: Hexadecimal: Decimal: ESC { n 1B 7B n 27 123 n Value of n: 0 = Cancel 1 = Set Default: 0 (Cancel) Prints upside-down characters. The character order is inverted in the buffer so text is readable. The command remains in effect until the Rotated Print (1B 12) command is received. Only bit 0 is used. Bits 1-7 are not used. See Summary of Rotated Printing in this document for more information.
Chapter 7: Programming Guide Select Character Size ASCII: Hexadecimal: Decimal: GS ! n 1D 21 n 29 33 n Value of n: 1 - 8 = vertical number of times normal font 1 – 8 = horizontal number of times normal font Range of n: 00 – 07, 10 – 17, … 70 – 77 Default of n: 0 Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 7, as follows: Character Width Selection Hex Decimal Width 00 0 1 (normal) 10 16 2 (two times width) 20 32 3 (three times width) 30 48
7-70 Chapter 7: Programming Guide This command is effective for all characters (except for HRI characters). In Standard Mode, the vertical direction is the paper feed direction, and the horizontal direction is perpendicular to the paper feed direction. However, when character orientation changes in 90 degree clockwise-rotation mode, the relationship between vertical and horizontal directions is reversed. In Page Mode, vertical and horizontal direction are based on the character orientation.
Chapter 7: Programming Guide 7-71 Select or Cancel White/Black Reverse Print Mode ASCII: Hexadecimal: Decimal: GS B n 1D 42 n 29 66 n Value of n: 0 = Off 1 = On (Only the lowest bit is used.) Range of n: 0 – 255 Default of n: 0 (Off) Turns on White/Black reverse printing mode. This command is only available in A758 Native Mode. In White/Black reverse printing mode, print dots and non-print dots are reversed, which means that white characters are formed by printing a black background.
7-72 Chapter 7: Programming Guide Select Superscript or Subscript Modes ASCII: Hexadecimal: Decimal: AX ENQ n 1F 05 n 31 05 n Value of n: 0 = Normal character size 1 = Select subscript size 2 = Select superscript size Default: 0 (normal size) Turns superscript or subscript modes on or off. This attribute may be combined with other characters size settings commands ( 12, 13, 1B 21 n, 1D 21 n, …) This command is only available on the receipt station in A758 Native Mode.
Chapter 7: Programming Guide 7-73 Summary of Rotated Printing The table shows the combinations of Set/Cancel Upside-Down Print, Set/Cancel Rotated Print (clockwise), and Rotated Print (counterclockwise). Rotated CCW is mutually exclusive with the other two commands. Unintended consequences may result when rotated CCW is mixed with other commands.
7-74 Chapter 7: Programming Guide Graphics Commands These commands are used to enter and print graphics data and are described in order of their hexadecimal codes. Download BMP Logo ASCII: Hexadecimal: Decimal: ESC followed by the BMP file data characters 1B followed by the BMP file data characters 27 followed by the BMP file data characters Value: Maximum width = Maximum height = 576 512 Enters a BMP file into RAM or Flash.
Chapter 7: Programming Guide 7-75 Select Bit Image Mode ASCII: Hexadecimal: Decimal: ESC * m n1 n2 d1 ... dn 1B 2A m n1 n2 d1 ... dn 27 42 m n1 n2 d1 ... dn Sets the print resolution and enters one line of graphics data into the print buffer. Excess data is accepted but ignored. Any print command is required to print the data, after which the printer returns to normal processing mode. See the illustration graphic representation of the bit image.
7-76 Chapter 7: Programming Guide In single density, one byte (7 dots) is printed in each full dot column; in double density, one byte is printed in each half/full dot column. *Adjacent horizontal dots (overlapping dots) are not printed on the slip. **In A758 Native Mode. There are 8 vertical dots.
Chapter 7: Programming Guide 24-Dot Single-Density Mode—Receipt Only Top of Bit Image d1 d4 d7 MSB d2 d5 dn d3 d6 dn LSB 7-77
7-78 Chapter 7: Programming Guide Select Double-Density Graphics ASCII: Hexadecimal: Decimal: ESC Y n1 n2 d1 … dn or ESC L n1 n2 d1 ... dn 1B 59 n1 n2 d1 ... dn or 1B 4C n1 n2 d1 … dn 27 89 n1 n2 d1 ... dn or 27 76 n1 n2 d1 ...
Chapter 7: Programming Guide 7-79 Select the Current Logo (Downloaded Bit Image) ASCII: Hexadecimal: Decimal: GS # n 1D 23 n 29 35 n Range of n: 0 – 255 Selects a logo to be defined or printed. The active logo n remains in use until this command is sent again with a different logo n. When this command precedes a logo definition, that definition is stored in Flash Memory as logo n.
7-80 Chapter 7: Programming Guide Exceptions: This command is only valid for the receipt station. However, it will be processed correctly regardless of whether the receipt station is currently selected.
Chapter 7: Programming Guide 7-81 Define Downloaded Bit Image ASCII: Hexadecimal: Decimal: GS * n1 n2 d1 ... dn] 1D 2A n1 n2 d1 ... dn] 29 42 n1 n2 d1 ... dn Value of n1: Value of n2: Value of d: See the following table. See the following table. See the following table.
7-82 Chapter 7: Programming Guide C olum n Top of G raphic O ne R ow O ne C olum n 72 x 8 M ax. d d1 65 d2 MSB dn R ow 64 d M ax. 64 dn LSB Exceptions: See the illustration for the Print Downloaded Bit Image command (1D 2F) for a representation of the bit image. Related Information: See 1D 22 n (Select Memory Type to store logos) and 1D 23 n (Select the Current Logo.
Chapter 7: Programming Guide 7-83 Print Downloaded Bit Image ASCII: Hexadecimal: Decimal: GS / m 1D 2F m 29 47 m Value and Range of m: Value of m Print Mode Vertical DPI1 Horizontal DPI* 0 1 2 3 Normal Double Wide Double High Quadruple 203 203 101 101 203 101 203 101 1Dot density measured in dots per inch Prints a downloaded bit image in RAM or Flash on the receipt station at a density specified by m.
7-84 Chapter 7: Programming Guide Convert 6 Dots/mm Bitmap to 8 Dots/mm Bitmap ASCII: Hexadecimal: Decimal: AX EOT n 1F 04 n 31 04 n Value: 0 = Off 1 = On Default: 0 (Off) Selects or cancels 6 dot/mm in A756 Emulation Mode. When the 6 dot/mm emulation is selected, logos and graphics are expanded horizontally and vertically to emulate their size on a 6 dot/mm printer. The horizontal positioning commands also emulate positioning on a 6 dot/mm printer.
Chapter 7: Programming Guide 7-85 Status Commands Status Command Introduction The 7158 has three methods of providing status to the application. These methods are through Batch Status Commands, Real Time Status Commands, and Auto Status Back. An application may use one or more of these methods to understand the current status of the printer. A brief description of each of these methods follows. Batch Status Commands – These commands are sent to the printer and stored in the printer’s buffer.
7-86 Chapter 7: Programming Guide Batch Mode For RS-232C printers, these commands enable the printer to communicate with the host computer following the selected handshaking protocol, either DTR/DSR or XON/XOFF. They are stored in the printer's data buffer as they are received, and are handled by the firmware in the order in which they are received. When a fault occurs, the printer will go busy at the RS-232C interface and not respond to any of the Batch Mode Printer Status commands.
Chapter 7: Programming Guide 7-87 Request Alternate Status (Parallel Only) ASCII: Hexadecimal: Decimal: ESC u n 1B 75 n 27 117 n Value and Range of n: Value of n Function Description 00 Drawer 1 High = Open Low = Closed or Not Present 01 Drawer 2 High = Open Low = Closed or Not Present 02 Paper Low (Not Implemented. Interpreted as Paper Out.
7-88 Chapter 7: Programming Guide Transmit Printer Status ASCII: Hexadecimal: Decimal: ESC v 1B 76 27 118 Sends status data to the host computer. The printer sends one byte to the host computer when it is not busy or in a fault condition. In DTR/DSR protocol, the printer waits for DSR = SPACE.
Chapter 7: Programming Guide 7-89 Transmit Printer ID ASCII Hexadecimal Decimal GS I n 1D 49 n 29 73 n Value of n 1, 49 = Printer model ID 2, 50 = Type ID 3, 51 = ROM version ID Transmits the printer ID specified by n as follows: N Printer ID Specification ID (hexadecimal) 1, 49 Printer model ID NCR 7158 0x28 (A758 Native Mode) 1, 49 Printer model ID NCR 7156 0x26 (A756 Emulation) 2, 50 Type ID Installed options Refer to the table below 3, 51 ROM version ID ROM version 0x00 4, 52
7-90 Chapter 7: Programming Guide Type ID (n=4) Bit Off/On Hex Decimal Function 0 Off 00 0 No logo definition loaded by application. On 01 1 Logo loaded by application. 1 - - - Undefined 2 - - - Undefined 3 - - - Undefined 4 Off 00 0 Not used. Fixed to Off. 5 - - - Undefined 6 - - - Undefined 7 Off 00 0 Not used. Fixed to Off.
Chapter 7: Programming Guide 7-91 Transmit Printer ID, Remote Diagnostics Extension ASCII: Hexadecimal: Decimal: GS I @ n 1D 49 40 n 29 73 64 n Values of n: Refer to table Range of n: 32 – 255 (not all defined but reserved) Performs the remote diagnostic function specified by n. Eighteen remote diagnostic items are defined: eight printer ID items and ten printer tally items. A group of four remote diagnostic functions is assigned to each diagnostic item.
7-92 Chapter 7: Programming Guide Value of n Remote Diagnostic Item Function ASC Hex Dec “ 22 34 Serial # Not available, cannot clear Serial # item # 23 35 Serial # Return Serial #, preceded by n to identify Printer returns 12 bytes in above example: #1234567890 $ 24 36 Class/model #, 15 digit ASCII Write to NVRAM % 25 37 Class/model # Write to NVRAM, and print on receipt to verify ‘ 27 39 Class/model # Return Class/model #, returns 17 bytes + 2B 43 Boot firmware part
Chapter 7: Programming Guide Value of n Remote Diagnostic Item Function ASC Hex Dec â 83 131 Receipt lines tally Return receipt lines tally, preceded by n to identify Printer returns 10 bytes in above example: â00010000 ä 84 132 Knife cut tally, 8 digit ASCII numeric, max 99,999,999 Write to NVRAM à 85 133 Knife cut tally Write to NVRAM, and print on receipt to verify å 86 134 Knife cut tally Clear knife cut tally to 0 ç 87 135 Knife cut tally Return knife cut tally, retur
7-94 Chapter 7: Programming Guide Value of n Remote Diagnostic Item Function ASC Hex Dec É 90 144 Hours on tally, 8 digit ASCII numeric, max 99,999,999 Write to NVRAM æ 91 145 Hours on tally Write to NVRAM, and print on receipt to verify Æ 92 146 Hours on tally Clear Hours on tally to 0 ô 93 147 Hours on tally Return Hours on tally, returns 10 bytes ù 97 151 Boot firmware version Return Boot firmware version, returns 6 bytes ú A3 163 Flash firmware version Return Flash f
Chapter 7: Programming Guide Value of n Remote Diagnostic Item Function ASC Hex Dec ¡ AD 173 Cover openings tally Write to NVRAM, and print on receipt to verify « AE 174 Cover openings tally Clear Cover openings tally to 0 » AF 175 Cover openings tally Return Cover openings tally, returns 10 bytes █ B2 178 Max Temperature tally Set Max temp tally to -273 | B3 179 Max Temperature tally Return Max Temperature tally, returns 10 bytes ┤ B4 180 Slip lines tally, 8 digit ASCII n
7-96 Chapter 7: Programming Guide Transmit Status ASCII: Hexadecimal: Decimal: GS r n 1D 72 n 29 114 n Value of n: 1, 49 = printer status 2, 50 = cash drawer status 3, 51 = slip paper status 4, 52 = Flash Memory status Transmits the status specified by n. This is a batch mode command which transmits the response after all prior data in the receive buffer has been processed.
Chapter 7: Programming Guide Printer Status (n = 1 or n = 49) Bit Off/On Hex Decimal Status for Transmit Status 0 Off On 00 01 0 1 Receipt paper adequate. Receipt paper low. 1 Off On 00 02 0 2 Receipt paper adequate. Receipt paper low. 2 Off On 00 04 0 4 Receipt paper present. Receipt paper exhausted. 3 Off On 00 08 0 8 Receipt paper present. Receipt paper exhausted. 4 Off 00 0 Not used. Fixed to off.
7-98 Chapter 7: Programming Guide Slip Paper Status (n = 3 or n = 51) Value of Byte Slip Status Returned 0 There is no more printing space on the current slip, or the slip paper is not selected. 1 to 8 Remaining print area on the current slip, in number of lines, at the currently set line spacing, when the trailing edge sensor has become uncovered. Until the trailing edge sensor becomes uncovered the value reported will be 6, because there are at least 6 lines remaining.
Chapter 7: Programming Guide 7-99 Recognizing Data from the Printer An application sending various Real Time and non-Real Time commands to which the printer responds can determine which command a response belongs to by the table below. Responses to Transmit Peripheral Device Status (1B 75) and Transmit Paper Sensor Status (1B 76) are non-Real Time responses and will arrive in the order in which they were solicited.
7-100 Chapter 7: Programming Guide Real Time Commands These commands provide an application interface to the printer even when the printer is not handling other commands (RS-232C communication interface only): 1. Real Time Status Transmission (GS Sequence and DLE Sequence) 2. Real Time Request to Printer (GS Sequence and DLE Sequence) 3.
Chapter 7: Programming Guide 7-101 Alternate Implementation The alternate implementation uses the DLE (0x10) sequences as implemented on other printers. An application using these DLE (0x10) sequences and the original 7156 Clear Printer command (0x10) must distinguish for the printer between the new real time commands and the Clear Printer command by adding a NUL (0x00) to the Clear Printer command.
7-102 Chapter 7: Programming Guide Moving Data Through the Buffer Another consideration is that an application should take care not to 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 1D 05 or 1D 04 1 or 10 04 1. The reason for a particular busy condition can be determined by other responses to 1D 04 n or 10 04 n.
Chapter 7: Programming Guide 7-103 Real Time Status Transmission GS Sequence ASCII: Hexadecimal: Decimal: Value of n: GS EOT n 1D 04 n 29 4 n DLE Sequence DLE EOT n 10 04 n 16 4 n GS/DLE Sequence 1 = Transmit printer status 2 = Transmit RS-232C busy status 3 = Transmit error status 4 = Transmit receipt paper status 5 = Slip paper status Transmits the selected one byte printer status specified by n in Real Time according to the following parameters. This command includes two sequences: GS and DLE.
7-104 Chapter 7: Programming Guide Related Information: 1 = Transmit Printer Status Bit Status Hex Decimal Function 0 Off 00 0 Fixed to Off 1 On 02 2 Fixed to On 2 Off On 00 04 0 4 One or both cash drawers open Both cash drawers closed 3 Off On 00 08 0 8 Not busy at the RS-232C interface Printer is Busy at the RS-232C interface 4 On 10 16 Fixed to On 5 Undefined 6 Undefined 7 Off 00 0 Fixed to Off (Real Time Status Transmission—continued on the next page) 2 = Transmit
Chapter 7: Programming Guide 7-105 3 = Transmit Error Status Bit Status Hex Decimal Function 0 Off 00 0 Fixed to Off 1 On 02 2 Fixed to On 2 Off 00 0 No slip motor or flip jam On 04 4 Slip motor or flip jam occurred Off 00 0 No knife error On 08 8 Knife error occurred 4 On 10 16 Fixed to On 5 Off 00 0 No unrecoverable error On 20 32 Unrecoverable error occurred Off 00 0 Thermal printhead temp.
7-106 Chapter 7: Programming Guide 5 = Transmit Slip Paper Status Bit Status Hex Decimal Function 0 Off 00 0 Fixed to Off 1 On 02 2 Fixed to On 2 Off 00 0 Slip paper selected On 04 4 Receipt paper selected Off 00 0 Not waiting for slip On 08 8 Waiting for slip 4 On 10 16 Fixed to On 5 Off 00 0 Slip leading edge sensor: paper preset 3 Slip leading edge sensor: no paper 6 On 20 32 Off 00 0 Slip trailing edge sensor: paper preset Slip trailing edge sensor: no
Chapter 7: Programming Guide 7-107 Real Time Request to Printer ASCII: Hexadecimal: Decimal: Value of n: GS Sequence DLE Sequence GS ETX n or DLE ENQ n 1D 03 n or 10 05 n 29 3 n or 16 5 n 1 = Recover and restart 2 = Recover and clear buffers 3 = Cancel slip waiting The printer responds to a request from the host specified by n. This command includes two sequences: GS and DLE. The operations performed depend on the value of n, according to the following parameters.
7-108 Chapter 7: Programming Guide Recovers from an error after clearing the receive and print buffers. Print settings that are normally preserved from line to line, such as character height and width, are still preserved with this command. This sequence is ignored except when the printer is busy due to an error condition. If the slip was selected when the error occurred, the receipt becomes selected when the buffers are cleared. When printing on the slip is to continue, the slip must be selected again.
Chapter 7: Programming Guide 7-109 Real Time Printer Status Transmission ASCII: Hexadecimal: Decimal: GS ENQ 1D 05 29 5 Transmits one byte status of the printer in real time.
7-110 Chapter 7: Programming Guide Auto Status Back Select or Cancel Automatic Status Back ASCII: Hexadecimal: Decimal: GS a n 1D 61 n 29 97 n Value of n: Status of ASB Enables or disables automatic status back (ASB) and specifies the status items. This command is a batch mode command; that is, it is processed after all prior data in the receive buffer has been processed.
Chapter 7: Programming Guide 7-111 The bits of n are defined in the table. Bit Off/On Hex Decimal Status for ASB 0 Off On 00 01 0 1 Cash drawer status disabled. Cash drawer status enabled. 1 Off On 00 02 0 2 RS-232C Busy status disabled. RS-232C Busy status enabled. 2 Off On 00 04 0 4 Error status disabled. Error status enabled. 3 Off On 00 08 0 8 Receipt paper roll status disabled. Receipt paper roll status enabled.
7-112 Chapter 7: Programming Guide First Byte (Printer Information) Bit Off/On Hex Decimal Status for ASB 0 Off 00 0 Not used. Fixed to off. 1 Off 00 0 Not used. Fixed to off. 2 Off On 00 04 0 4 One or both cash drawers open. Both cash drawers closed. 3 Off On 00 08 0 8 Not Busy at the RS232C interface. Printer is Busy at the RS232C interface. 4 On 10 16 Not used. Fixed to on. 5 Off On 00 20 0 32 Receipt cover closed. Receipt cover open.
Chapter 7: Programming Guide 7-113 Third Byte (Paper Sensor Information) Bit Off/On Hex Decimal Status for ASB 0 Off On 00 01 0 1 Receipt paper adequate Receipt paper low 1 Off On 00 02 0 2 Receipt paper adequate Receipt paper low 2 Off On 00 04 0 4 Receipt paper present. Receipt paper exhausted. 3 Off On 00 08 0 8 Receipt paper present Receipt paper exhausted 4 Off 00 0 Not used. Fixed to off.
7-114 Chapter 7: Programming Guide Bar Code Commands These commands format and print bar codes and are described in order of their hexadecimal codes. Note: 7156 firmware can be set for module widths in bar codes ranging from 2 dots to 4 dots per module (DPM) for the narrow modules. The default is 3 DPM. 7158 firmware ranges from 1 dot per module to 5 dots per module (DPM) printed on the receipt. The default is 2 DPM.
Chapter 7: Programming Guide 7-115 Select Pitch for HRI Characters ASCII: Hexadecimal: Decimal: GS f n 1D 66 n 29 102 n Value of n: Pitch 0 = Standard Pitch at 15.2 CPI on receipt 1 = Compressed Pitch at 19 CPI on receipt Default: 0 (Standard Pitch at 15.2 CPI) Selects standard or compressed font for printing Bar Code characters. When slip is selected as the interface, HRI is always compressed.
7-116 Chapter 7: Programming Guide Values: First Variation: String terminated with NUL Character m = 0 – 6, 10 d = 32 - 126 (see the table) n = 1 - 255 (see the table) Selects the bar code type and prints a bar code for the ASCII characters entered. If the width of the bar code exceeds one line, the barcode is not printed. There are two variations to this command.
Chapter 7: Programming Guide 7-117 The check digit is calculated for UPC and JAN (EAN) codes if it is not sent from the host computer. Six-character zero-suppressed UPC-E tags are generated from full 11 or 12 characters sent from the host computer according to standard UPC-E rules. Start/Stop characters are added for Code 39 if they are not included.
7-118 Chapter 7: Programming Guide m Bar Code D n, Length 65 UPC-A 48- 57 (ASCII numerals) Fixed Length: 11, 12 66 UPC-E 48- 57 Fixed Length: 11, 12 67 JAN13 (EAN) 48- 57 Fixed Length: 12, 13 68 JAN8 (EAN) 48- 57 Fixed Length: 7, 8 69 CODE 39 48- 57, 65- 90 (ASCII alphabet), 32, 36, 37, 43, 45, 46, 47 (ASCII special characters) d1 = dn = 42 (start/stop code is supplied by printer if necessary) Variable 70 Interleave d 2 of 5 (ITF) 48- 57 Variable (Even Number) 71 CODABA R (NW-7
Chapter 7: Programming Guide 7-119 Exceptions: Illegal data cancels this command. The command is valid only at the beginning of a line. PDF 417 format cannot be printed on the slip. Barcodes on the Slip are always right justified. PDF417 and Code 93 are only available in A758 Native Mode. Select Bar Code Width ASCII: Hexadecimal: Decimal: GS w n 1D 77 n 29 119 n Value of n: 1, 2, 3, 4, 5 Default 3 for receipt; 2 for slip : Sets the bar code width to n dots.
7-120 Chapter 7: Programming Guide Page Mode Commands Page Mode is one of two modes, which the 7158 printer uses to operate. Standard Mode is typical of how most printers operate by printing data as it is received and feeding paper as the various paper feed commands are received. Page Mode is different in that it processes or prepares the data as a “page” in memory before it prints it. Think of this as a virtual page. The page can be any area within certain parameters that you define.
Chapter 7: Programming Guide 7-121 Cancel Print Data in Page Mode ASCII: Hexadecimal: Decimal: CAN 18 24 Deletes all the data to be printed in the “page” area. Any data from the previously selected “page” area that is also part of the current data to be printed is deleted. This command has the same code as the Open Form command, which is performed when the printer is not in Page Mode. Exceptions: This command is only used in Page Mode.
7-122 Chapter 7: Programming Guide Select Page Mode ASCII: Hexadecimal: Decimal: ESC L 1B 4C 27 76 Switches from Standard Mode to Page Mode. After printing has been completed either by the Print and Return to Standard Mode (FF) command or Select Standard Mode (1B 53) the printer returns to Standard Mode. The developed data is deleted after being printed.
Chapter 7: Programming Guide 7-123 Select Standard Mode ASCII: Hexadecimal: Decimal: ESC S 1B 53 27 83 Switches from Page Mode to Standard Mode. In switching from Page Mode to Standard Mode, data buffered in Page Mode are cleared, the printing area set by Set Print Area in Page Mode (1B 57) is initialized and the print position is set to the beginning of the line.
7-124 Chapter 7: Programming Guide Select Print Direction in Page Mode ASCII: Hexadecimal: Decimal: ESC T n 1B 54 n 27 84 n Value of n: Start position Selects the printing direction and start position in Page Mode. See the illustration.
Chapter 7: Programming Guide 7-125 Set Printing Area in Page Mode ASCII: Hexadecimal: Decimal: ESC W n1, n2 ...n8.] 1B 57 n1, n2 ...n8] 27 87 n1,n2 ...n8] Range: 0 - 255 Default: n1-4 = 0 n5 = 64 n6 = 2 n7 = 64 n8 = 2 Sets the position and size of the printing area in Page Mode. The command can be sent multiple times so that several different print areas, aligned in different print directions, can be developed in the printer’s page buffer before being printed by the Eject Slip command (0C).
7-126 Chapter 7: Programming Guide 4. dy = [(n7 + n8 x 256) x (vertical direction of the fundamental calculation pitch)] Keep the following notes in mind for this command. 5. The fundamental calculation pitch depends on the vertical or horizontal direction. 6. The maximum printable area in the x direction is 576/203 inches. 7. The maximum printable area in the y direction is 2000/203 inches. Exception: This command is effective only in Page Mode.
Chapter 7: Programming Guide 7-127 Set Absolute Vertical Print Position in Page Mode ASCII: Hexadecimal: Decimal: GS $ nL nH 1D 24 nL nH 29 36 nL nH Formulas: [(nL + nH X 256) x (vertical or horizontal motion unit)] inches. Sets the absolute vertical print starting position for buffer character data in Page Mode. The vertical or horizontal motion unit for the paper roll is used and the horizontal starting buffer position does not move.
7-128 Chapter 7: Programming Guide Set Relative Vertical Print Position in Page Mode ASCII: Hexadecimal: Decimal: GS \ nL nH 1D 5C nL nH 29 92 nL nH Sets the relative vertical print starting position from the current position. This command can also change the horizontal and vertical motion unit. The unit of horizontal and vertical motion is specified by this command.
Chapter 7: Programming Guide 7-129 Macro Commands These commands are used to select and perform a user-defined sequence of printer operations. Start or End Macro Definition ASCII: Hexadecimal: Decimal: GS : 1D 3A 29 58 Starts or ends macro definition. Macro definition begins when this command is received during normal operation and ends when this command is received during macro definition.
7-130 Chapter 7: Programming Guide Execute Macro ASCII: Hexadecimal: Decimal: GS ^ r t m 1D 5E r t m 29 94 r t m Value of r: Value of t: The number of times to execute the macro. The waiting time for executing the macro. Executes a macro. After waiting for a specified period the LED indicators blink and the printer waits for the Paper Feed Button to be pressed. After the button is pressed, the printer executes the macro once. The printer repeats this operation the number of specified times.
Chapter 7: Programming Guide 7-131 MICR Commands MICR Reading These commands control the Magnetic Ink Character Recognition (MICR) check reader, including how it parses the character strings on checks. The section, MICR Parsing, describes how to create a parsing format and how to create and maintain an Exceptions table. Read MICR Data and Transmit ASCII: Hexadecimal: Decimal: ESC w 1 1B 77 01 27 119 1 Default: All data returned Reads and transmits the MICR data and adds a Carriage Return (0x0D).
7-132 Chapter 7: Programming Guide MICR Parsing This section describes MICR parsing in detail and includes several examples of useful parsing variations. It also describes how to create a parsing format and how to create and maintain an exception table. Define Parsing Format, Save in NVRAM ASCII: Hexadecimal: Decimal: ESC w P d1 d2 … dn 0D 1B 77 50 d1 d2 … dn 0D 27 119 80 d1 d2 … dn 0D Defines and saves parsing format. See Parsing Parameter String Options in this document.
Chapter 7: Programming Guide 7-133 Parsing Parameter String Options Variable Length Fields Variable Length Field Name Selector Comments Transit Number T Full 9 digit routing/transit number Bank Number B Digits 4-8 of transit number Check Digit D Digit 9 of transit number Account Number A Check Serial Number C Separate from account number Amount $ This field may not be present or readable Variable Length Field Optional Modifiers Selector Comments Zero fill to length 0 ASCII zero pr
7-134 Chapter 7: Programming Guide Other Parameters Error Number E One Digit Returned 0 Read OK 1 Read error: bad character, empty field invalid length, check digit invalid Status Field Separator S Two Digits Returned 01 No MICR data 09 Mexican check 08 Canadian check 05 Error in transit number 07 Error in account number 04 Error in check serial number 10 Business or commercial check 11 Amount field present 00 No error 'x Field separator preceded by a single quote, so a field
Chapter 7: Programming Guide 7-135 Ten parameters are more than enough to specify all variable length fields with a field separator each and other status information that may be helpful to an application. More than 10 parameters are not recommended because they use up space in non-volatile memory (NVRAM) available for the exception table. The parsing parameter string is stored packed in NVRAM starting at word 10, with the total byte length stored in the high order byte of word 10.
7-136 Chapter 7: Programming Guide Sample Parsing Formats The following strings show various sample formats that you can use assuming they meet your parsing format needs. Included with the sample format is a description of the data that is returned to the application.
Chapter 7: Programming Guide 7-137 ESC w p 018 x A • Always 18 characters in the account number with spaces and dashes replaced with 0 • Final Carriage Return ESC w p T 18 X A 04C • All characters in the transit number • All characters in the account number (up to 18) with spaces and dashes removed • Always four characters in the check number (zero-filled if check number is only three characters long) • Final Carriage Return ESC w p K9 X T 18 X A 04C • U.S.
7-138 Chapter 7: Programming Guide ESC w p T '/ A '/ C '/ S • All characters in the transit number • Field separator: / • All characters in the account number • Field separator: / • All characters in the check number • Field separator: / • Two-digit status • Final Carriage Return
Chapter 7: Programming Guide 7-139 Notes All parameters are ASCII characters, i.e. greater than or equal to 0x20, with the exception of a non-ASCII character enclosed in single quotes as a field separator. This applies both to parameter specifications sent from application to printer, and to MICR data returned from printer to application. Parameters are positional; their order in the parameter string is the order in which the parsed MICR data will be returned.
7-140 Chapter 7: Programming Guide Once a parsing format is specified, the following values are returned: MICR Characters ASCII Hexadecimal Numerics 0...9 0x30...
Chapter 7: Programming Guide 7-141 Check Serial Number Parsing the Check Serial Number Most banks print the check serial number in three easily recognizable spots. The printer firmware will look for the number in these spots, using the following ordered algorithm.
7-142 Chapter 7: Programming Guide If all of these searches fail to produce the distinct check serial number, and the check serial number field has been specified in the parsing parameter string options, no check serial number will be returned. If it is imbedded within the account number field, it will be returned as part of that variable length field.
Chapter 7: Programming Guide 7-143 Loading the Exception Table The exception table begins at word 20 in NVRAM. Each entry takes five words. There is room for eight exceptions with a sumcheck written in the last word. An application can load local exceptions into the printer using the write NVRAM command: 0x1B 0x73 n1 n2 k which writes the two byte word n1:n2 to word k in NVRAM.
7-144 Chapter 7: Programming Guide Exception Table Entry Format Each exception table entry consists of five words. The first two words contain the first eight characters of the transit number by packing the low order nibble of the numeric transit number characters. For Canadian checks, eliminate the dash and store the eight numerics. The next three words are used as six individual bytes to tell the firmware how to interpret the MICR characters that fall to the right of the rightmost transit symbol.
Chapter 7: Programming Guide 7-145 and 0 0 1 0 0 1 0 0 (check #, four characters) 0 1 0 0 1 0 1 0 (account #, 10 characters) then stored in the other three words of the table entry using: 0x1B 0x73 0x24 0x4A 27 0x1B 0x73 0x00 0x00 28 0x1B 0x73 0x00 0x00 29 Example 2 t22137-632t001 6042202o927540 2754 is the check serial # 6042202 is the account # To load the third table entry, which starts at word 30, the transit number 2137-632 would be stored in the first two words of its table entry using this string
7-146 Chapter 7: Programming Guide which reads and returns word k in NVRAM. When the exception table is full, a new entry can replace an older, less frequently used entry, by merely rewriting the words for that table entry. Check Flip Command Check Flip Command ASCII: Hexadecimal: Decimal: ESC w F 1B 77 46 27 119 70 Causes a check on the slip table to be fed into the printer, flipped and left with the trailing edge of the check in the slip feed rollers.
Chapter 7: Programming Guide 7-147 Read from User Data Storage ASCII: Hexadecimal: Decimal: ESC 4 m a0 a1 a2 1B 34 m a0 a1 a2 27 52 m a0 a1 a2 Value of m: 0 – 255 Reads m bytes of data from the User Data Storage Flash Page at the address specified. Read from Non-Volatile Memory ASCII: Hexadecimal: Decimal: ESC j k 1B 6A k 27 106 k Range of k: 20 – 63 (decimal) Reads a two-byte word from location k in the history EEROM. The printer returns the word at the next available opportunity.
7-148 Chapter 7: Programming Guide Select Memory Type (SRAM/Flash) Where to Save Logos or User-Defined Fonts ASCII: GS " n Hexadecimal: 1D 22 n Decimal: 29 34 n Value of n: 48 - 51 Specifies whether to load the logos or user-defined characters to Flash Memory or to RAM (volatile memory). The selection remains in effect until it is changed via this command or until the power cycles. n = 48 (ASCII n = 0) Loads active logo to RAM only.
Chapter 7: Programming Guide 7-149 Flash Allocation ASCII: Hexadecimal: Decimal: GS " U n1 n 1D 22 55 n1 n2 29 34 85 n1 n2 Default Value of n1: 1 Default Value of n2: 1 (see below) (see below) n1 is the number of 64k sectors used for logos and user-defined characters. n2 is the number of 64k sectors used for user data storage. This command sets the allocation of Flash sectors between user data storage and logos/user-defined characters.
7-150 Chapter 7: Programming Guide Erase User Flash Sector ASCII: Hexadecimal: Decimal: GS @ n 1D 40 n 29 64 n Value of n: 49 - 50 Erases a page of Flash Memory and sends a carriage return when the operation is complete. n = 49 (ASCII n = 1) This command erases all sectors available for user-defined characters and multiple logos.
Chapter 7: Programming Guide 7-151 Flash Download Commands These commands are used to load firmware into the printer. The commands are listed in numerical order according to their hexadecimal codes. Each command is described and the hexadecimal, decimal, and ASCII codes are listed. There are three ways to enter the Download Mode. 1. Powering the printer up with DIP Switch 1 up. 2.
7-152 Chapter 7: Programming Guide Request Printer ID ASCII: Hexadecimal: Decimal: GS NUL 1D 00 29 0 Returns ACK (06 hex) + 12 bytes ASCII string describing the Flash Memory Boot Sector Firmware part number. Ex : 189-1234567A Return Segment Number Status of Flash Memory ASCII: Hexadecimal: Decimal: GS SOH 1D 01 29 1 Returns the size of the Flash used. There may be 8, 16, or 32 sectors (64K each) in Flash Memory.
Chapter 7: Programming Guide 7-153 Select Flash Memory Sector to Download ASCII: Hexadecimal: Decimal: GS STX n 1D 02 n 29 2 n Value of n: the Flash sector to which the next download operation applies Range of n: 0 – 7 (512K) 0 – 15 (1 mB) 0 – 31 (2 mB) Selects the Flash sector (nn) for which the next download operation applies. The values of the possible sector are restricted, depending upon the Flash part type.
7-154 Chapter 7: Programming Guide Return Microprocessor CRC ASCII: Hexadecimal: Decimal: GS BEL 1D 07 29 7 Returns the CRC calculated over the boot sector code space. Formulas: ACK Erase the Flash Memory ASCII: Hexadecimal: Decimal: GS SO 1D 0E 29 14 Causes the entire Flash Memory (except the boot) to be erased. The printer returns ACK if the command is successful; NAK if it is unsuccessful. Exceptions: Available only in Download Mode.
Chapter 7: Programming Guide 7-155 Erase Selected Flash Sector ASCII: Hexadecimal: Decimal: GS DLE n 1D 10 n 29 16 n Value and Range of n: 0 – 7 = 512K bytes Flash 0 – 15 = 1M bytes Flash 0 – 31 = 2M bytes Flash Erases the previously selected sector. The printer transmits ACK when the sector has been erased. If the previous sector is not successfully erased, or if no sector was selected, the printer transmits NAK. Exceptions: Available only in Download Mode.
7-156 Chapter 7: Programming Guide Download to Active Flash Sector ASCII: Hexadecimal: Decimal: GS DC1 al ah cl ch d1…dn 1D 11 al ah cl ch d1…dn 29 17 al ah cl ch d1…dn Value of al Value of ah Value of cl Value of ch Value of d = low byte of the address = high byte of the address = low byte of the count = high byte of the count = data bytes, from 1 to n Contains a start address (ah * 256 + al) and count (ch * 256 + cl) of binary bytes to load into the selected sector, followed by that many bytes.
Chapter 7: Programming Guide 7-157 Reboot the Printer ASCII: Hexadecimal: Decimal: GS (SPACE) 1D FF 29 255 Ends the load process and reboots the printer. Before executing this command, the printer should have firmware loaded and external switches set to the runtime settings. Application software for downloading should prompt the user to set the external switches and confirm before sending this command.
7-158 Chapter 7: Programming Guide
Chapter 8: Universal Serial Bus About the Universal Serial Bus The Universal Serial Bus (USB) is a peripheral bus for personal computers that was first released in January 1996. Since that time, virtually all Intel Architecture personal computers have the hardware to support USB, and a large number of computers exist that have both the hardware and software support required to interface with USB peripherals. Advantages of USB connections USB has a number of advantages over legacy connection schemes (e.g.
8-2 Chapter 8: Universal Serial Bus Additional POS devices. Some POS systems are required to host more peripherals than can be supported by two RS-232 ports typical in a platform. With the addition of one (or two) USB connectors, the platform can now support the additional devices that had previously required a serial port expander card. Higher bandwidths. New devices coming into use have bandwidth requirements that are higher than the bandwidth that can be supported on legacy interfaces.
Chapter 8: Universal Serial Bus 8-3 Checking for USB Support on the Host Computer To make USB work, the POS must be factory equipped with a USB port. With the required hardware in place, Windows 98 and 95 (OS R2.1) natively support plug-and-play USB with a built-in driver; Windows NT does not, and the NCR Windows NT USB driver needs to be installed. IMPORTANT: You need LPIN D370-1111-0100 oad the appropriate drivers for the USB printers.
8-4 Chapter 8: Universal Serial Bus Note: Even though the host may have a USB port, Windows NT does not natively support plug-and-play USB because it does not have a built-in driver. You will need to load the NCR Windows NT USB driver (see “Installing the USB Printer Drivers”).
Chapter 8: Universal Serial Bus 8-5 Configuring NCR POS Printers for USB Installing the NCR 7158 USB Upgrade Kit If you’re upgrading the printer, you may need to upgrade the firmware and must install a USB Board. If your printer is factory configured for USB, proceed to “Configuring the Printer.” To update the firmware: Update the boot and flash versions of the printer’s firmware to communicate with the USB connector prior to installing the new USB board. 1. You need to obtain Part Number 497-0417??. 2.
8-6 Chapter 8: Universal Serial Bus 7. Return DIP switch No.1 to the original Off (down) position. 8. When you’re finished, plug the printer in again. The LED remains on without blinking. The printer is now operational. You can print out a diagnostics form to verify that the boot and flash versions of the firmware have been updated. (See Owners Manual for printing the diagnostic form.) To remove the Options Board and install the USB Board: You’ll need a No.1 Phillips screwdriver to complete this task.
Chapter 8: Universal Serial Bus 8-7 4. Remove the Options Board by gripping it at the connector end and lifting up. You may need to wiggle it slightly back and forth as you pull. 5. Firmly seat the USB Board onto the Controller Board (where you just removed the Options Board) by carefully aligning the connectors and pushing the USB Board down into place. 6. Replace the Top PCB Cover (Options PCB Cage) over the USB Board. 7. Using the screws removed earlier, fasten the cover in place. 8.
8-8 Chapter 8: Universal Serial Bus Configuring the Printer USB is a plug-and-play environment. As such, neither the printer nor the host requires user configuration to work. However, since the NCR solution simulates a serial communication interface, you must configure “handshaking” on the printer for proper operation. The printer can be configured to use hardware flow control (using DTR/DSR) or software flow control (using XON/XOFF). All other serial communication parameters (i.e.
Chapter 8: Universal Serial Bus 8-9 Switch 1 is shown in the ON position On Off 4 3 2 1 DIP Switch DIP Switch Back of Printer 3. Open the Front Cover of the printer and press the Reset button, while pressing the Paper Feed button. The printer beeps, prints the current configuration, then waits for you to make a selection from the Main Menu on the printout.
8-10 Chapter 8: Universal Serial Bus Follow the instructions on the scrolling menu, pressing the Paper Feed button to make selections. Indicate Yes with a long click, and No with a short click. • Press and hold the Paper Feed button for at least one second for a long click. • Press the Paper Feed button quickly for a short click. 5. Select Set Communication Interface from the Main Menu. The printer scrolls to the first question. 6. Select RS232/USB. 7.
Chapter 8: Universal Serial Bus 8-11 8. Follow the instructions to select either XON/OFF or DTR/DSR, then skip the remaining communications parameters. 9. When you have finished, set DIP switch 1 to Off (down). 10. Press the Reset button. The printer resets with the new selection. You can verify the new setting by pressing the Paper Feed button to print out a diagnostics form or by holding the Paper Feed button while closing the Top Cover.
8-12 Chapter 8: Universal Serial Bus Installing the USB Printer Drivers You must have LPIN D370-1111-0100 To install the required drivers to support the USB printers Note: NT users should exit out of all Windows programs before starting installation. Load from NCR LPIN D370-1111-0100 1. Insert disk into the host. 2. Double click on the Drivers icon. 1. Follow the on-screen instructions.
Chapter 8: Universal Serial Bus 8-13 2. To start the installation program, plug one end of the USB cable into the USB connector port on the printer. Route the cable from the printer, as shown, to provide strain relief and plug the other end into the host computer. Make sure the USB symbol on the connector is facing up when you plug it in.
8-14 Chapter 8: Universal Serial Bus Checking the Installation You’ll need to verify that the device drivers were installed correctly: Windows 95 and 98: 1. Open the Device Manager window, as you did in “Checking for USB Support.” 2. Scroll down to “Universal serial bus controllers.
Chapter 8: Universal Serial Bus 8-15 3. Scroll back up to “Ports.” You should see a COM number and port description for the NCR printer. If the devices are missing or are not listed correctly, the installation wasn’t successful. You will need to reinstall the drivers. Windows NT: Go the Windows Start button and select Programs > InsideOut Networks Utilities > Edgeport Configuration Utility. A window opens that contains the name of the printer, and the port assignment.
8-16 Chapter 8: Universal Serial Bus Configuring Serial Port Number Assignments This section described how the NCR USB solution assigns serial port numbers (e.g., COMx) to the printer. The information that determines the assigned port number is stored in the host computer and not in the printer. This assignment is made in one of three ways. The first method is the default method that automatically assigns a serial port number to the printer. The other two methods require the user to specify a port number.
Chapter 8: Universal Serial Bus 8-17 Serial Port Configuration Methods Automatic (Default). When the printer is plugged into the USB port of the host and the drivers are loaded, the printer will default to the next available serial port number. In many cases this is exactly what is desired. You can check the assigned serial port by clicking the General tab in the Edgeport utility. You’ll see an entry for the NCR printer. Expand the list to see which serial port has been assigned to the printer.
8-18 Chapter 8: Universal Serial Bus Windows NT: Windows NT users will need to run the Edgeport Configuration Utility to uninstall the drivers. 1. Press Windows Start Menu button. 2. Choose Programs, then Inside Out Networks Utilities. 3. Choose Edgeport Configuration Utility. 4. Click the Advanced tab. 5. Click the Uninstall button and follow the on-screen instructions.
Chapter 8: Universal Serial Bus 8-19 Troubleshooting Problem Solution Device not working. Check for conflicting USB devices. Check Comport assignment in application. Reconnect USB connector to PC.
8-20 Chapter 8: Universal Serial Bus Frequently Asked Questions USB Printer Performance Under Windows 95 Normally sending output to a USB printer results in a print speed slightly faster than that obtained using the highest baud rate of 115200 under RS-232. Our performance testing typically yields between 33 to 40 lines-per-second depending on other processes that takes place in the terminal.
Index —A— A758 printer advanced interface design, 1-2 configuration, 3-16 connectivity features, 1-2 description, 5-1 dimensions, 5-36 documentation, 4-4 electronics and software, 1-2 introducing, 1-1 migration, 5-12 optional features, 5-7 ordering supplies, 4-1 receipt features, 5-5 reliability, 5-8 sending in for repair, 3-39 slip features, 5-1 slip table, ordering, 4-4 standard features, 1-2 test the printer, 3-14 testing, 2-11 Accessories.
Index-2 code page 850, 5-29 code page 852, 5-30 code page 858, 5-31 code page 860, 5-32 code page 863, 5-33 code page 865, 5-34 code page 866, 5-35 Character sets, 5-27 Check flip clearing jams, 3-12 commands, 7-146 Check flip commands, 7-146 Check flip test, 3-25 Checks printing, 3-7 validating, 3-10 verifying, 3-10 Code Page 437, 5-28 Code Page 850, 5-29 Code Page 852, 5-30 Code Page 858, 5-31 Code Page 860, 5-32 Code Page 863, 5-33 Code Page 865, 5-34 Code Page 866, 5-35 Code pages, 5-27 Commands bar co
Index-3 Connecting cables cash drawer, 2-6 power supply, 2-7 Connector cash drawer, 6-9 RS-232C communication, 6-8 Consumables.
Index-4 Humidity, 5-10 —I— Impact slip printer, 1-4 options, 1-5 Interface description, 5-23, 5-36 electrical, 5-26 human, 5-23 timing, 6-5 —J— Jams check flip, 3-12 checks, 3-12 —K— Knife not cutting, 3-37 partial cut, 5-22 —L— Lines per inch default, 3-27 Loading paper receipt, 2-8 Locating the printer, 2-2 Logos conversion, 6 to 8 dot/mm, 5-19 —M— Macro commands, 7-129 Macro commands, 7-129 Maximum power, 3-27 Media receipt, 5-11 slip, 5-10 MICR commands, 7-131 MICR check reader commands, 7-131 MI
Index-5 Ordering adapters, 4-2 cash drawers, 4-2 communication cable, 4-3 documentation, 4-4 paper, 4-1 power supply, 4-2 power supply cord, 4-2 ribbon cassettes, 4-4 slip table, 4-4 supplies, 4-1 Overview communication, 6-1 —P— Packing material repacking printer, 3-39 Packing restraints, 2-3 removing, 2-3 Page mode commands, 7-120 Page mode commands, 7-120 Paper ordering, 4-1 requirements, 4-1 suppliers, 4-1 Paper low receipt, 5-22 Paper out, 3-33 Parsing.
Index-6 checks, 3-7 forms, 3-7 receipt, 5-17 slip, 5-12 Printing problems receipt, 3-34 Problems contacting a service representative, 3-38 flashing LED, 3-33 knife, 3-37 other, 3-38 paper out, 3-33 poor forms print quality, 3-34 poor receipt print quality, 3-34 printer beeps, 3-31 printer not printing, 3-32 printhead over/under temperature, 333 Protocol, RS-232C DTR/DSR, 6-7 XON/XOFF, 6-6 Putting in ribbon cassette, 2-10 —R— Real time commands, 7-100 Real time commands, 7-100 alternate implementation, 7-1
Index-7 —S— Sample printout configuration menu, 2-12, 3-19 print test, 2-12 Sending commands BASIC, 6-2 DOS, 6-1 Service representative contacting, 3-38 Settings communication, 3-20 RS-232C serial interface, 3-20 switch, 5-27 Slip duty cycle, 5-16 format, 5-13 media, 5-10 positioning, 5-12 printing, 5-12 standard features, 5-1 throughput, 5-14 Slip table ordering, 4-4 Slip test mode, 3-23 Specifications forms, 4-3 RS-232C interface, 6-8 Speed, 6-3 Standard print characters, 5-15 Supplies forms, 4-3 paper,
Index-8 —W— Weight, of printer, 5-36 —X— XON/XOFF protocol, 6-6