CognitiveTPG A776 Programming Manual

CognitiveTPG A776 Programming Manual

Two-color thermal/impact hybrid printer
Hide thumbs Also See for A776:
Table of Contents

Advertisement

Quick Links

Programming Guide
Printer without Imaging
Includes CognitiveTPG LogoEZ
colorization information
Made under one or more of the following U. S. patents: 4886381, 5579043, 5613787,
5651624, 5713678, 5752779, 5789916, 5800080, 5879090, 5887999, 5975776, 6027266,
6085973, 6089450, 6129465, 6155483, 6404452, 6486902, 6504331, 5749277, 6722754,
6739773, 6784909.
A776 (B780) Two-Color Thermal/Impact
Printer with Imaging
®
Hybrid Printer
A776-PG00001 Rev. C

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the A776 and is the answer not in the manual?

Questions and answers

Summary of Contents for CognitiveTPG A776

  • Page 1 A776 (B780) Two-Color Thermal/Impact Hybrid Printer Programming Guide Printer without Imaging Printer with Imaging Includes CognitiveTPG LogoEZ ® colorization information Made under one or more of the following U. S. patents: 4886381, 5579043, 5613787, 5651624, 5713678, 5752779, 5789916, 5800080, 5879090, 5887999, 5975776, 6027266, 6085973, 6089450, 6129465, 6155483, 6404452, 6486902, 6504331, 5749277, 6722754, 6739773, 6784909.
  • Page 2 A shielded (360 degree) interface cable must be used with this product. The shield must be connected to the frame or earth ground connection or earth ground reference at EACH end of the cable. Use of a cable other than described here will require that you test the cable with the CognitiveTPG printer and your system for FCC and CE mark certification.
  • Page 3: Table Of Contents

    Moving from the A756 to the A776 (Thermal printhead differences) ..........8 Moving from the A756 to the A776 (Emulation commands) ............9 Moving from the A756, A758, or A760 to the A776 (Slip differences) ..........9 A776 Emulation Commands ........................ 10 Set Printer ID Mode ...............................
  • Page 4 A776 Double High Slip Character Print ......................14 A776 Slip Character Spacing ..........................14 A776 Slip Minimum Units ........................... 14 A776 Slip Left Margin and Print Width ......................14 A776 Slip Print Justification ..........................14 Moving from A756/A758 to A776 ....................... 15 Two-color Commands .........................
  • Page 5 Select cut mode and cut paper ........................42 Set paper type (ColorPOS ) ..........................42 ® Select receipt station ............................43 Set Interpretation of “Set current color” ....................... 43 Print test form ................................. 44 A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 6 Select or cancel upside-down print mode ....................60 Select character size ............................. 60 Select or cancel white/black reverse print mode ..................61 Set smoothing ................................ 62 Reverse color text mode (ColorPOS ) ......................62 ® A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 7 Transmit peripheral device status........................82 Transmit paper sensor status ..........................83 Transmit printer ID ..............................83 Transmit printer ID, remote diagnostics extension ................... 85 Transmit status ............................... 87 Send printer software version ........................... 89 A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 8 Define parsing format, save in NVRAM ......................115 Define parsing format, do not save permanently ..................115 Parsing parameter string options ........................115 Sample parsing formats ............................117 Check serial number ............................. 119 Loading the exception table ..........................120 A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 9 Define/Update Application Tag Values ..................135 Attach Scan Application Tags ...................... 136 Return Imager Status ........................136 Real-Time Imager Status ......................137 Real-Time Error Status ........................138 Real-Time Cancel Image Transmission ..................138 A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 10 Print Speed ................................150 Buffered Validate ..............................150 Buffer Clear ................................150 Repeat Character ..............................150 Print Characteristics Commands ........................150 Double-Wide Font ..............................150 Double-Wide Off ..............................150 Character Set ................................151 Underline Print................................ 152 A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 11 Code page 863 (French Canadian)....................170 Code page 865 (Nordic) ........................ 171 Code page 866 (Cyrillic) ........................ 172 Code page 1252 (Windows Latin 1) ..................... 173 Appendix C: Electronic Journal ......................... 175 Electronic Journal Storage ........................175 A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 12 Contents A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 13: Chapter 1: About This Guide

    How to use this Guide This guide provides programming information on CognitiveTPG’s A776 (and B780) printer. It is written for tech-savvy users who are interested in customizing or adjusting printer functionality and is meant to be used with the A776/B780 ColorPOS Two-Color Thermal Receipt/Impact Hybrid Printer User Guide.
  • Page 14 Chapter 1: About this Guide A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 15: Chapter 2: Printer Status And Indicators

    Chapter 2: Printer Status, Ethernet and Indicators Chapter 2: Printer Status and Indicators The A776/B780 printer performs a number of diagnostics that provide useful information about the operating status of the printer. The following diagnostic tests are available. • Startup diagnostics, performed during startup cycle.
  • Page 16: Ethernet Terms And Default Setup

    Ethernet Terminology MAC address a unique hexadecimal serial number assigned to each Ethernet network device to identify it on the network. Each communication board has a unique number from CognitiveTPG’s assigned range of numbers. CognitiveTPG numbers start with: 00:E0:70. IP address a unique number that identifies each node on a network and to specify routing information.
  • Page 17: Ethernet Default Setup

    The diagram below is a diagnostic printout of an Ethernet printer, with Ethernet settings highlighted. These settings can not be changed through the configuration menu and must be set by sending commands from the host. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 18: Indicators

    Error conditions and Troubleshooting correcting them Chapter 5 of the User Guide The printer is also able to communicate its status to the host application if the application has been programmed to receive this information. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 19: Chapter 3: Migrating To A776 And B780

    This section is provided for those customers who would like to migrate from their existing CognitiveTPG printers to the A776 printer, while maintaining as much continuity as possible in the new application. This includes migration from the A756, A758 and the A760 printers.
  • Page 20: Moving From The A756 To The A776 (Thermal Printhead Differences)

    The following table details the list of commands whose behavior differs between the A756 printer and the A758, A760, and A776 printers. This is due to the physical differences of the 6 dots/mm head in the A756 and the 8 dots/mm head in the A758, A760 and A776.
  • Page 21: Moving From The A756 To The A776 (Emulation Commands)

    Moving from the A756, A758, or A760 to the A776 (Slip differences) The impact station print zone on the A760 is 4.7 inches wide and the print zone on the A776 is 3.0 inches. To compensate for the narrower print zone on the A776 the firmware will provide the following functionality: For applications that currently use narrow forms with 42 or fewer columns, an option is provided to delete x leading spaces.
  • Page 22: A776 Emulation Commands

    Set Printer ID Mode Code (Hexadecimal) 1F 03 0C n This command is ignored. Set A776 Printer ID Code (Hexadecimal) 1F 03 25 0F n This command sets the printer ID response to the Printer ID command (1D 49 01)
  • Page 23: Select A776 Narrow Slip Configuration Option To Ignore N Leading Spaces

    Chapter 3: Migrating to a new printer Select A776 Narrow Slip Configuration Option to Ignore n Leading Spaces Code (Hexadecimal) 1F 03 25 08 n This command is available so A760 applications can ignore n leading spaces in a 42-column line of text.
  • Page 24: Select A776 (21 And 25-Line) Rotated Slip Print Options

    The A776 slip stop override option does not reposition an inserted form. • The A776 slip stop distance option is triggered at the slip selection command (0x1B 0x63 0x30 0x04) and positions an inserted form prior to print so that the first line of print will match an A760/A758/A756.
  • Page 25: Set Page Mode Margin Mechanical Adjustment

    (default) . When enabled, the A776 will eject slip and validation transactions out the top of the printer, like the B780. The slip LED will blink to remove the form, also like the B780. · Option can be disabled for applications that rely on the A760/A758/A756 slip eject out the bottom front position.
  • Page 26: A776 Configurable Slip Commands

    Enables or disables the Set minimum units for the slip station command (1D 50 x y) Disabled Enabled A776 Slip Left Margin and Print Width Code (Hexadecimal) Command 1F 03 26 04 n Enables or disables the 1D 4C nL nH and 1D 57 nL nH commands...
  • Page 27: Moving From A756/A758 To A776

    Chapter 3: Migrating to a new printer Moving from A756/A758 to A776 Two-color Commands The following table details the list of commands related to two-color printing and ColorPOS functionality that was not ® available on the A756 or the A758.
  • Page 28: Logoez Colorization Commands

    Note: The new CognitiveTPG LogoEZ colorization utility provides you a fast and easy way do get basic two-color and logos ® on your receipt without having to enter commands. Check out the CognitiveTPG Web site at www.CognitiveTPG.com. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 29: Migrating From The A721 (7221) Printer To The B780

    This section is provided for those customers who would like to migrate from their existing CognitiveTPG printers to the B780 printer, while maintaining as much continuity as possible in the new application. Several commands exist to support such a migration. The primary differences are described below:...
  • Page 30: Select Dh Pitch And Rotated Text Columns

    Code (Hexadecimal) 1F 03 25 04 n This command sets the slip station lines per inch setting Line spacing 7.2 LPI (default) 6.0 LPI This corresponds to the A721 internal dip switch 3.1 A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 31: Select Two - Sensor Option For B780

    For Page Mode printing, these are the A721 internal dip switch settings: Right Margin Page Mode ” ” · Default tabs emulate the A721 when A721 margin is configured: default tabs are at 5 dots/column instead of 6 dots/column. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 32: Select B780 Map Logo Option For B780

    Disabled Enabled Select B780 with A776 Slip Functions Code (Hexadecimal) 1F 03 25 13 n When enabled, B780 operates like A776 on the slip station. Provided for applications which control both A776 and B780. A776 Slip functions disabled (default) enabled...
  • Page 33: Select Cover Open Option For B780

    Set Page Mode Margin Mechanical Adjustment Code (Hexadecimal) 1F 03 25 16 n · This command applies to both the A776 and the B780, although it is primarily implemented for B780 printers replacing existing A721 printers to match cashier check printing. · Default is 0.
  • Page 34 Chapter 3: Migrating to a new printer A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 35: Chapter 4: Programming The Printer

    For this reason, “related” commands may not be listed adjacent to one another. The A776 (B780) standard command set allows it to work with software written for CognitiveTPG or other POS compliant printers.
  • Page 36: Character Appearance

    • Upside-down • Strike-through • Rotated • Scaled • Shading Receipt character specification Standard • Characters per inch: 15.6 • Characters per line: 44 • Cell size: 13 × 24 dots Compressed • Characters per inch: 20.3 • Characters per line: 56 • Cell Size: 10 × 24 dots A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 37: Print Zones

    576 addressable bits of graphics across an 80 mm wide receipt. Minimum print line height is 24 dots for text or graphics. Standard print line spacing is 27 dots (i.e., 3 extra row dots). The A776 adds a 27 dot high font, so standard print spacing is 30 dots. A776-PG00001 C 12/09...
  • Page 38: Print Zones For Slip Station

    “Print and feed n lines” (1B 64 n) command, with n = 0. • 21 rotated characters • 210 adjacent bits of graphics • 420 addressable positions Slip Print Zone A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 39: Print Zones For Slip, Validation

    Print Zones for Slip, Validation Validation Format The A776 has drop validation printing. The location of the first line of validation varies based on the table below: Number of lines of validation @ 7.2 lpi Distance from bottom of form to top of first print line 14 lines 2.7 inches...
  • Page 40: Rotated Printing Commands

    (1B 56 n) (1B 12) Canceled Canceled Cleared A B C Canceled Canceled Note: The following print modes cannot be mixed on the same line: • Standard and compressed pitch • Vertical (normal) and rotated • Right-side up and upside-down • Single-high (normal) and double-high A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 41: Chapter 5: Programming Commands

    Select cut mode and cut paper (or code 1D 56 m) 1D 81 m n Set paper type Select receipt station 1F 03 16 05 n Set interpretation of “Set current color” command 1F 74 Print test form A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 42: Print And Paper Feed

    Select pitch (column width) 1B 20 n Set right-side character spacing 1B 21 n Select print mode 1B 25 n Select or cancel user-defined character set 1B 26 s c1 c2 Define user-defined character sets A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 43: Graphics

    1D 2A n1 n2 d1…dn Define downloaded bit image 1D 2F m Print downloaded bit image 1D 82 n1…n72 Print raster monochrome graphics or …n80 1D 83 n1…n144 Print raster color graphics or …n160 A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 44: Status

    Real-time status transmission (GS sequence) 1D 05 Real-time printer status transmission 1F 7A n Real-time commands disable Unsolicited status mode Code (hexadecimal) Command Page 1D 61 n Select or cancel unsolicited status mode A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 45: Bar Codes

    Read MICR data and transmit (B780 only) 1B 77 52 Transmit last MICR read MICR Parsing Code (Hexadecimal) Command Page 1B 77 50 Define parsing format, save in NVRAM 1B 77 70 Define parsing format, do not save permanently A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 46: User Data Storage

    1F 08 05 n1 LP Daemon 1F 08 06 n1 Telnet Daemon 1F 08 07 n1 BootP 1F 08 08 n1 DHCP (auto-configuration) 1F 08 09 n1 Inactivity timeout 1F 08 0A n1 Keep-alive pings (arps) A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 47: Image Commands

    1D BE nL nH Get Buffered Image Attributes 1D C6 m n Configure Scan Options 1D C7 wL wH lenL lenH Configure Max Scan Width & Height 1D 49 02 Transmit Printer Type (Extended Existing Command) A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 48: Command Conventions

    • Printing position is set to column one • Slip platen is opened • Slip printhead is homed Exceptions The DLE command followed by a 04 or 05 is interpreted as a “Real-time command. ” See Real- time status transmission and Real-time request commands (DLE sequences). A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 49: Close Form

    Moves the impact printhead (unless already there) to the home position. Related Information The printer is able to detect carriage motor jams, eliminating the need to home the printhead after each slip transaction. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 50: Select Peripheral Device (For Multi-Drop)

    27 85 n Value of n: Only the lowest bit of n is used Unidirectional printing is turned off Unidirectional printing is turned on Default of n: For text printing For Page Mode printing A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 51: Select Receipt Or Slip For Printing; Slip For Micr Read

    This command is ignored if n is out of range. Select paper sensors to output paper end signals ASCII ESC c 3 n Hexadecimal 1B 63 33 n Decimal 27 99 51 n This command is ignored. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 52: Select Sensors To Stop Printing

    The printer reads that a slip is inserted when the leading edge and trailing edge sensors are covered. The slip-in light is lit (green) when both sensors are covered. If a slip is not inserted in the time specified, the receipt station is selected for the next function. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 53: Generate Pulse To Open Cash Drawer

    2 (second color available from two-color paper) The m values 0 and 1 will not have a distinguishable effect; 0 is the initial value and provides parameter value consistency with other commands. Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 54: Select Slip Station

    Determines cutting position only if m is 65 or 66. Feed and cut mode 0, 48 Full cut (no extra feed). Partial cut on the A776. 1, 49 Partial cut (no extra feed). Feeds paper to cutting position + (n times vertical motion unit), and cuts the paper.
  • Page 55: Select Receipt Station

    00 will cause 1B 72 00 to print red and all other values to print black. This command defines how to interpret the 1B 72 command for legacy environments. It provides a method to resolve any differences in the definition of command 1B72 between the A776 native mode and earlier implementations in other printers.
  • Page 56: Print Test Form

    0–127 in A756 emulation 0–255 in A756 emulation and A776 native mode Feeds the paper n lines at the current line height without printing. Ignored on receipt if current line is not empty. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 57: Feed N Dot Rows

    Dot rows Lines per Inch Dot rows 8.47 10.29 8.13 9.00 7.81 8.00 7.52 7.20 7.25 6.55 7.00 6.00 6.77 5.54 6.55 5.14 6.35 4.80 6.16 4.50 5.98 4.24 5.81 4.00 5.64 3.79 A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 58: Print And Feed Paper

    Number of lines to be printed and fed. Range of n: 1–255 (0 is interpreted as 1 on the receipt station) Prints one line from the buffer and feeds paper n lines at the current line height. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 59: Print And Reverse Feed N Lines

    A756 emulation mode 0 – 255 A776 native mode Reverses the paper feed in the slip station by n dots at 1/72 inch (CognitiveTPG 7150™ command). This command is ignored if receipt station is selected. Vertical and horizontal positioning The horizontal positioning commands control the horizontal print positions of characters on the receipt and slip.
  • Page 60: Set Column

    3.33 mm (0.13”) Sets the default line spacing to 4.25 mm (1/6 of an inch). Line spacing is set for the station or stations selected by the command 1B 63 31 n . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 61: Set Vertical Line Spacing

    Set the tab positions in ascending order and put Hex 00 at the end. Hex 1B 44 00 (number of tabs not specified) clears all tab positions. Exceptions The tabs cannot be set higher than the column width of the current pitch. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 62: Set Relative Print Position

    In order to improve the speed of printing, the A776 moves the data into a buffer for the printhead when it receives it. When the “Set relative print position” command contains a move to the left, this causes the new data to overstrike the previous data.
  • Page 63: Select Justification

    0 (Left aligned) Specifies the alignment of characters, graphics, logos, and bar codes. The command can be enabled or disabled for the slip. Default is disabled for the slip on A776, and enabled on B780. Exception This command is valid only when input at the beginning of a line.
  • Page 64: Set Horizontal And Vertical Minimum Motion Units

    When x or y is set to 0, the default setting for that motion unit is used. The command can be enabled or disabled for the slip. Default is disabled for the slip on A776, and enabled on B780. Set printing area width...
  • Page 65: Select Double-Wide Characters

    This command is valid only at the beginning of a line. Rotated print and non-rotated print characters cannot be used together in the same line. Related information See “Summary of rotated printing” in this document. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 66: Select Pitch (Column Width)

    (set by select print direction in page mode, 1B 54 n) the vertical motion unit (y) is used. The command can be enabled or disabled for the slip. Default is disabled for the slip on A776, and enabled on B780.
  • Page 67: Select Print Mode

    17.1 Related information Double-high can be enabled or disabled for the slip. Default is disabled for the slip on A776, and enabled on B780. The bits in this command perform the same function as the stand-alone functions: 1B 16 n...
  • Page 68: Define User-Defined Character Set

    To define only one character, use the same code for both c1 and c2 d = the column data for the nth character as specified by d1 ... d12 Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 69: Select Or Cancel Underline Mode

    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). A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 70: Cancel User-Defined Character

    The second pass is printed the same direction as the first to ensure accuracy of the overprint. The printer is reset to the standard print mode after a clear printer (0×10) command is received. Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 71: Cancel Double-Strike

    The settings do not apply in page mode, However they can be set or cleared in page mode. Double-strike printing cannot be used with bit-images or downloaded bit-images. This command functions the same as A756 when the printer is in A756 emulation mode. In A776 native mode, the command takes a parameter to enable and disable it.
  • Page 72: Select Character Code Table

    00–07, 10–17, ...70–77 Default of n: Selects the character height for receipt printing using bits 0 to 2 and selects the character width using bits 4 to 7, as follows: Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 73: Select Or Cancel White/Black Reverse Print Mode

    29 66 n Value of n: 0 = Off 1 = On (When 0 and 1 are the least significant bit, LSB) Range of n: 0–255 Default: 0 (Off ) Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 74: Set Smoothing

    The value of current color and white/black reserve print mode is superseded by the value of n whenever this mode is on (m>0). Bar codes, logos, and bit images are not affected by this command. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 75: Text Strike-Through Mode (Colorpos )

    Gothic, 16 x 16 Ariel, and 16 x 16 Courier. Each style number within a font has one character definition file. This command is also sent to select a downloaded font style at run time. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 76: Save Font Id Number As Default Font At Power Up

    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 available only on the receipt station. Exceptions This command is ignored if n is out of the specified range. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 77: Define Extended User-Defined Character Set

    Set high order bit of n to configure user-defined character set number as the default. To configure the printer to print from the user-defined character set at power, send 1F 3 0F 01 and reset the printer. Information will print on the first diagnostic page. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 78: Graphics

    8 (68 DPI) 0–288 (101 DPI) 8-Dot double-density 8 (68 DPI) 0–576 (203 DPI) 24-Dot single-density 24 (203 DPI) 0–288 (101 DPI) 24-Dot double-density 24 (203 DPI) 0–576 (203 DPI) Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 79: Print Advanced Raster Graphics

    Prints a horizontal raster of graphics data one or multiple times. Horizontal offset and number of data bytes are variable and specified by parameters. Exceptions Advanced raster graphics is not available in page mode. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 80: Select Double-Density Graphics

    0 definitions, the 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. Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 81: Define Downloaded Bit Image

    If the available width is greater than the bit image, its printing will adhere to any currently set right, left, or center justification. This command is ignored if the index refers to an undefined logo/ bit image. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 82: Print Raster Monochrome Graphics (Colorpos )

    This command is used for storing a logo of n1 by n2 size indexed by the current logo value. After downloading a logo to the printer, wait 100 ms to allow the printer time to write the logo to flash. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 83: Monochrome Shade Mode (Colorpos )

    Analogously, when the paper-color is the current color, m defines the relative amount of black color dots replacing the paper-color ones. Both text and monochrome graphics are affected by this command. Turning color shade mode on, turns monochrome shade mode off. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 84: Logo Print With Color Plane Swap (Colorpos )

    It “adds” (computer logic OR) the mono or color bits to the print row. Generally, if the print dot was to be white or same color as the watermark dot, the print dot will be the color of the watermark; otherwise it will be black. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 85: Form And Merge Real-Time Surround Graphic (Colorpos )

    Each the time this command is given, the current color and shade mode values (if any) are used for the surround graphic, and may be changed before any subsequent surround graphics and/or printing output. This command may be used in page mode. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 86: Save Graphics Buffer As Logo (Colorpos )

    This command sets the graphics buffer state to “merge pending”, functioning and performing the save as in the form and merge real time surround graphics command. Related information This command is ignored in page mode. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 87: Apply Margin Message Mode (Colorpos )

    The % of shading will have only a few perceptible gradations, so large increments (20 is suggested) should be used to achieve visibly distinct effects. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 88: Logo Print With Knife Cut

    This command sets a specific speed for an operation, allowing the user more control of the print environment. The speed is maintained as long as it is less than the speed automatically set by power management. A parameter of zero (0) restores the normal max speed. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 89: Set Logoez Colorization (Colorpos )

    Since the normal space on the receipt paper after a knife cut is 18 mm (144 rows), no extra space is usually needed above the logo. The default value is s = 0 and turns off the f = 1 logo after knife-cut link. f = 2 link watermark printing Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 90 If the f = 4 logo link is undefined, you should set a null trailer logo with s = 1 and p = 144 (1F 03 16 04 1 90, no logo at index F3). This will turn off margin message at the position of a knife cut and leave a clear space at the top of the next receipt. Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 91: Set Logoez Attribute Mapping (Colorpos )

    • restore background merge suspension (1D 9B [previous value]) Related information This command is utilized in the CognitiveTPG LogoEZ utility. The utility can be used to pre-configure new printers with ® a default colorization set-up without requiring any application changes. The default set-up was designed to provide a general level of colorization features that would not affect the printer operation.
  • Page 92 “attributes substituted table”. If m = 0 then no substitution takes place. The command is available only in A776 native mode. Once attributes have been defined and enabled they can be used in any emulation mode. A776 native mode must be used to turn the feature off.
  • Page 93: Convert 6-Dots/Mm Bitmap To 8-Dots/Mm Bitmap

    Chapter 5: Programming commands Related information This command is utilized in the CognitiveTPG LogoEZ utility. The utility can be used to pre-configure new printers with ® a default colorization set-up without requiring any application changes. The default set-up was designed to provide a general level of colorization features that would not affect the printer operation.
  • Page 94: Status

    Unlike the A756, that had a dedicated connector and resultant dedicated status reporting for each cash drawer, the A776 has a single connector that shares data reporting from either cash drawer. When either cash drawer is open, an open status for both drawers is reported by the printer.
  • Page 95: Transmit Paper Sensor Status

    Transmit paper sensor status ASCII ESC v Hexadecimal 1B 76 Decimal 27 118 Values: Status Byte (A776 only) Bit Function 0 Signifies 1 Signifies Receipt paper Low (only if paper low sensor is enabled) or receipt cover open Covers open Both closed...
  • Page 96 There may be a time lag between the printer receiving this command and transmitting the response, depending on the receive buffer status. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 97: Transmit Printer Id, Remote Diagnostics Extension

    99,999,999 ü Receipt lines tally Write to NVRAM, and print on receipt to verify Example, send 12 bytes to printer: GS I @ ü00010000 This will print on receipt: Receipt tally written: 10,000 A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 98 Write to NVRAM numeric, max 99,999,999 ¡ Cover openings tally Write to NVRAM, and print on receipt to verify « Cover openings tally Clear cover openings tally to 0 Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 99: Transmit Status

    Unlike the A756, that had a dedicated connector and resultant dedicated status reporting for each cash drawer, the A776 has a single connector that shares data reporting from either cash drawer. When either cash drawer is open, an open status is reported by the printer.
  • Page 100 Remaining print area on the current slip, in number of lines, at the currently set line spacing, when the trailing edge sensor has become uncovered. Until the trailing edge sensor becomes uncovered the value reported will be 6, because there are at least 9 lines remaining. Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 101: Send Printer Software Version

    The real-time commands are implemented in two ways in order to overcome the limitations of batch mode status commands. Both implementations offer the same functionality; which one you choose depends on the current usage of your application. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 102: Preferred Implementation

    EOT or ETX or ENQ. When this lone GS (1D) byte is finally processed out of the buffer it will use the next byte, whatever it is, as the second byte in its GS (1D) sequence. Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 103: Busy Line And Fault Conditions

    Unlike the A756, that had a dedicated connector and resultant dedicated status reporting for each cash drawer, the A776 has a single connector that shares data reporting from either cash drawer. When either cash drawer is open, an open status is reported by the printer.
  • Page 104 Fixed to on. No unrecoverable error. Unrecoverable error occurred. Thermal printhead temp. and power supply voltage are in range. Thermal print head temp. or power supply voltage are out of range. Fixed to off Continued... A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 105 Waiting for slip Fixed to On Slip leading edge sensor: paper present Slip leading edge sensor: no paper Slip trailing edge sensor: paper present Slip trailing edge sensor: no paper Fixed to Off A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 106: Real-Time Request To Printer

    An application using the DLE sequence must send ENQ within 100 milliseconds of DLE or the printer will misinterpret the DLE and execute a Clear Printer command. Avoid this possibility by using the 1D 03 n sequence that is handled exactly the same as 10 05 n. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 107: Real-Time Printer Status Transmission

    Unlike the A756, that had a dedicated connector and resultant dedicated status reporting for each cash drawer, the A776 has a single connector that shares data reporting from either cash drawer. When either cash drawer is open, an open status is reported by the printer.
  • Page 108: Unsolicited Status Mode

    The status bytes to be transmitted are described in the following four tables. Byte 1 = printer information Byte 2 = error information Byte 3 = paper sensor information Byte 4 = paper sensor information A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 109 Not used. Fixed to off. No unrecoverable error. Unrecoverable error occurred. No recoverable error. Recoverable error: Cover open, paper out, temperature or voltage error is out of range. Not used. Fixed to off. Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 110 Slip leading edge sensor: no paper Slip trailing edge sensor: paper present Slip trailing edge sensor: no paper Not used. Fixed to off. Fourth byte (paper sensor information) -- A776 Bit Off/On Hex Decimal Status for USM Slip paper selected Receipt paper selected...
  • Page 111: Recognizing Data From The Printer

    1D 04 n Binary DLE EOT n 10 04 n Binary GS ENQ 1D 05 Binary Binary XOFF Binary Unsolicited status mode (USM) Response recognized by: USM Byte 1 Binary USM Byte 2–4 Binary A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 112: Bar Codes

    Six-character zero-suppressed UPC-E tags are generated from full 11 or 12 characters sent from the host computer according to standard UPC-E rules. Start/stop characters are added for code 39 if they are not included. Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 113 Fixed length: 7, 8 30-39 CODE 39 48–57, 65–90 (decimal), 32, 36, 37, Variable 43, 45, 46, 47 (decimal) d1 = dk = 42 (start/stop code is supplied by printer if necessary) Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 114: Set Gs1 Databar (Formerly Rss) Parameters

    2 to 22 word line height, used only by UCC128, default 25, can be set 1 to 500 Note: For GS1 DataBar commands, consult ISO/IEC 24724. For further information, visit www.gs1.org. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 115: Print Gs1 Databar (Formerly Rss), Data Length Specified

    GS1 DataBar stacked omni-directional GS1 DataBar limited GS1 DataBar expanded and expanded stacked UPC-A UPC-E EAN-13 EAN-8 UCC/EAN-128 with CC-A or CC-B UCC/EAN-128 with CC-C Note: Null terminated, data length 1 to 2436 A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 116: Print Multiple Barcodes

    1d 6b 49 07 67 04 05 06 07 08 09 Barcode 2, code 128 1d 6b 49 04 67 01 02 03 Barcode 3, code 128 1d 6b ff 00 End multiple barcodes, print A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 117: Select Pdf 417 Parameters

    7 Trailing quiet zone The number of characters in a row and number of rows can be adjusted to vary the symbol’s overall aspect ratio to best fit an available space. Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 118: Select Bar Code Width

    (n/144 inch) for slip. Page mode Page mode is one of two modes that the A776 printer uses to operate. Standard mode is typical of how most printers operate by printing data as it is received and feeding paper as the various paper feed commands are received.
  • Page 119: Slip Page Mode Considerations

    (3.024”). On the A776, the right side margin is .1”, and provides a maximum width of 242 full dots. The maximum length can be set to any size, but is limited by available memory. Width and length other than default are set by command 1B 57…, with parameters specified in half dots.
  • Page 120: Print And Return To Standard Mode

    Decimal 27 12 Collectively prints all buffered page data in the printing area. After printing, the printer does not clear the buffered page data. Exceptions This command is enabled only in page mode. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 121: Select Page Mode

    The command has no effect if page mode has previously been selected. For the A756 emulation mode this command has a different definition. The select page mode function is not available in the A756 emulation mode. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 122: Select Standard Mode

    (0C or 1B 0C). Exceptions The command is valid only in page mode. The command is ignored if the value of n is out of the specified range. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 123: Set Print Area In Page Mode

    See the illustration for a graphic representation of the printing area. For more information about the fundamental calculation pitch, see the set horizontal and vertical motion units command (1D 50). Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 124: Set Absolute Vertical Print Position In Page Mode

    2. When the starting position is set to the upper right or lower left of the printing area, the vertical motion unit (y) is used. 3. When the starting position is set to the upper left or lower right of the printing area, the horizontal motion unit (x) is used. Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 125: Macros

    The printer repeats this operation the number of specified times. When the macro is executed by pressing the paper feed button (m = 1), paper cannot be fed by using the paper feed button. Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 126: Micr Commands

    No MICR characters, no data 0x04 MICR characters ASCII Hexadecimal Numerics 0 ... 9 0x30 ... 0x39 Unrecognized character 0x3F Space 0x20 Amount symbol & 0x26 Dash symbol ‘ 0x27 “on us” symbol 0x28 Transit symbol 0x29 A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 127: Transmit Last Micr Read

    This field may not be present or readable Variable length field Selector Comments optional modifiers Zero fill to length ASCII zero preceding maximum length Maximum length 1- or 2-digit ASCII number Remove space/dash Replace space/dash with 0 A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 128 Returned if US check nothing Returned if not US check Country code One digit returned Returned if Canadian check nothing Returned if not Canadian check Check type One digit returned Personal check Business or commercial check A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 129: Sample Parsing Formats

    • All characters in the account number (up to 18) with spaces and dashes removed • Always four characters in the check number (zero-filled if check number is only three characters long) • Final carriage return Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 130 ASCII Hexadecimal Numerics 0 ... 9 0x30 ... 0x39 Unrecognized character 0x3F Space 0x20 Amount symbol & 0x26 Dash symbol ‘ 0x27 “on us” symbol 0x28 Transit symbol 0x29 Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 131: Check Serial Number

    (NVRAM), which is accessed by the read and write NVRAM commands. The specific bank is picked out by its transit number, and the firmware will look in the exception table for a transit number match before looking in the normal check serial number locations. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 132: Loading The Exception Table

    To load the second table entry, which starts at word 25, the transit number 123456780 would be stored in the first two words of its table entry using this string of commands: 0x1B 0x73 0x12 0x34 25 0x1B 0x73 0x56 0x78 26 Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 133: Maintaining The Exception Table

    The printer disables interrupts while writing to flash. Any command that cause data to be written to flash should be followed by a 50 Msec delay to allow significant time for the write operation. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 134: Read From User Data Storage

    Loads user-defined characters to RAM only. This is the default condition for user-defined character storage. Any user- defined characters defined following this command are not preserved over a power cycle. Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 135: Flash Memory User Sectors Allocation

    US & s c1 c2 [character 1 data] ... [character k data] Hexadecimal 1F 26 s c1 c2 [character 1 data] ... [character k data] Decimal 31 38 s c1 c2 [character 1 data] ... [character k data] Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 136: Select Flash Area For Storing Logos And User-Defined Characters

    In both cases, all logos and character set definitions are erased and must be redefined. Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 137: User Storage Status (Colorpos )

    In return, each downloaded double byte character band is reported individually as 0xC0, 0xC1, 0xC2 ….for as many bands as have been defined. Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 138: Flash Download

    This command does not affect the current communication parameters. Once the printer is in flash download mode, this command is no longer available. Related information See entering flash download mode elsewhere in this book to put the printer in flash download mode using the configuration menu. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 139: Return Boot Sector Firmware Part Number

    The printer transmits ACK if the calculated CRC is correct for the selected sector; NAK if the CRC is incorrect or if no sector is selected. Return microprocessor CRC ASCII GS BEL Hexadecimal 1D 07 Decimal 29 7 Returns the CRC calculated over the boot sector code space. Formulas ACK <low byte> <high byte> A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 140: Erase All Flash Contents Except Boot Sector

    The printer may return one of several responses. ACK means that the data was written correctly and the host should transmit the next block. NAK means that, for some reason, the data was not written correctly. This could mean that Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 141: Reset Firmware

    US BS STX n1 n2 n3 n4 Hexadecimal 1F 08 02 n1 n2 n3 n4 Decimal 31 8 n1 n2 n3 n4 Default: 0.0.0.0 Sets the Net Mask value specified by the values n1 to n4. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 142: Set Gateway

    Decimal 31 8 n1 = 0: disabled n1 = 1: enabled Default: disabled Enables or disables the use of BootP at power-up to obtain an IP address. BootP is a subset of DHCP. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 143: Dhcp (Auto-Configuration)

    Enables or disables resetting of open TCP ports after five (5) minutes inactivity. Keep-alive pings ASCII US BS LF n1 Hexadecimal 1F 08 0A n1 Decimal 31 8 10 n1 n1 = 0: disabled n1= 1: enabled Default: enabled A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 144: Imaging Commands

    These values will be used to get full-range readings on subsequent scans. A standard imager status structure is returned, with the Status byte indicating if all the imager hardware is OK or if the test document has jammed. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 145: Configure/Change Image Transmission Port

    Binarized, no compression (in TIFF Wrapper) 16 level (4 bit) packed bytes format (1/2 size of raw, ignores R parameter drop bits) (in TIFF Wrapper) No compression, raw (256 level) grayscale (in TIFF Wrapper), default A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 146: Configure Binarization Methods And Attributes

    Description: This allows for selection of threshold method and tweaking of any threshold method variables. These are used when TIFF G4 binary format for the transferred image is selected. The newest configured values are retained in non-volatile memory (persist across power cycles). A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 147: Define/Update Application Tag Values

    Application supplied Page Name (repeated if have both top and bottom images; suggest use as Transaction ID) Reserved for FW auto generated int: T6 Options (=0) Reserved for FW auto generated int: = 2 (pixels expressed per inch) Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 148: Attach Scan Application Tags

    Value Definition Command return indicator Image Scanner Imaging function = status Standard imaging status Decimal Meaning Jam detected Wait for scan document cancelled Imager cover open Unrecoverable hardware error Continued . . . A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 149: Real-Time Imager Status

    11 waiting for document at either entry point Fixed to 1 1 = rear image sensor covered 1 = front image sensor covered Fixed to 0 Description: This immediately returns one byte of imager status. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 150: Real-Time Error Status

    2 if the scan status S< 7 to retrieve document images that were captured. 1D 49 B8 s m n pL pH rL rH reports the scanner state after scanning if the image is not attached. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 151 TIFF containing tags and images if attached If the image file return port is RS232, then the header and attached image file are transmitted under the settings of the Configure RS232 File Transmit parameters. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 152: Transmit Image

    NAK byte = retransmit previous, CAN terminates transmission. p = 0 says use the default size of 1024 bytes, = FFFF use no blocking (i.e. transmit the M designated images in the configured formats). If blocking, the last block is transmitted at its actual remnant size. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 153 If n is 0 (current image) and no Attach Scan Identifying Tags command was given after the scan, then the image file will be formed as if the attachment command had been given with 0 application set tags. Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 154: Eject From Scanner

    Description: This command ejects the document or moves it into the slip printer for further processing. A request for moving a top inserted document down into slip print position will instead eject it out the back. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 155: Free Image

    Description: The attributes (Tiff tags) that were present at the time of scan for the given file index are returned, in the same format as used in the Set Scan Identifying Properties command. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 156: Configure Scan Options

    Return: M a single byte, as specified in existing commands, with its undefined bit #5 now used to indicate imager installed. 0= not present (existing definition), 1= imager present (new) Description: This is an additional definition that uses a previously undefined bit to tell applications whether or not an imager is present. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 157: Chapter 6: Dh Emulation For B780

    Document Clamp Close 1B 1D Graphics: 5 Dot 1B 21 Character Set 1B 41 Form Eject 1B 42 75 Download (Not Implemented) 1B 43 Underline Print 1B 44 Underline Off 1B 45 Double-High Off A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 158 1B 57 Buffered Validate 1B 60 Buffer Clear 1B 7C Wait for Slip 1B 7D n Rotate Font 90 degrees 1B 7E Cancel Slip Waiting Graphics 1F c n n n 1F Repeat Character A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 159: List Of Dh 4700 Command Descriptions

    Sets temporary values for default printer parameters. N is the sum of the values for each parameter. Hexadecimal Decimal ASCII 19 n 25 n EM n Value of n Hexadecimal Decimal ASCII Parameter Setting Auto Line Feed Characters per Line Journal Lines/Inch A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 160: Reset Printer

    27 90 ESC SUB 1B 5A 27 26 ESC Z Note: The ASCII SUB character cannot be sent by some PC applications. In that case, use the following version of the Receipt/Journal Print command. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 161: Document Clamp Close

    Value of n 1B 4C n 27 76 n ESC L n See table Value of n Hexadecimal Decimal ASCII Time of Clamp Delay No delay 0.250 seconds 0.500 seconds (default) 1.00 seconds A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 162: Print Speed

    40 characters per line (13.9 pitch), the double-wide characters will print at 20 characters per line (6.9) lines per inch. This command may be used with the Double-High command 1B 48. Hexadecimal Decimal ASCII Double-Wide Off Turns off double-wide printing. Hexadecimal Decimal ASCII A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 163: Character Set

    If a character set other than PC US (Code Page 437) is selected, the unique characters will be substituted with characters in the PC US set. See the following tables for the substitutions. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 164: Underline Print

    The first line of data is the last line of text after the slip is turned right-side up for reading. Hexadecimal Decimal ASCII 1B 55 27 85 ESC U A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 165: Graphics Commands

    5th Dot (Bottom) Hexadecimal Decimal ASCII 1B 1D 27 29 ESC GS Use the following characters to define the graphics (least significant five bits): Hexadecimal: 20-3F Decimal: 32-63 ASCII: SP-? Continued . . . A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 166: Printer Status Commands

    Cash Drawer 2 Open Forms Clamp Closed Forms Clamp Open Status-Firmware Used for RS-232C printers only. Causes the printer to return 3 bytes (000). Hexadecimal Decimal ASCII 1B 56 27 86 ESC V A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 167 Chapter 6: DH Emulation A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 168: Appendix A: Commands Listed By Hexadecimal Code

    Select or cancel user-defined character set 1B 26 s c1 c2 Define user-defined character sets 1B 27 m a0 a1 a2 d1…dm Write to user data storage 1B 2A m n1 n2 d1…dn Select bit image mode A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 169 1B 63 35 n Enable or disable panel button 1B 64 n Print and feed n lines 1B 65 n Print and reverse feed n lines 1B 66 m n Set slip paper waiting time A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 170 Select memory type (SRAM/flash) 1D 22 55 n1 n2 Flash memory user sectors allocation 1D 22 80 Expanded flash memory allocation 1D 22 81 n Select flash area for storing logos and user-defined characters A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 171 Print raster color graphics 1D 84 m n1 n2 d1…dx Download logo image 1D 85 m n Reverse color text mode 1D 86 m Monochrome shade mode 1D 87 m Color shade mode A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 172 Save font ID number as default font at power up 1D F0 80 Download font 1D F0 C0 02 Download font list 1D FF Reset firmware Select receipt station 1F 03 16 05 n Set interpretation of “Set current color” command A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 173 Define extended user-defined character set 1F 56 Send printer software version 1F 69 n Select active user-defined character set 1F 74 Print test form 1F 7A n Real-time commands disable 1F 7B n Enable constant speed logos A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 174: Appendix B: Resident Character Sets

    Appendix B: Resident Character Sets Appendix B: Resident Character Sets Code Page 437 (US) A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 175: Code Page 737 (Greek)

    Appendix B: Resident Character Sets Code page 737 (Greek) A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 176: Code Page 850 (Multilingual)

    Appendix B: Resident Character Sets Code page 850 (Multilingual) A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 177: Code Page 852 (Slavic)

    Appendix B: Resident Character Sets Code Page 852 (Slavic) A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 178: Code Page 857 (Turkish)

    Appendix B: Resident Character Sets Code Page 857 (Turkish) A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 179: Code Page 858 (With Eurosymbol)

    Appendix B: Resident Character Sets Code page 858 (with Eurosymbol) A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 180: Code Page 860 (Portugese)

    Appendix B: Resident Character Sets Code page 860 (Portugese) A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 181: Code Page 862 (Hebrew)

    Appendix B: Resident Character Sets Code page 862 (Hebrew) A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 182: Code Page 863 (French Canadian)

    Appendix B: Resident Character Sets Code page 863 (French Canadian) A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 183: Code Page 865 (Nordic)

    Appendix B: Resident Character Sets Code page 865 (Nordic) A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 184: Code Page 866 (Cyrillic)

    Appendix B: Resident Character Sets Code page 866 (Cyrillic) A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 185: Code Page 1252 (Windows Latin 1)

    Appendix B: Resident Character Sets Code page 1252 (Windows Latin 1) A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 187: Appendix C: Electronic Journal

    0x0A 0x0A. Auto Journal Mode via Runtime Command: 1F 0A C1 - Enable 1F 0A C2 - Disable Commands and data printed on the receipt only are stored in the Journal flash buffer. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 188 If a receipt is over 4Kbytes in size, and there are less than 4Kbytes available in the journal flash buffer, the printer will not print a portion of the duplicate receipt in the middle of the original receipt. This portion of the duplicate receipt is lost. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 189 If User Defined characters are printed, their definitions (0x1B 0x26 ….) should be stored in flash (via 0x1D 0x22 0x33) and their selection command (0x1B 0x25 0x01) should be in the journal buffer. A776-PG00001 C 12/09 A776 (B780) Programming Guide...
  • Page 190 Writes the journal data in RAM to Flash and marks it as a complete journal entry with two print commands: 0x0A 0x0A. Printer goes busy at the communication interface while the flash is being written. Application should not send any further data or commands until printer goes not busy at the communication interface. A776 (B780) Programming Guide A776-PG00001 C 12/09...
  • Page 192 A776-PG00001 Rev. C 12/09...

This manual is also suitable for:

B780

Table of Contents