A760 Two-Color Thermal/Impact Hybrid Printer User Guide Programming Supplement Includes CognitiveTPG LogoEZ® colorization information Revised 01-08-10 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.
Federal Communications Commission (FCC) Radio Frequency Interference Statement Warning Changes or modifications to this unit not expressly approved by the party responsible for compliance could void the user’s authority to operate the equipment. Note This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to Part 15 of the FCC Rules.
Contents Chapter 1: About this Supplement........................................................9 How to use this supplement................................................................9 Where to find the basics......................................................................9 Where to find advanced technical information.................................9 Support.................................................................................................
A760 User Guide: Programming Supplement Contents Vertical and horizontal positioning .................................................................. 26 Text characteristics................................................................................................... 27 Graphics ...................................................................................................................... 28 Status.............................................................................................
Revision F January 2010 A760 User Guide: Programming Supplement Contents Add n extra dot rows......................................................................................... 43 Print......................................................................................................................... 44 Print and feed paper.......................................................................................... 44 Print and reverse feed paper....................................................
A760 User Guide: Programming Supplement Contents Select double-density graphics..................................................................... 64 Select the current logo (downloaded bit image)................................... 65 Define downloaded bit image....................................................................... 66 Print downloaded bit image.......................................................................... 67 Print raster monochrome graphics (ColorPOS®).....................
Revision F January 2010 A760 User Guide: Programming Supplement Contents Select pitch of HRI characters........................................................................ 99 Select bar code height...................................................................................... 99 Print bar code.....................................................................................................100 Set GS1 DataBar (RSS) parameters.............................................................
A760 User Guide: Programming Supplement Contents Flash download.......................................................................................................126 Switch to flash download mode.................................................................126 Return boot sector firmware part number.............................................127 Return segment number status of flash memory................................127 Select flash memory sector to download..................................
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 1: About this Supplement Chapter 1: About this Supplement How to use this supplement This is a supplemental guide providing programming information on CognitiveTPG’s A760 printer. It is written for tech-savvy users who are interested in customizing or adjusting printer functionality and is meant to be used in conjunction with the A760 ColorPOS® Two-Color Thermal Receipt/Impact Hybrid Printer: User Guide.
A760 User Guide: Programming Supplement Chapter 1: About this Supplement Revision F January 2010
Revision F January 2010 A760 User Guide: Programming Supplement 11 Chapter 2: Printer Status, Ethernet and Indicators Chapter 2: Printer Status, Ethernet and Indicators The A760 printer performs a number of diagnostics that provide useful information about the operating status of the printer. The following diagnostic tests are available. See page 12 and 13 for more information.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 2: Printer Status, Ethernet and Indicators Runtime diagnostics Runtime diagnostics (sometimes called level 2 diagnostics) run during normal printer operation.
Revision F January 2010 A760 User Guide: Programming Supplement 13 Chapter 2: Printer Status, Ethernet and Indicators *** A760 – Diagnostics Form *** Model number Serial number Paper type can be changed in the configuration menu.
A760 User Guide: Programming Supplement Revision F January 2010 Chapter 2: Printer Status, Ethernet and Indicators Ethernet terminology and default setup For the printer to operate with Ethernet, a series of commands must be set within the printer. These commands can only be set through the host computer and are not configurable through the printer configuration menu. See page 20 for the Ethernet setup commands list and page 135+ for command descriptions.
Revision F January 2010 A760 User Guide: Programming Supplement 15 Chapter 2: Printer Status, Ethernet and Indicators Ethernet Default Setup To return the printer to the default settings, put the printer in the boot mode and hold down the feed switch until you hear the high-low-high tones (about 10 seconds). The default settings are: Bootp Disabled DHCP Enabled Default IP 192.0.0.192 (in use after 2 minute Bootp time-out) Net mask of 0.0.0.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 2: Printer Status, Ethernet and Indicators Indicators The printer communicates various conditions both visually, with two green LEDs or audibly, with a series of tones or beeps. The following table lists these indicators.
Revision F January 2010 A760 User Guide: Programming Supplement 17 Chapter 3: Programming the Printer Chapter 3: Programming the Printer Overview of commands Commands control all operations and functions of the printer. This includes selecting the size and placement of characters and graphics on the receipt or the slip and feeding and cutting the paper. The programming commands have been organized, in order of hexadecimal code within functional groups.
A760 User Guide: Programming Supplement Revision F January 2010 Chapter 3: Programming the Printer Command Description Difference between previous product and new product emulation mode. 1B 33 n Set line spacing This command uses n in terms of n/360 inches. Since the A756 had a fundamental step of 1/152 inch and the A760 has a fundamental step of 1/203 inch, the actual line spacing will not exactly match the requested spacing.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 3: Programming the Printer Two-color commands (comparison A758 to A760) The following table details the list of commands that have been added for two-color ColorPOS® functionality (ColorPOS® commands 1D 81–1D 9B are in bold) or existing commands that have been altered by the addition of two-color capacity.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 3: Programming the Printer LogoEZ® colorization commands Hexadecimal ASCII Description 1F 03 16 fm n o p q US ETX SYN Set LogoEZ® surround graphics 1F 03 16 f s p/r t US ETX SYN f s p/r t Set colorization 1F 03 17 a m s US ETX ETB a m s Set attribute mapping 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
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 3: Programming the Printer Width specifications Standard Compressed • Characters per inch: 15.6 • Characters per inch: 20.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 3: Programming the Printer Print zones for receipt station 82.5 mm paper Specifications of print zone for receipt station 82.5 mm paper: • 640 dots (addressable) @ 8 dots/mm, centered on 82.5 mm • Top margin to manual tear-off: 17.8 mm (0.70 inches) • Standard mode: minimum margins: 1.0 mm (0.040 inches) • Top margin to knife cut: 19.0 mm (0.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 3: 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.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 3: Programming the Printer Emulation modes The CognitiveTPG A760 printer may be operated in a number of different emulation modes. However, printing characteristics and defaults may differ, depending on the desired mode. For instance, two-color paper and ColorPOS® commands and features are available only in A760 native mode.
Revision F January 2010 A760 User Guide: Programming Supplement 25 Chapter 4: Programming commands Chapter 4: Programming Commands Commands listed by function Commands in bold are ColorPOS® commands.
A760 User Guide: Programming Supplement Revision F January 2010 Chapter 4: Programming commands Print and paper feed Code (hexadecimal) Command Page 0A Print and feed paper one line 42 0C Print and eject slip 42 0D Print and carriage return 42 14 n Feed n print lines 42 15 n Feed n dot rows 43 16 n Add n extra dot rows 43 17 Print 44 1B 4A n Print and feed paper 44 1B 4B n Print and reverse feed paper 44 1B 64 n Print and feed n lines 44 1B 65 n
Revision F January 2010 A760 User Guide: Programming Supplement 27 Chapter 4: Programming commands Text characteristics Code (hexadecimal) Command Page 12 Select double-wide characters 52 13 Select single-wide characters 52 1B 12 Select 90 degree counter-clockwise rotated print 52 1B 16 n Select pitch (column width) 52 1B 20 n Set right-side character spacing 53 1B 21 n Select print mode 53 1B 25 n Select or cancel user-defined character set 54 1B 26 s c1 c2 De
A760 User Guide: Programming Supplement Revision F January 2010 Chapter 4: Programming commands Graphics Code (hexadecimal) Command Page 1B (+*.BMP file) Download BMP logo 62 1B 2A m n1 n2 d1…dn Select bit image mode 63 1B 4C n1 n2 d1. . .
Revision F January 2010 A760 User Guide: Programming Supplement 29 Chapter 4: Programming commands Status Batch mode Code (hexadecimal) Command 1B 75 0 Transmit peripheral device status (RS-232C printers only) 82 1B 75 n Request alternate status (A756 emulation only) 82 1B 76 Transmit paper sensor status 83 1D 49 n Transmit printer ID 84 1D 49 40 n Transmit printer ID, remote diagnostics extension 85 1D 72 n Transmit status 88 1F 56 Send printer software version 89
A760 User Guide: Programming Supplement Revision F January 2010 Chapter 4: Programming commands Page mode Code (hexadecimal) Command Page 0C Print and return to standard mode/print and eject slip 106 18 Cancel print data in page mode 106 1B 0C Print data in page mode 106 1B 4C Select page mode 107 1B 53 Select standard mode 108 1B 54 n Select print direction in page mode 108 1B 57 n1, n2…n8 Set print area in page mode 109 1D 24 nL nH Set absolute vertical pri
Revision F January 2010 A760 User Guide: Programming Supplement 31 Chapter 4: Programming commands User data storage Code (hexadecimal) Command Page 1B 27 m a0 a1 a2 d1…dm Write to user data storage 122 1B 34 m a0 a1 a2 Read from user data storage 122 1B 6A k Read from non-volatile memory (NVRAM) 122 1B 73 n1 n2 k Write to non-volatile memory (NVRAM) 122 1D 22 n Select memory type (SRAM/flash) where to save logos or user-defined fonts 123 1D 22 55 n1 n2 Flash memory user
A760 User Guide: Programming Supplement Revision F January 2010 Chapter 4: 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. Default: The command operand default after printer reset.
Revision F January 2010 A760 User Guide: Programming Supplement 33 Chapter 4: Programming commands Command descriptions Printer actions The printer function commands control the following basic printer functions and are described in order of their hexadecimal codes: • Station select • Cutting the paper • Platen control • Opening the cash drawers • Resetting the printer Clear printer ASCII Hexadecimal Decimal DLE 10 16 Clears the print line buffer without printing and sets the printer to
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Open form ASCII: CAN Hexadecimal: 18 Decimal: 24 When the printer is in A756 and A758 emulation mode or in A760 (native) non-page mode, this command opens the feed roller and platen (forms compensation arm assembly) so that a form may be inserted (default position). This command has the same code as the Cancel print data in page mode command, which is only executed in page mode.
Revision F January 2010 A760 User Guide: Programming Supplement 35 Chapter 4: Programming commands Select peripheral device (for multi-drop) ASCII Hexadecimal Decimal ESC = n 1B 3D n 27 61 n Value of n: 0 (bit 0), device not selected 1 (bit 0), device selected Default: 1 (bit 0), device selected Selects the device to which the host computer sends data. Exception This command is ignored.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Select receipt or slip for setting line spacing ASCII Hexadecimal Decimal ESC c 1 n 1B 63 31 n 27 99 49 n Value of n: 1, 2, 3 Select receipt Exceptions 4 Select Slip This command is ignored if n is out of range. Default of n: 1 Selects which station receives the effects of the following commands: 1. 2. 3.
Revision F January 2010 A760 User Guide: Programming Supplement 37 Chapter 4: Programming commands Select sensors to stop printing ASCII Hexadecimal Decimal ESC c 4 n 1B 63 34 n 27 99 52 n Value of n: Sensor status Bit of n Bit Function 0,1 Stop receipt on receipt low 4 Stop slip if trailing edge uncovered 5 Stop slip if leading edge uncover Default: Determines which sensor stops printing on the respective station.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Generate pulse to open cash drawer ASCII Hexadecimal Decimal ESC p n p1 p2 1B 70 n p1 p2 27 112 n p1 p2 Value of n: 00, 48 (Decimal) = Drawer 1; 01, 49 (Decimal) = Drawer 2 Value of p1: 0–255 The value for either p1 or p2 is the hexadecimal number multiplied by 2 msec to equal the total time. Value of p2: 0–255 • On-time = p1 (Hex) x 2 msec Sends a pulse to open the cash drawer.
Revision F January 2010 A760 User Guide: Programming Supplement 39 Chapter 4: Programming commands Select slip station ASCII Hexadecimal Decimal FS 1C 28 Selects the slip station for all functions. The receipt station is default setting after the printer is initialized or the clear printer (0x10) command is received. Select cut mode and cut paper ASCII Hexadecimal GS V m 1D 56 m GS V m n 1D 56 m n Decimal 29 86 m 29 86 m n Value of m: Selects the mode as shown in the table.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Set paper type (ColorPOS®) ASCII Hexadecimal Decimal GS Ox81 m n 1D 81 m n 29 129 m n Value of m: 0 = monochrome (black) paper (Kanzaki P-310) 1 = Two-color (red/black) papers (Kanzaki P-310RB) 4 = Two-color (blue/black) papers (Kanzaki P-320BB) 5 = Two-color (red/black) papers (Kanzaki P-320PB) An incorrect setting of m n for a two-color paper or nonstandard monochrome
Revision F January 2010 A760 User Guide: Programming Supplement 41 Chapter 4: Programming commands Set interpretation of “Set current color” command ASCII Hexadecimal Decimal US ETX SYN ENQ n 1F 03 16 05 n 31 03 22 05 n Value of n: 0-FF (Hex) n = 01 will cause 1B 72 01 to print red. Any other value for 1B 72 will print black. Related information n = 00 will cause 1B 72 00 to print red and all other values to print black.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands 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 Decimal LF 0A 10 Carriage return/line feed pair prints and feeds only one line. Prints one line from the buffer and feeds paper one line.
Revision F January 2010 A760 User Guide: Programming Supplement 43 Chapter 4: Programming commands Feed n dot rows ASCII Hexadecimal Decimal NAK n 15 n 21 n Value of n: Receipt - n/203 inch Slip - n/72 inch Range of n: 0–127 in A756 emulation 0–255 in A758 emulation and A760 native mode Feeds paper n dot rows without printing. Receipt moves n rows if the print buffer is empty.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Print ASCII Hexadecimal Decimal ETB 17 23 Prints one line from the buffer and feeds paper one line. Executes LF on receipt. Executes LF on slip if previous character was not a CR. Print and feed paper ASCII Hexadecimal Decimal ESC J n 1B 4A n 27 74 n Value of n: Receipt - n/203 inch Slip - n/144 inch Range of n: 0–255 Prints one line from the buffer and feeds the paper.
Revision F January 2010 A760 User Guide: Programming Supplement 45 Chapter 4: Programming commands Print and reverse feed n lines ASCII Hexadecimal Decimal ESC e n 1B 65 n 27 101 n Value of n: The number of lines on the slip station to be reverse fed. Range of n: 0 – 255 Prints one line from the buffer and reverse feeds the paper n lines on the slip station. The receipt station cannot be reverse fed.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Vertical and horizontal positioning The horizontal positioning commands control the horizontal print positions of characters on the receipt and slip. Horizontal tab ASCII Hexadecimal Decimal HT 09 9 Moves the print position to the next tab position set by the set horizontal tab positions (1B 44 n1 n2 ... 00) command. The print position is reset to column one after each line.
Revision F January 2010 A760 User Guide: Programming Supplement 47 Chapter 4: Programming commands Set absolute starting position ASCII Hexadecimal Decimal ESC $ n1 n2 1B 24 n1 n2 27 36 n1 n2 Value of n: n = Number of dots to be moved from the beginning of the line. 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.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Set horizontal tab positions ASCII Hexadecimal Decimal ESC D [n] k NUL 1B 44 [n] k 00 27 68 [n] k 0 Value of n: Column number for tab minus one. (n is always less than or equal to the current selected column width) Tabs assumed to be in strictly ascending order. A tab out of order terminates the command string as if it were 00, and remaining tab values are taken as normal data.
Revision F January 2010 A760 User Guide: Programming Supplement 49 Chapter 4: Programming commands Set relative print position ASCII Hexadecimal Decimal ESC \ n1 n2 1B 5C n1 n2 27 92 n1 n2 Value of n: Related information To move the relative starting position right of the current position by n dots: The values for n1 and n2 are two bytes in low byte, high byte word orientation.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Select justification ASCII Hexadecimal Decimal ESC a n 1B 61 n 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 on the receipt station. Exception This command is valid only when input at the beginning of a line.
Revision F January 2010 A760 User Guide: Programming Supplement 51 Chapter 4: Programming commands Set printing area width ASCII Hexadecimal Decimal GS W nL nH 1D 57 nL nH 29 87 nL nH Range of nL: 0–255 Range of nH: 0–255 Default: 576 dots (the maximum printable area) Sets the width of the printing area. If the setting exceeds the printable area, the maximum value of the printable area is used.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Text characteristics commands These commands control what the printed information looks like, selection of character sets, definition of custom-defined characters, and setting of margins. The commands are described in order of their hexadecimal codes. Select double-wide characters ASCII Hexadecimal Decimal DC2 12 18 Prints double-wide characters.
Revision F January 2010 A760 User Guide: Programming Supplement 53 Chapter 4: Programming commands Set right-side character spacing ASCII Hexadecimal Decimal ESC SP n 1B 20 n 27 32 n Range of n: 0 – 32 (decimal) Default: 0 Sets the right side character spacing to [ n x horizontal or vertical motion units]. Values for this command are set independently in standard and paper mode.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Select or cancel user-defined character set ASCII Hexadecimal Decimal ESC % n 1B 25 n 27 37 n Value of n: 0 = Code Page 437 1 = User Defined (RAM) 2 = Code Page 850 Range of n: 0–2 Selects the character set. When an undefined RAM character is selected, the code page 437 character is used. Look in Chapter 3: Programming the Printer, “Character appearance” for the character sets.
Revision F January 2010 A760 User Guide: Programming Supplement 55 Chapter 4: Programming commands Select or cancel underline mode ASCII Hexadecimal Decimal ESC - n 1B 2D n 27 45 n Decimal Hex Value of n: 0, 48 30 = Cancel underline mode 1, 49 31 = Select underline mode 2, 50 32 = Select double thickness underline mode This command and the select pr
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Cancel user-defined character ASCII Hexadecimal Decimal ESC ? n 1B 3F n 27 63 n Value of n: Specified character code. Exceptions Range of n: 32–255 This command is ignored if n is out of range or if the userdefined character is not defined. Cancels the pattern defined for the character code specified by n.
Revision F January 2010 A760 User Guide: Programming Supplement 57 Chapter 4: Programming commands Cancel double-strike ASCII Hexadecimal Decimal ESC H 1B 48 27 72 Turn off double-strike mode on the slip station in A756 emulation mode. This command is ignored in the A758 emulation mode and A760 native mode. This command works on both slip and receipt stations.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Select character code table See the previous command, select international character set. Select or cancel 90 degree clockwise rotated print ASCII Hexadecimal Decimal ESC V n 1B 56 n 27 86 n Value of n: 0 = Cancel 1 = Set Default: 0 (Cancel) Rotates characters 90 degrees clockwise.
Revision F January 2010 A760 User Guide: Programming Supplement 59 Chapter 4: Programming commands Select character size ASCII Hexadecimal Decimal GS ! n 1D 21 n 29 33 n Value of n: 1–8 = vertical number of times normal font 1–8 = horizontal number of times normal font Range of n: 00–07, 10–17, ...
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Select or cancel white/black reverse print mode ASCII Hexadecimal Decimal GS B n 1D 42 n 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 ) Turns on white/black reverse print mode.
Revision F January 2010 A760 User Guide: Programming Supplement 61 Chapter 4: Programming commands Text strike-through mode (ColorPOS®) ASCII Hexadecimal Decimal GS 0x85 m n 1D 8D n m 29 141 n m Value of m: 0 = retain same color as the character itself 1 = black 2 = paper color Value of n: standard cell height Default: n = 0 (off ) Prints a strike-through over characters.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: 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) Maximum height = 512 The downloaded BMP logo can be printed by using the print downloaded bit image (1D 2F m) command.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Select bit image mode ASCII Hexadecimal Decimal ESC * m n1 n2 d1 ... dn 1B 2A m n1 n2 d1 ... dn 27 42 m n1 n2 d1 ... dn Value of m: Receipt Station Value of m Mode No. of dots (vertical) No. of dots (horizontal) No.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands 24-Dot single-density mode Top of bit image 8-Dot single-density mode Receipt MSB Top of bit image d1 d4 d7 MSB d1 d2 d3 d4 dn dn d2 d5 dn LSB d3 d6 dn LSB Select double-density graphics ASCII Hexadecimal Decimal ESC Y n1 n2 d1 ... dn or ESC L n1 n2 d1 ... dn 1B 59 n1 n2 d1 ... dn or 1B 4C n1 n2 d1 ... dn 27 89 n1 n2 d1 ... dn or 27 76 n1 n2 d1 ...
Revision F January 2010 A760 User Guide: Programming Supplement 65 Chapter 4: Programming commands Select the current logo (downloaded bit image) ASCII Hexadecimal Decimal GS # n 1D 23 n 29 35 n Range of n: 0 – 255 Default: 0 Selects a color or monochrome logo to be defined or printed. The active logo n remains in use until this command is sent again with a different logo n. When this command precedes a logo definition, that definition is stored in flash memory as logo n.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Define downloaded bit image ASCII Hexadecimal Decimal GS * n1 n2 d1 ... dn] 1D 2A n1 n2 d1 ... dn] 29 42 n1 n2 d1 ...
Revision F January 2010 A760 User Guide: Programming Supplement 67 Chapter 4: Programming commands Print downloaded bit image ASCII Hexadecimal Decimal GS / m 1D 2F m 29 47 m Value and range of m: This command is used to print a previously stored monochrome or color logo from printer memory on the receipt station. The logo is identified as the one indicated by the most recent select current logo command or 0 if a select current logo command has not yet been given.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Print raster color graphics (ColorPOS®) ASCII Hexadecimal Decimal GS 0x83 n1…..n144 (576 dots 80 mm paper) / n160 (640 dots, 82.5 mm paper) 1D 83 n1…..n144 (576 dots 80 mm paper) / n160 (640 dots, 82.5 mm paper) 29 13 n1…..n144 (576 dots 80 mm paper) / n160 (640 dots, 82.5 mm paper) Value and range of n: n1 to n144 / n160 corresponds to one dot row data.
Revision F January 2010 A760 User Guide: Programming Supplement 69 Chapter 4: Programming commands Download logo image (ColorPOS®) ASCII GS 0x84 m n1 n2 d1…..dx , x = (n1 * n2*8 ) * m Hexadecimal 1D 84 m n1 n2 d1…..dx , x = (n1 * n2*8 ) * m Decimal Value of m: 29 132 m n1 n2 d1…..dx , x = (n1 * n2*8 ) * m 1 = monochrome 2 = two-color Max n1 = 576/8 for 80 mm paper or 640/8 for 82.
A760 User Guide: Programming Supplement Revision F January 2010 Chapter 4: Programming commands Merge watermark mode (ColorPOS®) ASCII Hexadecimal Decimal GS Ox8C n m 1D 8C n m 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. The space between repetitions of this usually shaded logo will be every n*8 dot rows.
Revision F January 2010 A760 User Guide: Programming Supplement 71 Chapter 4: Programming commands Color shade mode (ColorPOS®) ASCII Hexadecimal Decimal GS 0x87 m 1D 87 m 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.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Form and merge real-time surround graphic (ColorPOS®) ASCII GS 0x90 m x y o p q Hexadecimal 1D 90 m x y o p q Decimal 29 144 m x y o p q This command will print a real-time graphic style designated by m.
Revision F January 2010 A760 User Guide: Programming Supplement 73 Chapter 4: Programming commands Background logo print mode (ColorPOS®) ASCII Hexadecimal Decimal GS 0x92 n 1D 92 n 29 146 n This command will place into the graphics buffer the logo designated by n. As soon as there is a print action command (such as text output) the graphics buffer will be merged (logical OR process) with print output.
A760 User Guide: Programming Supplement Revision F January 2010 Chapter 4: Programming commands Apply margin message mode (ColorPOS®) ASCII Hexadecimal Decimal US 0x99 l m n o 1D 99 l m n o 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> 2 ignore command Value of m: m is the ID (index) of the logo to be used in the merging.
Revision F January 2010 A760 User Guide: Programming Supplement 75 Chapter 4: Programming commands Set LogoEZ® colorization ASCII US ETX SYN f s p/t t Hexadecimal Decimal 1F 03 16 f s p/t t 31 03 22 f s p/t t Value of f: 0 = 1 = 2 = 3 = 4 = turn off all LogoEZ® colorization features link print logo after knife cut link watermark printing link margin message printing link logo print before cut Default: (Off ) 0 This command configures into EEPROM (permanent configuration
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands f = 2 link watermark printing Example: Activate watermark printing using logo #F1 (1F 03 16 02 s r) with “s” being the skip distance in dot rows before activation and “r” is the distance in mm between watermark repetitions.
Revision F January 2010 A760 User Guide: Programming Supplement 77 Chapter 4: Programming commands f = 4 link logo print before cut Related information Prints a logo after the skip distance of “s” before a logo and “p” past a logo and performs a knife cut (1F 03 16 04 s p). Immediately before executing a knife-cut command, if s > 0, execute the following: This command is utilized in the CognitiveTPG LogoEZ® utility.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Set LogoEZ® attribute mapping ASCII Hexadecimal Decimal US ETX ETB a m s 1F 03 17 a m s 31 03 23 a m s Values: a = a , m, s = 0, 0, 0 attribute map selector turn off attribute mapping (all 3 bytes required) a = 1 selects first attribute mapping definition (of two available) a=2 selects second attribute mapping definition a = 1 or 2, if m = 0 mapping 1 or 2, respectively, is t
Revision F January 2010 A760 User Guide: Programming Supplement 79 Chapter 4: Programming commands This command configures into EEPROM (permanent configuration switch setting) one or two combinations of character attribute mappings, including substitute attribute settings for color effects. The attributes of the character code are used to form the desired pixel character when the code is placed into the raster print buffer.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Convert 6-dots/mm bitmap to 8-dots/mm bitmap ASCII Hexadecimal Decimal AX EOT n 1F 04 n 31 04 n Value: 0 = Off 1 = On (When 0 and 1 are the LSB) Default: 0 (Off ) Selects or cancels 6-dot/mm A758 graphic emulation in A758 emulation or A760 native modes.
Revision F January 2010 A760 User Guide: Programming Supplement 81 Chapter 4: Programming commands Status Status command introduction The A760 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. A brief description of each of these methods follows.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Transmit peripheral device status (RS-232C printers only) ASCII Hexadecimal Decimal ESC u 0 1B 75 0 27 117 0 Value of returned byte: Exceptions Bit 0 Bit 1 1 = Drawer 1 Closed 1 = Drawer 2 Closed 0 = Drawer 1 Open 0 = Drawer 2 Open Bits 2–7 are not used.
Revision F January 2010 A760 User Guide: Programming Supplement 83 Chapter 4: Programming commands Transmit paper sensor status ASCII Hexadecimal Decimal ESC v 1B 76 27 118 Values: Status Byte (RS-232C) Bit Function 0 Signifies 0 Receipt paper OK 1 Signifies Low (only if paper low sensor is (enabled) 1 Receipt cover front cover Closed Open 2 Receipt paper OK Out 3 Always zero 4 Always zero 5 Slip leading edge sensor Not covered Covered 6 Sl
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Transmit printer ID ASCII Hexadecimal Decimal GS I n 1D 49 n 29 73 n Value of n: 1, 49 = Printer model ID 2, 50 = Type ID 3, 51 = ROM version ID 4, 52 = Logo Definition Transmits the printer ID specified by n as follows: n Printer ID Specification ID (Hexadecimal) n = 4 : Logo Definition 1, 49 Printer model ID CognitiveTPG A760 0x28 (A758 emulation and A760 native mod
Revision F January 2010 A760 User Guide: Programming Supplement 85 Chapter 4: Programming commands Transmit printer ID, remote diagnostics extension ASCII Hexadecimal Decimal GS I @ n 1D 49 40 n 29 73 64 n Values of n: Refer to table Range of n: 32–255 (not all defined but reserved) Preforms the remote diagnostic function specified by n. Eighteen remote diagnostic items are defined: eight printer ID items and ten printer tally items.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Value of n ASCII Hex Dec Remote diagnostic item Function é 82 130 Receipt lines tally Clear receipt lines tally to 0 â 83 131 Receipt lines tally Return receipt lines tally, preceded by n to identify Printer returns 10 bytes in above example: â00010000 ä 84 132 Knife cut tally, 8 digit ASCII numeric, max 99,999,999 Write to NVRAM à 85 133 Knife cut
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Value of n ASCII Hex Dec Remote diagnostic item Function a A6 166 Flash cycles tally Clear flash cycles cut tally to 0 o A7 167 Flash cycles tally Return flash cycles cut tally, returns 10 bytes ¿ A8 168 Knife jams tally, 8 digit ASCII numeric, max 99,999,999 Write to NVRAM + A9 169 Knife jams tally Write to NVRAM, and print on receipt to verify + AA 170
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Transmit status ASCII Hexadecimal Decimal GS r n 1D 72 n 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 Transmits the status specified by n. This is a batch mode command which transmits the response after all prior data in the receive buffer has been processed.
Revision F January 2010 A760 User Guide: Programming Supplement 89 Chapter 4: Programming commands Slip paper status (n = 3 or n = 51) Flash memory user sector status (n = 4 or n = 52) Value of byte returned Slip Status Bit Off/On Hex Decimal Status for transmit status 0 There is no more printing space on the current slip, or the slip paper is not selected.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Real-time commands The real time commands provide an application interface to the printer even when the printer is not handling other commands: • Real-time status transmission: GS (Hex 1D) sequence and DLE (Hex 10) sequence • Real-time request to printer: GS (Hex 1D) sequence and DLE (Hex 10) sequence • Real-time printer status transmission The batch mode printer status commands are placed in the printer
Revision F January 2010 A760 User Guide: Programming Supplement 91 Chapter 4: Programming commands Rules for using real-time commands Three situations must be understood when using real time commands. First, the printer executes the real time command within a few msec of detecting it in the input buffer and will transmit status regardless of the condition of the DSR signal.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Busy line and fault conditions If the printer is in error condition (cover is open, paper is exhausted…), the printer will still accept data, respond to the batch mode status commands (1B 76 and 1B 75 0), handle the cash drawer commands, and not go busy until it actually tries to execute a print command. Then it will stay busy and stop processing data out of the receive buffer until the condition clears.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands 2 = Transmit RS-232C Busy Status 4 = Transmit receipt paper status Bit Status Hex Decimal Function Bit Status Hex Decimal Function 0 Off 00 0 Fixed to off. 0 Off 00 0 Fixed to off 1 On 02 2 Fixed to on. 1 On 02 2 Fixed to on 2 Off 00 0 On 04 4 Receipt and cassette cover closed. Receipt and cassette cover open.
A760 User Guide: Programming Supplement Revision F January 2010 Chapter 4: Programming commands Real-time request to printer GS sequence DLE sequence ASCII Hexadecimal GS ETX n 1D 03 n 29 3 n DLE ENQ n 10 05 n 16 5 n Value of n: 1 = recover and restart 2 = recover and clear buffers The printer responds to a request from the host specified by n. This command includes two sequences: GS and DLE.
Revision F January 2010 A760 User Guide: Programming Supplement 95 Chapter 4: Programming commands Real-time printer status transmission ASCII Hexadecimal Decimal GS ENQ 1D 05 29 5 Transmits one byte status of the printer in real time. 0 Off 00 0 On 01 1 Paper adequate. Paper low (if paper low sensor enabled). 1 Off 00 0 On 02 2 Paper adequate. Paper low (if paper low sensor enabled). 2 Off 00 0 On 04 4 Both receipt and cassette door closed.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: 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.
Revision F January 2010 A760 User Guide: Programming Supplement 97 Chapter 4: Programming commands First Byte (printer Information) Third byte (paper sensor information) Bit Off/On Hex Decimal Status for USM Bit Off/On Hex Decimal Status for USM 0 Off 00 0 Not used. Fixed to off. 1 Off 00 0 Not used. Fixed to off.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Recognizing data from the printer An application sending various real time and non-real time commands to which the printer responds can determine which command a response belongs to by the table below. Batch mode response Responses to transmit peripheral device status (1B 75) and transmit paper sensor status (1B 76) are non-real time responses and will arrive in the order in which they were solicited.
Revision F January 2010 A760 User Guide: Programming Supplement 99 Chapter 4: Programming commands Bar codes These commands format and print bar codes and are described in order of their hexadecimal codes. Note: A756 firmware can be set for module widths in bar codes ranging from 2 dots to 4 dots per module (DPM) for the narrow modules. The default is 3 DPM. A760 firmware range from 1 dot per module (DPM) printed on the receipt, The default is 2 DPM.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Print bar code First Variation Second Variation ASCII Hexadecimal Decimal GS k m d1…dk NUL 1D 6B m d1…dk 00 29 107 m d1 dk 0 GS k m n d1…dn 1D 6B m n d1…dn 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. If the width of the bar code exceeds one line, the bar code is not printed.
Revision F January 2010 A760 User Guide: Programming Supplement 101 Chapter 4: Programming commands Second variation: length n specified at beginning of string. Except as noted, 0 < n < 256. m Bar code d1...
A760 User Guide: Programming Supplement Revision F January 2010 Chapter 4: Programming commands Set GS1 DataBar (RSS) parameters Setting of parameters for RSS barcode ASCII Hexadecimal Decimal GS q a b c d e fL fH 1D 71 a b c d e fL fH 29 113 a b c d e fL fH pixels per minimum unit, default 3, minimum 2, maximum 6 (value a applies to parameters b, c, d) b byte X undercut, default 0, can be set 0 to a-1 c byte Y undercut, default 0, can be set 0 to a-1 d byte separator hei
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Print GS1 DataBar (RSS ), null terminated ASCII Hexadecimal Decimal GS k n d1... 00 1D 6B n d1... 00 29 107 n d1...
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Select PDF 417 parameters ASCII Hexadecimal Decimal GS p a b c d e f 1D 70 a b c d e f 29 112 a b c d e f Value and Ranges: Value: Ranges: a, b = Description: The ratio of bar height to symbol length. a= height limit 1 to 10 b= width limit 1 to 100 c= rows limit 3 to 90 Number of rows in the matrix of code words.
Revision F January 2010 A760 User Guide: Programming Supplement 105 Chapter 4: Programming commands Sample symbol description: Each PDF 417 symbol consists of 3 to 90 stacked rows surrounded on all four sides by a quiet zone.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Page mode Page mode is one of two modes that the A760 printer uses to operate. Standard mode is typical of how most printers operate by printing data as it is received and feeding paper as the various paper feed commands are received. Page mode is different in that it processes or prepares the data as a “page” in memory before it prints it. Think of this as a virtual page.
Revision F January 2010 A760 User Guide: Programming Supplement 107 Chapter 4: Programming commands Select page mode ASCII Hexadecimal Decimal ESC L 1B 4C 27 76 Switches from standard mode to page mode. After printing has been completed either by the print and return to standard mode (FF) command or select standard mode (1B 53) the printer returns to standard mode. The developed data is deleted after being printed. For more information see page mode in this document.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Select standard mode ASCII Hexadecimal Decimal ESC S 1B 53 27 83 Switches from page mode to standard mode. In switching from page mode to standard mode, data buffered in page mode are cleared, the printing area set by set print area in page mode (1B 57) is initialized and the print position is set to the beginning of the line.
Revision F January 2010 A760 User Guide: Programming Supplement 109 Chapter 4: Programming commands Set print area in page mode ASCII Hexadecimal Decimal ESC W n1, n2 ...n8 1B 57 n1, n2 ...n8 27 87 n1, n2 ...n8 Range of n: 0–255 Default: n1–4 = n5 = n6 = n7 = n8 = 0 64 2 64 2 Sets the position and size of the printing area in page mode.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Commands listed by hexadecimal code Set absolute vertical print position in page mode ASCII Hexadecimal Decimal GS $ nL nH 1D 24 nL nH 29 36 nL nH Sets the absolute vertical print starting position for buffer character data in page mode. The absolute print position is set to [(nL + nH × 256) × (vertical or horizontal motion unit)] inches.
Revision F January 2010 A760 User Guide: Programming Supplement 111 Chapter 4: Programming commands Macros These commands are used to select and perform a user-defined sequence of printer operations. Select or cancel macro definition ASCII Hexadecimal Decimal GS : 1D 3A 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.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: 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.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Parsing parameter string options Variable length fields Variable length field name Selector Comments Transit number T Full 9-digit routing/transit number Bank number B Digits 4–8 of transit number Check digit D Digit 9 of transit number Account number A Check serial number C Separate from account number Amount $ This field may not be present or readable Variable length field
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Other parameters Error number E One digit returned 0 Read OK 1 Read error: bad character, empty field invalid length, check digit invalid Status Two digits returned S 01 No MICR data 09 Mexican check 08 Canadian check 05 Error in transit number 07 Error in account number 04 Error in check serial number 10 Business or commercial check
Revision F January 2010 A760 User Guide: Programming Supplement 115 Chapter 4: Programming commands Country code Un One digit returned n Returned if US check nothing Returned if not US check Country code One digit returned Km m Returned if Canadian check nothing Returned if not Canadian check Check type One digit returned L 1 Personal check 2 Business or commercial check Ten parameters are more than enough to specify all variable length fields wit
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Sample parsing formats The following strings show various sample formats that you can use assuming they meet your parsing format needs. Included with the sample format is a description of the data that is returned to the application. ESC w p 18 A ESC w p K9 X T 18 X A 04C • Maximum 18 characters in the account number • U.S.
Revision F January 2010 A760 User Guide: Programming Supplement 117 Chapter 4: Programming commands Status Status byte value Good read, data follows 0x00 Bad read, data follows 0x01 No check present, no data 0x02 Paper jam, no data 0x03 No MICR characters, no data 0x04 Once a parsing format is specified, the following values are returned: MICR characters ASCII Hexadecimal Numerics 0 ... 9 0x30 ...
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: 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.
Revision F January 2010 A760 User Guide: Programming Supplement 119 Chapter 4: 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 with a sumcheck written in the last word. 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.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Maintaining the exception table Present contents of the exception table can be examined using the read NVRAM command: 0x1B 0x6A k which reads and returns word k in NVRAM. When the exception table is full, a new entry can replace an older, less frequently used entry, by merely rewriting the words for that table entry.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Code Description Code 0 (00h) Successful check flip. 9 (09h) 1 (01h) Check/slip not detected by (at least) outside slip sensor. 2 (02h) Flip sensor is covered when should not be. Slip stuck in flip mechanism. 3 (03h) Outside slip sensor covered. Inside slip sensor uncovered. Slip feed rollers open or slipping on check.
A760 User Guide: Programming Supplement Revision F January 2010 Chapter 4: Programming commands User data storage Write to user data storage ASCII Hexadecimal Decimal ESC ‘ m a0 a1 a2 d1 ... dm 1B 27 m a0 a1 a2 d1 ... dm 27 39 m a0 a1 a2 d1 ... dm Value of m: 0 – 255 Writes m bytes of data to the user data storage flash page at the address specified. The printer waits for m bytes of data following the 3-byte address, addr.
Revision F January 2010 A760 User Guide: Programming Supplement 123 Chapter 4: Programming commands Select memory type (SRAM/flash) where to save logos or user-defined fonts ASCII Hexadecimal Decimal GS “ n 1D 22 n 29 34 n Value of n: 48 – 51 n = 51 (ASCII n = 3) Hex 33 n = 48 (ASCII n = 0) Hex 30 Loads active logo to RAM only. This is used to print a special logo but not have it take up flash memory. A logo defined following this command is not preserved over a power cycle.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Erase user flash sector ASCII Hexadecimal Decimal GS @ n 1D 40 n 29 64 n Value of n: 49 – 50 n = 49 (ASCII n = 1) Hex 31 This command erases all 64K flash memory sectors allocated to user-defined character and logos storage.
Revision F January 2010 A760 User Guide: Programming Supplement 125 Chapter 4: Programming commands User storage status (ColorPOS®) ASCII Hexadecimal Decimal GS 0x97 m n 1D 97 m n 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 m = 3 return the CRC of a logo indexed by n Downloaded character sets are identified by integer extending the exis
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Flash download These commands are used to load firmware into the printer. 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. There are three ways to enter the download mode. 1. Powering the printer up with DIP Switch 1 up. 2.
Revision F January 2010 A760 User Guide: Programming Supplement 127 Chapter 4: Programming commands Return boot sector firmware part number ASCII Hexadecimal Decimal GS NULL 1D 00 29 0 Returns ACK (Hex 06) + 12 bytes ASCII string describing the flash memory boot sector firmware part number. Ex : 189–1234567A Exceptions Available only in download mode. Return segment number status of flash memory ASCII Hexadecimal Decimal GS SOH 1D 01 29 1 Returns the size of the flash used.
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Return microprocessor CRC ASCII Hexadecimal Decimal GS BEL 1D 07 29 7 Returns the CRC calculated over the boot sector code space. Formulas ACK Erase all flash contents except boot sector ASCII Hexadecimal Decimal GS SO 1D 0E 29 14 Causes the entire flash memory to be erased. Exceptions The printer returns ACK if the command is successful; NAK if it is unsuccessful.
Revision F January 2010 A760 User Guide: Programming Supplement 129 Chapter 4: Programming commands Download to active flash sector ASCII Hexadecimal Decimal GS DC1 aL aH cL cH d1… dn 1D 11 aL aH cL cH d1… dn 29 17 aL aH cL cH d1… dn Value of aL: low byte of the address Value of aH: high byte of the address Value of cL: low byte of the count Value of cH: high byte of the count Value of d: data bytes, 0–255 Value of n (for number of data bytes) Range of address (aL aH) Range of c
Revision F January 2010 A760 User Guide: Programming Supplement Chapter 4: Programming commands Return paper type description (ColorPOS®) ASCII Hexadecimal Decimal GS Ox8F m 1D 8F m 29 143 m Value and range of m: m is the paper type index, (0< = m< = 15) This command will return from flash memory a paper type description indexed by m, (0<=m<=15) sending back the data sequence used in the download paper type description command, i.e.
Revision F January 2010 A760 User Guide: Programming Supplement 131 Chapter 4: Programming commands Ethernet setup commands The following commands are designed to set the required printer internal parameters for Ethernet operation. The commands can only be used in the Flash download (boot) mode (see page 126). See page 20 for default setup. Restore default settings ASCII Hexadecimal Decimal US BS NUL 1F 08 00 31 8 0 Restores the Ethernet settings to the preset values.
A760 User Guide: Programming Supplement Revision F January 2010 Chapter 4: Programming commands Setting raw TCPIP port 9001 ASCII Hexadecimal Decimal US BS EOT n1 n2 n3 n4 1F 08 04 n1 n2 n3 n4 31 8 4 n1 n2 n3 n4 n1 = 0: n1 = 1: disabled enabled Default: enabled Sets the port where the printer will look for raw tcpip communications.
Revision F January 2010 A760 User Guide: Programming Supplement 133 Chapter 4: Programming commands Inactivity timeout ASCII Hexadecimal Decimal US BS HT n1 1F 08 09 n1 31 8 9 n1 n1 = 0: n1 = 1: disabled enabled Default: enabled Enables or disables resetting of open TCP ports after five (5) minutes inactivity.
A760 User Guide: Programming Supplement Revision F January 2010 Appendix A: Commands by hexadecimal code Appendix A: Commands listed by hexadecimal code By command code Note: Bold commands are new two-color, (ColorPOS®) commands.
Revision F January 2010 A760 User Guide: Programming Supplement 135 Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1B 12 Select 90 degree counter-clockwise rotated print 52 1B 14 n Set column 46 1B 16 n Select pitch (column width) 52 1B 20 n Set right-side character spacing 53 1B 21 n Select print mode 53 1B 24 nL nH Set absolute starting position 47 1B 25 n Select or cancel user-defined character set 54 1B 26 s c1 c2 Define user-defi
A760 User Guide: Programming Supplement Revision F January 2010 Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1B 4B n Print and reverse feed paper 1B 4C Select page mode 1B 4C n1 n2 d1. . .
Revision F January 2010 A760 User Guide: Programming Supplement 137 Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1B 75 0 Transmit peripheral device status (RS-232C printers only) 82 1B 75 n Request alternate status (A756 emulation only) 82 1B 76 Transmit paper sensor status 83 1B 77 01 Read MICR data and transmit 112 1B 77 46 Check flip command 120 1B 77 46-47 Enhanced check flip status reporting 120 1B 77 50 Define parsing format, save i
A760 User Guide: Programming Supplement Revision F January 2010 Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1D 22 n Select memory type (SRAM/flash) where to save logos or user-defined fonts 1D 23 n Select the current logo (downloaded bit image) 65 1D 24 nL nH Set absolute vertical print position in page mode 110 1D 2A n1 n2 d1…dn Define downloaded bit image 66 1D 2F m Print downloaded bit image 67 1D 3A Select or cancel macro definition
Revision F January 2010 A760 User Guide: Programming Supplement 139 Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1D 82 n1…n72 Print raster monochrome graphics or …n80 67 1D 83 n1…n144 Print raster color graphics or …n160 68 1D 84 m n1 n2 d1…dx Download logo image 69 1D 85 m n Reverse color text mode (two-color) 60 1D 86 m Monochrome shade mode 70 1D 87 m Color shade mode 71 1D 89 n m Logo print with color plane swap 71 1D 8B n m o
Revision F January 2010 A760 User Guide: Programming Supplement Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1F 04 n Convert 6-dots/mm bitmap to 8-dots/mm bitmap 80 1F 05 n Select superscript or subscript modes 61 1F 08 00 Restore default settings(Ethernet) 131 1F 08 01 n1 n2 n3 n4 Set IP settings (Ethernet) 131 1F 08 02 n1 n2 n3 n4 Set net mask (Ethernet) 131 1F 08 03 n1 n2 n3 n4 Set Gateway (Ethernet) 131 1F 08 04 n1 n2 n3 n4 Set raw
Revision F January 2010 A760 User Guide: Programming Supplement Appendix A: Commands by hexadecimal code This page intentionally left blank.
A760 User Guide: Programming Supplement Appendix B: Resident Character Sets Appendix B: Resident Character Sets Character sets Code page 437 (US) Revision F January 2010
Revision F January 2010 A760 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 737 (Greek) 143
A760 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 850 (Multilingual) Revision F January 2010
Revision F January 2010 A760 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 852 (Slavic) 145
A760 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 857 (Turkish) Revision F January 2010
Revision F January 2010 A760 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 858 (with Eurosymbol) 147
A760 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 860 (Portuguese) Revision F January 2010
Revision F January 2010 A760 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 862 (Hebrew) 149
A760 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 863 (French Canadian) Revision F January 2010
Revision F January 2010 A760 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 865 (Nordic) 151
A760 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 866 (Cyrillic) Revision F January 2010
Revision F January 2010 A760 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 1252 (Windows Latin 1) 153
189-9200304 Rev.