The text of a manual · part 1 of 16
A760 Two-Color Thermal/Impact Hybrid Printer User Guide: Programming Supplement, pages 1 to 8
Pages 1 to 8 of 154
The original document is the PDF (2.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the TPG A760
Page 1
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.
189-9200304 Rev F
Page 2
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. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense. Information to the User This equipment must be installed and used in strict accordance with the manufacturer’s instructions. However, there is no guarantee that interference to radio communications will not occur in a particular commercial installation. If this equipment does cause interference, which can be determined by turning the equipment off and on, the user is encouraged to contact CognitiveTPG immediately. CognitiveTPG is not responsible for any radio or television interference caused by unauthorized modification of this equipment or the substitution or attachment of connecting cables and equipment other than those specified by CognitiveTPG. The correction of interferences caused by such unauthorized modification, substitution or attachment will be the responsibility of the user. In order to ensure compliance with the Product Safety, FCC and CE marking requirements, you must use the power supply, power cord, and interface cable which are sold for use with this product or which meet the following parameters: Power Supply UL Listed (QQGQ), Class 2 power supply with SELV (Secondary Extra Low Voltage), non-energy hazard output, limited energy source, input rated 100240 Vac, 1.5/0.8 A, 50/60 Hz, output rated 24 Vdc, 2.3 A for 55 watt unit; 100-240 Vac, 2.0A, 50/60 Hz, output rate 24 Vdc, 3.125 A for 75 watt unit. Use of this product with a power supply other than the CognitiveTPG power supply will require you to test the power supply and CognitiveTPG printer for FCC and CE mark certification. Communication Interface Cable 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. Power Cord A UL listed, detachable power cord must be used. For applications where the power supply module may be mounted on the floor, a power cord with Type SJT marking must be used. For applications outside the US, power cords which meet the particular country’s certification and application requirements should be used. Use of a power cord other than described here may result in a violation of safety certifications which are in force in the country of use. Industry Canada (IC) Radio Frequency Interference Statement This Class A digital apparatus meets all requirements of the Canadian Interference-Causing Equipment Regulations. Cet appareil numérique de la classe A respecte toutes les exigences du Règlement sur le matériel brouilleur du Canada. Voluntary Control Council for Interference (VCCI) Radio Frequency Interference Statement This is a Class A product based on the standard of the Voluntary Control Council for Interference by Information Technology Equipment (VCCI). If this equipment is used in a domestic environment, radio disturbance may arise. When such trouble occurs, the user may be required to take corrective actions. Disclaimer Information in this document is subject to change without notice. Consult your CognitiveTPG sales representative for information that is applicable and current. CognitiveTPG reserves the right to improve products as new technology, components, software, and firmware become available. No part of this document may be reproduced, transmitted, or translated in any form or by any means, electronic or mechanical, for any purpose without the express written permission of CognitiveTPG. Copyright Copyright © 2010 by TPG IPB, Inc., 950 Danby Road, Ithaca, New York 14850, USA. All rights reserved. Printed in USA. Confidential, Unpublished. Property of TPG IPB, Inc. Trademarks CogntiveTPG™ is a trademark of TPG IPB, Inc. Microsoft, Windows NT are registered Trademarks of Microsoft Corporation in the U.S.A. and/or other countries. Inside Out Networks, Inside Out, EPIC, and Edgeport are trademarks of Inside Out Networks. All other trademarks and registered trademarks are the property of their respective holders. Patents 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. Web Site http://www.CognitiveTPG.com
Page 3
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.................................................................................................9 Chapter 2: Printer Status, Ethernet and Indicators...........................11 Startup Diagnostics...........................................................................11 Runtime diagnostics..........................................................................12 Remote diagnostics...........................................................................12 Ethernet terminology and default setup.........................................14 Ethernet Terminology............................................................................................. 14 Ethernet Default Setup......................................................................................... 15 Indicators. ..........................................................................................16 Chapter 3: Programming the Printer..................................................17 Overview of commands. ...................................................................17 Comparison to A756..........................................................................17 Two-color commands (comparison A758 to A760).........................19 LogoEZ® colorization commands......................................................20 Ethernet setup commands................................................................20 Character appearance.......................................................................20 Width specifications................................................................................................ 21 Standard................................................................................................................ 21 Print zones..........................................................................................21 Print zones for receipt station 80 mm paper.................................................. 21 Compressed......................................................................................................... 21 Print zones for receipt station 82.5 mm paper.............................................. 22 Specifications of print zone for receipt station 82.5 mm paper:............. 22 Print zones for slip station. ...............................................................22 Rotated printing commands.............................................................23 Emulation modes...............................................................................24 Print setup in emulation modes......................................................................... 24 Chapter 4: Programming Commands.................................................25 Commands listed by function...........................................................25 Printer actions. .......................................................................................................... 25 Print and paper feed .............................................................................................. 26
Page 4
4
A760 User Guide: Programming Supplement Contents
Vertical and horizontal positioning .................................................................. 26 Text characteristics.................................................................................................. 27 Graphics ...................................................................................................................... 28 Status............................................................................................................................ 29 Batch mode.......................................................................................................... 29 Real-time............................................................................................................... 29 Unsolicited status mode.................................................................................. 29 Bar codes..................................................................................................................... 29 Page mode . ............................................................................................................... 30 Macros.......................................................................................................................... 30 MICR check reader commands............................................................................ 30 MICR Reading...................................................................................................... 30 MICR Parsing........................................................................................................ 30 Check Flip Commands. .................................................................................... 30 User data storage..................................................................................................... 31 Flash download. ................................................................................................. 31 Ethernet setup commands................................................................................... 31 Command conventions. ....................................................................32 Command descriptions. ....................................................................33 Printer actions. .......................................................................................................... 33 Clear printer......................................................................................................... 33 Close form............................................................................................................. 33 Open form. ........................................................................................................... 34 Perform partial knife cut.................................................................................. 34 Generate tone. .................................................................................................... 34 Return home........................................................................................................ 34 Select peripheral device (for multi-drop).................................................. 35 Initialize printer................................................................................................... 35 Set slip paper eject length.............................................................................. 35 Select receipt or slip for printing; slip for MICR read............................. 35 Select receipt or slip for setting line spacing........................................... 36 Select paper sensors to output paper end signals. ............................... 36 Select sensors to stop printing. .................................................................... 37 Enable or disable panel button..................................................................... 37 Set slip paper waiting time............................................................................. 37 Generate pulse to open cash drawer.......................................................... 38 Set current color................................................................................................. 38 Select slip station............................................................................................... 39 Select cut mode and cut paper..................................................................... 39 Set paper type (ColorPOS®)............................................................................. 40 Set interpretation of “Set current color” command.............................. 41 Print test form. .................................................................................................... 41 Print and paper feed. .............................................................................................. 42 Print and feed paper one line........................................................................ 42 Print and eject slip............................................................................................. 42 Print and carriage return................................................................................. 42 Feed n print lines................................................................................................ 42 Feed n dot rows.................................................................................................. 43
Revision F January 2010
Page 5
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.......................................................................... 44 Print and feed n lines........................................................................................ 44 Print and reverse feed n lines. ....................................................................... 45 Reverse feed n lines........................................................................................... 45 Reverse feed n dots........................................................................................... 45 Vertical and horizontal positioning................................................................... 46 Horizontal tab. .................................................................................................... 46 Set horizontal and vertical minimum motion units. ............................. 46 Set column. .......................................................................................................... 46 Set absolute starting position....................................................................... 47 Set vertical line spacing to 1/6 inch. ........................................................... 47 Set vertical line spacing................................................................................... 47 Set horizontal tab positions........................................................................... 48 Set relative print position................................................................................ 49 Select justification. ............................................................................................ 50 Set left margin..................................................................................................... 50 Set printing area width.................................................................................... 51 Text characteristics commands........................................................................... 52 Select double-wide characters. .................................................................... 52 Select single-wide characters........................................................................ 52 Select 90 degree counter-clockwise rotated print. ............................... 52 Select pitch (column width)........................................................................... 52 Set right-side character spacing................................................................... 53 Select print mode. ............................................................................................. 53 Select or cancel user-defined character set. ............................................ 54 Define user-defined character set. .............................................................. 54 Select or cancel underline mode. ................................................................ 55 Copy character set from ROM to RAM........................................................ 55 Cancel user-defined character. ..................................................................... 56 Select or cancel emphasized mode. ........................................................... 56 Select double-strike.......................................................................................... 56 Cancel double-strike......................................................................................... 57 Select or cancel italic print.............................................................................. 57 Select international character set ............................................................... 57 Select character code table............................................................................ 58 Select or cancel 90 degree clockwise rotated print. ............................. 58 Select or cancel upside-down print mode. .............................................. 58 Select character size.......................................................................................... 59 Select or cancel white/black reverse print mode................................... 60 Reverse color text mode (ColorPOS®). ........................................................ 60 Text strike-through mode (ColorPOS®)....................................................... 61 Select superscript or subscript modes....................................................... 61 Graphics....................................................................................................................... 62 Download BMP logo......................................................................................... 62 Select bit image mode..................................................................................... 63
5
Page 6
6
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®). .................................... 67 Print raster color graphics (ColorPOS®)....................................................... 68 Download logo image (ColorPOS®)............................................................. 69 Apply shading to logo (ColorPOS®). ........................................................... 69 Merge watermark mode (ColorPOS®). ........................................................ 70 Monochrome shade mode (ColorPOS®)..................................................... 70 Color shade mode (ColorPOS®). .................................................................... 71 Logo print with color plane swap (ColorPOS®)........................................ 71 Form and merge real-time surround graphic (ColorPOS®).................. 72 Save graphics buffer as logo (ColorPOS®).................................................. 72 Background logo print mode (ColorPOS®)................................................ 73 Shade and store logo (ColorPOS®). .............................................................. 73 Logo print with knife cut................................................................................. 73 Apply margin message mode (ColorPOS®)............................................... 74 Set temporary max target speed. ................................................................ 74 Set LogoEZ® colorization. ................................................................................ 75 Set LogoEZ® attribute mapping.................................................................... 78 Convert 6-dots/mm bitmap to 8-dots/mm bitmap............................... 80 Enable constant speed logos......................................................................... 80 Status............................................................................................................................ 81 Status command introduction...................................................................... 81 Batch mode.......................................................................................................... 81 Transmit peripheral device status (RS-232C printers only)................. 82 Request alternate status (parallel only). .................................................... 82 Transmit paper sensor status......................................................................... 83 Transmit printer ID............................................................................................. 84 Transmit printer ID, remote diagnostics extension................................ 85 Transmit status.................................................................................................... 88 Send printer software version....................................................................... 89 Real-time commands.............................................................................................. 90 Preferred implementation.............................................................................. 90 Alternate implementation.............................................................................. 90 Rules for using real-time commands.......................................................... 91 Moving data through the buffer. ................................................................. 91 Busy line and fault conditions....................................................................... 92 Real-time status transmission. ...................................................................... 92 Real-time request to printer........................................................................... 94 Real-time printer status transmission......................................................... 95 Real-time commands disable........................................................................ 95 Unsolicited status mode........................................................................................ 96 Select or cancel unsolicited status mode (USM)..................................... 96 Recognizing data from the printer.............................................................. 98 Bar codes..................................................................................................................... 99 Select printing position of HRI characters. ............................................... 99
Revision F January 2010
Page 7
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.............................................................102 Print GS1 DataBar (RSS), data length specified......................................102 Print GS1 DataBar (RSS ), null terminated................................................103 Select PDF 417 parameters. .........................................................................104 Select bar code width.....................................................................................105 Page mode. ..............................................................................................................106 Print and return to standard mode. ..........................................................106 Cancel print data in page mode.................................................................106 Print data in page mode................................................................................106 Select page mode............................................................................................107 Select standard mode. ...................................................................................108 Select print direction in page mode.........................................................108 Set print area in page mode. .......................................................................109 Set absolute vertical print position in page mode. .............................110 Set relative vertical print position in page mode.................................110 Macros........................................................................................................................111 Select or cancel macro definition. .............................................................111 Execute macro...................................................................................................111 MICR commands. ...................................................................................................112 MICR reading.....................................................................................................112 Read MICR data and transmit......................................................................112 Transmit last MICR read. ................................................................................112 MICR parsing............................................................................................................112 Define parsing format, save in NVRAM. ...................................................112 Define parsing format, do not save permanently. ...............................112 Parsing parameter string options. .............................................................113 Sample parsing formats. ...............................................................................116 Check serial number.......................................................................................118 Loading the exception table........................................................................119 Exception table entry format.......................................................................119 Example 1. ..........................................................................................................119 Example 2. ..........................................................................................................119 Maintaining the exception table................................................................120 Check flip commands...........................................................................................120 Check flip command.......................................................................................120 Enhanced check flip status reporting command.................................120 User data storage...................................................................................................122 Write to user data storage. ...........................................................................122 Read from user data storage........................................................................122 Read from non-volatile memory................................................................122 Write to non-volatile memory (NVRAM)..................................................122 Select memory type (SRAM/flash) ............................................................123 Flash memory user sectors allocation......................................................123 Erase user flash sector....................................................................................124 User storage status (ColorPOS®)..................................................................125
7
Page 8
8
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. ..............................................127 Get firmware CRC.............................................................................................127 Return microprocessor CRC. ........................................................................128 Erase all flash contents except boot sector. ...........................................128 Return main program flash CRC.................................................................128 Erase selected flash sector............................................................................128 Download to active flash sector.................................................................129 Download paper type description (ColorPOS®). ...................................129 Return paper type description (ColorPOS®)............................................130 Reset firmware..................................................................................................130 Ethernet setup commands.................................................................................131 Restore default settings.................................................................................131 Setting IP address. ...........................................................................................131 Setting Net Mask..............................................................................................131 Setting the Gateway. ......................................................................................131 Setting raw TCPIP port 9001. .......................................................................132 LP Daemon.........................................................................................................132 Telnet Daemon. ................................................................................................132 BootP....................................................................................................................132 DHCP (auto-configuration)...........................................................................132 Inactivity timeout.............................................................................................133 Keep alive pings. ..............................................................................................133 Appendix A: Commands listed by hexadecimal code. ....................134 Appendix B: Resident Character Sets. ..............................................142 Character sets. .................................................................................142 Code page 437 (US)...............................................................................................142 Code page 737 (Greek). .......................................................................................143 Code page 850 (Multilingual)............................................................................144 Code page 852 (Slavic).........................................................................................145 Code page 857 (Turkish). ....................................................................................146 Code page 858 (with Eurosymbol). .................................................................147 Code page 860 (Portuguese).............................................................................148 Code page 862 (Hebrew). ...................................................................................149 Code page 863 (French Canadian)...................................................................150 Code page 865 (Nordic).......................................................................................151 Code page 866 (Cyrillic).......................................................................................152 Code page 1252 (Windows Latin 1). ...............................................................153
Revision F January 2010