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.
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...
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...
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.
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.
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...
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...
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.
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.
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.
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)
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.
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.
(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.
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...
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.
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...
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:...
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...
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...
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...
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...
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.
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...
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...
(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...
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...
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...
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...
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...
• 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...
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...
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...
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...
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...
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...
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.
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.
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...
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...
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.
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...
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...
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.
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.
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...
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...
(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.
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...
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...
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...
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...
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.
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
• 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.
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.
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.
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...
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...
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...
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...
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...
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...
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...
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.
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...
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...
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...
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...
(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.
(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.
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...
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...
(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...
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...
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...
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...
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...
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...
• 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...
(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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
Need help?
Do you have a question about the A776 and is the answer not in the manual?
Questions and answers