NCR 7158 Thermal Receipt and Impact Printer Release 1.0 Owner's Guide B005-0000-1112 Issue D
viii Owner's Guide Chapter 7: Programming Guide Command Conventions...7-1 Li
5-18 Chapter 5: Technical Specifications Print Zone Cut Edge44 Standard Columns = 71.5 mm (2.815 in.)56 Compressed Columns = 70 mm (2.756 in.) Cut Ed
Chapter 5: Technical Specifications 5-19 When printing graphics or logos, converted from 6 dot/mm to 8 dot/mm (i.e. designed for 7156), the print
5-20 Chapter 5: Technical Specifications CharacterCharacterCell11 Dots1.368 mm0.054 in.13 Dots1.625 mm0.064 in.24 Dots3.00 mm0.118 in.19 Dots2.388 mm
Chapter 5: Technical Specifications 5-21 Receipt Throughput: Maximum throughput is achieved at any dot coverage up to 25%, which includes any amo
5-22 Chapter 5: Technical Specifications Allowable Duty Cycle (measured over one minute of continuous printing) Amount of Dot Coverage Ambient Temper
Chapter 5: Technical Specifications 5-23 Interface Description Human Interfaces • Receipt Paper-loading Door, on top of the cabinet. The receip
5-24 Chapter 5: Technical Specifications FrontCoverSlip InLED (Green)Slip orCheckExtendedSlip TableReceiptReceiptCoverFront ofPrinterResetButtonFro
Chapter 5: Technical Specifications 5-25 DIP SwitchBack of PrinterOffSwitch 1 is shownin the ON positionOnDIP Switch4321 Location of Human and El
5-26 Chapter 5: Technical Specifications Electrical Interfaces The 7158 RS-232C is equipped with a 9 Pin male D-shell connector, which will accept an
Chapter 5: Technical Specifications 5-27 Switch Settings These are out-of-service tests or printer settings invoked via the 4 position DIP switch
Owner's Guide ix Additional Remote Diagnostics ...7-19 Comparison Chart...
5-28 Chapter 5: Technical Specifications Code Page 437
Chapter 5: Technical Specifications 5-29 Code Page 850
5-30 Chapter 5: Technical Specifications Code Page 852
Chapter 5: Technical Specifications 5-31 Code Page 858
5-32 Chapter 5: Technical Specifications Code Page 860
Chapter 5: Technical Specifications 5-33 Code Page 863
5-34 Chapter 5: Technical Specifications Code Page 865
Chapter 5: Technical Specifications 5-35 Code Page 866
5-36 Chapter 5: Technical Specifications Dimensions and Weight 178 mm(7.0 in.)280 mm(11.0 in.)229 mm (9.0 in.)264 mm (10.4 in.)347 mm (13.7 in.)Exte
Chapter 6: Communication Interface Communication Overview In order for the printer to communicate with the host, a communication link must be set u
x Owner's Guide Print and Eject Slip...7-36 Print and Carriage Return...
6-2 Chapter 6: Communication Interface Using BASIC to Send Commands In BASIC, printer commands are sent as a string of characters preceded by the LP
Chapter 6: Communication Interface 6-3 RS-232C Interface The RS-232C interface uses either the XON/XOFF (software) or DTR/DSR (hardware) protoc
6-4 Chapter 6: Communication Interface If the application sends data at 9600 baud and pauses between lines for as short a time as 50 milliseconds, t
Chapter 6: Communication Interface 6-5 No Delay after Each Line Characters/Line Lines/Receipt Transmit Time (19.2 K Baud) Process Time* 20 20
6-6 Chapter 6: Communication Interface [DTR SPACE] - When ready to accept data. - Remaining space in the 4K buffer rises above 512 bytes. ** [XO
Chapter 6: Communication Interface 6-7 XON character = hexadecimal 11. XOFF character = hexadecimal 13. DTR/DSR Protocol The DTR signal is use
6-8 Chapter 6: Communication Interface Connector Pin-outs This section describes the pin settings for the connectors on the back of the printer. Com
Chapter 6: Communication Interface 6-9 Cash Drawer Connector A 6-contact modular jack (RJ11) is available to drive a cash drawer with dedicated
6-10 Chapter 6: Communication Interface
Chapter 7: Programming Guide Command Conventions The following information describes how each command is organized: Name: Name of command. ASCI
Owner's Guide xi Select or Cancel User-Defined Character Set ...7-58 Define User-Defined Characters...
7-2 Chapter 7: Programming Guide List of Commands and Location Commands control all operations and functions of the printer. This includes selecting
Chapter 7: Programming Guide 7-3 Code (Hexadecimal) Command Page 16 n Add n Extra Dot Rows 39 17 Print 40 18 Open Form 23 18 Cancel Print D
7-4 Chapter 7: Programming Guide Code (Hexadecimal) Command Page 1B 34 m a0 a1 a2 Read from User Data Storage 147 1B 3A 30 30 30 Copy Character
Chapter 7: Programming Guide 7-5 Code (Hexadecimal) Command Page for MICR Read 1B 63 31 n Select Receipt or Slip for Setting Line Spacing 28 1
7-6 Chapter 7: Programming Guide Code (Hexadecimal) Command Page 1D 00 Request Printer ID 152 1D 01 Return Segment Number Status of Flash Memor
Chapter 7: Programming Guide 7-7 Code (Hexadecimal) Command Page 1D 48 n Select Printing Position for HRI Characters 114 1D 49 n Transmit Pri
7-8 Chapter 7: Programming Guide By Function All items in BOLD are new or have additional functionality when compared to the 7156. Printer Function
Chapter 7: Programming Guide 7-9 1B 7A n Select or Cancel Parallel Printing Mode on R&J 32 1C Select Slip Station 33 1D 56 m Select Cut
7-10 Chapter 7: Programming Guide Horizontal Positioning Commands Code (Hexadecimal Command Page 09 Horizontal Tab 45 1B 14 n Set Column 45 1B 2
Chapter 7: Programming Guide 7-11 Print Characteristic Commands Code (Hexadecimal Command Page 12 Select Double-Wide Characters 53 13 Select
xii Owner's Guide Transmit Peripheral Device Status ...7-86 Request Alternate Status (Parallel Only) ...
7-12 Chapter 7: Programming Guide Graphics Commands Code (Hexadecimal Command Page 1B followed by the BMP file data characters Download BMP Logo
Chapter 7: Programming Guide 7-13 Real Time Code (Hexadecimal Command Page 10 04 n Real Time Status Transmission (DLE Sequence) 103 10 05 n R
7-14 Chapter 7: Programming Guide Page Mode Commands Code (Hexadecimal Command Page 0C Print and Return to Standard Mode/Print and Eject Slip 120
Chapter 7: Programming Guide 7-15 MICR Parsing Code (Hexadecimal Command Page 1B 77 50 Define Parsing Format, Save in NVRAM 132 1B 77 70 Defi
7-16 Chapter 7: Programming Guide Flash Download Commands Code (Hexadecimal Command Page 1B 5B 7D Switch Flash Download Mode 151 1D 00 Request
Chapter 7: Programming Guide 7-17 Comparison to 7156 New Features There are a number of new firmware features in the A758 Native Mode. These incl
7-18 Chapter 7: Programming Guide Additional character attributes The 7158 includes support for additional character attributes including Bold, Ital
Chapter 7: Programming Guide 7-19 Macro Capability The 7158 supports the ability to record and execute a series of commands called a macro. Addit
7-20 Chapter 7: Programming Guide Comparison Chart The following table details the list of commands whose behavior differs from the 7156 because of
Chapter 7: Programming Guide 7-21 Command Description Difference between 7156 and 7158 configured inA 756 Emulation Mode. Graphics scales the gra
Owner's Guide xiii Set Absolute Vertical Print Position in Page Mode...7-127 Set Relative Vertical Print Position in Page Mode...
7-22 Chapter 7: Programming Guide Command Descriptions Printer Function Commands The printer function commands control the following basic printer f
Chapter 7: Programming Guide 7-23 Exceptions: In printers with the Parallel interface, this command also returns paper exhaust to the paper statu
7-24 Chapter 7: Programming Guide Perform Full Knife Cut ASCII: EM or ESC i Hexadecimal: 19 or 1B 69 Decimal: 25 or 27 105 Cuts the recei
Chapter 7: Programming Guide 7-25 Return Home ASCII: ESC < Hexadecimal: 1B 3C Decimal: 27 60 Moves the impact printhead (unless already
7-26 Chapter 7: Programming Guide Initialize Printer ASCII: ESC @ Hexadecimal: 1B 40 Decimal: 27 64 Default: Receipt Slip Character P
Chapter 7: Programming Guide 7-27 Select Receipt or Slip for Printing; Slip for MICR Read ASCII: ESC c 0 n Hexadecimal: 1B 63 30 n Decimal:
7-28 Chapter 7: Programming Guide Select Receipt or Slip for Setting Line Spacing ASCII: ESC c 1 n Hexadecimal: 1B 63 31 n Decimal: 27 99 49
Chapter 7: Programming Guide 7-29 Select Paper Sensors to Output Paper End Signals (Parallel Only) ASCII: ESC c 3 n Hexadecimal: 1B 63 33 n
7-30 Chapter 7: Programming Guide Select Sensors to Stop Printing ASCII: ESC c 4 n Hexadecimal: 1B 63 34 n Decimal: 27 99 52 n Value of n : B
Chapter 7: Programming Guide 7-31 Enable or Disable Online Switch ASCII: ESC c 6 n Hexadecimal: 1B 63 36 n Decimal: 27 99 54 n Value of n
xiv Owner's Guide Request Printer ID...7-152 Return Segment Number Status of Flash
7-32 Chapter 7: Programming Guide Generate Pulse to Open Cash Drawer ASCII: ESC p n p1 p2 Hexadecimal: 1B 70 n p1 p2 Decimal: 27 112 n p1 p2
Chapter 7: Programming Guide 7-33 Select Slip Station ASCII: FS Hexadecimal: 1C Decimal: 28 Selects the Slip Station for all functions. Th
7-34 Chapter 7: Programming Guide Select Cut Mode and Cut Paper ASCII: GS V m GS V m n Hexadecimal: 1D 56 m 1D 56 m n Decimal: 29 86 m 29 86
Chapter 7: Programming Guide 7-35 Select Receipt Station ASCII: RS Hexadecimal: 1E Decimal: 31 Selects the Receipt Station for all functions. The
7-36 Chapter 7: Programming Guide Vertical Positioning and Print Commands The vertical positioning and print commands control the vertical print pos
Chapter 7: Programming Guide 7-37 Print and Carriage Return ASCII: CR Hexadecimal: 0D Decimal: 13 Prints one line from the buffer and feeds
7-38 Chapter 7: Programming Guide Feed n Dot Rows ASCII: NAK n Hexadecimal: 15 n Decimal: 21 n Value of n: Receipt Slip n/203 inch
Chapter 7: Programming Guide 7-39 Add n Extra Dot Rows ASCII: SYN n Hexadecimal: 16 n Decimal: 22 n Value of n: Receipt Slip n/203
7-40 Chapter 7: Programming Guide Print ASCII: ETB Hexadecimal: 17 Decimal: 23 Prints one line from the buffer and feeds paper one line. Exec
Chapter 7: Programming Guide 7-41 Set Line Spacing ASCII: ESC 3 n Hexadecimal: 1B 33 n Decimal: 27 51 n Value of n: n/406 inches on rec
Owner's Guide xv Uninstalling the Drivers ...8-17 Troubleshooting...
7-42 Chapter 7: Programming Guide Print and Feed Paper ASCII: ESC J n Hexadecimal: 1B 4A n Decimal: 27 74 n Value of n: n/203 inches recei
Chapter 7: Programming Guide 7-43 Print and Feed n Lines ASCII: ESC d n Hexadecimal: 1B 64 n Decimal: 27 100 n Value of n: Number of li
7-44 Chapter 7: Programming Guide Reverse Feed n Dots ASCII: GS NAK n Hexadecimal: 1D 15 n Decimal: 29 21 n Value of n: n dots at 1/72 inc
Chapter 7: Programming Guide 7-45 Horizontal Positioning Commands The horizontal positioning commands control the horizontal print positions of c
7-46 Chapter 7: Programming Guide Set Absolute Starting Position ASCII: ESC $ n1 n2 Hexadecimal: 1B 24 n1 n2 Decimal: 27 36 n1 n2 Value of n:
Chapter 7: Programming Guide 7-47 Set Horizontal Tabs ASCII: ESC D [n] k NUL Hexadecimal: 1B 44 [n] k 00 Decimal: 27 68 [n] k 0 Value of n
7-48 Chapter 7: Programming Guide Set Relative Print Position ASCII: ESC \ n1 n2 Hexadecimal: 1B 5C n1 n2 Decimal: 27 92 n1 n2 Value of n: T
Chapter 7: Programming Guide 7-49 65,516/256 = 255, remainder of 236 n1 = 236 n2 = 255 To move to the right: Determine the value of n by multipl
7-50 Chapter 7: Programming Guide Select Justification ASCII: ESC a n Hexadecimal: 1B 61 n Decimal: 27 97 n Value of n: 0, 48 = Left Aligned
Chapter 7: Programming Guide 7-51 Set Left Margin ASCII: GS L nL nH Hexadecimal: 1D 4C nL nH Decimal: 29 76 nL nH Range of nL: 0 - 255 R
xvi Owner's Guide Radio Frequency Interference Statements Federal Communications Commission (FCC) Information to User This equipment has been tes
7-52 Chapter 7: Programming Guide Set Printing Area Width ASCII: GS W nL nH Hexadecimal: 1D 57 nL nH Decimal: 29 87 nL nH Range of nL: 0 –
Chapter 7: Programming Guide 7-53 Print Characteristic Commands These commands control what the printed information looks like: selection of char
7-54 Chapter 7: Programming Guide Select 90 Degree Counter-Clockwise Rotated Print ASCII: ESC DC2 Hexadecimal: 1B 12 Decimal: 27 18 Rotates c
Chapter 7: Programming Guide 7-55 Select Pitch (Column Width) ASCII: ESC SYN n Hexadecimal: 1B 16 n Decimal: 27 22 n Value of n: 0 = Stan
7-56 Chapter 7: Programming Guide Set Character Right-Side Spacing ASCII: ESC SP n Hexadecimal: 1B 20 n Decimal: 27 32 n Range of n: 0 -
Chapter 7: Programming Guide 7-57 Select Print Modes ASCII: ESC ! n Hexadecimal: 1B 21 n Decimal: 27 33 n Value of n: Pitch selection (st
7-58 Chapter 7: Programming Guide Related Information: The bits in this command perform the same function as the standalone functions: 1B 16 n Selec
Chapter 7: Programming Guide 7-59 Define User-Defined Characters Receipt Slip ASCII: ESC & 3 c1 c2 n1 d1 ... nn dn ESC & 0 c
7-60 Chapter 7: Programming Guide Defining User-Defined Characters for the Slip and Receipt Station Defines and enters downloaded characters into RA
Chapter 7: Programming Guide 7-61 n = 1-10 (standard pitch), 12 and less accepted but ignored n = 1-8 (compressed pitch), 12 and less accepted bu
Chapter 1: About the Printer Introducing the 7158 Printer The 7158 is an extremely fast, quiet, and reliable point-of-sale printer. It consists of
7-62 Chapter 7: Programming Guide Select or Cancel Underline Mode ASCII: ESC - n Hexadecimal: 1B 2D n Decimal: 27 45 n Value of n: 0, 48 = C
Chapter 7: Programming Guide 7-63 Cancel User-Defined Characters ASCII: ESC ? n Hexadecimal: 1B 3F n Decimal: 27 63 n Value of n: Speci
7-64 Chapter 7: Programming Guide Select Double Strike A756 Emulation A758 Native ASCII: ESC G ESC G n Hexadecimal: 1B 47 1B 47 n Decimal:
Chapter 7: Programming Guide 7-65 Select or Cancel Italic Print ASCII: ESC I n Hexadecimal: 1B 49 n Decimal: 27 73 n Value of n: 0 = Of
7-66 Chapter 7: Programming Guide Select International Character Set ASCII: ESC R n or ESC t n Hexadecimal: 1B 52 n or 1B 74 n Decimal: 27 82 n o
Chapter 7: Programming Guide 7-67 Select or Cancel Unidirectional Printing Mode ASCII: ESC U n Hexadecimal: 1B 55 n Decimal: 27 85 n Value
7-68 Chapter 7: Programming Guide Select or Cancel Upside Down Printing Mode ASCII: ESC { n Hexadecimal: 1B 7B n Decimal: 27 123 n Value of n
Chapter 7: Programming Guide 7-69 Select Character Size ASCII: GS ! n Hexadecimal: 1D 21 n Decimal: 29 33 n Value of n: 1 - 8 = vertica
7-70 Chapter 7: Programming Guide This command is effective for all characters (except for HRI characters). In Standard Mode, the vertical directio
Chapter 7: Programming Guide 7-71 Select or Cancel White/Black Reverse Print Mode ASCII: GS B n Hexadecimal: 1D 42 n Decimal: 29 66 n Valu
The product described in this book is a licensed product of NCR Corporation. NCR is a registered trademark of NCR Corporation. It is the policy of NCR
1-2 Chapter 1: About the Printer Standard Features Connectivity Features Industry standard RS-232C interface for communication with the host compute
7-72 Chapter 7: Programming Guide Select Superscript or Subscript Modes ASCII: AX ENQ n Hexadecimal: 1F 05 n Decimal: 31 05 n Value of n:
Chapter 7: Programming Guide 7-73 Summary of Rotated Printing The table shows the combinations of Set/Cancel Upside-Down Print, Set/Cancel Rotate
7-74 Chapter 7: Programming Guide Graphics Commands These commands are used to enter and print graphics data and are described in order of their hex
Chapter 7: Programming Guide 7-75 Select Bit Image Mode ASCII: ESC * m n1 n2 d1 ... dn Hexadecimal: 1B 2A m n1 n2 d1 ... dn Decimal: 27 42
7-76 Chapter 7: Programming Guide In single density, one byte (7 dots) is printed in each full dot column; in double density, one byte is printed in
Chapter 7: Programming Guide 7-77 Top of Bit Image24-Dot Single-Density Mode—Receipt OnlydnMSBLSB d1 d2 d3 d4 d7 d5 d6 dn
7-78 Chapter 7: Programming Guide Select Double-Density Graphics ASCII: ESC Y n1 n2 d1 … dn or ESC L n1 n2 d1 ... dn Hexadecimal: 1B 59 n1 n
Chapter 7: Programming Guide 7-79 Select the Current Logo (Downloaded Bit Image) ASCII: GS # n Hexadecimal: 1D 23 n Decimal: 29 35 n Range
7-80 Chapter 7: Programming Guide Exceptions: This command is only valid for the receipt station. However, it will be processed correctly regardless
Chapter 7: Programming Guide 7-81 Define Downloaded Bit Image ASCII: GS * n1 n2 d1 ... dn] Hexadecimal: 1D 2A n1 n2 d1 ... dn] Decimal: 29
Chapter 1: About the Printer 1-3 Thermal Receipt Printer • Extremely fast and quiet thermal printhead. • No ribbon or ink cartridge to change.
7-82 Chapter 7: Programming Guide d1 d2 dn d Top of GraphicdnMSB LSBColumnColumn One 72 x 8 Max.RowOneRow 64Max. 64 65 d Exceptions: S
Chapter 7: Programming Guide 7-83 Print Downloaded Bit Image ASCII: GS / m Hexadecimal: 1D 2F m Decimal: 29 47 m Value and Range of m: Val
7-84 Chapter 7: Programming Guide Convert 6 Dots/mm Bitmap to 8 Dots/mm Bitmap ASCII: AX EOT n Hexadecimal: 1F 04 n Decimal: 31 04 n Value:
Chapter 7: Programming Guide 7-85 Status Commands Status Command Introduction The 7158 has three methods of providing status to the application.
7-86 Chapter 7: Programming Guide Batch Mode For RS-232C printers, these commands enable the printer to communicate with the host computer following
Chapter 7: Programming Guide 7-87 Request Alternate Status (Parallel Only) ASCII: ESC u n Hexadecimal: 1B 75 n Decimal: 27 117 n Value and
7-88 Chapter 7: Programming Guide Transmit Printer Status ASCII: ESC v Hexadecimal: 1B 76 Decimal: 27 118 Sends status data to the host compu
Chapter 7: Programming Guide 7-89 Transmit Printer ID ASCII GS I n Hexadecimal 1D 49 n Decimal 29 73 n Value of n 1, 49 = Printer mode
7-90 Chapter 7: Programming Guide Type ID (n=4) Bit Off/On Hex Decimal Function 0 Off 00 0 No logo definition loaded by application. O
Chapter 7: Programming Guide 7-91 Transmit Printer ID, Remote Diagnostics Extension ASCII: GS I @ n Hexadecimal: 1D 49 40 n Decimal: 29 73
1-4 Chapter 1: About the Printer Impact Slip Printer • Bi-directional impact printhead designed for a very long life. • Snap-on ribbon cassette. •
7-92 Chapter 7: Programming Guide Value of n Remote Diagnostic Item Function ASC Hex Dec “ 22 34 Serial # Not available, cannot clear Serial
Chapter 7: Programming Guide 7-93 Value of n Remote Diagnostic Item Function ASC Hex Dec â 83 131 Receipt lines tally Return receipt lines ta
7-94 Chapter 7: Programming Guide Value of n Remote Diagnostic Item Function ASC Hex Dec É 90 144 Hours on tally, 8 digit ASCII numeric, max
Chapter 7: Programming Guide 7-95 Value of n Remote Diagnostic Item Function ASC Hex Dec ¡ AD 173 Cover openings tally Write to NVRAM, and pr
7-96 Chapter 7: Programming Guide Transmit Status ASCII: GS r n Hexadecimal: 1D 72 n Decimal: 29 114 n Value of n: 1, 49 = printer status
Chapter 7: Programming Guide 7-97 Printer Status (n = 1 or n = 49) Bit Off/On Hex Decimal Status for Transmit Status 0 Off On 00 01 0 1 Rece
7-98 Chapter 7: Programming Guide Slip Paper Status (n = 3 or n = 51) Value of Byte Returned Slip Status 0 There is no more printing space on the c
Chapter 7: Programming Guide 7-99 Recognizing Data from the Printer An application sending various Real Time and non-Real Time commands to which
7-100 Chapter 7: Programming Guide Real Time Commands These commands provide an application interface to the printer even when the printer is not ha
Chapter 7: Programming Guide 7-101 Alternate Implementation The alternate implementation uses the DLE (0x10) sequences as implemented on other pr
Chapter 1: About the Printer 1-5 Options Connectivity Options • RS-232C is supported on all printers. USB is also supported on some later model
7-102 Chapter 7: Programming Guide Moving Data Through the Buffer Another consideration is that an application should take care not to let the buffe
Chapter 7: Programming Guide 7-103 Real Time Status Transmission GS Sequence DLE Sequence ASCII: GS EOT n DLE EOT n Hexadecimal: 1D
7-104 Chapter 7: Programming Guide Related Information: 1 = Transmit Printer Status Bit Status Hex Decimal Function 0 Off 00 0 Fixed to Off 1
Chapter 7: Programming Guide 7-105 3 = Transmit Error Status Bit Status Hex Decimal Function 0 Off 00 0 Fixed to Off 1 On 02 2 Fixe
7-106 Chapter 7: Programming Guide 5 = Transmit Slip Paper Status Bit Status Hex Decimal Function 0 Off 00 0 Fixed to Off 1 On 02 2 Fixed
Chapter 7: Programming Guide 7-107 Real Time Request to Printer GS Sequence DLE Sequence ASCII: GS ETX n or DLE ENQ n Hexadecimal:
7-108 Chapter 7: Programming Guide Recovers from an error after clearing the receive and print buffers. Print settings that are normally preserved f
Chapter 7: Programming Guide 7-109 Real Time Printer Status Transmission ASCII: GS ENQ Hexadecimal: 1D 05 Decimal: 29 5 Transmits one byte
7-110 Chapter 7: Programming Guide Auto Status Back Select or Cancel Automatic Status Back ASCII: GS a n Hexadecimal: 1D 61 n Decimal: 29 97
Chapter 7: Programming Guide 7-111 The bits of n are defined in the table. Bit Off/On Hex Decimal Status for ASB 0 Off On 00 01 0 1 Cash dra
1-6 Chapter 1: About the Printer Model Identification Key A758 Model ID KeyA 7 5 8 - X X X X1 = no knife5 = knife0 = no MICR1 = MICR
7-112 Chapter 7: Programming Guide First Byte (Printer Information) Bit Off/On Hex Decimal Status for ASB 0 Off 00 0 Not used. Fixed to off.
Chapter 7: Programming Guide 7-113 Third Byte (Paper Sensor Information) Bit Off/On Hex Decimal Status for ASB 0 Off On 00 01 0 1 Receipt pa
7-114 Chapter 7: Programming Guide Bar Code Commands These commands format and print bar codes and are described in order of their hexadecimal codes
Chapter 7: Programming Guide 7-115 Select Pitch for HRI Characters ASCII: GS f n Hexadecimal: 1D 66 n Decimal: 29 102 n Value of n: Pitch
7-116 Chapter 7: Programming Guide Values: First Variation: String terminated with NUL Character m = 0 – 6, 10 d = 32 - 126 (see the table) n =
Chapter 7: Programming Guide 7-117 The check digit is calculated for UPC and JAN (EAN) codes if it is not sent from the host computer. Six-charac
7-118 Chapter 7: Programming Guide m Bar Code D n, Length 65 UPC-A 48- 57 (ASCII numerals) Fixed Length: 11, 12 66 UPC-E 48- 57 Fixed Leng
Chapter 7: Programming Guide 7-119 Exceptions: Illegal data cancels this command. The command is valid only at the beginning of a line. PDF 417 f
7-120 Chapter 7: Programming Guide Page Mode Commands Page Mode is one of two modes, which the 7158 printer uses to operate. Standard Mode is typica
Chapter 7: Programming Guide 7-121 Cancel Print Data in Page Mode ASCII: CAN Hexadecimal: 18 Decimal: 24 Deletes all the data to be print
Chapter 1: About the Printer 1-7 The set of options installed on a particular printer can be determined by looking at the printer's model nu
7-122 Chapter 7: Programming Guide Select Page Mode ASCII: ESC L Hexadecimal: 1B 4C Decimal: 27 76 Switches from Standard Mode to Page Mode.
Chapter 7: Programming Guide 7-123 Select Standard Mode ASCII: ESC S Hexadecimal: 1B 53 Decimal: 27 83 Switches from Page Mode to Standard
7-124 Chapter 7: Programming Guide Select Print Direction in Page Mode ASCII: ESC T n Hexadecimal: 1B 54 n Decimal: 27 84 n Value of n: Sta
Chapter 7: Programming Guide 7-125 Set Printing Area in Page Mode ASCII: ESC W n1, n2 ...n8.] Hexadecimal: 1B 57 n1, n2 ...n8] Decimal: 27
7-126 Chapter 7: Programming Guide 4. dy = [(n7 + n8 x 256) x (vertical direction of the fundamental calculation pitch)] Keep the following notes i
Chapter 7: Programming Guide 7-127 Set Absolute Vertical Print Position in Page Mode ASCII: GS $ nL nH Hexadecimal: 1D 24 nL nH Decimal: 2
7-128 Chapter 7: Programming Guide Set Relative Vertical Print Position in Page Mode ASCII: GS \ nL nH Hexadecimal: 1D 5C nL nH Decimal: 29 9
Chapter 7: Programming Guide 7-129 Macro Commands These commands are used to select and perform a user-defined sequence of printer operations. St
7-130 Chapter 7: Programming Guide Execute Macro ASCII: GS ^ r t m Hexadecimal: 1D 5E r t m Decimal: 29 94 r t m Value of r: The number o
Chapter 7: Programming Guide 7-131 MICR Commands MICR Reading These commands control the Magnetic Ink Character Recognition (MICR) check reader,
1-8 Chapter 1: About the Printer
7-132 Chapter 7: Programming Guide MICR Parsing This section describes MICR parsing in detail and includes several examples of useful parsing variat
Chapter 7: Programming Guide 7-133 Parsing Parameter String Options Variable Length Fields Variable Length Field Name Selector Comments Transit
7-134 Chapter 7: Programming Guide Other Parameters Error Number E One Digit Returned 0 1 Read OK Read error: bad character, empty field inva
Chapter 7: Programming Guide 7-135 Ten parameters are more than enough to specify all variable length fields with a field separator each and othe
7-136 Chapter 7: Programming Guide Sample Parsing Formats The following strings show various sample formats that you can use assuming they meet your
Chapter 7: Programming Guide 7-137 ESC w p 018 x A <CR> • Always 18 characters in the account number with spaces and dashes replaced with
7-138 Chapter 7: Programming Guide ESC w p T '/ A '/ C '/ S <CR> • All characters in the transit number • Field separator: /
Chapter 7: Programming Guide 7-139 Notes All parameters are ASCII characters, i.e. greater than or equal to 0x20, with the exception of a non-ASC
7-140 Chapter 7: Programming Guide Once a parsing format is specified, the following values are returned: MICR Characters ASCII Hexadecimal Numeri
Chapter 7: Programming Guide 7-141 Check Serial Number Parsing the Check Serial Number Most banks print the check serial number in three easily r
Chapter 2: Setup Guide Unpacking the Printer Save all packing materials in case you need to repack the printer. Check that the materials shipped w
7-142 Chapter 7: Programming Guide If all of these searches fail to produce the distinct check serial number, and the check serial number field has
Chapter 7: Programming Guide 7-143 Loading the Exception Table The exception table begins at word 20 in NVRAM. Each entry takes five words. There
7-144 Chapter 7: Programming Guide Exception Table Entry Format Each exception table entry consists of five words. The first two words contain the f
Chapter 7: Programming Guide 7-145 0 0 1 0 0 1 0 0 (check #, four characters) and 0 1 0 0 1 0 1 0 (account #, 10 characters) then stored
7-146 Chapter 7: Programming Guide which reads and returns word k in NVRAM. When the exception table is full, a new entry can replace an older, less
Chapter 7: Programming Guide 7-147 Read from User Data Storage ASCII: ESC 4 m a0 a1 a2 Hexadecimal: 1B 34 m a0 a1 a2 Decimal: 27 52 m a0
7-148 Chapter 7: Programming Guide Select Memory Type (SRAM/Flash) Where to Save Logos or User-Defined Fonts ASCII: GS " n Hexadecimal: 1D 22
Chapter 7: Programming Guide 7-149 Flash Allocation ASCII: GS " U n1 n Hexadecimal: 1D 22 55 n1 n2 Decimal: 29 34 85 n1 n2 Default
7-150 Chapter 7: Programming Guide Erase User Flash Sector ASCII: GS @ n Hexadecimal: 1D 40 n Decimal: 29 64 n Value of n: 49 - 50 Erases
Chapter 7: Programming Guide 7-151 Flash Download Commands These commands are used to load firmware into the printer. The commands are listed in
2-2 Chapter 2: Setup Guide Choosing a Location 178 mm(7.0 in.)280 mm(11.0 in.)229 mm (9.0)264 mm (10.4 in.)347 mm (13.7 in.)ExtendedSlip TableRecei
7-152 Chapter 7: Programming Guide Request Printer ID ASCII: GS NUL Hexadecimal: 1D 00 Decimal: 29 0 Returns ACK (06 hex) + 12 bytes ASCII s
Chapter 7: Programming Guide 7-153 Select Flash Memory Sector to Download ASCII: GS STX n Hexadecimal: 1D 02 n Decimal: 29 2 n Value of n:
7-154 Chapter 7: Programming Guide Return Microprocessor CRC ASCII: GS BEL Hexadecimal: 1D 07 Decimal: 29 7 Returns the CRC calculated over t
Chapter 7: Programming Guide 7-155 Erase Selected Flash Sector ASCII: GS DLE n Hexadecimal: 1D 10 n Decimal: 29 16 n Value and Range of n:
7-156 Chapter 7: Programming Guide Download to Active Flash Sector ASCII: GS DC1 al ah cl ch d1…dn Hexadecimal: 1D 11 al ah cl ch d1…dn Deci
Chapter 7: Programming Guide 7-157 Reboot the Printer ASCII: GS (SPACE) Hexadecimal: 1D FF Decimal: 29 255 Ends the load process and reboo
7-158 Chapter 7: Programming Guide
Chapter 8: Universal Serial Bus About the Universal Serial Bus The Universal Serial Bus (USB) is a peripheral bus for personal computers that was f
8-2 Chapter 8: Universal Serial Bus Additional POS devices. Some POS systems are required to host more peripherals than can be supported by two RS-
Chapter 8: Universal Serial Bus 8-3 Checking for USB Support on the Host Computer To make USB work, the POS must be factory equipped with a USB p
Chapter 2: Setup Guide 2-3 Remove the Packing Restraints FrontCoverCardboardSupportCarriageFoamRestraint 1. Open the front cover, remove the
8-4 Chapter 8: Universal Serial Bus Note: Even though the host may have a USB port, Windows NT does not natively support plug-and-play USB because
Chapter 8: Universal Serial Bus 8-5 Configuring NCR POS Printers for USB Installing the NCR 7158 USB Upgrade Kit If you’re upgrading the printer,
8-6 Chapter 8: Universal Serial Bus 7. Return DIP switch No.1 to the original Off (down) position. 8. When you’re finished, plug the printer in ag
Chapter 8: Universal Serial Bus 8-7 4. Remove the Options Board by gripping it at the connector end and lifting up. You may need to wiggle it s
8-8 Chapter 8: Universal Serial Bus Configuring the Printer USB is a plug-and-play environment. As such, neither the printer nor the host requires u
Chapter 8: Universal Serial Bus 8-9 DIP SwitchBack of PrinterOffSwitch 1 is shownin the ON positionOnDIP Switch4321 3. Open the Front Cover of t
8-10 Chapter 8: Universal Serial Bus Follow the instructions on the scrolling menu, pressing the Paper Feed button to make selections. Indicate Yes
Chapter 8: Universal Serial Bus 8-11 8. Follow the instructions to select either XON/OFF or DTR/DSR, then skip the remaining communications para
8-12 Chapter 8: Universal Serial Bus Installing the USB Printer Drivers You must have LPIN D370-1111-0100 To install the required drivers to support
Chapter 8: Universal Serial Bus 8-13 2. To start the installation program, plug one end of the USB cable into the USB connector port on the prin
Owner's Guide i Preface Important Information to the User In order to ensure compliance with the Product Safety, FCC and CE marking requireme
2-4 Chapter 2: Setup Guide ReceiptCoverPaperRollPaper RollSupportsTe stPrintout 1. Open the receipt cover and remove the test printout. 2. Lif
8-14 Chapter 8: Universal Serial Bus Checking the Installation You’ll need to verify that the device drivers were installed correctly: Windows 95 an
Chapter 8: Universal Serial Bus 8-15 3. Scroll back up to “Ports.” You should see a COM number and port description for the NCR printer. If the
8-16 Chapter 8: Universal Serial Bus Configuring Serial Port Number Assignments This section described how the NCR USB solution assigns serial port
Chapter 8: Universal Serial Bus 8-17 Serial Port Configuration Methods Automatic (Default). When the printer is plugged into the USB port of the
8-18 Chapter 8: Universal Serial Bus Windows NT: Windows NT users will need to run the Edgeport Configuration Utility to uninstall the drivers. 1.
Chapter 8: Universal Serial Bus 8-19 Troubleshooting Problem Solution Device not working. Check for conflicting USB devices. Check
8-20 Chapter 8: Universal Serial Bus Frequently Asked Questions USB Printer Performance Under Windows 95 Normally sending output to a USB printer r
Index—A— A758 printer advanced interface design, 1-2 configuration, 3-16 connectivity features, 1-2 description, 5-1 dimensions, 5-36 documentation,
Index-2 code page 850, 5-29 code page 852, 5-30 code page 858, 5-31 code page 860, 5-32 code page 863, 5-33 code page 865, 5-34 code page 866, 5-35 Ch
Index-3 Connecting cables cash drawer, 2-6 power supply, 2-7 Connector cash drawer, 6-9 RS-232C communication, 6-8 Consumables. See Paper Contacting a
Chapter 2: Setup Guide 2-5 Connecting the Cables Caution: Connect the cables to the printer before plugging in the power supply. If power is rec
Index-4 Humidity, 5-10 —I— Impact slip printer, 1-4 options, 1-5 Interface description, 5-23, 5-36 electrical, 5-26 human, 5-23 timing, 6-5 —J— Jams c
Index-5 Ordering adapters, 4-2 cash drawers, 4-2 communication cable, 4-3 documentation, 4-4 paper, 4-1 power supply, 4-2 power supply cord, 4-2 ribbo
Index-6 checks, 3-7 forms, 3-7 receipt, 5-17 slip, 5-12 Printing problems receipt, 3-34 Problems contacting a service representative, 3-38 flashing LE
Index-7 —S— Sample printout configuration menu, 2-12, 3-19 print test, 2-12 Sending commands BASIC, 6-2 DOS, 6-1 Service representative contacting, 3-
Index-8 —W— Weight, of printer, 5-36 —X— XON/XOFF protocol, 6-6
2-6 Chapter 2: Setup Guide Cash Drawer Cables The cash drawer cable connects the printer to one or two cash drawers. 1. Plug the cable into the ca
Chapter 2: Setup Guide 2-7 Power Supply Cable Connect the power supply cable last. 1. Plug the power cord into the power supply. Communicatio
2-8 Chapter 2: Setup Guide Loading Receipt Paper 1. Tear off the end of the roll so that the edge is loose. 2. Place the roll into the paper buck
Chapter 2: Setup Guide 2-9 4. Remove the excess paper by tearing it against the tear-off blade. 5. Press the Paper Feed Button to advance th
2-10 Chapter 2: Setup Guide Putting In the Ribbon Cassette Note: You must use an approved NCR ribbon cassette with the check flip option to prevent
Chapter 2: Setup Guide 2-11 Testing the Printer The Configuration Menu allows you to set general printer parameters. The test prints a list of va
2-12 Chapter 2: Setup Guide Configuration Menu and Print Test samples (shown approximately 60% of size). Caution: Be extremely careful changing a
Chapter 3: Using the Printer Printer Controls FrontCoverSlip InLED (Green)Slip orCheckExtendedSlip TableReceiptReceiptCoverResetButtonOn-Line,Paper
ii Owner's Guide How to Use This Book Use this book as a training guide for teaching users how to operate the printer or as a reference for progr
3-2 Chapter 3: Using the Printer The printer also indicates its status when it is first turned on, or after it has been reset, by beeping. A single
Chapter 3: Using the Printer 3-3 Changing the Receipt Paper Change the paper when either a colored stripe appears on the receipt paper or the pri
3-4 Chapter 3: Using the Printer 1. Open the cover and remove the used roll. 2. Tear off the end of the new roll so that the edge is loose. 3. Pl
Chapter 3: Using the Printer 3-5 Replacing the Ribbon Cassette Change the impact printer’s ribbon cassette if it is printing lightly. Note: You
3-6 Chapter 3: Using the Printer 1. Open the printer’s front cover and pinch the tabs of the old ribbon cassette to remove it. RibbonCassetteKnobMy
Chapter 3: Using the Printer 3-7 Printing on Forms or Checks There are several types of transactions that may require the insertion of a form or
3-8 Chapter 3: Using the Printer Although the illustration on the following page shows a check being inserted into the printer, these instructions a
Chapter 3: Using the Printer 3-9 To print on a form or check: 1. Insert the form or check (check shown in the illustration) from the front and p
3-10 Chapter 3: Using the Printer Verifying and Validating Checks If the printer has the optional MICR check reader, checks are verified and then va
Chapter 3: Using the Printer 3-11 To verify and validate a check: 2. Place the check, face down on the Slip Table, with the bottom edge of the c
Owner's Guide iii Table of Contents Chapter 1: About the Printer Introducing the 7158 Printer...
3-12 Chapter 3: Using the Printer Clearing Check Flip Paper Jams CheckCheck FlipWindow Door
Chapter 3: Using the Printer 3-13 To clear a paper jam from the optional check flip assembly: 1. Look in the window of the check flip assembly.
3-14 Chapter 3: Using the Printer Testing the Printer The Configuration Menu allows you to set general printer parameters. The test prints a list of
Chapter 3: Using the Printer 3-15 Configuration Menu and Print Test samples (show approximately 60% of size).
3-16 Chapter 3: Using the Printer Printer Configuration Printers are generally shipped with all appropriate configuration settings pre-set at the fa
Chapter 3: Using the Printer 3-17 • Hardware Options Print Density Maximum Power Knife Options Paper Low Sensor Printhead Resistance MICR Option
3-18 Chapter 3: Using the Printer 1. Set DIP Switch 1 to On. Front of PrinterResetButtonFront Cover
Chapter 3: Using the Printer 3-19 2. Press the Reset Button while holding the Paper Feed Button. The printer beeps, prints the current configura
3-20 Chapter 3: Using the Printer 4. Press the Paper Feed Button to make the selections. The instructions indicate whether to select something with
Chapter 3: Using the Printer 3-21 Diagnostic Modes This function allows the user to put the printer into the following diagnostic modes: • Norma
iv Owner's Guide Chapter 3: Using the Printer Printer Controls...
3-22 Chapter 3: Using the Printer 3. Run a transaction from the host computer. All commands and data sent from the host computer will be printed as
Chapter 3: Using the Printer 3-23 7. Exit the Configuration Menu. The printer is in Normal Mode and can communicate with the host computer. Sli
3-24 Chapter 3: Using the Printer 2. After enabling the MICR Test Mode through the Configuration Menu, exit the Configuration Menu. 3. Insert a ch
Chapter 3: Using the Printer 3-25 Check Flip Test Mode To run the Check Flip Test Mode: 1. Enable the Check Flip Test Mode through the Configura
3-26 Chapter 3: Using the Printer 3. Push Paper Feed Button. The check then goes through the flip routine only—no printing takes place. To exit the
Chapter 3: Using the Printer 3-27 Default Lines Per Inch This function allows the user to set the default lines per inch printed by the thermal r
3-28 Chapter 3: Using the Printer Knife Option This function makes it possible to set the Knife Option if it is installed in the printer. This setti
Chapter 3: Using the Printer 3-29 Basic Troubleshooting The 7158 printer is a simple, generally trouble-free printer, but from time to time minor
3-30 Chapter 3: Using the Printer If something is wrong with the printer, take the following general steps: • Cycle the power of the printer and no
Chapter 3: Using the Printer 3-31 Printer Beeps Problem/Symptom Possible Causes What to Do Printer beeps in a single, double, or triple pattern
Owner's Guide v Check Flip Option...3-28 Basic Troubleshooting...
3-32 Chapter 3: Using the Printer Printer Will Not Print Problem/Symptom Possible Causes What to Do The On Line, Paper Status, Error LED is blink
Chapter 3: Using the Printer 3-33 On-Line, Paper Status, Error LED Flashes Problem/Symptom Possible Causes What to Do On Line, Paper Status, Er
3-34 Chapter 3: Using the Printer Poor Forms Print Quality Problem/Symptom Possible Causes What to Do Printer starts to print, but stops while th
Chapter 3: Using the Printer 3-35 Thermal printhead is dirty. Improper internal cable connections. Printhead is defective. Use re
3-36 Chapter 3: Using the Printer Slip Station, MICR and Flip Problems Problem/Symptom Possible Causes What to Do Slip Table LED does not come on.
Chapter 3: Using the Printer 3-37 Knife Does Not Operate Problem/Symptom Possible Causes What To Do Receipt is not cut. Paper is jammed. T
3-38 Chapter 3: Using the Printer Other Serious Problems The following problems all need to be corrected by a qualified service representative. See
Chapter 3: Using the Printer 3-39 Returning a Printer Follow these instructions if you need to return a printer for servicing. 1. If you are sen
3-40 Chapter 3: Using the Printer a. Place receipt paper between the receipt cover and the printhead for protection. FrontCoverCardboardSupportCarr
Chapter 4: Printer & Media Supplies Ordering Thermal Paper Thermal Paper Specifications The printer requires qualified thermal paper with the f
vi Owner's Guide Standard Receipt Features...5-5 Optional Features ...
4-2 Chapter 4: Printer & Media Supplies Ordering Parts and Supplies Ordering Cash Drawers Order cash drawers from the following suppliers: Cash
Chapter 4: Printer & Media Supplies 4-3 Ordering Communication Cables Contact your sales representative to order the communication cables li
4-4 Chapter 4: Printer & Media Supplies Check Specifications Check American Standards ANSI X9.13 and ANSI X9.18, and International Standard ISO
Chapter 5: Technical Specifications Functional Description Standard Slip Features Print Technology Bidirectional, logic-seeking, nine wire impact p
5-2 Chapter 5: Technical Specifications Forms Capability * See notes on the following page. Maximum thickness .40 mm (.016 inch) max., 5 plies Minimu
Chapter 5: Technical Specifications 5-3 Slip Forms - Recommendations The slip form should be flat and void of curls or wrinkles, especially at th
5-4 Chapter 5: Technical Specifications Slip SideGuidePaper Holes andLow ReflectionProhibited AreasSlipEdge19 mm(0.747 in.)8 mm(0.315 in.)6 mm(0.236
Chapter 5: Technical Specifications 5-5 MICR Reader – Additional Information • The check must be flat and void of curls, folds, or wrinkles (esp
5-6 Chapter 5: Technical Specifications Character Sets PC Code Page 437 PC Code Page 850 PC Code Page 852 PC Code Page 858 PC Code Page 860 PC Code P
Chapter 5: Technical Specifications 5-7 Optional Features Paper Cutter Rotary partial cut knife leaves 5.0 mm (0.2 inch) uncut on left edge. Sli
Owner's Guide vii Electrical Interfaces ...5-26 Switch Settings...
5-8 Chapter 5: Technical Specifications Reliability The numbers in the table refer to the Mean Cycles Between Failure (MCBF) for the items indicated.
Chapter 5: Technical Specifications 5-9 Certifications EMI: • FCC, Class A • Industry Canada, Class A • VCCI, Class A • CE Mark, Class B • A
5-10 Chapter 5: Technical Specifications Physical and Operating Environment Temperature and Humidity Temperature in Degrees %Humidity Operating:
Chapter 5: Technical Specifications 5-11 Minimum form length (feed direction) for forms inserted from the front up to the slip stop is 68 mm (2.6
5-12 Chapter 5: Technical Specifications Migration The 7158’s standard command set allows it to work with software written for NCR or other ESC/POS™
Chapter 5: Technical Specifications 5-13 Slip Format Maximum print line width: 120.7 mm (4.752 inches) starting 3.20 mm ± 1.5 mm (.125 inch ± .0
5-14 Chapter 5: Technical Specifications Slip Throughput Bi-directional line speed is based on a printhead speed of 260 CPS. Throughput (±5%) at the
Chapter 5: Technical Specifications 5-15 Character Format The 7158 can place 66 standard characters, or 80 compressed characters, or 33 rotated c
5-16 Chapter 5: Technical Specifications Dimension Standard Compressed Rotated mm inch mm inch mm inch A .36 .0144 .30 .0117 .36 .0144 B .35 .0
Chapter 5: Technical Specifications 5-17 Receipt Printing Receipt Format, 80mm Paper Width Print line width: 576 dots @ 8 dots/mm centered on 80
Comentários a estes Manuais