Summary of Contents for CognitiveTPG A776 ColorPOS
Page 1
A776 (B780) Two-Color Thermal/Impact Hybrid Printer Programming Guide Includes CognitiveTPG LogoEZ® colorization utility and Receiptware® marketing software information.
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.
Remote diagnostics ..........................4 Indicators .............................. 5 Chapter 3: Migrating to A776 and B780 ......................6 Migrating from existing CognitiveTPG printers ................6 Moving from the A760 to the A776 (Slip differences) ............... 7 A776 Emulation Commands ........................ 8 Set Printer ID Mode ............................... 8 Set A776 Printer ID ...............................
Page 4
Contents Chapter 4: Programming the Printer ........................ 13 Overview of Printing Characteristics ....................13 Character appearance ......................... 14 Receipt character specification ....................14 Standard ..................................14 Compressed ................................14 Print zones ............................15 Print zones for receipt station 80 mm paper ................15 Print zones for slip station ........................
Page 5
Contents Select peripheral device (for multi-drop) ...................... 28 Initialize printer ..............................28 Set slip paper eject length ..........................28 Set unidirectional print on impact station ....................28 Select receipt or slip for printing; slip for MICR read ................. 29 Select receipt or slip for setting line spacing ....................29 Select paper sensors to output paper end signals ..................
Page 6
Contents Text characteristics commands ....................43 Select double-wide characters ......................... 43 Select single-wide characters ........................... 43 Select 90 degree counter-clockwise rotated print ..................43 Select pitch (column width) ..........................44 Set right-side character spacing ........................44 Select print mode ..............................45 Select or cancel user-defined character set ....................
Page 7
Contents Graphics ............................58 Download BMP logo ............................. 58 Select bit image mode ............................59 Print advanced raster graphics ......................... 60 Select double-density graphics ........................60 Print Flash Logo ..............................60 Define Flash Logos ..............................60 Select the current logo (downloaded bit image) ..................61 Define downloaded bit image ..........................
Page 8
Contents Unsolicited status mode ......................89 Select or cancel unsolicited status mode (USM) ..................89 Recognizing data from the printer ....................92 Bar codes ............................93 Two-dimensional bar code QR code....................... 93 Select the QR code model ..........................93 Set size of QR code module ..........................93 Select the QR code error correction level ....................
Page 9
Contents MICR parsing ..........................112 Define parsing format, save in NVRAM ......................112 Define parsing format, do not save permanently ..................112 Parsing parameter string options ........................112 Sample parsing formats ............................113 Check serial number ............................. 116 Loading the exception table ..........................117 Exception table entry format..........................
Page 10
viii Contents Chapter 6: DH emulation for B780 ........................131 List of DH 4700 Emulation Commands ....................131 List of DH 4700 Command Descriptions .................... 133 Printer Function Commands ......................133 End of Text ................................133 Line Feed ................................... 133 Vertical Tab ................................
Where to find advanced technical information This guide contains the most complete information available on programming the printer. If you cannot find what you need here or would like further guidance on how to program the printer, contact a CognitiveTPG representative for assistance.
Page 14
Chapter 1: About this Guide A776 (B780) Programming Guide A776-PG00001 D 07/13...
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. • Runtime diagnostics, performed during normal printer operation.
Chapter 2: Printer Status, Ethernet and Indicators Runtime diagnostics Runtime diagnostics (sometimes called level 2 diagnostics) run during normal printer operation. When the following conditions occur, the printer automatically turns off the appropriate motors and disables printing to prevent damage to the printer: • Paper out • Printhead too hot...
Chapter 2: Printer Status, Ethernet and Indicators Indicators The printer communicates various conditions both visually, with two green lights or audibly, with a series of tones or beeps. The following table lists these indicators. Green on-line, paper status, error light (to the rear of the paper feed button) Indicator Sequence Condition...
This section is provided for those customers who would like to migrate from their existing A760 CognitiveTPG printers to the A776 printer, while maintaining as much continuity as possible in the new application. Several commands exist to support such a migration. The primary...
Chapter 3: Migrating to a new printer Moving from the 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.
Chapter 3: Migrating to a new printer 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) Printer ID A776 A760...
Chapter 3: Migrating to a new printer Select A776 Narrow Slip Configuration Option to Ignore n Leading Spaces Code (Hexadecimal) 1F 03 25 09 n This command is available so A760 applications can ignore n leading spaces in a 51-column line of compressed text. Range of n 0x00 <...
Chapter 3: Migrating to a new printer Select A776 (21 and 25-line) Rotated Slip Print Options Code (Hexadecimal) 1F 03 25 0C n • 21-line rotated text print accommodates existing applications, which print 21 or fewer rotated lines (as read). The format will match the A760 exactly.
Chapter 3: Migrating to a new printer 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. ·...
Chapter 3: Migrating to a new printer A776 Configurable Slip Commands A776 Double High Slip Character Print Code (Hexadecimal) Command 1B 21 10 command 1F 03 26 01 n Enables or disables the Double high slip character print command (1B 21 10) Disabled Enabled A776 Slip Character Spacing...
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.
Chapter 4: Programming the Printer Character appearance The appearance of text can be changed using the following print modes: • Standard • Underlined • Compressed • Bold • Double-high • Reverse • Double-wide • Italic • Upside-down • Strike-through • Rotated •...
Chapter 4: Programming the Printer Print zones Print zones for receipt station 80 mm paper Specifications of print zone for receipt station 80 mm paper: • 576 dots (addressable) @ 8 dots/mm, • Top margin to manual tear-off: centered on 80 mm 17.8 mm (0.70 inches) • Minimum margins for standard print: • Top margin to knife cut: 2.0 mm (.079 inches) 19.0 mm (0.75 inches) Note: The application centers 44 standard character cells (13 ×...
Chapter 4: Programming the Printer Print zones for slip station The slip station prints characters (standard and compressed pitch) and graphics in a print zone of 77mm (3.0”) wide on a slip or form. • Standard pitch: 42 characters (columns) per line • Compressed pitch: 51 characters (columns) per line • 21 rotated characters •...
Chapter 4: Programming the Printer 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...
Chapter 4: Programming the Printer Rotated printing commands Three commands control the rotation of printing. The table shows the combinations of set/cancel upside down print, set/cancel rotated print (clockwise), and rotated print (counterclockwise). Rotated clockwise and rotated counterclockwise print commands are mutually exclusive: the setting of the last received command is effective.
Chapter 5: Programming commands Print and paper feed Code (hexadecimal) Command Page Print and feed paper one line Print and eject slip Print and carriage return 14 n Feed n print lines 15 n Feed n dot rows 16 n Add n extra dot rows Print 1B 4A n...
Chapter 5: Programming commands 1B 2D n Select or cancel underline mode 1B 3A 30 30 30 Copy character set from ROM to RAM 1B 3F n Cancel user-defined character 1B 45 n Select or cancel emphasized mode 1B 47 n Select double-strike 1B 48 Cancel double-strike...
Chapter 5: Programming commands 1D 82 n1…n72 Print raster monochrome graphics or …n80 1D 83 n1…n144 Print raster color graphics or …n160 1D 84 m n1 n2 d1…dx Download logo image 1D 86 m Monochrome shade mode 1D 87 m Color shade mode 1D 89 n m Logo print with color plane swap...
Chapter 5: Programming commands Unsolicited status mode Code (hexadecimal) Command Page 1D 61 n Select or cancel unsolicited status mode Bar codes Code (hexadecimal) Command Page 1D 48 n Select printing position for HRI characters 1D 66 n Select pitch for HRI characters 1D 28 6B 04 00 Select the model for QR Code 00 31 41 n1 n2...
Chapter 5: Programming commands Command conventions The following information describes how each command is organized: Name: Name of command. ASCII: The ASCII control code. Hexadecimal: The hexadecimal control code. Decimal: The decimal control code. Value: A description of the command operands. Range: The upper and lower limits of the command operand.
Chapter 5: Programming commands Close form ASCII: Hexadecimal: 11 Decimal: Closes the feed roller and platen (forms compensation arm assembly). If the printer is reset or the Clear (0x10) is received, the feed roller and platen are opened. This command executes if the platen is already closed. This command is processed regardless of which station is selected.
Chapter 5: Programming commands Select peripheral device (for multi-drop) ASCII ESC = n Hexadecimal 1B 3D n Decimal 27 61 n Value of n: bits 0 and 1 only: 0 = printer only 1 = printer only 2 = peripheral device only 3 = printer and peripheral device both Default: printer only...
Chapter 5: Programming commands Select receipt or slip for printing; slip for MICR read ASCII ESC c 0 n Hexadecimal 1B 63 30 n Decimal 27 99 48 n Value of n: 1, 2, 3 Receipt selected Slip selected Validation station selected Default of n: Selects the station for printing.
Chapter 5: Programming commands Select sensors to stop printing ASCII ESC c 4 n Hexadecimal 1B 63 34 n Decimal 27 99 52 n Value of n: Sensor status Default: Bit of n Function Stop receipt on receipt low Stop slip if trailing edge uncovered Stop slip if leading edge uncover Stop validation print if trailing edge uncovered (B780 only)
Chapter 5: Programming commands Generate pulse to open cash drawer ASCII ESC p n p1 p2 Hexadecimal 1B 70 n p1 p2 Decimal 27 112 n p1 p2 Value of n: 00, 48 (Decimal) = Drawer 1; 01, 49 (Decimal) = Drawer 2 Value of p1: 0–255 Value of p2:...
Chapter 5: Programming commands Description When the monochrome paper type command (00) is set, this command is recognized and retained but has no effect. The monochrome paper selection (usually black) controls the output. When two-color paper is loaded and the two-color paper type command set, this command will designate which of the two colors will be used for everything not specified as having (an) explicit color parameter(s) such as color logos, side bars, surround graphics, background watermarks or color raster graphics.
Chapter 5: Programming commands Set paper type (ColorPOS ® ASCII GS 0x81 m n Hexadecimal 1D 81 m n Decimal 29 129 m n Value of m: 0 = monochrome (black) paper 4 = two-color (blue/black) papers 5 = two-color (red/black or green/black) papers Default: (monochrome paper) This command will set the optimum parameter values in the thermal print engine control hardware for any defined...
Chapter 5: Programming commands Print test form ASCII US t Hexadecimal 1F 74 Decimal 31 116 Prints the current printer configuration settings on the receipt. Disabled in page mode. Print and paper feed The print and feed commands control printing on the receipt and paper feed by the printer. Print and feed paper one line ASCII Hexadecimal...
Chapter 5: Programming commands Feed n dot rows ASCII NAK n Hexadecimal 15 n Decimal 21 n Value of n: Receipt - n/203 inch Slip - n/72 inch Range of n: 0–255 in Feeds paper n dot rows without printing. Receipt moves n rows if the print buffer is empty. Add n extra dot rows ASCII SYN n...
Chapter 5: Programming commands Print ASCII Hexadecimal Decimal Prints one line from the buffer and feeds paper one line. Print and feed paper ASCII ESC J n Hexadecimal 1B 4A n Decimal 27 74 n Value of n: Receipt - n/203 inch Slip - n/144 inch Range of n:...
Range of n: 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.
Chapter 5: Programming commands Set column ASCII ESC DC4 n Hexadecimal 1B 14 n Decimal 27 20 n Value of n: Receipt - 1–44 = Standard pitch 1–56 = Compressed pitch Slip - 1–66 = Standard pitch 1–80 = Compressed pitch Default of n: Prints the first character of the next print line in column n.
Chapter 5: Programming commands Set vertical line spacing ASCII ESC 3 n Hexadecimal 1B 33 n Decimal 27 51 n Value of n: Receipt - n/406 inch Slip - n/144 inch Range of n: 0 – 255 Default: Receipt - 0.13 inch (3.37 mm or 7.52 lines per inch, 3 extra dot rows) Slip - 0.14 inch (7.20 lines per inch,...
Chapter 5: Programming commands Set relative print position ASCII ESC \ n1 n2 Hexadecimal 1B 5C n1 n2 Decimal 27 92 n1 n2 Value of n: To move the relative starting position right of the current position by n dots: n1 = Remainder after dividing n by 256 n2 = Integer after dividing n by 256 The values for n1 and n2 are two bytes in low byte, high byte word orientation.
Chapter 5: Programming commands Select justification ASCII ESC a n Hexadecimal 1B 61 n Decimal 27 97 n Value of n: 0, 48 = Left aligned 1, 49 = Center aligned 2, 50 = Right aligned Range of n: 0–2, 48–50 Default: 0 (Left aligned) Specifies the alignment of characters, graphics, logos, and bar codes.
Chapter 5: Programming commands To set the Slip left margin to one inch at the default horizontal motion unit of 1/140 inches, send the four-byte string: GS L 140 0 Or, to set the left margin to two inches at the default horizontal motion unit of 1/140 units per inch, send the four-byte string: GS L 24 1 Exceptions:...
Chapter 5: Programming commands Or, to set the width of the printing area to two inches at the default horizontal motion unit of 1/203 units per inch, send the four-byte string: GS W 150 1 Where 2 inches = 406/203, and 406 = (1 X 256) + 150. Exceptions This command is effective only at the beginning of a line.
Chapter 5: Programming commands Select pitch (column width) ASCII ESC SYN n Hexadecimal 1B 16 n Decimal 27 22 n Value of n: 0 = Standard pitch 1 = Compressed pitch Default: 0 (Standard pitch) Selects the character pitch for a print line. Formulas The following table provides the print characteristics for both pitches on the receipt and slip station.
Chapter 5: Programming commands Select print mode ASCII ESC ! n Hexadecimal 1B 21 n Decimal 27 33 n Value of n: Pitch selection (standard, compressed, double-high, or double-wide.) Value of n Function Bit 0 Pitch Standard Compressed (See chart below) pitch pitch Bit 3...
Chapter 5: Programming commands Define user-defined character set ASCII ESC & s c1 c2 [character 1 data] ... [character k data] Hexadecimal 1B 26 s c1 c2 [character 1 data] ... [character k data] Decimal 27 38 s c1 c2 [character 1 data] ... [character k data] Values and ranges: Receipt: s = 3, the number of bytes (vertically) in the character cell...
Chapter 5: Programming commands Select or cancel emphasized mode ASCII ESC E n Hexadecimal 1B 45 n Decimal 27 69 n Value of n: 0 (bit 0) not selected 1 (bit 0) selected (When 0 and 1 are the least significant bit, LSB) Range of n: 0–255...
Chapter 5: Programming commands Select or cancel italic print ASCII ESC I n Hexadecimal 1B 49 n Decimal 27 73 n Value of n: 0 = Off 1 = On (When 0 and 1 are the least significant bit, LSB) Default: 0 (Off ) Turns italic print mode on or off.
Chapter 5: Programming commands Select or cancel 90 degree clockwise rotated print ASCII ESC V n Hexadecimal 1B 56 n Decimal 27 86 n Value of n: 0 = Cancel 1 = Set Default: 0 (Cancel) Rotates characters 90 degrees clockwise. The command remains in effect until the printer is reset or until a clear printer (0x10) or rotated print (1B 12) command is received.
Chapter 5: Programming commands Character height selection Decimal Height 1 (normal) 2 (two times height) 3 (three times height) 4 (four times height) 5 (five times height) 6 (six times height) 7 (seven times height) 8 (eight times height) This command is effective for all characters (except for HRI characters). In standard mode, the vertical direction is the paper feed direction, and the horizontal direction is perpendicular to the paper feed direction.
Chapter 5: Programming commands Set smoothing ASCII GS b n Hexadecimal 1D 62 n Decimal 29 98 n Value of n: 0 = smoothing off, 1 = smooting on, default = off Turns smoothing mode on or off for the quadruple or larger sizes of characters. Reverse color text mode (ColorPOS ®...
Chapter 5: Programming commands Select font ID number ASCII GS 0xF0 0x01 n Hexadecimal 1D F0 01 n Decimal 29 240 1 n Value of n: 128 - 255 Select font ID number for downloaded font. This command is sent before downloading the map file for a specific font. Each font ID has one map file to download. This command is also sent to select a downloaded font at run time.
Chapter 5: Programming commands Download font ASCII GS 0xF0 0x80 followed by file Hexadecimal 1D F0 80 Decimal 29 240 128 This command is the sequence introducer for downloading existing files. The downloaded font is always stored in the permanent font area of flash. If there is not enough memory in the permanent font area to store the file the printer returns NACK.
Kanji, or Korean can be downloaded to the printer at one time. New users of the Simplified Chinese font must first contact CognitiveTPG Sales Department for assistance. The Thai font (Code Page 874) is available for download to permanent font flash. Contact CogntiveTPG for assistance.
Chapter 5: Programming commands Define extended user-defined character set ASCII 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] Values and ranges: s = the number of dot rows in the character cell (maximum 64) c = the ASCII codes of the first (c1) and last (c2) characters respectively...
Chapter 5: Programming commands Erase user flash sector for permanent fonts ASCII GS @ n Hexadecimal 1D 40 n Decimal 29 64 n Value of n: n = 51 (ASCII n = 3) HEX 33 This command erases all sectors available for permanent fonts. Erases a page of flash memory and sends a carriage return when the operation is complete.
Chapter 5: Programming commands Graphics These commands are used to enter and print graphics data and are described in order of their hexadecimal codes. Download BMP logo ASCII: ESC (+*.BMP file) Hexadecimal: 1B (+*.BMP file) Decimal: 27 66 77 (+*.BMP file) Value: Maximum width = 576 (640 for 8.5 mm paper)
Chapter 5: Programming commands Slip Station Value of m Mode No. of dots (vertical) No. of dots (horizontal) 8-Dot single-density 8 (72 DPI) 210 (70 DPI) 8-Dot double-density 8 (72 DPI) 420 (140 DPI) 32, 33 Not available on slip In single density, one byte (8-dots) is printed in each full dot column.
Chapter 5: Programming commands Define downloaded bit image ASCII GS * n1 n2 d1 ... dn] Hexadecimal 1D 2A n1 n2 d1 ... dn] Decimal 29 42 n1 n2 d1 ... dn] Value of n1: See the following table Value of n2: See the following table Value of d: See the following table...
Chapter 5: Programming commands Print raster monochrome graphics (ColorPOS ® ASCII GS 0x82 n1…..n72 (576 dots) for 80 mm paper, or n80 (640 dots) for 82.5 mm paper Hexadecimal 1D 82 n1…..n72 (576 dots) for 80 mm paper, or n80 (640 dots) for 82.5 mm paper Decimal 29 130 n1…..n72 (576 dots) for 80 mm paper, or n80 (640 dots) for 82.5 mm paper Value and range of n: n1 to n72/n80 corresponds to one dot row data for a thermal receipt printer.
Page 75
Chapter 5: Programming commands The latest value from the set current logo command will be the logo index to be used to store the downloaded graphic. m identifies whether the image is monochrome (which requires one parameter bit row description) or two-color, which requires a pairing of bit descriptions for each row.
Chapter 5: Programming commands Color shade mode (ColorPOS ® ASCII GS 0x87 m Hexadecimal 1D 87 m Decimal 29 135 m This applies a mixing of color into any monochrome objects such as text and monochrome logos. Rather than fading away, this mode transitions a character or logo from the current color in which it would normally be printed to the other color.
Chapter 5: Programming commands Merge watermark mode (ColorPOS ® ASCII GS 0x8C n m Hexadecimal 1D 8C n m Decimal 29 140 n m Default 0 (off ) This command will insert the logo m as a repeated background image, similar to printing a visible watermark, into the print stream.
Chapter 5: Programming commands Save graphics buffer as logo (ColorPOS ® ASCII GS 0x91 n Hexadecimal 1D 91 n Decimal 29 145 n This command will save all the raster data that is in the working graphics buffer (where surround graphics are formed) as a logo with index value n.
Chapter 5: Programming commands Apply margin message mode (ColorPOS ® ASCII GS 0x99 l m n o Hexadecimal 1D 99 l m n o Decimal 29 153 l m n o Value of l: l is a binary switch: 0 = disables margin message merging 1 = enable left margin message merging 2 = enable right margin message merging l >...
Chapter 5: Programming commands Logo print with knife cut ASCII GS 0x9B m n Hexadecimal 1D 9B m n Decimal 29 155 m n Value of m: Standard size Double wide Double high Double high/wide Value of n: 01 - FF (Hex) #dot rows = n x 24, n = 5 is the recommended setting Because the printhead and cutting knife are physically separated, it is necessary to advance the printed area of a receipt past the knife to avoid the last of the printing from being cut off.
Chapter 5: Programming commands Set LogoEZ colorization (ColorPOS ® ® ASCII US ETX SYN f s p/t t Hexadecimal 1F 03 16 f s p/t t Decimal 31 03 22 f s p/t t Value of f: turn off all LogoEZ ®...
Page 82
Chapter 5: Programming commands After executing a knife-cut command and the f = 1 steps, if s > 0, execute the following: • Skip “ s” (feed paper) dot rows (15 s command) • Set watermark printing to “on” using logo F1 (execute merge watermark mode -1D 8C r F1 command).
• 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 84
Chapter 5: Programming commands Set LogoEZ attribute mapping (ColorPOS ® ® ASCII US ETX ETB a m s Hexadecimal 1F 03 17 a m s Decimal 31 03 23 a m s Values: attribute map selector a , m, s = 0, 0, 0 turn off attribute mapping (all 3 bytes required) a = 1 selects first attribute mapping definition (of two available) a = 2...
When both attribute mappings are set, processing is perform in order sequence. When two text attribute substitutions contain conflicting dependent remappings, the result is undefined. Related information This command is utilized in the CognitiveTPG LogoEZ utility. The utility can be used to pre-configure new printers with ®...
Chapter 5: Programming commands Status Status command introduction The A776 has three methods of providing status to the application. These methods are through batch status commands, real time status commands and unsolicited status mode. An application may use one or more of these methods to understand the current status of the printer.
Chapter 5: Programming commands 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 Either cover is open...
4, 52 = Logo Definition Transmits the printer ID specified by n as follows: Printer ID Specification ID (Hexadecimal) 1, 49 Printer model ID CognitiveTPG A776 0x2B (A776) 0x2A (A760) 0x2C (B780) 2, 50 Type ID Installed options Refer to the table below...
Chapter 5: Programming commands n = 4 : Logo Definition Off/On Decimal Function No logo definition loaded by application. Logo loaded by application Undefined Undefined Undefined Not used, Fixed to Off. Undefined Undefined Not used, Fixed to Off. Transmits the printer ID specified by n. This command is a batch mode command; that is, the response is transmitted after all prior data in the receive buffer has been processed.
Page 90
Chapter 5: Programming commands Value of n ASCII Remote diagnostic item Function Serial # Return Serial #, preceded by n to identify Printer returns 12 bytes in above example: #1234567890<CR> Class/model #, 15 digit ASCII Write to NVRAM Class/model # Write to NVRAM, and print on receipt to verify ‘...
Page 91
Chapter 5: Programming commands Value of n ASCII Remote diagnostic item Function ù Boot firmware version Return boot firmware version, returns 6 bytes ú Flash firmware version Return flash firmware version, returns 6 bytes ñ Flash cycles tally, 8 digit ASCII Write to NVRAM numeric, max 99,999,999 Ñ...
Chapter 5: Programming commands Transmit status ASCII GS r n Hexadecimal 1D 72 n Decimal 29 114 n Value of n: 1, 49 = printer status 2, 50 = cash drawer status 3, 51 = slip paper status 4, 52 = Flash memory user sector status Range of n: 1–4 49–52...
Chapter 5: Programming commands Cash drawer status (n = 2 or n = 50) Bit Off/On Hex Decimal Status for transmit status One or both cash drawers open. Both cash drawers closed. One or both cash drawers open. Both cash drawers closed. –...
Chapter 5: Programming commands Send printer software version ASCII US V Hexadecimal 1F 56 Decimal 31 86 The printer returns 8 bytes containing the boot and flash software version. The first 4 bytes returned are an ASCII string for the boot version. The second 4 bytes are an ASCII string for the flash version.
Chapter 5: Programming commands Third, care must be taken not to insert a real time command into the data sequence of another command that consists of two or more bytes. In this case the printer will use the real time command sequence bytes instead of the other command’s parameter bytes when finally executing that other command from the buffer;...
Chapter 5: Programming commands Real-time status transmission GS sequence DLE sequence ASCII GS EOT n DLE EOT n Hexadecimal 1D 04 n 10 04 n Decimal 29 4 n 16 4 n Value of n: GS/DLE sequence 1 = Transmit printer status 2 = Transmit RS-232C busy status 3 = Transmit error status 4 = Transmit receipt paper status...
Page 97
Chapter 5: Programming commands 2 = Transmit RS-232C Busy Status Bit Status Hex Decimal Function Fixed to off. Fixed to on. Receipt and cassette cover closed. Receipt or cassette cover open. Paper feed button is not pressed. Paper feed button is pressed. Fixed to on.
Page 98
Chapter 5: Programming commands 4 = Transmit receipt paper status Bit Status Hex Decimal Function Fixed to off Fixed to on Receipt Paper adequate Receipt Paper low Receipt Paper adequate or Door Open Receipt Paper low or Door Open Fixed to on Receipt Paper present Receipt Paper exhausted Receipt Paper present...
Chapter 5: Programming commands Real-time request to printer GS sequence DLE sequence ASCII GS ETX n DLE ENQ n Hexadecimal 1D 03 n 10 05 n 29 3 n 16 5 n Value of n: 1 = recover and restart 2 = recover and clear buffers 3 = cancel slip wait The printer responds to a request from the host specified by n.
Chapter 5: Programming commands Real-time printer status transmission ASCII GS ENQ Hexadecimal 1D 05 Decimal 29 5 Transmits one byte status of the printer in real time. Paper adequate. Paper low (if paper low sensor enabled). Paper adequate. Paper low (if paper low sensor enabled).
Chapter 5: Programming commands Unsolicited status mode Select or cancel unsolicited status mode (USM) ASCII: GS a n Hexadecimal: 1D 61 n Decimal: 29 97 n Value of n: 0 turns mode off; any non-zero value turns mode on Default: 0 (USM disabled) Enables or disables automatic return of 4 status bytes whenever one or more of the listed changes occurs.
Page 102
Chapter 5: Programming commands First Byte (printer Information) Bit Off/On Hex Decimal Status for USM Not used. Fixed to off. Not used. Fixed to off. One or both cash drawers open. Both cash drawers closed. Not busy at the RS-232C interface. Printer is busy at the RS-232C interface.
Page 103
Chapter 5: Programming commands Third byte (paper sensor information) Bit Off/On Hex Decimal Status for USM Receipt paper adequate Receipt paper low (if paper low sensor enabled) Receipt paper adequate Receipt paper low (if paper low sensor enabled) Receipt paper present. Receipt paper exhausted.
Chapter 5: Programming commands Fourth byte (paper sensor information) -- B780 Bit Off/On Hex Decimal Status for USM Slip paper selected Slip paper not selected Possible to print on slip Not possible to print on slip Validation selected Validation not selected Validation paper printable Validation paper not printable Not used.
Chapter 5: Programming commands Bar codes These commands format and print bar codes and are described in order of their hexadecimal codes. Two-dimensional bar code QR code QR code is a 2-dimensional matrix symbology consisting of an array of nomimally square modules arranged in an overall square pattern using the QR symbology.
Chapter 5: Programming commands Select the QR code error correction level ASCII GS ( k ETX NUL 1 E n Hexadecimal 1D 28 6B 03 00 31 45 n Decimal 29 40 107 03 00 49 69 n Value of n: Function Recovery Capacity% Selects Error correction level L...
Chapter 5: Programming commands Print QR code ASCII GS ( k ETX NUL 1 Q 0 Hexadecimal 1D 28 6B 03 00 31 51 30 Decimal 29 40 107 03 00 49 81 48 This command encodes and prints the QR code symbol data in the symbol storage area, based on the settings in the previous four commands.
Chapter 5: Programming commands Select printing position of HRI characters ASCII GS H n Hexadecimal 1D 48 n Decimal 29 72 n Value of n: Printing position 0 = Not printed 1 = Above the bar code 2 = Below the bar code 3 = Both above and below the bar code Default: 0 (Not printed)
Chapter 5: Programming commands Print bar code First Variation Second Variation ASCII GS k m d1…dk NUL GS k m n d1…dn Hexadecimal 1D 6B m d1…dk 00 1D 6B m n d1…dn Decimal 29 107 m d1 dk 0 29 107 m n d1…dn (0 = End of command) Selects the bar code type and prints a bar code for the ASCII characters entered.
Page 110
Chapter 5: Programming commands Second variation: length n specified at beginning of string. Except as noted, 0 < n < 256. Bar code d1...dn UPC-A 48–57 (decimal) Fixed length: 11, 12 30-39 (ASCII numerals) UPC-E 48–57 Fixed length: 11, 12 30-39 JAN13 (EAN) 48–57...
Chapter 5: Programming commands Set GS1 DataBar (formerly RSS) parameters Setting of parameters for GS1 Databar. ASCII GS q a b c d e fL fH Hexadecimal 1D 71 a b c d e fL fH Decimal 29 113 a b c d e fL fH pixels per minimum unit, default 3, minimum 2, maximum 6 (value a applies byte to parameters b, c, d)
Chapter 5: Programming commands Each character has four bars and four spaces within 17 modules, and is assigned a value between 0 and 928. For this symbology, it is common to refer to these character values as “code words. ” There are three mutually exclusive sets of symbol patterns, or clusters, each having 929 distinct patterns.
Chapter 5: Programming commands 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.
Chapter 5: Programming commands Exceptions The Print and Reverse Feed commands (1B 4B n and 1B 65 n) are not applicable to Page Mode. Avoid bi-directional print. Uni-directional print is the default in Page Mode. Page mode configurations The original implementation of Page Mode on the slip station mapped thermal dots to impact dots, and sometimes produced output that was not acceptable to customers.
Chapter 5: Programming commands Print data in page mode ASCII ESC FF Hexadecimal 1B 0C 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.
Chapter 5: Programming commands Exceptions The command is enabled only when input at the beginning of a line. 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.
Chapter 5: Programming commands Maximum area specification in page mode Maximizing the possible area in page mode consumes almost all of free RAM. Without any free RAM, bitmap rotations and enlargements cannot be performed. Use the user storage status command (1D 97 m n) to determine the amount of free memory.
Page 121
Chapter 5: Programming commands Formulas The distance from the current position is set to (nL + nH × 256) × vertical or horizontal motion unit] inches. The amount of movement is calculated only for the paper roll. When pitch n is specified to the movement downward: nL + nH ×...
Chapter 5: Programming commands Macros These commands are used to select and perform a user-defined sequence of printer operations. Select or cancel macro definition ASCII GS : Hexadecimal 1D 3A Decimal 29 58 Starts or ends macro definition. Macro definition begins when this command is received during normal operation and ends when this command is received during macro definition.
Chapter 5: Programming commands MICR commands MICR reading These commands control the Magnetic Ink Character Recognition (MICR) check reader, including how it parses the character strings on checks. The section, MICR parsing, describes how to create a parsing format and how to create and maintain an exceptions table.
Chapter 5: Programming commands MICR parsing This section describes MICR parsing in detail and includes several examples of useful parsing variations. It also describes how to create a parsing format and how to create and maintain an exception table. Define parsing format, save in NVRAM ASCII: ESC w P d1 d2 …...
Chapter 5: Programming commands Other parameters Error number One digit returned Read OK Read error: bad character, empty field invalid length, check digit invalid Status Two digits returned No MICR data Mexican check Canadian check Error in transit number Error in account number Error in check serial number Business or commercial check Amount field present...
Page 126
Chapter 5: Programming commands ESC w p 18 X A <CR> • Maximum 18 characters in the account number with spaces and dashes removed • Final Carriage Return ESC w p 18 x A <CR> • Maximum 18 characters in the account number with spaces and dashes replaced with 0 • Final carriage return ESC w p 018 A <CR> • Always 18 characters in the account number (high order zero-filled if necessary) • Final carriage return ESC w p 018 X A <CR> • Always 18 characters in the account number with spaces and dashes removed • Final carriage return ESC w p 018 x A <CR>...
Page 127
Chapter 5: Programming commands Notes: All parameters are ASCII characters, i.e. greater than or equal to 0x20, with the exception of a non-ASCII character enclosed in single quotes as a field separator. This applies both to parameter specifications sent from application to printer, and to MICR data returned from printer to application.
Chapter 5: Programming commands Check serial number Parsing the check serial number Most banks print the check serial number in three easily recognizable spots. The printer firmware will look for the number in these spots, using the following ordered algorithm. The examples use letters to represent symbols on the check: Transit symbol “on us”...
Chapter 5: Programming commands Loading the exception table The exception table begins at word 20 in NVRAM. Each entry takes five words. There is room for eight exceptions. An application can load local exceptions into the printer using the write NVRAM command: 0x1B 0x73 n1 n2 k which writes the two byte word n1:n2 to word k in NVRAM.
Chapter 5: Programming commands Example 2 t22137–632t001 6042202o927540 2754 is the check serial # 6042202 is the account # To load the third table entry, which starts at word 30, the transit number 2137–632 would be stored in the first two words of its table entry using this string of commands: 0x1B 0x73 0x22 0x13 30 0x1B 0x73 0x76 0x32 31...
Chapter 5: Programming commands User data storage Write to user data storage ASCII ESC ‘ m a0 a1 a2 d1 ... dm Hexadecimal 1B 27 m a0 a1 a2 d1 ... dm Decimal 27 39 m a0 a1 a2 d1 ... dm Value of m: 0 –...
Chapter 5: Programming commands Select memory type (SRAM/flash) Use this memory to save logos or user-defined fonts. ASCII GS “ n Hexadecimal 1D 22 n Decimal 29 34 n Value of n: 48 – 53 n = 48 (ASCII n = 0) HEX 30 Loads active logo to RAM only.
Chapter 5: Programming commands Expanded flash memory allocation ASCII GS “ 0x80 Hexadecimal 1D 22 80 Decimal 29 34 128 This sequence of commands is used to specify the number of flash sectors to be used for different applications. The begin and end sequence commands must be sent.
Chapter 5: Programming commands Select flash area for storing logos and user-defined characters ASCII GS” 0x81 Hexadecimal 1D 22 81 n Decimal 29 34 129 n Value of n: n specifies n = 0 select logo/font flash n = 1 select permanent font flash n >...
Chapter 5: Programming commands User storage status (ColorPOS ® ASCII GS 0x97 m n Hexadecimal 1D 97 m n Decimal 29 151 m n Value of m: m specifies the type of stored object to be reported: m = 0 return the kilobytes (1024) of free user RAM, n = 0 gets largest free block size n = 1 gets the total size free...
Chapter 5: Programming commands Lock permanent font flash area ASCII GS 0xF0 0x10 n Hexadecimal 1D F0 10 n Decimal 29 240 16 n Value of n: n = 0x00 lock permanent font flash (default) n = 0x01 unlock permanent font flash to erase or delete This command allows or prevents the permanent font area to be erased.
Chapter 5: Programming commands Download to active flash sector ASCII GS DC1 aL aH cL cH d1… dn Hexadecimal 1D 11 aL aH cL cH d1… dn Decimal 29 17 aL aH cL cH d1… dn Value of aL: low byte of the address Value of aH: high byte of the address Value of cL:...
Chapter 6: DH emulation Ethernet setup commands The following commands are designed to set the required printer internal parameters for Ethernet operation. The commands can be used only in the Flash download (boot) mode. See Chapter 3 for default setup. Restore default settings ASCII US BS NUL...
Chapter 6: DH Emulation Set raw TCPIP port 9001 ASCII US BS EOT n1 n2 n3 n4 Hexadecimal 1F 08 04 n1 n2 n3 n4 Decimal 31 8 n1 n2 n3 n4 n1 = 0: disabled n1 = 1: enabled Default: enabled Sets the port where the printer will look for raw tcpip communications.
Chapter 6: DH Emulation Chapter 6: DH emulation for B780 List of DH 4700 Emulation Commands This table lists the commands in numerical order according to their hexadecimal codes. The page number indicates where a complete description of the command can be found. Some commands listed are not implemented (they are identified as not implemented).
Page 144
Chapter 6: DH emulation List of DH emulation Commands continued: Hexadecimal Code Command Name Page 1B 46 Form In (Not Implemented) 1B 47 Select (Not Implemented) 1B 48 Double-High Font 1B 49 Either Form-In Sensor (Not Implemented) 149 1B 4A Both Form-In Sensors (Not Implemented) 149 1B 4B Busy Until Buffer Empty...
Chapter 6: DH Emulation List of DH 4700 Command Descriptions The command descriptions in this section are grouped in the following categories: · Printer Function Commands · Print Characteristics Commands · Graphics Commands · Printer Status Commands Within each group the commands are listed in numerical order according to their hexadecimal codes. Each command is described and the hexadecimal, decimal, and ASCII codes are listed.
Chapter 6: DH emulation Validation Lines/Inch SPACE 0 NUL Print Self Test (After setting temporary parameters) YES ALT selects the previous pitch selection. Reset Printer Resets and initializes the printer. This command is processed immediately. All data in the buffer is lost. The printer reinitializes with the default DIP switch settings.
Chapter 6: DH Emulation Document Clamp Close Closes the platen when the form has been detected and the time for the clamp delay is up. This command enables the Slip/Validation paper feed and disables the Receipt/Journal paper feed. Hexadecimal Decimal ASCII 1B 1C 27 28...
Chapter 6: DH emulation Print Speed This command is not supported and is ignored if received. Hexadecimal Decimal ASCII 1B 53 27 83 ESC S Buffered Validate Opens the platen to allow a form to be inserted. Any data that is received after this command will not be printed until the form is detected.
Chapter 6: DH Emulation Character Set Selects the character set. The default character set is defined by the internal DIP switch. Hexadecimal Decimal ASCII Value of n 1B 21 n 27 33 n ESC ! n See table Value of n Hexadecimal Decimal ASCII...
Chapter 6: DH emulation Underline Print Activates the 9th wire on all character cells to underline all printable characters, including a space (blank) character. Hexadecimal Decimal ASCII 1B 43 27 67 ESC C Underline Off Turns off underline printing. Hexadecimal Decimal ASCII 1B 44 27 68...
Chapter 6: DH Emulation Graphics Commands These commands are used to control the way graphics are entered or printed. They are listed in numerical order of their hexadecimal codes. Graphics nters graphics printing mode which prints all available dots (uses all wires in the printhead). Any combination of dots may be printed in a graphics cell.
Chapter 6: DH emulation Each byte of data sent defines each column of the graphic to be printed. The first byte defines the column in the left margin, with the following bytes defining the columns to the right, for a total of up to 200 columns in the print line. The print line is printed unidirectionally.
Appendix A: Commands by hexadecimal code Appendix A: Commands listed by hexadecimal code Code (hexadecimal) Command Page Horizontal tab Print and feed paper one line Print and eject slip Print and return to standard mode Print and carriage return Clear printer 10 04 n Real-time status transmission (DLE sequence) 10 05 n...
Page 154
Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1B 2D n Select or cancel underline mode 1B 2E m n rL rH d1 … dn Print advanced raster graphics 1B 32 Set vertical line spacing to 1/6 inch 1B 33 n Set vertical line spacing 1B 34 m a0 a1 a2...
Page 155
Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1B 6A k Read from non-volatile memory (NVRAM) 1B 6D Perform partial knife cut (or code 1A) 1B 70 n p1 p2 Generate pulse to open cash drawer 1B 71 Release paper 1B 72 m Set current color...
Page 156
Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1D 23 n Select the current logo (downloaded bit image) 1D 24 nL nH Set absolute vertical print position in page mode 1D 2A n1 n2 d1…dn Define downloaded bit image 1D 2F m Print downloaded bit image 1D 3A...
Page 157
Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1D 89 n m Logo print with color plane swap 1D 8B n m o Apply shading to logo 1D 8C n m Merge watermark mode 1D 8D n m Text strike-through mode 1D 90 m x y o p q Form and merge real-time surround graphic...
Page 158
Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1F 03 16 f s p/r t Set LogoEZ® colorization 1F 03 17 a m s Set LogoEZ® attribute mapping 1F 04 n Convert 6-dots/mm bitmap to 8-dots/mm bitmap 1F 05 n Select superscript or subscript modes 1F 08 00 Restore default settings...
Appendix C: Electronic Journal Appendix C: Electronic Journal The Electronic Journal feature is for use with an application that does not support electronic journal. The printer can be used to store a variety of transactions. Electronic Journal Storage There are two methods for activating Electronic Journal: 1F 03 18 01 n Auto Journal Mode via Configuration Command: Value of n Data saved in journal...
Page 176
Appendix C: Electronic Journal Journal RAM buffer Journal data is temporarily buffered in RAM until the printer is triggered to write it to flash. At power up 4K bytes of RAM will be dynamically allocated. In the unlikely event that 4K bytes are not available, 2K will be allocated. If for some reason 2K bytes are not available, the electronic journal feature cannot be used.
Page 177
Appendix C: Electronic Journal Printing and Erasing the Journal Flash Buffer: Operator Activation of Journal Print and Erase Enabled via 1F 03 2E 01. Disabled via 1F 03 2E 00. Enabled and disabled also via the config menu under the Emulation/Software Options sub-menu.
Page 178
Appendix C: Electronic Journal 1F 0A C5 Return Journal Status Returns one byte of status. bit 0 = 0 >> Write to flash successful bit 0 = 1 >> Write to flash fail bit 1 = 0 >> RAM allocation for journal data successful bit 1 = 1 >>...
Need help?
Do you have a question about the A776 ColorPOS and is the answer not in the manual?
Questions and answers