NCR 7167 Owner's Manual

Other manuals for 7167: Owner's Manual, Owner's Manual
Manual is about: Two-Station POS Printer

Summary of 7167

  • Page 1

    Ncr 7167 two-station pos printer release 1.0 owner's manual b005-000-1406 revision c november, 2003.

  • Page 2

    Ii the product described in this book is a licensed product of ncr corporation. Ncr is the registered trademark of ncr corporation. Other trademarks and registered trademarks are the property of their respective holders. It is the policy of ncr corporation (ncr) to improve products as new technology...

  • Page 3

    Iii 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), cla...

  • Page 4

    Iv federal communications commission (fcc) radio frequency interference statement warning: changes or modifications to this unit not expressly approved by the party responsible for compliance could void the user’s authority to operate the equipment. Note: this equipment has been tested and found to ...

  • Page 5: Quick Reference

    V quick reference this quick reference will direct you to key areas of the service manual. For a complete listing of topics, consult the table of contents or the index. Setting up the printer .................................................... Page 9 basic requirements for unpacking and installatio...

  • Page 6: Revision Record

    Vi how to use this book use this book as a general and technical reference manual and as a guide when replacing parts on the printer. The service guide is intended as a guide for service representatives, field engineers, and those who will be installing and learning about the 7167 printer. It can al...

  • Page 7: Contents

    7167 owner’s manual contents november 2003 vii contents quick reference........................................................................................................................... V how to use this book......................................................................................

  • Page 8

    7167 owner’s manual contents november 2003 viii running the edgeport utility ............................................................................................ 40 serial port configuration methods.................................................................................... 40 uninst...

  • Page 9

    7167 owner’s manual contents november 2003 ix macro commands ............................................................................................................. 95 micr check reader commands ...................................................................................... 95 micr pars...

  • Page 10

    7167 owner’s manual chapter 1: about the 7167 printer november 2003 1 chapter 1: about the 7167 printer the 7167 printer is a fast, quiet, relatively small and very reliable multiple- function printer. It prints receipts, validates and prints checks, and prints on a variety of single- or multiple-pa...

  • Page 11: Features and Options

    7167 owner’s manual chapter 1: about the 7167 printer november 2003 2 features and options the 7167 printer comes with several features and options. Receipt station thermal printing standard pitch (host selectable): 15.2 characters per inch, 44 columns compressed pitch (host selectable): 19.0 charac...

  • Page 12

    7167 owner’s manual chapter 1: about the 7167 printer november 2003 3 • jan13 (ean) • interleaved 2 of 5 • codabar receipt and slip print stations variety of print modes: double high (receipt station only), double strike (slip station only), double wide, upside down, and rotated 14 resident characte...

  • Page 13

    7167 owner’s manual chapter 1: about the 7167 printer november 2003 4 options magnetic ink character recognition (micr) check reader built into the slip station for verifying checks (includes custom micr field parsing). E13b and cmc-7 is support with auto sensing of the micr type provided. Extended ...

  • Page 14: Thermal Print Head

    7167 owner’s manual chapter 1: about the 7167 printer november 2003 5 thermal print head the 7167 receipt station uses a thermal print head for printing receipts, and is extremely fast and quiet. Since it uses heat to print directly on paper, there is no cassette or ribbon to change, eliminating soi...

  • Page 15: Ordering Paper and Supplies

    7167 owner’s manual chapter 1: about the 7167 printer november 2003 6 ordering paper and supplies thermal receipt paper, ribbon cassettes, and forms can be ordered. Documentation is also available. Ordering thermal receipt paper the 7167 requires ncr qualified thermal paper to be used on the thermal...

  • Page 16

    7167 owner’s manual chapter 1: about the 7167 printer november 2003 7 ordering forms the 7167 prints on single- or multiple-part forms in the slip station (up to five-part forms). Forms and slips must meet the following requirements: front insertion (minimum): 51 mm (2.0 inches) wide 70 mm (2.75 inc...

  • Page 17

    7167 owner’s manual chapter 1: about the 7167 printer november 2003 8 ordering other supplies contact your ncr sales representative to order the supplies listed in the table. Item type number power supply with attached cable to printer and u.S. Power supply cord 75 watt power supply 7167-k331-v001 p...

  • Page 18: Cleaning The Printer

    7167 owner’s manual chapter 1: about the 7167 printer november 2003 9 cleaning the printer cleaning the cabinet the external cabinet materials and finish are durable and resistant to these items: cleaning solutions lubricants fuels cooking oils ultraviolet light there is no scheduled maintenance req...

  • Page 20: What Is In The Box?

    7167 owner’s manual chapter 3: solving problems november 2003 3 chapter 2: setting up and using the printer what is in the box? The following items are packed in the shipping box: • printer enclosed in a plastic bag and foam pack • ribbon cassette • thermal receipt paper roll cardboard restraint for...

  • Page 21

    7167 owner’s manual chapter 3: solving problems november 2003 4 removing the packing material 1. Remove the printer from the foam pack and plastic bag. 2. Open the front cover and remove the carriage holder. Receipt cover carriage holder head gap holder.

  • Page 22: Choosing A Location

    7167 owner’s manual chapter 3: solving problems november 2003 5 3. Remove the head gap holder from the slip table. 4. Remove the ribbon cassette / receipt paper roll and cables from the foam packing material. 5. Save all packing materials for future storing, moving, or shipping the printer. Caution:...

  • Page 23

    7167 owner’s manual chapter 3: solving problems november 2003 6 c) wall mounted power supply (option) the 75 watt power supply may be mounted on a vertical wall by using the holes on the cover. Mount the screws on the wall using the following recommended mount dimensions. Use a #8 wood screw which i...

  • Page 24: Setting Switches

    7167 owner’s manual chapter 3: solving problems november 2003 7 setting switches the dip switches, located at the back of the printer, are used for three purposes: • to set variables for several printer functions (see the sections for the various printer functions in “level 1 diagnostics” in “chapte...

  • Page 25

    7167 owner’s manual chapter 3: solving problems november 2003 8 dip switch settings switch 1 settings switch 2 settings printer state off (0) off (0) on-line mode (default) on (1) off (0) diagnostic mode off (0) on (1) * flash download mode on (1) on (1) vendor adjustment mode • it is optional to se...

  • Page 26: Connecting The Cables

    7167 owner’s manual chapter 3: solving problems november 2003 9 connecting the cables there are three different types of cables that connect to the printer: • power supply cable supplying power from the host pos terminal or from a external power supply • communication cable (rs-232 or usb) connectin...

  • Page 27

    7167 owner’s manual chapter 3: solving problems november 2003 10 bottom of the printer cash drawer connector dip switch power cable communication cable usb cable power connector communication connector usb connector cash drawer connector dip switch power cable power connector rs-232 cable connection...

  • Page 28: Using The Printer

    7167 owner’s manual chapter 3: solving problems november 2003 11 using the printer note: see “setting switches” earlier in this book for instructions on setting the dip switches. 1. Connect the power supply cable to the printer and turn on the power source. The printer goes through a self-test routi...

  • Page 29

    7167 owner’s manual chapter 3: solving problems november 2003 12 loading and changing the receipt paper although the illustrations show a used roll being removed, the instructions apply to loading paper for the first time. Change the paper when either of the following two conditions occurs: • led bl...

  • Page 30

    7167 owner’s manual chapter 3: solving problems november 2003 13 removing the paper roll 1. Open the receipt cover. 2. Remove the used roll. Receipt cover.

  • Page 31

    7167 owner’s manual chapter 3: solving problems november 2003 14 loading the paper roll note: tear off the end of the new roll so that the edge is loose. 1. Place the new roll in the bin with a little extra paper extending over the front. Be sure the paper unrolls from the bottom of the roll. Otherw...

  • Page 32

    7167 owner’s manual chapter 3: solving problems november 2003 15 advancing paper 1. Press the paper feed button on the operator panel to advance the paper. The cover must be closed. To ensure print quality and the proper alignment of the paper, advance about 30 cm (12 inches) of paper. 2. Tear off t...

  • Page 33

    7167 owner’s manual chapter 3: solving problems november 2003 16 installing and changing the ribbon cassette change the ribbon cassette when the print is too light or the ribbon is frayed. Removing the ribbon cassette 1. Open the front cover. 2. Use the handle on the cassette and pull the cassette f...

  • Page 34

    7167 owner’s manual chapter 3: solving problems november 2003 17 installing the ribbon cassette 1. Tighten the ribbon by turning the knob in the direction of the arrow. 2. Position the ribbon cassette slot at the catch on the printer slip frame and push it into place. Be sure the ribbon is in front ...

  • Page 35: Printing On Forms Or Checks

    7167 owner’s manual chapter 3: solving problems november 2003 18 printing on forms or checks there are several types of transactions that require you to insert a form or check into the printer: • credit card transaction (some credit card transactions may be printed on the receipt station and not req...

  • Page 36

    7167 owner’s manual chapter 3: solving problems november 2003 19 guide extended slip table led.

  • Page 37

    7167 owner’s manual chapter 3: solving problems november 2003 20 validating and verifying checks note: if the micr check reader feature is present, checks are verified then validated. 1. Insert the check from the front and place it on the slip table face down as shown in the illustration on the faci...

  • Page 38

    7167 owner’s manual chapter 3: solving problems november 2003 21 led guide extended slip table.

  • Page 39: Ut The Universal Serial Bus

    7167 owner’s manual chapter 3: solving problems november 2003 22 ut 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 su...

  • Page 40

    7167 owner’s manual chapter 3: solving problems november 2003 23 cking for usb support on the host computer if the usb interface communications is required, the host computer must be equipped and setup properly. If it is not, you need to install a usb interface card. With the required hardware in pl...

  • Page 41

    7167 owner’s manual chapter 3: solving problems november 2003 24 • consult your computer documentation to see if usb must be enabled in the bios setup. Installing the usb printer drivers windows nt users need to run service pak 3 or higher for a successful installation and should exit all windows pr...

  • Page 42

    7167 owner’s manual chapter 3: solving problems november 2003 25.

  • Page 43

    7167 owner’s manual chapter 3: solving problems november 2003 26 note: location of the ionetworks files on the cd-rom may very depending on the version of the cd that is being used..

  • Page 44

    7167 owner’s manual chapter 3: solving problems november 2003 27 also verify that you have the windows 98 usb hot patch, id: q236934, created: 08-jul-1999 and modified: 10aug-1999 installed. To verify if this hot patch is installed check file c:\windows\system32\drivers\usbhub.Sys. This file should ...

  • Page 45

    7167 owner’s manual chapter 3: solving problems november 2003 28 windows nt the printer beeps when it is plugged in to show the usb device is recognized. Click on the file you downloaded and follow the on-screen instructions..

  • Page 46

    7167 owner’s manual chapter 3: solving problems november 2003 29.

  • Page 47

    7167 owner’s manual chapter 3: solving problems november 2003 30 windows 2000 follow the on-screen instructions. The printer beeps when the usb device is recognized. Go to the location where you downloaded the drivers and double click the file..

  • Page 48

    7167 owner’s manual chapter 3: solving problems november 2003 31.

  • Page 49

    7167 owner’s manual chapter 3: solving problems november 2003 32 note: location of the ionetworks files on the cd-rom may very depending on the version of the cd that is being used..

  • Page 50

    7167 owner’s manual chapter 3: solving problems november 2003 33.

  • Page 51

    7167 owner’s manual chapter 3: solving problems november 2003 34 note: location of the ionetworks files on the cd-rom may very depending on the version of the cd that is being used..

  • Page 52: Checking The Installation

    7167 owner’s manual chapter 3: solving problems november 2003 35 checking the installation you need to verify that the device drivers were installed correctly: windows 98: 1. Open the device manager window, as you did in “checking for usb support.” 2. Scroll down to “universal serial bus controllers...

  • Page 53

    7167 owner’s manual chapter 3: solving problems november 2003 36 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. Win...

  • Page 54

    7167 owner’s manual chapter 3: solving problems november 2003 37 windows 2000: 1. Open the device manager window, as you did in “checking for usb support.” 2. Scroll down to “universal serial bus controllers.”.

  • Page 55

    7167 owner’s manual chapter 3: solving problems november 2003 38 3. Scroll back up to “ports.” if the devices are missing or are not listed correctly, the installation wasn’t successful. You will need to reinstall the drivers. If this information is not listed, then the installation was not successf...

  • Page 56

    7167 owner’s manual chapter 3: solving problems november 2003 39 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...

  • Page 57

    7167 owner’s manual chapter 3: solving problems november 2003 40 running the edgeport utility you’ll need to run the edgeport utility to check which serial port has been assigned to the printer. This utility queries and configures the operating system and driver for the information regarding the vir...

  • Page 58

    7167 owner’s manual chapter 3: solving problems november 2003 41 uninstalling the drivers windows 98: 1. Open the device manager and make sure “view devices by type” is selected. 2. Scroll down to universal serial bus controller, and expand the list by pressing the “+” symbol. You’ll see two entries...

  • Page 59

    7167 owner’s manual chapter 3: solving problems november 2003 42 3. Select the printer name and click properties. 4. Select the details tab, then press the details button to start the edgeport utility. 5. Click the advanced tab. 6. Click the uninstall button and follow the on-screen instructions..

  • Page 60: Chapter 3: Solving Problems

    7167 owner’s manual chapter 3: solving problems november 2003 43 chapter 3: solving problems the 7167 printer is a simple, generally trouble-free printer, but from time to time minor problems may occur. For example, the power supply may be interrupted or the thermal print head may overheat. A green ...

  • Page 61: Green Led Blinking (Slow)

    7167 owner’s manual chapter 3: solving problems november 2003 44 green led blinking (slow) problem what to do where to go receipt paper is low* there are about 4 ½ meters, ± 3 meters, (15 feet, ± 10 feet) of paper left. Change the paper soon to avoid running out of paper part way through a transacti...

  • Page 62

    7167 owner’s manual chapter 3: solving problems november 2003 45 ac supply voltage is out of range if paper is not low and no conditions indicate that the thermal print head is too hot, then it is likely that the power supply voltage is out of range. Contact a service representative if this does not...

  • Page 63: Forms Skew Or Catch

    7167 owner’s manual chapter 3: solving problems november 2003 46 receipt printing is light or spotty problem what to do where to go thermal print head may be dirty open the receipt cover and clean the thermal print head with cotton swabs and isopropyl alcohol. Caution: do not use the alcohol to clea...

  • Page 64: Other Serious Problems

    7167 owner’s manual chapter 3: solving problems november 2003 47 micr check reader not reading properly problem what to do where to go micr (magnetic ink character recognition) check reader does not read or misreads checks open the slip cover and clean the micr read head with cotton swabs and isopro...

  • Page 65: Chapter 4: Diagnostics

    7167 owner’s manual chapter 4: diagnostics november 2003 53 chapter 4: diagnostics the following diagnostic tests are available for the 7167: level 0 diagnostics (startup) performed during the startup cycle. Level 1 diagnostics (printer configuration) allows configuration of the printer using a conf...

  • Page 66: Level 1 Diagnostics

    7167 owner’s manual chapter 4: diagnostics november 2003 54 level 1 diagnostics level 1 diagnostics (setup mode) allow you to change the settings for various printer functions and run certain tests. Keep the following information in mind when changing the settings: the settings can only be changed w...

  • Page 67

    7167 owner’s manual chapter 4: diagnostics november 2003 55 setting emulation/software options emulation printer id default lines per inch carriage return usage asian mode 1 slip print width receipt synchronization platen waiting time setting hardware options print density maximum power option paper...

  • Page 68

    7167 owner’s manual chapter 4: diagnostics november 2003 56 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 ...

  • Page 69

    7167 owner’s manual chapter 4: diagnostics november 2003 57 configuration menu and print test samples (show approximately 60% of size). 7167 a991703053 v00.17 c525 v03.12 0eff 2mbytes 256kbytes 64kbytes 64kbytes rs232/usb 9600 8 1 none dtr/dsr print ‘?’ 4k bytes off, normal mode 7158 native mode 715...

  • Page 70

    7167 owner’s manual chapter 4: diagnostics november 2003 58 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 hol...

  • Page 71

    7167 owner’s manual chapter 4: diagnostics november 2003 59 more -> 5 clicks enter code, then hold button down at least 1 second to validate 9600 baud * -> 1 clicks 4800 baud -> 2 clicks 2400 baud -> 3 clicks 1200 baud -> 4 clicks enter code, then hold button down at least 1 second to validate ** se...

  • Page 72

    7167 owner’s manual chapter 4: diagnostics november 2003 60 ** set receive buffer size ? Yes -> long click no -> short click 4k buffer* -> long click one line -> short click note: press the paper feed button for at least one second to validate the selection. Save parameters this function allows to s...

  • Page 73

    7167 owner’s manual chapter 4: diagnostics november 2003 61 micr test mode -> 1 click check flip test mode -> 2 clicks print head test mode -> 3 clicks enter code, then hold button down at least 1 second to validate datascope mode datascope mode allows the user to test the printer’s communications. ...

  • Page 74

    7167 owner’s manual chapter 4: diagnostics november 2003 62 3. Exit the configuration menu. The printer is in the normal mode and can communicate with the host computer. Receipt test mode to run the receipt test mode: 1. Enable the receipt test mode through the configuration menu. See “configuring t...

  • Page 75

    7167 owner’s manual chapter 4: diagnostics november 2003 63 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 instruction on how to enter the configuration menu), then exit the configuration men...

  • Page 76

    7167 owner’s manual chapter 4: diagnostics november 2003 64 3. Push paper feed button. 4. Several lines of rolling ascii character will be printed. Note: printing will take place even when receipt cover is open. 5. Go to step 2 again to repeat this test. To exit the print head gap adjustment test mo...

  • Page 77

    7167 owner’s manual chapter 4: diagnostics november 2003 65 printer id selections printer id selections determines the print id that is returned from the printer. This is set by using the configuration menu. (see “configuring the printer,” for instructions on how to enter the configuration menu.). T...

  • Page 78

    7167 owner’s manual chapter 4: diagnostics november 2003 66 ** set carriage return usage ? Yes -> long click no -> short click ignore cr -> long click use cr as print cmd* -> short click note: press the paper feed button for at least one second to validate the selection. Asian mode * this function m...

  • Page 79

    7167 owner’s manual chapter 4: diagnostics november 2003 67 receipt synchronization mode the standard mode for synchronization allows for verification of each line printed to the host. When the receipt synchronization is disabled the printer will allow for maximum print speed and ignore the verifica...

  • Page 80

    7167 owner’s manual chapter 4: diagnostics november 2003 68 press the paper feed button for the print density you want. ** set print density ? Yes -> long click no -> short click 100 %* -> 1 click 110 % -> 2 clicks 120 % -> 3 clicks enter code, then hold button down at least 1 second to validate not...

  • Page 81

    7167 owner’s manual chapter 4: diagnostics november 2003 69 press the paper feed button for the paper width option you want. ** set paper width ? Yes -> long click no -> short click paper width = 80 mm* -> 1 click paper width = 58 mm -> 2 clicks enter code, then hold button down at least 1 second to...

  • Page 82

    7167 owner’s manual chapter 4: diagnostics november 2003 70 press the paper feed button for the option you want. ** set check flip option ? Yes -> long click no -> short click enable check flip* -> long disable check flip -> short note: press the paper feed button for at least one second to validate...

  • Page 83

    7167 owner’s manual chapter 4: diagnostics november 2003 71 note: press the paper feed button for at least one second to validate the selection. Save parameters this function allows to save the selected hardware settings or return to the hardware options to select additional options. Press the paper...

  • Page 84

    7167 owner’s manual chapter 4: diagnostics november 2003 72 code page 858 -> 4 clicks more options -> 5 clicks enter code, then hold button down at least 1 second to validate code page 860 -> 1 click code page 862 -> 2 clicks code page 863 -> 3 clicks code page 864 -> 4 clicks more options -> 5 clic...

  • Page 85

    7167 owner’s manual chapter 4: diagnostics november 2003 73 eeprom to default settings this selection resets the configuration to the default settings. Caution: be extremely careful changing any of the printer settings to avoid inadvertently changing other settings that might affect the performance ...

  • Page 86: Level 2 Diagnostics

    7167 owner’s manual chapter 4: diagnostics november 2003 74 level 2 diagnostics level 2 diagnostics run during normal printer operation. When the following conditions occur, the printer automatically turns off the appropriate motor, disables printing to prevent damage, and turns on the green led (fl...

  • Page 87: Level 3 Diagnostics

    7167 owner’s manual chapter 4: diagnostics november 2003 75 level 3 diagnostics level 3 diagnostics keeps track of the following tallies and prints them on the receipt during the receipt test. See “sample print test” later in this chapter. Serial number model number crc number number of receipt line...

  • Page 88: Chapter 5: Communication

    7167 owner’s manual chapter 5: communication november 2003 75 chapter 5: communication communication overview in order for a receipt to be printed, a program must be in place that translates the data from the host computer into a language that the printer can understand. This program must tell the p...

  • Page 89: Rs-232C Interface

    7167 owner’s manual chapter 5: communication november 2003 76 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 th...

  • Page 90

    7167 owner’s manual chapter 5: communication november 2003 77 xon/xoff protocol the xon/xoff characters coordinate the information transfer between the printer and the host computer. The printer sends an xon character when it is ready to receive data and it sends an xoff character when it cannot acc...

  • Page 91

    7167 owner’s manual chapter 5: communication november 2003 78 connectors rs-232c communication connector pin assignments the illustration shows the rs-232c communication connector and pin assignments. The connector is a 9-pin male d-shell connector and is located in the hollow cavity under the print...

  • Page 92

    7167 owner’s manual chapter 5: communication november 2003 79 usb cable connector the following illustration is for the usb type b communication connector and pin assignment. Pin no signal 1 +5 v – usb 2 data - 3 data + 4 ground power cable connector the illustration shows the power cable connector ...

  • Page 93

    7167 owner’s manual chapter 5: communication november 2003 80 cash drawer connector and pin assignments the following illustration shows the pin out designation for the cash drawer connectors. The following table provides the pinout assignments for cash drawers one and two. The cash drawer connector...

  • Page 94

    7167 owner’s manual chapter 5: communication november 2003 81 switch settings the dip switches are located on the pc board at the back of the printer as shown in the illustration in “level 1 diagnostics” in chapter 4. The switches are used to put the printer into various modes for printer configurat...

  • Page 96: Chapter 6: Commands

    7167 owner’s manual chapter 6: commands november 2003 83 chapter 6: commands introduction the different features and functions provided by the printer are controlled by sending commands from the host computer to the printer. This section describes the commands that are supported by the printer. The ...

  • Page 97

    7167 owner’s manual chapter 6: commands november 2003 84 by command code all items in bold are new or have additional functionality when compared to the 7156. All items in italic letters are commands for scanner function and are supported only by model 7167-1035 and 7167-2035. Items in bold italic a...

  • Page 98

    7167 owner’s manual chapter 6: commands november 2003 85 hexadecimal command code and operands command name page 1b 21 n select print modes 138 1b 24 n1 n2 set absolute starting position 127 1b 25 n select or cancel user-defined character set 139 1b 26 3 c1 c2…dn define user-defined characters 140 1...

  • Page 99

    7167 owner’s manual chapter 6: commands november 2003 86 hexadecimal command code and operands command name page 1b 61 n select justification 130 1b 63 30 n select receipt or slip for printing; slip for micr read 106 1b 63 31 n select receipt or slip for setting line spacing 108 1b 63 34 n select se...

  • Page 100

    7167 owner’s manual chapter 6: commands november 2003 87 hexadecimal command code and operands command name page 1c 28 67 pl ph 64 transmits the file format 235 1c 28 67 pl ph 65 select scanning mode 236 1c 28 67 pl ph 66 transmits scanning mode 236 1c 2d n turn underline mode on/off for kanji 222 1...

  • Page 101

    7167 owner’s manual chapter 6: commands november 2003 88 hexadecimal command code and operands command name page 1d 2f m print downloaded bit image 161 1d 3a start or end macro definition 201 1d 40 n erase user flash sector 217 1d 42 n select or cancel white/black reverse print mode 150 1d 48 n sele...

  • Page 102

    7167 owner’s manual chapter 6: commands november 2003 89 printer function commands hexadecimal command code and operands command name page 10 clear printer 102 11 close form 103 18 open form 103 19 perform full knife cut 104 1a perform partial knife cut 104 1b 07 generate tone 105 1b 3c return home ...

  • Page 103

    7167 owner’s manual chapter 6: commands november 2003 90 vertical positioning and print hexadecimal command code and operands command name page 0a print and feed paper one line 117 0c print and return to standard mode/print and eject slip 117 0d print and carriage return 118 14 n feed n print lines ...

  • Page 104

    7167 owner’s manual chapter 6: commands november 2003 91.

  • Page 105

    7167 owner’s manual chapter 6: commands november 2003 92 print characteristic commands hexadecimal command code and operands command page 12 select double-wide characters 134 13 select single-wide characters 134 1b 12 select 90 degree counter-clockwise rotated print 135 1b 16 n select pitch (column ...

  • Page 106

    7167 owner’s manual chapter 6: commands november 2003 93 graphics commands hexadecimal command code and operands command page 1b (+*.Bmp) download bmp logo 154 1b 2a m n1 n2 d1…dn select bit image mode 155 1b 4c n1 n2 d1…dn select double-density graphics (in 7156 emulation mode) 158 1b 59 n1 n2 d1…d...

  • Page 107

    7167 owner’s manual chapter 6: commands november 2003 94 real time commands hexadecimal command code and operands command page 10 04 n real time status transmission (dle sequence) 177 10 05 n real time request to printer (gs sequence) 180 1d 03 n real time request to printer (dle sequence) 180 1d 04...

  • Page 108

    7167 owner’s manual chapter 6: commands november 2003 95 page mode commands hexadecimal command code and operands command page 0c print and return to standard mode/print and eject slip 193 18 cancel print data in page mode 194 1b 0c print data in page mode 194 1b 4c select page mode 195 1b 53 select...

  • Page 109

    7167 owner’s manual chapter 6: commands november 2003 96 check flip command hexadecimal command code and operands command page 1b 77 46 check flip command 212 user data storage commands hexadecimal command code and operands command page 1b 27 m addr d1…dm write to user data storage 212 1b 34 m addr ...

  • Page 110

    7167 owner’s manual chapter 6: commands november 2003 97 scanner function commands hexadecimal command code and operands command page 1c 28 67 pl ph 28 scanning threshold 225 1c 28 67 pl ph 29 scanning area 226 1c 28 67 pl ph 32 compression mode 226 1c 28 67 pl ph 38 deletes cropping area 227 1c 28 ...

  • Page 111

    7167 owner’s manual chapter 6: commands november 2003 98 flash download commands hexadecimal command code and operands command page 1b 5b 7d switch flash download mode 249 1d 00 request printer id 250 1d 01 return segment number status of flash memory 251 1d 02 n select flash memory sector to downlo...

  • Page 112

    7167 owner’s manual chapter 6: commands november 2003 99 comparison chart the following table details the list of commands whose behavior differs from the ncr 7156 because of the physical differences of a 6 dots/mm head (7156) versus an 8 dots/mm head (7167). Where the 7156 made movements in n/152 i...

  • Page 113

    7167 owner’s manual chapter 6: commands november 2003 100 command description difference between a 7156 and a 7167 configured in 7156 emulation mode. 1b 59 n1 n2 d1...Dn select double-density graphics in 7156 emulation mode, the printer scales the graphics to provide the best match. 1b 5c n1 n2 set ...

  • Page 114

    7167 owner’s manual chapter 6: commands november 2003 101 command descriptions this section provides the detailed description of the commands. These commands are separated into groups according to their function or use. The previous sections can be used as an index for the following sections. The fo...

  • Page 115

    7167 owner’s manual chapter 6: commands november 2003 102 related information: describes related information for this command, e.G., bit information. Printer function commands the printer function commands control the following basic printer functions and are described in order of their hexadecimal ...

  • Page 116

    7167 owner’s manual chapter 6: commands november 2003 103 close form ascii: dc1 hexadecimal: 11 decimal: 17 closes the feed roller and platen and retracts the forms arm stop to the forms stop position. If the printer is reset or the clear command (0x10) is received, the feed roller and platen are op...

  • Page 117

    7167 owner’s manual chapter 6: commands november 2003 104 perform partial knife cut ascii: em or esc i hexadecimal: 19 or 1b 69 decimal: 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 thi...

  • Page 118

    7167 owner’s manual chapter 6: commands november 2003 105 generate tone ascii: esc bel hexadecimal: 1b 07 decimal: 27 7 generates an audible tone. This allows the application to provide an audible tone to the operator. Example: mscomm1.Output = chr$(&h1b) & chr$(&h07) return home ascii: esc hexadeci...

  • Page 119

    7167 owner’s manual chapter 6: commands november 2003 106 initialize printer ascii: esc @ hexadecimal: 1b 40 decimal: 27 64 default: receipt slip character pitch: 15.6 cpi 13.9 cpi column width: 44 characters (80mm) 32 characters (58mm) 45 characters extra dot rows: 2 3 character set: code page 437 ...

  • Page 120

    7167 owner’s manual chapter 6: commands november 2003 107 select receipt or slip for printing; slip for micr read ascii: esc c 0 n hexadecimal: 1b 63 30 n decimal: 27 99 48 n value of n : 0 journal selected 1, 2, 3 receipt selected 4 slip selected default of n : 1 selects the station for printing. W...

  • Page 121

    7167 owner’s manual chapter 6: commands november 2003 108 select receipt or slip for setting line spacing ascii: esc c 1 n hexadecimal: 1b 63 31 n decimal: 27 99 49 n value of n: 0 journal selected 1, 2, 3 select receipt 4 select slip default of n : 1 selects which station receives the effects of th...

  • Page 122

    7167 owner’s manual chapter 6: commands november 2003 109 select sensors to stop printing ascii: esc c 4 n hexadecimal: 1b 63 34 n decimal: 27 99 52 n value of n : if this bit of n is 1 function performed bit 0, or bit 1 stop receipt on receipt low bit 4 stop slip if trailing edge uncovered bit 5 st...

  • Page 123

    7167 owner’s manual chapter 6: commands november 2003 110 enable or disable panel buttons ascii: esc c 5 n hexadecimal: 1b 63 35 n decimal: 27 99 53 n value of n : 0 = enable 1 = disable default: 0 (enable) enables or disables the paper feed button. If the last bit is 0, the paper feed button is ena...

  • Page 124

    7167 owner’s manual chapter 6: commands november 2003 111 enable or disable slip paper end feeding stop ascii: esc c 7 n hexadecimal: 1b 63 37 n decimal: 27 99 55 n value of n : 0 = enable 1 = disable default: 0 (enable) enables or disables the the slip paper end feeding stop function. When this fea...

  • Page 125

    7167 owner’s manual chapter 6: commands november 2003 112 set slip paper waiting time ascii: esc f m n hexadecimal: 1b 66 m n decimal: 27 102 m n value of m :minutes value of n :tenths of seconds sets the time (in m minutes) that the printer waits for a slip to be inserted into the slip station. It ...

  • Page 126

    7167 owner’s manual chapter 6: commands november 2003 113 generate pulse to open cash drawer ascii: esc p n p1 p2 hexadecimal: 1b 70 n p1 p2 decimal: 27 112 n p1 p2 value of n : 0, 48 = drawer 1 1, 49 = drawer 2 value of p1: 0 - 255 value of p2: 0 - 255 sends a pulse to open the cash drawer. Formula...

  • Page 127

    7167 owner’s manual chapter 6: commands november 2003 114 select or cancel parallel printing mode on receipt and journal ascii: esc z n hexadecimal: 1b 7a n decimal: 27 122 n because there is no journal station on the printer this command is not implemented and is ignored if received. The command an...

  • Page 128

    7167 owner’s manual chapter 6: commands november 2003 115 m feed and cut mode 0, 48 full cut (no extra feed). Partial cut on the 7158/7167. 1, 49 partial cut (no extra feed). 65 feeds paper to cutting position + (n times vertical motion unit), and cuts the paper completely. 66 feeds paper to cutting...

  • Page 129

    7167 owner’s manual chapter 6: commands november 2003 116 select receipt station ascii: rs hexadecimal: 1e decimal: 30 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. The hex c...

  • Page 130

    7167 owner’s manual chapter 6: commands november 2003 117 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: lf hexadecimal: 0a decimal: 10 prints one lin...

  • Page 131

    7167 owner’s manual chapter 6: commands november 2003 118 print and carriage return ascii: cr hexadecimal: 0d decimal: 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 comman...

  • Page 132

    7167 owner’s manual chapter 6: commands november 2003 119 feed n dot rows ascii: nak n hexadecimal: 15 n decimal: 21 n value of n: receipt slip n/203 inch n/72 inch range of n : 0 – 127 7156 emulation mode 0 – 255 7158 native mode or 7167 native mode feeds paper n dot rows without printing. Receipt ...

  • Page 133

    7167 owner’s manual chapter 6: commands november 2003 120 receipt station slip station extra rows lines per inch dot rows extra rows lines per inch dot rows 0 8.47 24 0 10.29 7 1 8.13 25 1 9.00 8 2 7.81 26 2 8.00 9 3 7.52 27 3 7.20 10 4 7.25 28 4 6.55 11 5 7.00 29 5 6.00 12 6 6.77 30 6 5.54 13 7 6.5...

  • Page 134

    7167 owner’s manual chapter 6: commands november 2003 121 set line spacing to 1/6 inch ascii: esc 2 hexadecimal: 1b 32 decimal: 27 50 default: 0.13 inch (3.33 mm) sets the default line spacing to 1/6 of an inch (4.25 mm). Example: mscomm1.Output = chr$(&h1b) & chr$(&h32) set line spacing ascii: esc ...

  • Page 135

    7167 owner’s manual chapter 6: commands november 2003 122 print and feed paper ascii: esc j n hexadecimal: 1b 4a n decimal: 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 equal...

  • Page 136

    7167 owner’s manual chapter 6: commands november 2003 123 print and feed n lines ascii: esc d n hexadecimal: 1b 64 n decimal: 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...

  • Page 137

    7167 owner’s manual chapter 6: commands november 2003 124 reverse feed n lines ascii: gs dc4 n hexadecimal: 1d 14 n decimal: 29 20 n range of n : 0 – 127 7156 emulation mode 0 – 255 7158 native mode or 7167 native mode reverses the paper feed in the slip station by n lines at the current spacing. Th...

  • Page 138

    7167 owner’s manual chapter 6: commands november 2003 125 set horizontal and vertical minimum motion units ascii: gs p x y hexadecimal: 1d 50 x y decimal: 29 80 x y value of x:horizontal value of y: vertical range of x: 0 - 255 range of y: 0 - 255 default: of x: 203 default: of y: 203 sets the horiz...

  • Page 139

    7167 owner’s manual chapter 6: commands november 2003 126 horizontal positioning commands the horizontal positioning commands control the horizontal print positions of characters on the receipt and slip. Horizontal tab ascii: ht hexadecimal: 09 decimal: 9 moves the print position to the next tab pos...

  • Page 140

    7167 owner’s manual chapter 6: commands november 2003 127 prints the first character of the next print line in column n. It must be sent for each line not printed at column one. The value of n is set to one after each line. Example: mscomm1.Output = chr$(&h1b) & chr$(&h14) & chr$(n) exceptions: the ...

  • Page 141

    7167 owner’s manual chapter 6: commands november 2003 128 set horizontal tabs ascii: esc d [n] k nul hexadecimal: 1b 44 [n] k 00 decimal: 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: every 8 chara...

  • Page 142

    7167 owner’s manual chapter 6: commands november 2003 129 set relative print position ascii: esc \ n1 n2 hexadecimal: 1b 5c n1 n2 decimal: 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 afte...

  • Page 143

    7167 owner’s manual chapter 6: commands november 2003 130 if the set horizontal and vertical minimum motion units command (1d 50) is used to change the horizontal and vertical minimum motion unit, the parameters of this command (set relative print position) will be interpreted accordingly. For more ...

  • Page 144

    7167 owner’s manual chapter 6: commands november 2003 131 set left margin ascii: gs l nl nh hexadecimal: 1d 4c nl nh decimal: 29 76 nl nh range of nl:0 - 255 range of nh: 0 - 255 default: 80 mm width 576 dots (the maximum printable area) 58 mm width 424 dots (the maximum printable area) sets the lef...

  • Page 145

    7167 owner’s manual chapter 6: commands november 2003 132 this command is ignored if the line buffer is not empty, and only effects the receipt interface. Set printing area width ascii: gs w nl nh hexadecimal: 1d 57 nl nh decimal: 29 87 nl nh range of nl: 0 – 255 range of nh: 0 - 255 default: 80 mm ...

  • Page 146

    7167 owner’s manual chapter 6: commands november 2003 133 this command is ignored if the line buffer is not empty, and only effects the receipt interface. If the setting exceeds the printable area, the maximum value of the printable area is used. The maximum printable area is 576 dots for 80 mm pape...

  • Page 147

    7167 owner’s manual chapter 6: commands november 2003 134 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 hexadecim...

  • Page 148

    7167 owner’s manual chapter 6: commands november 2003 135 select 90 degree counter-clockwise rotated print ascii: esc dc2 hexadecimal: 1b 12 decimal: 27 18 rotates characters 90 degrees counter-clockwise. The command remains in effect until the printer is reset or until a clear printer (0x10), selec...

  • Page 149

    7167 owner’s manual chapter 6: commands november 2003 136 pitch receipt columns receipt cpi slip columns slip cpi standard 44 for 80 mm paper 15.6 45 13.9 32 for 58 mm paper compressed 56 for 80 mm paper 20.3 55 17.1 42 for 58 mm paper example: mscomm1.Output = chr$(&h1b) & chr$(&h16) & chr$(n) rela...

  • Page 150

    7167 owner’s manual chapter 6: commands november 2003 137 set character right-side spacing ascii: esc sp n hexadecimal: 1b 20 n decimal: 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 independe...

  • Page 151

    7167 owner’s manual chapter 6: commands november 2003 138 select print modes ascii: esc ! N hexadecimal: 1b 21 n decimal: 27 33 n value of n: pitch selection (standard, compressed, double high, or double wide.) bit function 0 1 bit 0 pitch standard pitch 1 15.6 cpi (receipt) 44 col/line (80 mm) 32 c...

  • Page 152

    7167 owner’s manual chapter 6: commands november 2003 139 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: esc % n hexadecimal: 1b...

  • Page 153

    7167 owner’s manual chapter 6: commands november 2003 140 define user-defined characters receipt slip ascii: esc & 3 c1 c2 n1 d1 ... Nn dn esc & 0 c1 c2 d1 ... Dn hexadecimal: 1b 26 3 c1 c2 n1 d1 ... Nn dn 1b 26 0 c1 c2 d1 ... Dn decimal: 27 38 3 c1 c2 n1 d1 ... Nn dn 27 38 0 c1 c2 d1 ... Dn defines...

  • Page 154

    7167 owner’s manual chapter 6: commands november 2003 141 values and ranges: receipt c = the ascii codes of the first (c1) and last (c2) characters respectively c1 = hex 20-ff (hex 20 is always printed as a space) c2 = hex 20-ff (hex 20 is always printed as a space) to define only one character, use...

  • Page 155

    7167 owner’s manual chapter 6: commands november 2003 142 select or cancel underline mode ascii: esc - n hexadecimal: 1b 2d n decimal: 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 c...

  • Page 156

    7167 owner’s manual chapter 6: commands november 2003 143 to modify characters in one of the character set variations, such as rotated print, select one of the rotated print commands, copy to ram, then use the define user-defined character set command (1b 26). Cancel user-defined characters ascii: e...

  • Page 157

    7167 owner’s manual chapter 6: commands november 2003 144 example: mscomm1.Output = chr$(&h1b) & chr$(&h45) & chr$(n) exceptions: only the lowest bit of n is effective. Emphasized printing cannot be used with bit-images or downloaded bit-images. Related information: this command and the select print...

  • Page 158

    7167 owner’s manual chapter 6: commands november 2003 145 cancel double strike ascii: esc h hexadecimal: 1b 48 decimal: 27 72 turns off double strike mode on the slip station in 7156 emulation mode. This command is ignored in the 7158 native mode and 7167 native mode. This command works on both slip...

  • Page 159

    7167 owner’s manual chapter 6: commands november 2003 146 select international character set ascii: esc r n or esc t n hexadecimal: 1b 52 n or 1b 74 n decimal: 27 82 n or 27 116 n 7158 native mode and 7167 native mode . 7156 emulation value of n: 0 = code page 437 us english 0 = code page 437 1 = co...

  • Page 160

    7167 owner’s manual chapter 6: commands november 2003 147 selects the character set to be used. See print specifications for the character sets. There are two codes for this command. Both codes perform the same function. Example: mscomm1.Output = chr$(&h1b) & chr$(&h52) & chr$(n) related information...

  • Page 161

    7167 owner’s manual chapter 6: commands november 2003 148 default: 0 (cancel) rotates characters 90 degrees clockwise. The command remains in effect until the printer is reset or the clear printer (0x10) command is received. See summary of rotated printing in this chapter. Example: mscomm1.Output = ...

  • Page 162

    7167 owner’s manual chapter 6: commands november 2003 149 received. Only bit 0 is used. Bits 1-7 are not used. See summary of rotated printing in this document for more information. Example: mscomm1.Output = chr$(&h1b) & chr$(&h7b) & chr$(n) exceptions: the command is valid only at the beginning of ...

  • Page 163

    7167 owner’s manual chapter 6: commands november 2003 150 character height selection hex decimal height 00 0 1 (normal) 01 1 2 (two times height) 02 2 3 (three times height 03 3 4 (four times height) 04 4 5 (five times height) 05 5 6 (six times height) 06 6 7 (seven times height) 07 7 8 (eight times...

  • Page 164

    7167 owner’s manual chapter 6: commands november 2003 151 turns on white/black reverse printing mode. This command is only available in 7158 native mode and 7167 native mode.. In white/black reverse printing mode, print dots and non-print dots are reversed, which means that white characters are form...

  • Page 165

    7167 owner’s manual chapter 6: commands november 2003 152 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 7158 native mode and 7167 nati...

  • Page 166

    7167 owner’s manual chapter 6: commands november 2003 153 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. Unintende...

  • Page 167

    7167 owner’s manual chapter 6: commands november 2003 154 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: esc (+*.Bmp file data) hexadecimal: 1b (+*.Bmp file data) decimal: 27 (+*.Bmp file data...

  • Page 168

    7167 owner’s manual chapter 6: commands november 2003 155 select bit image mode ascii: esc * m n1 n2 d1 ... Dn hexadecimal: 1b 2a m n1 n2 d1 ... Dn decimal: 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 ignor...

  • Page 169

    7167 owner’s manual chapter 6: commands november 2003 156 slip station value of m mode no. Of dots** (vertical) no. Of dots (horizontal) number of dots/line 0 7 dot single density 7 (72 dpi) 224 (69.5 dpi) 7 x 224 1* 7 dot double density 7 (72 dpi) 448 (139 dpi) 7 x 448 32, 33 not available on slip ...

  • Page 170

    7167 owner’s manual chapter 6: commands november 2003 157 top of bit image 24-dot single-density mode—receipt only dn msb lsb d1 d2 d3 d4 d7 d5 d6 dn.

  • Page 171

    7167 owner’s manual chapter 6: commands november 2003 158 select double-density graphics ascii: esc y n1 n2 d1 … dn or esc l n1 n2 d1 ... Dn hexadecimal: 1b 59 n1 n2 d1 ... Dn or 1b 4c n1 n2 d1 … dn decimal: 27 89 n1 n2 d1 ... Dn or 27 76 n1 n2 d1 ... Dn value of n: value of n (8-dot single density ...

  • Page 172

    7167 owner’s manual chapter 6: commands november 2003 159 firmware erases the old definitions at the next power cycle. This is the only case in which the printer erases flash memory without an application command. In the case of a new application using multiple logos, the select current logo (1d 23 ...

  • Page 173

    7167 owner’s manual chapter 6: commands november 2003 160 d1 d2 dn d top of g raphic dn m s b ls b c olum n c olum n o ne 72 x 8 m ax. R ow o ne r ow 64 m ax. 64 65 d exceptions: see the illustration for the print downloaded bit image command (1d 2f) for a representation of the bit image. Related in...

  • Page 174

    7167 owner’s manual chapter 6: commands november 2003 161 print downloaded bit image ascii: gs / m hexadecimal: 1d 2f m decimal: 29 47 m value and range of m: value of m print mode vertical dpi 1 horizontal dpi* 0 1 2 3 normal double wide double high quadruple 203 203 101 101 203 101 203 101 1 dot d...

  • Page 175

    7167 owner’s manual chapter 6: commands november 2003 162 convert 6 dots/mm bitmap to 8 dots/mm bitmap ascii: us eot n hexadecimal: 1f 04 n decimal: 31 04 n value: 0 = off 1 = on default: 0 (off) selects or cancels 6 dot/mm in 7158 emulation mode and 7167 native mode. When the 6 dot/mm emulation is ...

  • Page 176

    7167 owner’s manual chapter 6: commands november 2003 163 status commands status command introduction the 7167 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 mor...

  • Page 177

    7167 owner’s manual chapter 6: commands november 2003 164 transmit peripheral device status ascii: esc u 0 hexadecimal: 1b 75 0 decimal: 27 117 0 bit 0 bit 1 return value: 1 = drawer 1 closed 1 = drawer 2 closed 0 = drawer 1 open 0 = drawer 2 open (bits 2-7 are not used) transmits current status of ...

  • Page 178

    7167 owner’s manual chapter 6: commands november 2003 165 transmit printer status ascii: esc v hexadecimal: 1b 76 decimal: 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 wait...

  • Page 179

    7167 owner’s manual chapter 6: commands november 2003 166 transmit printer id ascii gs i n hexadecimal 1d 49 n decimal 29 73 n value of n 1, 49 = printer model id 2, 50 = type id 3, 51 = rom version id 4, 52 = logo definition transmits the printer id specified by n as follows: n printer id specifica...

  • Page 180

    7167 owner’s manual chapter 6: commands november 2003 167 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 ...

  • Page 181

    7167 owner’s manual chapter 6: commands november 2003 168 the command performs the remote diagnostic function specified by n as described in the following table. Value of n remote diagnostic item function asc hex dec space 20 32 serial #, 10 digit ascii write to nvram example, send 14 bytes to print...

  • Page 182

    7167 owner’s manual chapter 6: commands november 2003 169 value of n remote diagnostic item function asc hex dec ä 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...

  • Page 183

    7167 owner’s manual chapter 6: commands november 2003 170 value of n remote diagnostic item function asc hex dec ο a7 167 flash cycles tally return flash cycles cut tally, returns 10 bytes ¿ a8 168 knife jams tally, 8 digit ascii numeric, max 99,999,999 write to nvram ┌ a9 169 knife jams tally write...

  • Page 184

    7167 owner’s manual chapter 6: commands november 2003 171 transmit status ascii: gs r n hexadecimal : 1d 72 n decimal: 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 mod...

  • Page 185

    7167 owner’s manual chapter 6: commands november 2003 172 the status bytes to be transmitted are described in the following four tables. 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...

  • Page 186

    7167 owner’s manual chapter 6: commands november 2003 173 flash memory status (n = 4 or n = 52) bit off/on hex decimal status for transmit status 0 off 00 0 undefined. Fixed to off. 1 off 00 0 undefined. Fixed to off. 2 off on 00 04 0 4 user data storage write successful. User data storage write fai...

  • Page 187

    7167 owner’s manual chapter 6: commands november 2003 174 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 ...

  • Page 188

    7167 owner’s manual chapter 6: commands november 2003 175 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. ...

  • Page 189

    7167 owner’s manual chapter 6: commands november 2003 176 in this case the sequence will also be handled correctly as the graphics data it is intended to be when the graphics command is executed from the buffer. Third, care must be taken not to insert a real time command into the data sequence of an...

  • Page 190

    7167 owner’s manual chapter 6: commands november 2003 177 real time status transmission gs sequence dle sequence ascii: gs eot n dle eot n hexadecimal: 1d 04 n 10 04 n decimal: 29 4 n 16 4 n value of n: gs/dle sequence 1 = transmit printer status 2 = transmit rs-232c busy status 3 = transmit error s...

  • Page 191

    7167 owner’s manual chapter 6: commands november 2003 178 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-232...

  • Page 192

    7167 owner’s manual chapter 6: commands november 2003 179 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 on 00 04 0 4 no slip motor or flip jam slip motor or flip jam occurred 3 off on 00 08 0 8 no knife error knife error occurred 4 on 1...

  • Page 193

    7167 owner’s manual chapter 6: commands november 2003 180 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 on 00 04 0 4 slip paper selected receipt paper selected 3 off on 00 08 0 8 not waiting for slip waiting for slip 4 on 10 16 fix...

  • Page 194

    7167 owner’s manual chapter 6: commands november 2003 181 if the slip is selected, this command will attempt recovery from a slip motor or flip jam by re-homing the print head and waiting for a slip to be inserted before restarting the print. Other errors associated with the slip, such as cassette d...

  • Page 195

    7167 owner’s manual chapter 6: commands november 2003 182 real time printer status transmission ascii: gs enq hexadecimal: 1d 05 decimal: 29 5 transmits one byte status of the printer in real time. Value of byte: bit status hex decimal function 0 off on 00 01 0 1 receipt paper adequate receipt paper...

  • Page 196

    7167 owner’s manual chapter 6: commands november 2003 183 auto status back commands select or cancel automatic status back ascii: gs a n hexadecimal: 1d 61 n decimal: 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 ba...

  • Page 197

    7167 owner’s manual chapter 6: commands november 2003 184 default: 0 (asb disabled) example: mscomm1.Output = chr$(&h1d) & chr$(&h61) & chr$(n) exceptions if n = 0, asb is disabled. Related information when auto status back (asb) is enabled using this command, the status transmitted by other command...

  • Page 198

    7167 owner’s manual chapter 6: commands november 2003 185 second byte (error information) bit off/on hex decimal status for asb 0 - - - undefined 1 - - - undefined 2 off on 00 04 0 4 no mechanical error mechanical error occurred 3 off on 00 08 0 8 no knife error. Knife error occurred. 4 off 00 0 not...

  • Page 199

    7167 owner’s manual chapter 6: commands november 2003 186 fourth byte (paper sensor information) bit off/on hex decimal status for asb 0 off on 00 01 0 1 slip paper selected receipt paper selected 1 off on 00 02 0 2 possible to print in slip not possible to print on slip because no form has been ins...

  • Page 200

    7167 owner’s manual chapter 6: commands november 2003 187 bar code commands these following describes the commands for the printing of bar codes and described in the 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 modu...

  • Page 201

    7167 owner’s manual chapter 6: commands november 2003 188 select pitch for hri characters ascii: gs f n hexadecimal: 1d 66 n decimal: 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 ...

  • Page 202

    7167 owner’s manual chapter 6: commands november 2003 189 print bar code first variation second variation ascii: gs k m d1…dk nul or gs k m n d1…dn hexadecimal: 1d 6b m d1…dk 00 or 1d 6b m n d1…dn decimal: 29 107 m d1…dk 0 or 29 107 m n d1…dn 0 = end of command. Values: first variation: string termi...

  • Page 203

    7167 owner’s manual chapter 6: commands november 2003 190 m bar code d n, length 0 upc-a 48- 57 (ascii numerals) fixed length: 11, 12 1 upc-e 48- 57 fixed length: 11, 12 2 jan13 (ean13) 48- 57 fixed length: 12, 13 3 jan8 (ean8) 48- 57 fixed length: 7, 8 4 code 39 48- 57, 65- 90 (ascii alphabet), 32,...

  • Page 204

    7167 owner’s manual chapter 6: commands november 2003 191 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 (ean13) 48- 57 fixed length: 12, 13 68 jan8 (ean8) 48- 57 fixed length: 7, 8 69 code 39 48- 57, 65- 90 (ascii alphabet)...

  • Page 205

    7167 owner’s manual chapter 6: commands november 2003 192 select bar code width ascii: gs w n hexadecimal: 1d 77 n decimal: 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. Formulas: n + 1/8 mm(n + 1/203 inch) for receipt, n + 1/5.7 mm (n + 1/14...

  • Page 206

    7167 owner’s manual chapter 6: commands november 2003 193 page mode commands page mode is one of two modes, which the 7167 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 receiv...

  • Page 207

    7167 owner’s manual chapter 6: commands november 2003 194 cancel print data in page mode ascii: can hexadecimal: 18 decimal: 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. Thi...

  • Page 208

    7167 owner’s manual chapter 6: commands november 2003 195 select page mode ascii: esc l hexadecimal: 1b 4c decimal: 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 print...

  • Page 209

    7167 owner’s manual chapter 6: commands november 2003 196 select standard mode ascii: esc s hexadecimal: 1b 53 decimal: 27 83 switches from page mode to standard mode. In switching from page mode to standard mode, data buffered in page mode is cleared, the printing area set by set print area in page...

  • Page 210

    7167 owner’s manual chapter 6: commands november 2003 197 select print direction in page mode ascii: esc t n hexadecimal: 1b 54 n decimal: 27 84 n value of n: start position 0 upper left corner proceeding across page to the right (a) 1 lower left corner proceeding up the page (b) 2 lower right corne...

  • Page 211

    7167 owner’s manual chapter 6: commands november 2003 198 set printing area in page mode ascii: esc w n1, n2 ...N8.] hexadecimal: 1b 57 n1, n2 ...N8] decimal: 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 mod...

  • Page 212

    7167 owner’s manual chapter 6: commands november 2003 199 first the printer must be set to page mode, then the following command should be sent. Example: mscomm1.Output = chr$(&h1b) & chr$(&h57) & chr$(&h40) & chr$(&h0) & chr$(&h40) & chr$(&h0) & chr$(&h40) & chr$(&h1) & chr$(&h40) & chr$(&h1) excep...

  • Page 213

    7167 owner’s manual chapter 6: commands november 2003 200 set relative vertical print position in page mode ascii: gs \ nl nh hexadecimal: 1d 5c nl nh decimal: 29 92 nl nh sets the relative vertical print starting position from the current position. This command can also change the horizontal and ve...

  • Page 214

    7167 owner’s manual chapter 6: commands november 2003 201 macro commands these commands are used to select and perform a user-defined sequence of printer operations. Start or end macro definition ascii: gs : hexadecimal: 1d 3a decimal: 29 58 starts or ends macro definition. Macro definition begins w...

  • Page 215

    7167 owner’s manual chapter 6: commands november 2003 202 execute macro ascii: gs ^ r t m hexadecimal: 1d 5e r t m decimal: 29 94 r t m value of r:the number of times to execute the macro. Value of t:the waiting time for executing the macro. Value of m: macro executing mode 0 (bit0): the macro execu...

  • Page 216

    7167 owner’s manual chapter 6: commands november 2003 203 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...

  • Page 217

    7167 owner’s manual chapter 6: commands november 2003 204 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, ...

  • Page 218

    7167 owner’s manual chapter 6: commands november 2003 205 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 accou...

  • Page 219

    7167 owner’s manual chapter 6: commands november 2003 206 field separator 'x field separator preceded by a single quote, so a field separator of the letter a would be sent as 'a (0x27 0x41). If a carriage return is specified as a separator (0x27 0x0d), a final carriage return must still terminate th...

  • Page 220

    7167 owner’s manual chapter 6: commands november 2003 207 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. Esc w p ...

  • Page 221

    7167 owner’s manual chapter 6: commands november 2003 208 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 notes all pa...

  • Page 222

    7167 owner’s manual chapter 6: commands november 2003 209 once a parsing format is specified, the following values are returned: micr characters ascii hexadecimal numerics space dash field separator* country code* 0...9 - 0x30...0x39 0x20 0x2d *as specified in the parsing parameter string check seri...

  • Page 223

    7167 owner’s manual chapter 6: commands november 2003 210 exceptions some banks print the check serial number in a location that cannot be electronically distinguished without specific exception information, although it can be visually distinguished because it is repeated in the upper right corner o...

  • Page 224

    7167 owner’s manual chapter 6: commands november 2003 211 bits within byte 7 6 5 4 3 2 1 0 check serial # character string 0 0 1 n n n n n account # character string 0 1 0 n n n n n character string to ignore 1 0 0 n n n n n example 1 t123456780t12349876543210o 1234 is the check serial # 9876543210 ...

  • Page 225

    7167 owner’s manual chapter 6: commands november 2003 212 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: esc w f ...

  • Page 226

    7167 owner’s manual chapter 6: commands november 2003 213 read from user data storage ascii: esc 4 m a0 a1 a2 hexadecimal: 1b 34 m a0 a1 a2 decimal: 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. Example: mscomm1.Output = ch...

  • Page 227

    7167 owner’s manual chapter 6: commands november 2003 214 read from non-volatile memory ascii: esc j k hexadecimal : 1b 6a k decimal: 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. Exa...

  • Page 228

    7167 owner’s manual chapter 6: commands november 2003 215 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 (volati...

  • Page 229

    7167 owner’s manual chapter 6: commands november 2003 216 flash allocation ascii: gs " u n1 n hexadecimal: 1d 22 55 n1 n2 decimal: 29 34 85 n1 n2 default value of n1: 1 (see below) default value of n2: 1 (see below) n1 is the number of 64k sectors used for logos and user-defined characters. N2 is th...

  • Page 230

    7167 owner’s manual chapter 6: commands november 2003 217 erase user flash sector ascii: gs @ n hexadecimal: 1d 40 n decimal: 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 ava...

  • Page 231

    7167 owner’s manual chapter 6: commands november 2003 218 printer setting change ascii: us dc1 [m n], [m n], … [m n] 0ffh hexadecimal: 1f 11 [m n], [m n], … [m n] 0ffh decimal: 31 17 [m n], [m n], … [m n] 0ffh value of m, n: m (hex) function n (hex) function 10 interface type 00 01 02 usb/rs232c rs2...

  • Page 232

    7167 owner’s manual chapter 6: commands november 2003 219 m (hex) function n (hex) function 21 default lines per inch 00 01 02 8.13 lines per inch 7.52 lines per inch 6 lines per inch 22 carriage return usage 00 01 ignore cr use cr as print cmd. 23 asian mode 00 01 asian mode on asian mode off 24 sl...

  • Page 233

    7167 owner’s manual chapter 6: commands november 2003 220 m (hex) function n (hex) function 38 micr dual pass option 00 01 dual pass disable dual pass enable 40 default code page 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 437 850 852 858 860 862 863 864 865 866 874 1252 katakana 932 (or 936, 949, 950...

  • Page 234

    7167 owner’s manual chapter 6: commands november 2003 221 asian character commands 3 select print modes for kanji characters ascii: fs ! N hexadecimal: 1c 21 n decimal: 28 33 n value of n: the character attribute for asian character bit off/on hex decimal function 0 - - - select font 1 off 00 0 unde...

  • Page 235

    7167 owner’s manual chapter 6: commands november 2003 222 fs – turn underline mode on/off for kanji ascii: fs - n hexadecimal: 1c 2d n decimal: 28 45 n value of n: 0 = cancel 1 = 1 dot height underline 2 = 2 dot height underline default n: 0 (cancel) turn underline mode on or off for asian character...

  • Page 236

    7167 owner’s manual chapter 6: commands november 2003 223 range of c1,c2: japanese (cp932) f0 ≤ c1 ≤ f9, 40 ≤ c2 ≤ 7e and 80 ≤ c2 ≤ fc simplified chinese (cp936) a1 ≤ c1 ≤ a7, 40 ≤ c2 ≤ 7e and 80 ≤ c2 ≤ a0, aa ≤ c1 ≤ af, a1 ≤ c2 ≤ fe, f8 ≤ c1 ≤ fe, a1 ≤ c2 ≤ fe korean (cp949) c1 = c9 and c1 = fe, a1...

  • Page 237

    7167 owner’s manual chapter 6: commands november 2003 224 fs w (set quadruple mode on/off for kanji) ascii: fs w n hexadecimal: 1c 57 n decimal: 28 87 n value of n: the quadruple mode for asian characters. 0 (bit 0) = quadruple mode off 1 (bit 0) = quadruple mode on default of n: 0 (quadruple mode o...

  • Page 238

    7167 owner’s manual chapter 6: commands november 2003 225 scanner function commands 4 pl, ph specify (pl + (ph x 256)) as the number of bytes after ph (fn and m). Scanning threshold fs ( g pl ph fn m d1 d2 d3 (when fn = 40) the threshold level of the scanning density is specified by this command. As...

  • Page 239

    7167 owner’s manual chapter 6: commands november 2003 226 scanning area fs ( g pl ph fn x1 y1 x2 y2 (when fn = 41) the area on the check to be scanned is defined by this function. Ascii fs ( g pl ph fn x1 y1 x2 y2 hex 1c 28 67 pl ph fn x1 y1 x2 y2 decimal 28 40 103 pl ph fn x1 y1 x2 y2 range (pl + p...

  • Page 240

    7167 owner’s manual chapter 6: commands november 2003 227 compression mode fs ( g pl ph fn m n (when fn = 50) this command sets the compression method and the file transmission format for the image data. Ascii fs ( g pl ph fn m n hex 1c 28 67 pl ph fn m n decimal 28 40 103 pl ph fn m n range pl + ph...

  • Page 241

    7167 owner’s manual chapter 6: commands november 2003 228 set cropping area fs ( g pl ph fn n x1 y1 x2 y2 (when fn = 57) the area to be cropped is the area of data that is to be retained. The remaining area of the scanned area is returned as “white” data. The area to be cropped is defined by n. • x1...

  • Page 242

    7167 owner’s manual chapter 6: commands november 2003 229 transmission format fs ( g pl ph fn m (when fn = 60) this command sets the transmission file format as binary or hexadecimal ascii fs ( g pl ph fn m hex 1c 28 67 pl ph fn m decimal 28 40 103 pl ph fn m range (pl + ph x 256) = 2 (pl =2, ph = 0...

  • Page 243

    7167 owner’s manual chapter 6: commands november 2003 230 transmits threshold level fs ( g pl ph fn m (when fn = 80) the density of the threshold level of the scanned image for function 40 is communicated to the host. Ascii fs ( g pl ph fn m hex 1c 28 67 pl ph fn m decimal 28 40 103 pl ph fn m range...

  • Page 244

    7167 owner’s manual chapter 6: commands november 2003 231 transmits scanning area fs ( g pl ph fn m (when fn = 81) the scanned image area for function 41 is communicated to the host. Ascii fs ( g pl ph fn m hex 1c 28 67 pl ph fn m decimal 28 40 103 pl ph fn m range (pl + ph x 256) = 2 (pl =2, ph = 0...

  • Page 245

    7167 owner’s manual chapter 6: commands november 2003 232 transmits compression method fs ( g pl ph fn m (when fn = 90) command description: the method of file compression and the file transmission format for the image data will be communicated to the host device for the value of function 50. Ascii ...

  • Page 246

    7167 owner’s manual chapter 6: commands november 2003 233 transmits the cropping area fs ( g pl ph fn m (when fn = 97) command description: the cropping area of the scanned image as defined is communicated to the host ascii fs ( g pl ph fn m hex 1c 28 67 pl ph fn m decimal 28 40 103 pl ph fn m range...

  • Page 247

    7167 owner’s manual chapter 6: commands november 2003 234 data transmission by this command is controlled by the esc/pos handshaking protocol. The esc/pos handshaking protocol is defined as the protocol that the printer receives as a response from the host after the [header-nul] is transmitted: then...

  • Page 248

    7167 owner’s manual chapter 6: commands november 2003 235 transmits the file format fs ( g pl ph fn m (when fn = 100) command description: this command transmits the format of the file transmission formation for the function value of 60 for the image data. Ascii fs ( g pl ph fn m hex 1c 28 67 pl ph ...

  • Page 249

    7167 owner’s manual chapter 6: commands november 2003 236 select scanning mode fs ( g pl ph fn m (when fn = 101) command description: this command selects the scanning mode. Ascii fs ( g pl ph fn m hex 1c 28 67 pl ph fn m decimal 28 40 103 pl ph fn m range (pl + ph x 256) = 2 (pl =2, ph = 0) fn = 10...

  • Page 250

    7167 owner’s manual chapter 6: commands november 2003 237 executes the process for the scanning of the image from the slip station and then transmits the scanned data to the host computer. Hogan makes busy status during executing of scanning. Host can’t send any data to hogan in that time. • if [d1....

  • Page 251

    7167 owner’s manual chapter 6: commands november 2003 238 separator 1fh 31 1 byte compression process (*1)(*2) 30h – 39h 48 – 57 0 – 2 bytes file transmission format (*1) 30h – 39h 48 – 57 0 – 2 bytes separator 1fh 31 1 byte fixed value (*1) 34h, 38h, 30h, 34h 38h, 34h, 38h 52, 56, 48, 52, 56, 52, 5...

  • Page 252

    7167 owner’s manual chapter 6: commands november 2003 239 the size information block for the information data is shown below (this data is not transmitted if an error occurred). Information data hexadecimal decimal amount of data block code 53h 83 1 byte fixed value 30h, 30h 48, 48 2 bytes separator...

  • Page 253

    7167 owner’s manual chapter 6: commands november 2003 240 transmission data hexadecimal decimal amount of data block code 46h 70 1 byte fixed value 31h 49 1 byte separator 1fh 31 1 byte scanning status normal: 50h abnormal: 70h normal: 80 abnormal: 112 1 byte detailed information (see table below) 4...

  • Page 254

    7167 owner’s manual chapter 6: commands november 2003 241 the size information block for the information data is shown below (this data is not transmitted if an error occurred). Information data hexadecimal decimal amount of data block code 53h 83 1 byte fixed value 30h, 30h 48, 48 2 bytes separator...

  • Page 255

    7167 owner’s manual chapter 6: commands november 2003 242 data transmitted with this command is controlled by the esc/pos handshaking protocol. The esc/pos handshaking protocol is defined as the protocol that the printer receives as a response from the host; then it performs the following process co...

  • Page 256

    7167 owner’s manual chapter 6: commands november 2003 243 header file information block size information block image data block send to host host send ack image data block send to host : : : image data block send to host send ack : : :.

  • Page 257

    7167 owner’s manual chapter 6: commands november 2003 244 transmit scan image from working buffer gs ( g pl ph fn m cropid [d1…dk], k=1, …, 255 command description: • retrieve original scan data from working buffer (ram) • crop, compress and make image file based on current settings and transmit it ...

  • Page 258

    7167 owner’s manual chapter 6: commands november 2003 245 transmit scan image from flash rom gs ( g pl ph fn m fileindex (when fn = 73) command description: • retrieve scan image file from flash rom and transmit to host. • if scan has not be executed on receiving this command, send error block ascii...

  • Page 259

    7167 owner’s manual chapter 6: commands november 2003 246 store scan image to flash rom gs ( g pl ph fn n [d1..Dk] (when fn = 70) hogan makes busy status during store scan image. Host can’t send any data to hogan at that time. Command description: • if [d1..Dk] is specified, it’s added to image file...

  • Page 260

    7167 owner’s manual chapter 6: commands november 2003 247 notes: • while writing flash rom, the printer does not process a real-time command or send asb status. Therefore it is not possible to determine the printer status while storing scan image. Clear all scan images gs ( g pl ph fn (when fn = 71)...

  • Page 261

    7167 owner’s manual chapter 6: commands november 2003 248 print scanned image gs ( g pl ph fn m (when fn = 68) command description: this command performs printing the scanned image data ascii gs ( g pl ph fn m hex 1d 28 47 pl ph fn m decimal 29 40 71 pl ph fn m range (pl + ph x 256) = 2 (pl = 2, ph ...

  • Page 262

    7167 owner’s manual chapter 6: commands november 2003 249 reverse feed to top of form gs ( g pl ph fn m (when fn = 74) command description: this command performs a reverse feed to top of form on the slip print station. This command is ignored if slip is not the selected station. Ascii gs ( g pl ph f...

  • Page 263

    7167 owner’s manual chapter 6: commands november 2003 250 mscomm1.Output = chr$(&h1b) & chr$(&h5b) & chr$(&h7d) request printer id ascii: gs nul hexadecimal: 1d 00 decimal: 29 0 returns ack (06 hex) + 12 bytes ascii string describing the flash memory boot sector firmware part number. Ex : 189-123456...

  • Page 264

    7167 owner’s manual chapter 6: commands november 2003 251 return segment number status of flash memory ascii: gs soh hexadecimal: 1d 01 decimal: 29 1 returns the size of the flash used. There may be 8, 16, or 32 sectors (64k each) in flash memory. This command assures that the firmware to be downloa...

  • Page 265

    7167 owner’s manual chapter 6: commands november 2003 252 get firmware crc ascii: gs ack hexadecimal: 1d 06 decimal: 29 6 causes the printer to calculate the crc for the currently selected sector and transmits the result. This is performed normally after downloading a sector to verify that the downl...

  • Page 266

    7167 owner’s manual chapter 6: commands november 2003 253 available only in download mode. Return main program flash crc ascii: gs si hexadecimal: 1d 0f decimal: 29 15 returns the crc calculated over the flash firmware code space. The format of the response is ack . Example: mscomm1.Output = chr$(&h...

  • Page 267

    7167 owner’s manual chapter 6: commands november 2003 254 download to active flash sector ascii: gs dc1 al ah cl ch d1…dn hexadecimal: 1d 11 al ah cl ch d1…dn decimal: 29 17 al ah cl ch d1…dn value of al: low byte of the address value of ah:high byte of the address value of cl:low byte of the count ...

  • Page 268

    7167 owner’s manual chapter 6: commands november 2003 255 reboot the printer ascii: gs (space) hexadecimal: 1d ff decimal: 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. A...

  • Page 269: Appendix A: Specifications

    7167 owner’s manual appendix a: specifications november 2003 253 appendix a: specifications printing specifications thermal receipt station slip station print head fixed 576 print elements direct thermal fixed head line of dots bi-directional logic seeking serial dot matrix ribbon cassette forms ins...

  • Page 270: Power Requirements

    7167 owner’s manual appendix a: specifications november 2003 254 thermal receipt station slip station slew speed 6.7 inches per second 4.0 lines per second print zone 2.83 inches maximum 3.23 inches maximum noise 57 dba sound pressure (iso 7779) 62 dba sound pressure (iso 7779) graphics (optional) u...

  • Page 271: Reliability

    7167 owner’s manual appendix a: specifications november 2003 255 reliability the numbers in the table refer to the mean cycle between failure (mcbf) for the items indicated. Thermal receipt printer 52 million lines impact slip printer 30 million lines impact print head 200 million characters electro...

  • Page 272

    7167 owner’s manual appendix a: specifications november 2003 256 duty cycle restrictions (printing solid blocks) there are restrictions on the duty cycle because of the heat generated by the receipt thermal print head when printing solid blocks (regardless of the length of the block in relation to t...

  • Page 273: Character Size

    7167 owner’s manual appendix b: print characteristics novembery 2003 257 appendix b: print characteristics character size this section shows the dot pattern for characters printed on the receipt and slip stations. Receipt station the following two illustrations show the dot patterns of sample charac...

  • Page 274

    7167 owner’s manual appendix b: print characteristics novembery 2003 258 compressed pitch slip station the following illustrations show the dot patterns of sample characters for standard pitch (13.9 cpi), double-wide characters, and rotated characters (counterclockwise). Standard pitch the first ill...

  • Page 275

    7167 owner’s manual appendix b: print characteristics novembery 2003 259 note: columns overlap within the format for each print row in half-dot increments (depending upon pitch), but the printer cannot print overlapping dots on a single print row. No ascii character contains overlapping dots on a pr...

  • Page 276

    7167 owner’s manual appendix b: print characteristics novembery 2003 260 rotated characters rotated characters are alternate characters in a 5x7 dot format printed 90 degrees counterclockwise (as shown in the illustration) or clockwise. Only one horizontal pitch is available: 6.95 cpi, 33 columns ma...

  • Page 277: Print Zones

    7167 owner’s manual appendix b: print characteristics novembery 2003 261 print zones this section shows the printable area for the slip station and the receipt station. Receipt station for 80 mm paper the receipt station centers characters (standard pitch and compressed pitch) and graphics on an 80 ...

  • Page 278

    7167 owner’s manual appendix b: print characteristics novembery 2003 262 slip station the slip station prints characters (standard pitch and compressed pitch) and graphics in a print zone of 82.2 mm (3.24 inches) wide on a slip or form. Standard pitch: 45 characters (columns) per line compressed pit...

  • Page 279

    7167 owner’s manual appendix b: print characteristics novembery 2003 263 slip form parameters in order for the printer to handle forms properly the forms shall be flat and void of curls or wrinkles especially at the leading edge of the form. Paper feed direction glued location 1 2 2 3 form construct...

  • Page 280

    7167 owner’s manual appendix b: print characteristics novembery 2003 264 check size the size of the check that the slip station and check flip mechanism handles conforms to ansi/aba standard x9.13 dated 1999. Personal check 6.00” (152.40 mm) wide x 2.750” (69.85 mm) high . Business 8.75” (222.25 mm)...

  • Page 281: Appendix C:  Character Sets

    7167 owner’s manual appendix c novembery 2003 265 appendix c: character sets the following pages show the character sets. • pc code page 437 (usenglish) • pc code page 850 (multilingual) • pc code page 852 (slavic) • pc code page 860 (portuguese) • pc code page 862 (hebrew) • pc code page 863 (frenc...

  • Page 282

    7167 owner’s manual appendix c novembery 2003 266 code page 950 code page 437, 850, 852 and 858.

  • Page 283

    7167 owner’s manual appendix c novembery 2003 267 code page 860, 862, 863 and 864.

  • Page 284

    7167 owner’s manual appendix c novembery 2003 268 code page 865, 866, 874 and 1252.

  • Page 285

    7167 owner’s manual appendix c novembery 2003 269 code page katakana.

  • Page 286

    7167 owner’s manual appendix c novembery 2003 270 code page 932.

  • Page 287

    7167 owner’s manual appendix c novembery 2003 271 code page 932 (cont).

  • Page 288

    7167 owner’s manual appendix c novembery 2003 272 code page 932 (cont).

  • Page 289

    7167 owner’s manual appendix c novembery 2003 273 code page 932 (cont).

  • Page 290

    7167 owner’s manual appendix c novembery 2003 274 code page 932 (cont).

  • Page 291

    7167 owner’s manual appendix c novembery 2003 275 code page 932 (cont).

  • Page 292

    7167 owner’s manual appendix c novembery 2003 276 code page 932 (cont).

  • Page 293

    7167 owner’s manual appendix c novembery 2003 277 code page 932 (cont).

  • Page 294

    7167 owner’s manual appendix c novembery 2003 278 code page 932 (cont).

  • Page 295

    7167 owner’s manual appendix c novembery 2003 279 code page 936 simple chinese.

  • Page 296

    7167 owner’s manual appendix c novembery 2003 280 code page 936 simple chines1e (cont.).

  • Page 297

    7167 owner’s manual appendix c novembery 2003 281 code page 936 simple chinese (cont.).

  • Page 298

    7167 owner’s manual appendix c novembery 2003 282 code page 936 simple chinese (cont.).

  • Page 299

    7167 owner’s manual appendix c novembery 2003 283 code page 936 simple chinese (cont.).

  • Page 300

    7167 owner’s manual appendix c novembery 2003 284 code page 936 simple chinese (cont.).

  • Page 301

    7167 owner’s manual appendix c novembery 2003 285 code page 936 simple chinese (cont.).

  • Page 302

    7167 owner’s manual appendix c novembery 2003 286 code page 936 simple chinese (cont.).

  • Page 303

    7167 owner’s manual appendix c novembery 2003 287 code page 936 simple chinese (cont.).

  • Page 304

    7167 owner’s manual appendix c novembery 2003 288 code page 936 simple chinese (cont.).

  • Page 305

    7167 owner’s manual appendix c novembery 2003 289.

  • Page 306

    7167 owner’s manual appendix c novembery 2003 290 code page 936 simple chinese (cont.).

  • Page 307

    7167 owner’s manual appendix c novembery 2003 291 code page 949 korean.

  • Page 308

    7167 owner’s manual appendix c novembery 2003 292 code page 949 korean (cont.).

  • Page 309

    7167 owner’s manual appendix c novembery 2003 293 code page 949 korean (cont.).

  • Page 310

    7167 owner’s manual appendix c novembery 2003 294 code page 949 korean (cont.).

  • Page 311

    7167 owner’s manual appendix c novembery 2003 295 code page 949 korean (cont.).

  • Page 312

    7167 owner’s manual appendix c novembery 2003 296 code page 949 korean (cont.).

  • Page 313

    7167 owner’s manual appendix c novembery 2003 297 code page 949 korean (cont.).

  • Page 314

    7167 owner’s manual appendix c novembery 2003 298 code page 949 korean (cont.).

  • Page 315

    7167 owner’s manual appendix c novembery 2003 299 code page 949 korean (cont.).

  • Page 316

    7167 owner’s manual appendix c novembery 2003 300 code page 949 korean (cont.).

  • Page 317

    7167 owner’s manual appendix c novembery 2003 301 code page 949 korean (cont.).

  • Page 318

    7167 owner’s manual appendix c novembery 2003 302 code page 949 korean (cont.).

  • Page 319

    7167 owner’s manual appendix c novembery 2003 303 code page 949 korean (cont.).

  • Page 320

    7167 owner’s manual appendix c novembery 2003 304 code page 949 korean (cont.).

  • Page 321

    7167 owner’s manual appendix c novembery 2003 305 code page traditional chinese (cont.).

  • Page 322

    7167 owner’s manual appendix c novembery 2003 306 code page 949 korean (cont.).

  • Page 323

    7167 owner’s manual appendix c novembery 2003 307 code page 950 traditional chinese.

  • Page 324

    7167 owner’s manual appendix c novembery 2003 308 code pare 949 traditional chinese (cont.).

  • Page 325

    7167 owner’s manual appendix c novembery 2003 309 code pare 980 traditional chinese (cont.).

  • Page 326

    7167 owner’s manual appendix c novembery 2003 310 code pare 950 traditional chinese (cont.).

  • Page 327

    7167 owner’s manual appendix c novembery 2003 311 code pare 949 traditional chinese (cont.).

  • Page 328

    7167 owner’s manual appendix c novembery 2003 312 code pare 980 traditional chinese (cont.).

  • Page 329

    7167 owner’s manual appendix c novembery 2003 313 code pare 980 traditional chinese (cont.).

  • Page 330

    7167 owner’s manual appendix c novembery 2003 314 code pare 950 traditional chinese (cont.).

  • Page 331

    7167 owner’s manual appendix c novembery 2003 315 code pare 950 traditional chinese (cont.).

  • Page 332

    7167 owner’s manual appendix c novembery 2003 316 code pare 950 traditional chinese (cont.).

  • Page 333

    7167 owner’s manual appendix c novembery 2003 317 code pare 950 traditional chinese (cont.).

  • Page 334

    7167 owner’s manual appendix c novembery 2003 318 code pare 950 traditional chinese (cont.).

  • Page 335: Index

    7167 owner’s manual index novembery 2003 index 319 index —7— 7167 printer clearance, 4 dimensions, 4, 255 environmental conditions, 254 features, 2 location, 4 ordering supplies, 6 power requirements, 254 power supply, ordering, 8 printer specifications, 253 reliability, 255 sending in for repair, 4...

  • Page 336

    7167 owner’s manual index novembery 2003 index 320 communication interface. See rs-232c interface communication interface modes, 58 configuring the printer, 56 connecting cables cash drawer, 8 communication, 8 power, 8 connector cash drawer, 80 rs-232c communication, 77 consumables. See paper contac...

  • Page 337

    7167 owner’s manual index novembery 2003 index 321 printer emulations, 64 receipt test modes, 61 rs 232 interface, 58 scan option, 70 set extra rs-232c options, 81 slip test modes, 61 level 2 diagnostics, 73 level 3 diagnostics, 74 location choosing, 4 clearance, 4 —m— macro commands, 199 macro comm...

  • Page 338

    7167 owner’s manual index novembery 2003 index 322 printer function commands, 101 printer status commands, 161 printer status commands, 161 printhead impact, 5 thermal, 5 printhead, thermal cleaning, 9 over/under temperature, 43 printing, continuous limitations of, 256 problems, 41 contacting a serv...

  • Page 339

    7167 owner’s manual index novembery 2003 index 323.

  • Page 340

    7167 owner’s manual index febuary 2003 i user feedback form title: ncr 7167 thermal receipt and impact slip owners manual number: b005-0000-1406 issue: issue date: november 2003 ncr welcomes your feedback on this publication. Your comments can be of great value in helping us improve our information ...

  • Page 341

    7167 owner’s manual index febuary 2003 ii write any additional comments you may have below and on additional sheets, if necessary. Include page numbers where applicable. If we may contact you concerning your comments, please fill in the information below. Name: organization: company: address: phone:...

  • Page 342

    7167 owner’s manual index febuary 2003 iii f-8763 0695 ncr corporation retail systems group information products dept 2651 satellite blvd. Duluth, ga 30136 cut fold fold.

  • Page 344

    B005-000-1406 issue 1.0 0302 ncr is the name and mark of ncr corporation © 2002 ncr corporation printed in u.S.A..