Zebra TTP 7030, TTP 7020 Technical Manual

Zebra® TTP 7020™/TTP 7030™
Kiosk Printers
Technical Manual
P1003636-001
© 2009 ZIH Corp. The copyrights in this manual and the software and/or firmware in the printer described
therein are owned by ZIH Corp. Unauthorized reproduction of this manual or the software and/or firmware in the printer may result in imprisonment of up to one year and fines of up to $10,000 (17 U.S.C.506). Copyright violators may be subject to civil liability.
This product may contain ZPL
®
, ZPL II®, and ZebraLink™ programs; Element Energy Equalizer® Circuit; E3®; and
Monotype Imaging fonts. Software © ZIH Corp. All rights reserved worldwide.
ZebraLink and all product names and numbers are trademarks, and Zebra, the Zebra logo, ZPL, ZPL II, Element Energy Equalizer Circuit, and E
3
Circuit are registered trademarks of ZIH Corp. All rights reserved worldwide.
All other brand names, product names, or trademarks belong to their respective holders. For additional trademark information, please see “Trademarks” on the product CD.
Proprietary Statement This manual contains proprietary information of Zebra Technologies Corporation and its
subsidiaries (“Zebra Technologies”). It is intended solely for the information and use of parties operating and maintaining the equipment described herein. Such proprietary information may not be used, reproduced, or disclosed to any other parties for any other purpose without the express, written permission of Zebra Technologies.
Product Improvements Continuous improvement of products is a policy of Zebra Technologies. All
specifications and designs are subject to change without notice.
Liability Disclaimer Zebra Technologies takes steps to ensure that its published Engineering specifications and
manuals are correct; however, errors do occur. Zebra Technologies reserves the right to correct any such errors and disclaims liability resulting therefrom.
Limitation of Liability In no event shall Zebra Technologies or anyone else involved in the creation, production,
or delivery of the accompanying product (including hardware and software) be liable for any damages whatsoever (including, without limitation, consequential damages including loss of business profits, business interruption, or loss of business information) arising out of the use of, the results of use of, or inability to use such product, even if Zebra Technologies has been advised of the possibility of such damages. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so the above limitation or exclusion may not apply to you.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Contents
1 • Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
About This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Identification Labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Contacts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2 • Product Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Status Indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Control Board Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Feed-Forward (FF) Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3 • Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Installation Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Electrostatic Discharges, and Earth Currents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Ambient Light . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Connecting To The Computer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Connect the TTP 7020 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Connect the TTP 7030 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Using a Serial Adapter, TTP 7020 and TTP 7030 . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Connecting The Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Making A Test Printout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Installing A Printer Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Status Monitoring through Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Driver Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Paper Level Sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4 • Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Installing a Paper Roll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Clearing Paper Jams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Contents
4
5 • Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
How The Commands Are Described . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Mnemonic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Hex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Decimal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Summary Of Control Codes & Escape Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Software Command Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Black Mark (Top-Of-Form) Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Text Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Barcode Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Graphics Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Print Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Cut And Present Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
System Related Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Set several parameters at once . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Status Reporting Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Font Loading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
File format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Character bitmap data: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Logotypes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Loading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
File format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Status Reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Default Parameter Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
6 • How The Parameters Are Described . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Default Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Summary Of Parameter Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Serial Interface Set-Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Parallel Port Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Print Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Fixed document mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
7 • Page Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Printable Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Aligning Preprint And Thermal Print . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Parameters Used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Simple Calibration Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Black-Mark Sensing from Within Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Contents
8 • Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Parallel, TTP 7020 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Error Signaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
USB, TTP 7030 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Serial (Option on Both TTP 7020 and TTP 7030) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Setup Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
9 • Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Fault Finding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Cleaning The Print Head . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Removing The Print Head . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Installing The Print Head . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Printer Disassembly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Print Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Control Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Cutter Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110
Presenter Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110
Replacement Parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111
Fitting A Shutter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112
Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113
Loading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113
Bootware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114
Firmware History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114
5
10 • Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Print Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Text Modes (Non-Windows Applications) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Basic Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Bar Codes (Non-Windows Applications) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Paper Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Printer Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Environmental Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Paper Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Thermal coating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Perforation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Preprinting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Black Mark Size and Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Ordering Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Printer Assembly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Roll Holders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Contents
Notes • ___________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
6
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

About This Manual

This manual contains the information required to install the TTP7020 and TTP7030 printers and to run them from a host computer such as a PC.
1

Introduction

Updating
Programming on page 33 gives the applicable control codes and escape sequences supported
by the printer processor firmware.
Other chapters of the manual contain information about the printer error codes, communications-parameters, test print functions, specifications, replacement parts, etc.
This manual will be updated as, from time to time, printer functions and features may be added or amended. You will always find the latest edition on our web site (http://www.zebra.com
If you require functions not found in the manual edition at your disposal, you are welcome to consult one of our representatives for information.
).
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Introduction
MADE IN SWEDEN
US Patent No. 5.215.393
Model:
PN:
SN:
TTP 7020/80
01767- 080
2- 0438- 00123
8

Identification Labels

Identification Labels
A type label is positioned on the side on the left side of the printer (side of the blue lever).
The type plate shows the model No. of the printer, the part number and serial number as both Code 128 bar codes and readable text.
The serial number contains three groups: 2-0438-00123
Each section of the serial number indicates specific information, as shown below:
2 shows which factory the printer was manufactured in.
0438 means week 38 of year 04, that is September 13 to September 17 2004. This is for
example used to determine if warranty is valid for this printer or not.
00123 the serial number of the printers produced that week.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Contacts

Technical Support via the Internet is available 24 hours per day, 365 days per year.
Web Site: www.zebra.com E-mail Back Technical Library:
E-mail address: emb@zebra.com Subject line: Emaillist
Self Service Knowledge Base: www.zebra.com/knowledgebase Online Case Registration: www.zebra.com/techrequest
Introduction
Contacts
9
Which Department
Do You Need?
Regional Headquarters
Technical Support
For questions on the operation of Zebra equipment and software, please call your distributor. For additional assistance, contact us.
Please have your model and serial numbers available.
Repair Service Department
For back-to-base service and repair.
Technical Tr aining Department
For Zebra product training courses.
Inquiry Department
For product literature and distributor and dealer information.
Customer Service Department (US) Internal Sales Department (UK)
For printers, parts, media, and ribbon, please call your distributor or contact us.
Key:
T: Telephone F: Facsimile E: E-mail
The Americas
Zebra Technologies International, LLC 333 Corporate Woods Parkway Vernon Hills, IL 60061-3109 U.S.A.
T: +1 847 793 2600 Toll-free +1 800 423 0422 F: +1 847 913 8766
T: +1 877 ASK ZEBRA (275 9327) F: +1 847 913 2578
Hardware: ts1@zebra.com Software: ts3@zebra.com
Kiosk printers:
T: +1 866 322 5202 E: kiosksupport@zebra.com
T: +1 877 ASK ZEBRA (275 9327) F: +1 847 821 1797
E: repair@zebra.com
To request a repair in the U.S., go to www.zebra.com/repair
T: +1 847 793 6868 T: +1 847 793 6864 F: +1 847 913 2578
E: ttamerica@zebra.com
T: +1 877 ASK ZEBRA (275 9327)
E: inquiry4@zebra.com
T: +1 877 ASK ZEBRA (275 9327)
E: clientcare@zebra.com
.
Europe, Africa,
Middle East, India
Zebra Technologies Europe Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire, SL8 5XF United Kingdom
T: +44 (0) 1628 556000 F: +44 (0) 1628 556001
T: +44 (0) 1628 556039 F: +44 (0) 1628 556003
E: tseurope@zebra.com
T: +44 (0) 1772 693069 F: +44 (0) 1772 693046
New requests: ukrma@zebra.com Status updates:
repairupdate@zebra.com
T: +44 (0) 1628 556000 F: +44 (0) 1628 556001
E: eurtraining@zebra.com
T: +44 (0) 1628 556037 F: +44 (0) 1628 556005
E: mseurope@zebra.com
T: +44 (0) 1628 556032 F: +44 (0) 1628 556001
E: cseurope@zebra.com
Asia Pacific
Zebra Technologies Asia Pacific Pte. Ltd. 120 Robinson Road #06-01 Parakou Building Singapore 068913
T: + 65 6858 0722 F: +65 6885 0838
T: +65 6858 0722 F: +65 6885 0838
E: China: tschina@zebra.com
All other areas:
tsasiapacific@zebra.com
T: +65 6858 0722 F: +65 6885 0838
E: China: tschina@zebra.com
All other areas:
tsasiapacific@zebra.com
T: + 65 6858 0722 F: +65 6885 0838
E: China: tschina@zebra.com
All other areas:
tsasiapacific@zebra.com
E: China: GCmarketing@zebra.com
All other areas:
APACChannelmarketing@zebra.com
T: +65 6858 0722 F: +65 6885 0836
E: China: order-csr@zebra.com
All other areas:
csasiapacific@zebra.com
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Introduction
Notes • ___________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
10
Contacts
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
2
Ro ll holder p ap er lev el s en so rs
J1
Paper entry
Indicators for 24 and 5V
Serial ada pter (o ption )
Power
J8
IEEE-1284C
J10
SW98051B
USB
J13

Product Presentation

The TTP 7020 and TTP 7030 are kiosk printers using direct thermal printing. The print speed is up to 75 mm per second.
The printers have integrated control boards. TTP 7020 communicates with the host computer through an IEEE-1284 bi-directional parallel port, while TTP 7030 uses the USB interface. Both TTP 7020 and TTP 7030 can be equipped with an optional serial port.
Figure 1 • Printer Exterior, Rear View
Printer drivers for Linux and Microsoft Windows™ are available, and the printer is compatible with the Plug and Play standard. It is also possible to address the printer directly from the kiosk software without using drivers.
The loop generating presenter mechanism handles documents of various lengths. It holds the printout until printed, then cuts and presents the complete printout to the customer. The retract­and-retain version of the printer can retract uncollected printouts into a wastebasket inside the kiosk.
A flip-up print module gives the operator access to the paper path, and print head, for maintenance purposes.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Product Presentation
SW98049
Status indicator Feed-forward button
Print mechanism flip-back handle
Paper release lever
Normal operation
Paper released
Printhead lifted
Paper entry
Paper exit
Control board
FRONT
12
Figure 2 • Printer Exterior, Side View
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Indicators

Status Indicator

The status indicator (see Figure 1, Printer Exterior, Rear View , on page 11) has several
functions:
ON constantly Indicates that the printer is operational. Blinks, pauses, blinks Indicates warnings of non-severe error. The number of blinks
Flashes rapidly Indicates severe error. Hold down the feed-forward button and
Product Presentation
Indicators
reflects the warning-code:
2 blinks: Paper low
Note • This signaling is disabled by default. It can be
disabled/enabled by setting parameter p52.
3 blinks: Weekend low
Warning-codes are reset automatically when the condition causing them are removed.
the number of blinks will reflect the error-code.
1 — Presenter jam, paper cannot be ejected / retracted
2 — Cutter cannot return to home position
3 — Out of paper
4 — Printhead lifted
5 — Paper wrapped around platen (under head)
6 — Temp error >60°C
7 — Presenter jam, motor cannot rotate
Fast flashes — Checksum error, firmware
Steady light — Wrong firmware type or target for firmware
loading
13
Error-codes are reset:
• When the conditions causing them are removed.
• When the printer is turned off/on.
• When the blue printhead release arm is lifted and then lowered.

Control Board Indicators

The control board has two power indicators behind the power connector:
• Green indicator constantly ON: 24 V present
• Red indicator constantly ON: 5 V OK (generated on control board)
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Product Presentation
14

Feed-Forward (FF) Button

Feed-Forward (FF) Button
The Feed-Forward Button (FF) will feed, cut, and present a complete page.
Any data in the print buffer will be printed. If the buffer is empty the page will be blank.
In black mark mode, the page will be synchronized with the black mark.
Press and hold
print a self-test printout. See Making a test printout on page 14.
FF while turning on the power, or while opening and closing the printhead to
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
3

Installation

02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Installation
12.0
26.0
16.0
4.2 (4x)
All measurements are in mm. Measurements in parentheses are for TTP 70x0/112.
SW98056
81
91
84.5 (116.5)
128.5 (160.5)
1
.
5
86.0
148.8
104.0
76.0
19.0
Top view
12.0
26.0
16.0
4.2 (4x)
All measurements are in mm. Measurements in parentheses are for TTP 70x0/112.
SW98056
81
91
84.5 (116.5)
128.5 (160.5)
1.
5
86.0
148.8
104.0
76.0
19.0
Top vie w
16

Installation Considerations

Installation Considerations
The TTP 70x0 printer should be installed in some kind of enclosure such as a self-service
kiosk. The illustration below gives an example of a printer-mounting shelf. See also Printer
dimensions on page 110. 3D solid models and outline drawings for CAD are available on
http://www.zebra.com
Figure 3 • Example of a Simple Shelf for Fastening a Standard Printer
.
Additional space is required for paper loading and paper jam removal. Consider mounting the printer on a movable platform so that the printer can be maintained outside the kiosk enclosure.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Electrostatic Discharges, and Earth Currents

Preventing ESD and earth currents from affecting the printer operation requires proper connection of the printer chassis to protective earth through a mounting platform or through a separate earth conductor.

Ambient Light

There is an optical sensor just inside the paper exit at the front of the printer.
To ensure proper printer operation, design the printer enclosure so that it prevents direct sunlight or light from indoor lamps from reaching the sensor through the paper exit.
Installation
Installation Considerations
17
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Installation
18

Connecting To The Computer

Connecting To The Computer
Caution • Using a non-Zebra power supply may cause excessive EMC interferences and
void the EMC certifications of the printer.

Connect the TTP 7020

1. Connect the printer to the parallel port of the computer to be used.
Note • Connector J10 is an IEEE-1284 type C, 36-pole mini Centronics, with clip latches.
See Interface on page 85 for pin assignment of J10.
Important • Use only certified cables marked IEEE-1284. See Ordering numbers
on page 115 for Zebra ordering number. You can also use commercially available cables such
as AMP 158393-3.
Figure 4 • IEEE-1284 Cable with Type A and Type C Connectors

Connect the TTP 7030

1. Connect J13 of the printer to the USB port of the computer or the USB hub to be used.
USB connectors can be recognized by the following symbol:
Note • Connector J13 is a 4-pin USB type B connector. See USB, TTP 7030 on page 877 for
pin assignment.
Note • A suitable cable is available from Zebra, see Ordering numbers on page 115 for
ordering number.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
.
Figure 5 • USB Cable with Type A and Type B Connectors

Using a Serial Adapter, TTP 7020 and TTP 7030

1. Loosen the control board module, see Removal on page 109.
2. Connect the serial adapter to J4 on the control board.
Installation
Connecting To The Computer
19
3. Fasten the control board module, see Removal on page 109.
4. Fasten the serial adapter with the two screws on the right hand side of the printer.
5. Connect a Zebra serial cable, ordering No.10825-000, between the printer and the
computer to be used.
Important • We strongly recommend using the Zebra cable because many incompatible
cables are available.
Figure 6 • Fitting a serial adapter to the printer.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Installation
GND
+24 V
20

Connecting The Power

Connecting The Power
Using the Zebra power supply (see Ordering Numbers on page 131 for ordering number):
1. Make sure the line voltage selector on the power supply is set to your local line voltage
(only PSU 01035-014).
2. Connect the cable from the power supply to J8.
3. Connect the power cable to the line outlet.
4. Apply power to the printer.
If you use another type of power supply unit, connect the voltages as shown in Figure 7.
Important • The protective ground and the 24V ground must be separated in the power
supply to avoid ground loops!
At the printer end of the cable, use an AMP Mate-N-Lok connector housing and two contact­sockets:
Figure 7 • Power Connection
AMP No. 350777-1 AMP No. 350689-1
Table 1 • Current Consumption
Idle 150 mA 150 mA
Standard text printing 2.5 A average 3.5 A average
All black printing 8.5 A 11 A
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Making A Test Printout

1. Is a power button available for the printer?
If… Then…
Ye s a. Remove power from the printer.
b. Hold the feed-forward button depressed while powering ON the printer. c. Keep the button depressed until printing starts.
This produces a printout showing the firmware program version and date, control board revision number and serial number, name of loaded fonts and logotypes, and the parameter settings.
d. Each successive press of the button will produce a test printout. e. Switch the printer OFF and ON again to exit self-test mode.
No
a. Lift the printhead. b. Press and hold the FF-button while lowering the printhead, and keep it
pressed until after the auto-load is completed.
c. Release the button.
A self-test printout will be printed.
Note • this feature was introduced in firmware version 2.44b.
Installation
Making A Test Printout
21
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Installation
22

Installing A Printer Driver

Installing A Printer Driver
Printer drivers for Linux and most versions of Microsoft Windows™, are available on the
Zebra web site http://www.zebra.com
number. Please follow the installation instructions that accompany the drivers.

Status Monitoring through Windows

Status can be fetched from a language monitor (70x0MON.DLL) that is installed into Windows with the driver. Documentation of the language monitor is available on the drivers’ page on the Zebra web site.
If you want to monitor status through the language monitor, make sure that the printer is selected as default printer, and that bi-directional support is enabled in the port section of the driver settings.
Note • On TTP 7020, parameter p5 should be set to 1 to make status replies possible when
paper is out. See Parallel Port Setup on page 80.
. See Ordering Numbers on page 131 for ordering

Driver Settings

The looks of the dialogue boxes vary between driver versions, but essentially the same settings can be made.
You start with the Printing Preferences window. Here you find the portrait/landscape setting, and an advanced button.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Figure 8 • Setup Window
Installation
Installing A Printer Driver
23
The advanced button contains the Zebra specific settings:
Table 2 • Advanced Button Settings
Category Settings Notes
Paper/Output Paper size
Roll paper 58 mm / 80 mm /
112 mm
Copy Count
1 to 9999
Document Options Advanced printing features
Enabled
Disabled
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Installation
24
Installing A Printer Driver
Table 2 • Advanced Button Settings (Continued)
Category Settings Notes
Printer Features Page Type:
Page based
Roll based
Printing Speed
1 to 19
Paper Sensitivity
1 to 15
Retract Setting
Eject
Eject after x sec.
Retract
Retract after x sec.
Paper Cut Mode
No Cut
Cut per document
Cut per page
Clear Presenter After Print
On
Off
Page based gives the page size set in the Paper Size setting (in server preferences, forms). Roll based saves paper by cutting after the last print on the page.
Only applicable on retract and retain versions of the printer. Retract page in presenter when a new page is printed, and retract uncollected pages after xx seconds.
“Cut per page” give three pages when a 3-page document is printed, while “Cut per document” give one long page with all information printed on it.
Hold Page After Print
On
Off
ON means that the following page is a multi­page document and is not printed until the customer takes the already printed page.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Table 2 • Advanced Button Settings (Continued)
Category Settings Notes
Installation
Installing A Printer Driver
25
Advanced Features Paper advance
0-100 mm (14 mm)
Paper Eject
0-255 mm (30 mm)
Paper reverse
0-100 mm (0 mm)
Black Mark Check
False
True
Settings
Minimum black mark:
0-100 mm (3 mm)
Maximum black mark:
0-100 mm (16 mm)
Cut position:
0-100 mm (25 mm)
Paper Advance is advanced before cut, that is, bottom margin.
This eject is roughly in 2 mm-steps. See the description of the eject-command (run presenter) on page.
Paper reverse is reverse before print, and reduces the 190 mm top margin with the value entered here. So a setting of 10 gives 190 – 10 = 10 mm top margin.
Important • Avoid settings above 10.
When black marks are used to synchronize cut, set page type to roll based to avoid conflicting page definitions.
Scaling
10-400% (100%)
For example, scaling to 99% can be used when you need to print forms with fixed page length that otherwise would not fit on a page.
Contrast/Brightness
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Installation
SENSOR
+5V
GND
OUT
SENSOR
+5V
GND
OUT
25.7
20-60 mm
Optical weekend sensor. Adjustment range equals approximately 30 to 150 m of paper
Optical paper-near-end sensor. Activated when a couple of meters of paper remain.
SW98052
Lock screw
26

Paper Level Sensors

Paper Level Sensors
The printer has inputs for one paper-near-end sensor, and one weekend sensor.
The paper-near-end sensor alerts the system when a couple of meters of paper remain on the roll. The purpose of this sensor is to get an early alert so that you can replace the paper roll in time in remotely located kiosks.
Figure 9 • Sensors on 200 mm Roll Holder
The weekend sensor should alert when the remaining paper does not last over a weekend. A reason to use this sensor is that it is more expensive to get a service technician out on a weekend or holiday than it is to replace the roll before it is totally empty.
The Zebra 110 mm and 150 mm paper roll holders are equipped with paper-near-end sensors, while the 200 mm roll holders have both paper-near-end and weekend sensors.
When installing the Zebra roll holder just connect the cable from the roll holder to connector
J1 at the back of the printer. See Figure 1, Printer Exterior, Rear View , on page 11. If you use custom designed roll holders, connect the sensors according to Figure 10, Paper-
near-end Sensor Connection, on page 27.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Figure 10 • Paper-near-end Sensor Connection
2 1
4 3
6 5
M
o
l
e
x
4
3
0
2
5
-
0
6
0
0
M
o
l
e
x
4
3
0
3
0
-
0
0
8
Paper-near­end sensor
Sensor levels: <0.7 V with paper >3 V without paper
5
4
6
J1
Sharp GP2S40
Near end
Roll holder shaft
Weekend sensor
Gray
Gray
Blue
Blue
2
1
3
PL SENSE
Inside printer
WE SENSE
+5 V
S
harp GP2S40
SW97081E
2
00
200 47 k
47 k
Green
Green
Installation
Paper Level Sensors
27
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Installation
Notes • ___________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
28
Paper Level Sensors
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
4

Operation

02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Operation
30

Installing a Paper Roll

Installing a Paper Roll
1. Turn the new paper roll as shown. The paper should be inserted into the printer with the
temperature-sensitive side up.
Figure 11 • Paper Roll Orientation
2. Tear off a full turn of the paper (approximately 0.5 m) from the new paper roll.
Caution • This is important since the outer end of the paper is usually fixed to the roll with
some type of glue or self-adhesive substance that might otherwise cause paper jam or even print head damage.
Figure 12 • Tear off 0.5 m from the new paper rol
l
3. Make sure the printer is turned ON.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Operation
90º
Thermal side (top)
70º
Thermal side (top)
Cut off at a 70º-90º angle
Installing a Paper Roll
4. Cut the paper in a suitable angle. See Figure 13.
Figure 13 • Suitable paper edge for auto load
Note • The paper sensor is at the same side as the blue paper release lever (where the arrow
points in Figure 14, Insert the New Paper, on page 31). If the paper is cut in a direction
opposite to that as shown in the figure above, the sensor will not detect the paper.
5. Insert the paper through the paper entry opening at the back of the printer.
The printer will now feed, cut and eject a printout, and then automatically go on-line.
Note • In high temperature and high humidity, the paper may lose its stiffness resulting in
paper jam at automatic paper loading. In such cases, load paper manually.
31
Figure 14 • Insert the New Paper
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Operation
32

Clearing Paper Jams

Clearing Paper Jams
Should a paper jam occur, follow the procedure below:
1. Tear off the paper close to the paper roll and flip back the print module.
Figure 15 • Flip Open the Print Module
2. Lift the print head by pushing the paper release lever upwards.
3. Remove any paper trash by gently pulling the paper up and out of the print module.
Caution • NEVER pull paper backwards through the print mechanism.
Figure 16 • Remove paper trash
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
5

Programming

There are two completely different ways of setting up the printout: Text oriented and driver oriented style.
Text oriented The printout can be seen as the page of a simple word processor. You
send text and graphics to the printer, which prints the information in the same sequence as the data is received. Design features are limited to the font stored in the flash PROM of the printer.
It is possible to select a fixed page length. If you do that, text and logotypes can also be printed in landscape orientation.
There are two text cursors, one for portrait, and one for landscape. The start positions of the cursors are the upper left corner for the portrait
cursor, and the upper left corner for the landscape cursor, see Ticket
Styles on page 34. You can switch between these cursors at any time; the
cursor will retain its last position on the ticket.
Driver oriented All TTP 70x0 printers can print documents through a driver. When a
Windows driver is used, you can use any Windows program to design the ticket with text, graphics, bar codes or whatever you want to print and in any orientation you want.
The Windows driver issues all the necessary commands. By setting up printing preferences in the driver you select how the printer should cut and present the printout.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
Sw98073
Text can be printed in
any orientation, font, and size.
Graphics can be rotated, color images converted to gray scale, etc.
Lines can be added.
Tex t
text
text text text text text text text text
text
1234567890128
Bar codes can be added.
Te xt te x t
text text
text text
text text
text text
Text text text text text text text text text text
Text receipt
Driver (Windows) receipt
Text text text text text text text text text text
text text text text text text text text text text
text text text
text text text text text text text text text text
34
Figure 17 • Ticket Styles
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

How The Commands Are Described

ESC ! n1
1B 21 n1 Hex
27 33 n1 Dec
Select font

Mnemonic

Hex representation of command
Decimal representation of command
Purpose of command
SW 03002
Mnemonic
Is the popular command name that should be easy to remember.
Hex
Programming
How The Commands Are Described
35
Give the command in hex representation

Decimal

Give the command in decimal representation

Values

n1, n2, etc. represents values that you set with the commands. What you should enter here depends on what you want the command to do.

Examples

Command examples are formatted in Courier and typed in the same way as used in the Zebra TTP editor:
<ESC>&P<001><019>
Where and greater-than characters, for example <015>, means 15 decimal (hex F). When the numbers indicate a hex value, h is appended to the number.
<ESC> means the escape character 27 decimal (hex 1B). Numbers between less-than
Example • <065>, <65d>, <41h> and A are four different ways of expressing the
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
character A.
Programming
36

Summary Of Control Codes & Escape Sequences

Summary Of Control Codes & Escape Sequences
Table 3 • Control Codes and Escape Sequences in Alphabetical Order
Command Hex Decimal Function Page
BS 08 8 Backspace page 43 CAN 18 24 Cancel page 43 CR 0D 13 Carriage return page 43 EM 19 n1 25 n1 Enforced Clear Presenter page 56 ENQ 05 5 Clear Presenter page 57 ESC ACK n1 1B 06 n1 27 6 n1 Acknowledge Marker page 68 ESC ! n1 1B 21 n1 27 33 n1 Select Font page 40 ESC # 1B 23 n1 27 35 n1 Calibrate Blackmark Sensor page 38 ESC & 000 1B 26 00 27 38 0 Load Font page 59 ESC & 001 1B 26 01 27 38 1 Load Logotype page 58 ESC & 004 1B 26 04 27 38 4 Store current Parameter Values page 58 ESC & C 1B 26 43 27 38 67 Erase all Fonts page 59 ESC & D 1B 26 44 27 38 68 Erase Fonts 4 to 7 page 59 ESC & F 1B 26 46 n1 27 38 70 n1 Recall Parameter Profile page 59 ESC & L 1B 26 4C +27 38 76 Erase all Logotypes page 58 ESC & P
n1...n2 ESC ? 1B 3F 27 63 Reset (full) page 58 ESC @ 1B 40 27 64 Reset (initialize) page 58 ESC b
n1...n5 ESC B n1 1B 42 n1 27 66 n1 Bold page 40 ESC B C 1B 42 43 n1 27 66 67 n1 Barcode Clear page 48 ESC B S
n1...n11 ESC BW 1B 42 57 n1 27 66 87 n1 Barcode Write page 48 ESC d n1 1B 64 n1 27 100 n1 Make n Linefeeds page 44 ESC ENQ 001 1B 05 01 27 5 1 Status Enquiry page 61 ESC ENQ 002 1B 05 02 27 5 2 Paper-near-end Enquiry page 62
1B 26 50 n1...n2 27 38 80 n1...n2 Set Parameter Value page 60
1B 62 n1...n5 27 98 n1...n5 Print Bitmap at XY-position page 50
1B 42 53 n1...n11 27 66 83 n1...n11 Barcode field Specify page 47
ESC ENQ 004 1B 05 04 27 5 4 Fonts and Logotype Enquiry page 63 ESC ENQ 006 1B 05 06 27 5 6 Status Report page 64 ESC ENQ 007 1B 05 07 27 5 7 Firmware-version Enquiry page 65 ESC ENQ 009 1B 05 09 27 5 9 Serial-number Enquiry page 65 ESC ENQ 010 1B 05 0A 27 5 10 Control board revision Enquiry page 65
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Programming
Summary Of Control Codes & Escape Sequences
Table 3 • Control Codes and Escape Sequences in Alphabetical Order
Command Hex Decimal Function Page
ESC ENQ 011 1B 05 0B 27 5 11 Head temperature Enquiry page 66 ESC ENQ 012 1B 05 0C 27 5 12 Bootware version Enquiry page 66 ESC ENQ c 1B 05 63 27 5 99 Device ID Enquiry page 67
37
ESC ENQ P
1B 05 50 n1 27 5 80 n1 Parameter-setting data Enquiry page 67
n1 ESC FF n1 1B 0C n1 27 12 n1 Eject (run presenter) page 56 ESC g
1B 67 n1...n5 27 103 n1...n5 Print Logotype page 52
n1...n5 ESC h n1 1B 68 n1 27 104 n1 Text Height page 41 ESC i n1 1B 69 n1 27 105 n1 Italics page 40 ESC j n1 1B 6A n1 27 106 n1 Paper Reverse page 54 ESC J n1 1B 4A n1 27 74 n1 Paper Advance page 53 ESC L n1 1B 4E n1 27 78 n1 Print Logotype at Current Position page 52 ESC N n1 1B 4E n1 27 78 n1 Align Text page 39 ESC NUL 1B 00 27 0 Load Firmware page 60 ESC o n1 1B 6F n1 27 111 n1 Text and Logotype Orientation page 39 ESC p 1B 70 27 112 Print page 53 ESC P n1 1B 50 n1 27 80 n1 Print Self-test Printout page 53 ESC r
1B 72 n1...n9 27 114 n1...n9 Print Ruler Line page 51
n1...n9 ESC RS 1B 1E 27 30 Cut only, no Eject page 55 ESC s n1 1B 73 n1 27 115 n1 Send dot-line, 203 dpi page 50 ESC t
1B 74 n1...n5 27 116 n1...n5 Print Text at XY page 42
n1...n5 ESC T n1 1B 54 n1 27 84 n1 Reversed/Inversed Text page 41 ESC u n1 1B 75 n1 27 117 n1 Underline page 41 ESC w n1 1B 77 n1 27 119 n1 Text Width page 42 ESC Z 1B 5A 27 90 Go to next Top of Form page 38 FF 0C 12 Form Feed page 44 HT 09 9 Horizontal Tabulation page 44 LF 0A 10 Linefeed page 43 RS 1E 30 Cut and Eject page 55
Note • In all responses from the printer the most significant byte (MSB) is transmitted first.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
38

Software Command Syntax

Software Command Syntax
The commands in this section are grouped after what they do, and these groups are sorted in a theoretical usage sequence. It starts with commands for specifying the printed page — through text-and-graphics commands — to cut-and-present commands. System and status commands are presented at the end.
Page Setup
Page setup is now done with parameters instead of dedicated commands. This makes it possible to store the setup in the non-volatile parameter memory. To minimize doubling of functions the page setup commands have been removed from this manual. The parameters to
use are described under Printable Area on page 90.

Black Mark (Top-Of-Form) Commands

See also Aligning Preprint And Thermal Print on page 91.
ESC #
1B 23 n1 Hex 27 35 n1 decimal
ESC Z
1B 5A Hex
27 90 Decimal
Calibrate Blackmark Sensor
Looks for a black mark, measures the contrast of the mark and sets parameter n51 to a suitable value for the detected voltage, then reverses to the start position.
To make the calibration permanent, send ESC & 4h, store parameter values.
Important • Be sure to first set up the length of the black mark and the distance between two
black marks in the parameter setup.
ESC # is available in hardware revision B or higher.
Go to next Top of Form
In black mark mode,
an ESC Z starts looking for a black mark at the current position and
continues for one page length. If no black mark is found, bit 3 in status byte 1 is set to 1 and the printer will report NAK 0A on the next status query.
When black mark mode is disabled, ESC Z will perform a form feed without cut (disregarding the setting of parameter 34).
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Text Commands

Text received by the printer is printed with the currently selected font and font attributes. Text exceeding the page width is wrapped with the line spacing selected.
Programming
Text Commands
39
ESC o n1
1B 6F n1 hex
27 111 n1 decimal
ESC N n1
1B 4E n1 hex
27 78 n1 decimal
Text and Logotype Orientation
Changes the orientation of text and logotypes.
n = 0 Gives portrait orientation
n = 1 Gives landscape orientation
Portrait and landscape can be mixed on the same printout. There are two cursors, one for portrait and one for landscape. The cursor always starts at the top left corner of the document. Looking at the paper when it exits the printer, the portrait cursor is at the top left corner of the printout, moving to the right as text is typed, while the landscape cursor is at the top right corner, moving downwards.
Note • Landscape orientation can only be used with fixed document mode.
Align Text
Changes the alignment of text and logotypes.
ESC N 0= Left ESC N 1 = Center ESC N 2 = Right
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
40
Text Commands
ESC ! n1
1B 21 n1 hex
27 33 n1 decimal
Select Font
This command selects one of eight fonts. The font design depends on which fonts have been
1
loaded
into the printer. Make a test printout to see which fonts are available in your printer.
Table 4 • Font selection commands
ESC ! 0 selects normal font (font 0) ESC ! 4 selects font 4 ESC ! 1 selects font 1 ESC ! 5 selects font 5 ESC ! 2 selects font 2 ESC ! 6 selects font 6 ESC ! 3 selects font 3 ESC ! 7 selects font 7
Lines, too long to be printed in the selected font, are automatically wrapped around.
Different fonts can be used on the same line.
Selecting an empty or invalid font location, will set bit 4 of byte 1 in the status enquiry
response to ”1". See Parameter-setting data Enquiry on page 67.
Note • If more than 256 characters are sent to the printer before an LF, the first part of the
buffer contents is printed-out automatically. The text is formatted according to the already received formatting commands.
ESC B n1
1B 42 n1 Hex
27 66 n1 decimal
ESC i n1
1B 69 n1 Hex
27 105 n1 decimal
BoldNormal Bold
n = 0 Turns OFF bold (Normal)
n = 1 Turns ON bold
Bold is designed for normal character width and shows less and less as the width increases.
ItalicsNormal Italics
n = 0 Turns OFF Italics (Normal)
n = 1 Turns ON Italics
1. For font loading, see “Font loading” page .
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Programming
Text Commands
41
ESC T n1
1B 54 n1 Hex
27 84 n1 decimal
ESC u n1
1B 75 n1 hex
27 117 n1 decimal
Reversed/Inversed Text
Selects normal or reversed print.
n = 0 Gives normal print, black on white
n = 1 Gives reversed print, white on black
Single words, characters, or complete text lines can be reversed.
Note • Reverse text and underline XOR's the background with the foreground. This means
that the order in which the commands are issued affect the printout if one text overlaps another.
Underline
n = 0 Turns OFF underline
n = 1 Turns ON a 1 pixel wide underline
n = 2 Turns ON a 2 pixel wide underline, etc. up to n=7.
ESC h n1
1B 68 n1 hex
27 104 n1 decimal
Characters, single words, or complete text lines can be underlined.
Text Height
Applicable n values are 000 — 015.
n = 1 Increases the character height to 2 times the basic character height.
n = 2 Increases the character height to 3 times the basic character height etc.
n = 0 Resets the character height to the basic character height.
In combination with variable character width (ESC w n), give highly legible characters depending on the font to which the command has been applied.
Different fonts and heights can be mixed on the same print line.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
42
Text Commands
ESC w n1
1B 77 n1 hex
27 119 n1 decimal
Applicable n values are 000 — 007.
n = 1 Increases the character width to 2 times the basic character width.
n = 2 Increases the character width to 3 times the basic character width etc.
n = 0 Resets the character width to the basic character width.
In combination with variable character height (ESC h n), give highly legible characters depending on the font to which the command has been applied.
Different fonts and widths can be mixed on the same print line.
ESC t n1...n5 data
1B 74 n1...n5 data hex
27 116 n1...n5 data decimal
Prints a text string at the specified X-Y position. The string will use the formatting set by font, reversed, width, height, bold, italics, and underline commands.
n1n2 Two byte definition of the X print position (in pixels).
Text Width
Print Text at XY
n3n4 Two byte definition of the Y print position (in pixels).
n5 The number of characters in the string.
n5 The number of characters in the string. To avoid having to count
characters you can set n5 to 00h (null) and then terminate the text string with null.
data The text string. If text string length is specified with n5, the length must
be exactly the number of characters specified; otherwise the printer will stop, waiting for more characters.
After the string has been printed, the cursor will return to the position it had before the string command was issued.
Note • The ESC t command clears any text preceding it on the same line. Commands will
not be cleared.
Note • The Y print-position only works if fixed page length is used. Start a page by
specifying page length for example <ESC>C<004><160>
, then turn off auto page length
with <ESC>c<000>.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
BS
08 Hex
8 Decimal
Programming
Text Commands
Backspace
Moves the print-position one step to the left. Backspace can be used to combine characters. For instance to print a Ø, send text commands O BS / to the printer, and the slash will overprint the O.
Only one backspace can be used at a time. Excessive backspaces will be ignored.
43
CAN
18 hex
CR
0D hex
13 decimal
LF
0A hex
10 decimal
Cancel
Cancels text and attributes sent before the CAN command on the same line.
Commands, are not cancelled.
Carriage Return
By default, carriage return is ignored.
By changing the default settings, you can:
1. Interpret is as CR which returns print position to beginning of line without line feed.
2. Interpret CR as CR/LF which inserts line space as specified by the line spacing setting
(see parameter p13), and returns the print position to beginning of the line.
See “Carriage return and line feed behavior” under CR/LF behavior on page 83.
Linefeed
Linefeed is interpreted as CR/LF by default. This inserts line spaces as specified by the line spacing setting (see parameter p13), and returns the print position to beginning of the line. LF also converts text from the input buffer to pixel lines and stores them in the line buffer, ready to be printed.
By changing the default settings, you can:
1. Interpret LF as Linefeed. This inserts line space as specified by the line spacing setting (see
parameter 13 on page 82), without returning the print position to the beginning of the line.
2. Ignore LF.
See CR/LF behavior on page 83.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
44
Text Commands
ESC d n1
1B 64 n1 hex
27 100 n1 decimal
FF
0C hex
12 decimal
Make n Linefeeds
Executes the number of linefeeds as defined by variable n1. The length of each line feed is
determined by the default value for selected font (see parameter 13 on page 82).
The print position is returned to the beginning of the line. Any text on the line is lost. To avoid losing text, send an LF before sending ESC d n.
Form Feed
Prints data from the input buffer and feeds the paper to the top of the next page.
In fixed document length (FORM-mode) this command prints data in the input buffer and feeds the paper to the top of next page.
In variable document length mode FF advances to the minimum page length. If the printout already is longer than the minimum page length, FF does not feed the paper at all.
In black-mark mode, the FF command looks for a black mark, see ESC Z If "Auto cut" is set to 1 (see Auto cut after FF on page 83), FF effect form-feed, cut, and eject.
HT
09 hex
9 decimal
Note • Use parameter p37 and p38 to define page length.
Horizontal Tabulation
Shifts the current print position to the next Tab position.
Set tab positions with parameters p15 – p30.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Barcode Commands

TTP 7020 and TTP 7030 can print EAN 8, EAN 13, EAN128, UPC, 2-of-5 Interleaved, ISBN, Code39 and Code128 barcodes with it’s standard firmware. A special firmware is available
where the barcodes are replaced with the PDF 417 2D barcode. See Firmwar e on page 113,
and PDF417 command.
Example • The example below will print an EAN barcode with height = 10 mm, 15 mm in
from the right margin.
<ESC>BS<00h><00h><78h><00h> <00h><0Ch><00h><50h><00h><02h> <00h>
<ESC>BW<00h>733104000099<00h> <LF> <RS>
Code 128 / EAN128
Programming
Barcode Commands
45
The following codes select function codes in Code 128:
Name Dec Hex
FNC1 193 C1h
FNC2 194 C2h
FNC3 195 C3h
FNC4 196 C4h
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
46
Barcode Commands
Figure 18 • Samples of barcodes
.
Starting the data string starts with FNC1 generates an EAN128 code.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Programming
Barcode Commands
47
ESC B S n1...n11
1B 42 53 n1...n11 hex 27 66 83 n1...n11 decimal
Bar codes can only be printed in portrait mode unless Fixed Document Mode is selected with parameter n36.
The command reserves an information field as a bar code field. The command also identifies the type, number of digits, and the configuration of bars to be placed in the bar code field.
n1 Specifies the bar code field No. (0—15). Bar code fields may be
n2n3 Sets the X coordinate of the bar code field origin (n2 is the higher-order
n4n5 Must be specified but the values are discarded by the printer.
n6 Specifies the number of bar code digits, but is ignored by the printer.
n7n8 Specifies the height of the bars.
n9 Specifies the type of bar code. The following types are supported.
n9 = 0 EAN 8 or 13 (auto detect). The printer calculates the necessary check
Barcode field Specify
specified in any order.
and n3 the lower-order byte).
n2 and n3 must be 1-byte hexadecimal or decimal numbers. The values must not place the bar code outside the total pixel count that can be handled by the printer.
digit.
n9 = 1 UPC
b9 = 2 2/5 Interleaved (even number of characters must be sent)
n9 = 3 ISBN
n9 = 4 Code128 (Start data string with C2h to encode EAN128)
n9 = 6 Code39
n10 Specifies the thickness of the narrow bar 0=1 pixel, 1=2 pixel, and so on.
n11 Specifies the wide-bar-to-narrow-bar ratio. Only used in Code 39 and 2-
of-5 interleaved where different ratios are allowed
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
48
Barcode Commands
ESC BW n1 nx
1B 42 57 n1 nx Hex
027 066 087 n1 nx Decimal
Writes data to the bar code field reserved by the ESC BS command.
n1 Specifies the field No. Range 0 to 15. Fields can be specified in any order
n2 . . . nx Specifies bar code data bytes.
NUL must be placed at the end of the bar code data.
Any invalid bar code character terminates the command, and print <Invalid barcode> on the printout.
Example • This example will print one barcode with height = 10 mm and moved 10 mm to
the right.
<ESC>BS<h00><h00><h32><h00><h00><h0C><h00><h50><h00><h02><h00>«»
<ESC>BW<h00>733104000099<h00>«»
<RS>«»
Barcode Write
but other values than 0 to 15 are ignored.
To create a bar code add-on, insert a space character and then the data for the add-on. Two of five characters are allowed of the add-on.
ESC B C
1B 42 43 n1 hex 27 66 67 n1 decimal
Barcode Clear
Clears the bar code field reserved by command ESC BS.
n Specifies which bar code field to clear. The range is 0 to 15. The fields
may be cleared in any order.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Programming
If <rows>, <cols> are 0 the printer will automatically set appropriate values.
Barcode Commands
49
ESC | n1 nx
1B 7C n1 nx Hex
027 124 n1 nx Decimal
*. PDF 417 requires special firmware in the printer. See “Firmware” on page
Barcode print (PDF 417)*
This command positions and prints a PDF 417 2D barcode.
<ESC> "|" <type=5> <x_msb> <x_lsb> <y_msb> <y_lsb> <rows> <cols> <errLevel> <dotHeight> <scale> <len_msb> <len_lsb> <data>
n1 Specifies the type of bar code. The following types are supported:
n1 = 5 PDF417
n2n3 <x_msb> <x_lsb> Sets the X-coordinate of the bar code field origin.
n4n5 <y_msb> <y_lsb> Sets the Y-coordinate of the bar code field origin. The
Y-coordinate are discarded in variable document mode.
n6 Rows
n7
Columns
n8 Error level, 0=auto, 1=Level0, 2=Level1, etc.
n9 Dot Height, sets mow many pixel lines each row consists of.
n10 Scale
n11n12 Len. If set to 00h, <nul> indicates the end of the data block <data>. If
<len is set to other values the value indicates the no of bytes in <data>
<data> data to be encoded
Example • To print Zebra as a PDF 417 barcode, send the following to the printer:
<ESC><124><005><000><000><000><000><000><000><000><003><003><000>< 000>Zebra<000>
The barcode will look like this:
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
50

Graphics Commands

Graphics Commands
In 80 mm printers, the line length is 72 bytes and in 112 mm printers it is 104 bytes.
ESC b n1...n5 data
1B 62 n1...n5 Data hex 27 98 n1...n5 Data decimal
Prints a black & white Windows bitmap (BMP-file) at the specified X-Y position. The bit-map must be a complete uncompressed Windows bitmap where the data starts with BM. Max size is limited to the free RAM printed on the self-test printout.
n1 Always 0
n2n3 Two byte definition of the X print position (in pixels).
n4n5 Two byte definition of the Y print position (in pixels).
data Bitmap data.
After the bitmap has been printed, the cursor will return to the X-position that it had before the bitmap command was issued.
Selecting horizontal mode (with ESC o 0h) prints the image in portrait orientation, while selecting the vertical mode (with ESC o 1h) prints the image in landscape orientation.
Note • The Y print-position and horizontal/vertical orientation only works if fixed page
length is used.
Print Bitmap at XY-position
.
ESC s n1 data
1B 73 n1 Data Hex
27 115 n1 Data Decimal
Send dot-line, 203 dpi
Sends one line of dot data. This command is used to build images, one dot line at a time by the printer driver and should not be combined with text commands.
n Determines the number of bytes. Range: 1-255.
<data> 1 – x bytes, where x is the printhead width in bytes. The printhead width
is in the spec. of the printer.
Example • 80 mm printers use 72 bytes Example • 112 mm printers use 104 bytes
Caution • Always send the No. of bytes that you specify!
If more than the specified No. of bytes are received, the rest of the bytes will be interpreted as text or commands. This can cause any kind of problems in the printer as graphics data can contain any hex value. If you specify less data then the actual printhead width, the printer will fill the rest of the dot line with spaces.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Programming
<ESC>r<000><000><000><000><001><193><000><024><003>
X start Y start
X stop Y stop
Fill
0=black
3=checkered
SW99006
Graphics Commands
51
ESC r n1...n9
1B 72 n1...n9 hex
27 114 n1...n9 decimal
Print Ruler Line
Prints a ruler line across the paper.
A ruler line is normally used to divide the printout into logical parts to make it easier to read. A ruler line is actually an area defined by a start X-Y position and a stop X-Y position. This area is filled with black or a checkered pattern.
n1n2 Two byte definition of the X start position
n3n4 Two byte definition of the Y start position
n5n6 Two byte definition of the X stop position (must be larger than n1n2)
n7n8 Two byte definition of the Y stop position (must be larger than n3n4)
n9 Fill pattern, 0=black, 3= Checkered
Figure 19 • Printout with checkered ruler line
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
52
Graphics Commands
ESC g n1...n5
1B 67 n1...n5 hex
27 103 n1...n5 decimal
ESC L n1
1B 4C n1 Hex
27 76 n1 Decimal
Print Logotype
Prints a customized logotype
2
stored in the flash PROM. See also Logotypes on page 71.
n1 One-byte logotype identification No. (0—15)
n2n3 Two-byte definition of desired print position in X-direction measured
from left-hand edge of the page (see Printable Area on page 90 regarding
definition of “page”). X-direction is perpendicular to the paper transport direction.
n4n5 Two-byte definition of desired print position in Y-direction. In variable
document mode the Y-position is ignored. The resolution is 0.125mm in both X and Y directions
Print Logotype at Current Position
Prints a customized logotype stored in the flash PROM at the position of the cursor. The bottom line of the logotype is positioned at the baseline of the text on the line. If the logotype is higher than the text, the line spacing is increased.
See also Logotypes on page 71.
n One-byte logotype identification No. (0—15)
2. For logotype loading, see ESC & 001 on page 58.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Print Commands

Programming
Print Commands
53
ESC p
1B 70 Hex
27 112 Decimal
ESC P n1
1B 50 n1 Hex
27 80 n1 decimal
Print
This command makes the printer print the contents of the line buffer. Text is converted from text to pixel lines and stored in the line buffer when an LF is received. If the line buffer is empty when ESC p is received, nothing is printed.
Text to be printed <LF><ESC>p prints "Text to be printed" on the paper.
Printout is effected automatically at:
Cut (RS and ESC RS) Form feed (FF) Clear presenter (ENQ) Run presenter (ESC FF n)
Print buffer full
Press on FF-button
Print Self-test Printout
This command makes the printer generate a self-test page based on the current parameter settings and print that page. The parameter values printed are the ones currently being used. They can differ from Power-ON default values if for example a printout from Windows has been done before ESC P is sent to the printer. To make a self test printout with the Power-ON default settings, power up the printer with the FF button pressed.
n = 0 Gives standard self-test printout.
n = 1 Gives a character set printout using the font selected by parameter p14.
ESC J n1
1B 4A n1 hex
27 74 n1 decimal
*. DO NOT use ESC J n, ESC j n, or ESC Q n in fixed page mode
Paper Advance*
The value n represents the number of dot lines the paper is to be transported forwards. Range: 1–255.
A dot line is 0.125 mm, and 255 dot lines equal approximately 32 mm.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
54
Print Commands
ESC j n1
1B 6A n1 hex
27 106 n1 decimal
Paper Reverse
1
The value n represents the number of dot lines the paper is to be transported backwards. Range: 1–255.
Caution • Paper reverse may cause problems when used at the top of the page. Doing so
may cause paper jam when feeding forward again. You may also loose grip of the paper. NEVER reverse more than 10 mm at top of page!
A dot line is 0.125 mm, and 255 dot lines equal approximately 32 mm.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Cut And Present Commands

Programming
Cut And Present Commands
55
RS
1E Hex
30 Decimal
ESC RS
1B 1E Hex
27 30 Decimal
Cut and Eject
Effects a paper cut-off and an eject through the presenter module. The RS command automatically gives the eject length of 50 mm in addition to the factor stored in parameter p47.
If the printout length is too short, paper-feed is added until the minimum printout length (set by parameters 37 and 38) is reached, before execution of the Cut command.
Note • The cut position is 17 mm before the print line. This makes the last 5 lines on a page
end up in the beginning of the next page. To get the cut after the text, Please set parameter 49 to auto.
You can also use <RS> together with the paper advance command:
<ESC>J<160><RS>
Gives a cut & eject after
the last text line.
Cut only, no Eject
Effects paper cut-off only.
Eject can be effected with the ESC FF n command (see Eject (run presenter) on page 56).
To avoid thin strips of paper in the printer, multiple cut commands without paper feed in­between will not be performed. If the printout length is too short, paper-feed is added until the minimum printout length is reached, before execution of the cut command.
See Also Note on cut position for the <RS> command above.
Note • Use the cut command if you want full control over the printer from your system. But
remember that you also must add commands to feed to the correct cut position and eject the paper so that the customer can get hold of it.
Note • Top margin settings that moves the paper counts as paper feed.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
56
Cut And Present Commands
ESC FF n1
1B 0C n1 hex
27 12 n1 decimal
Eject (run presenter)
ESC FF ejects the document through the presenter module. Variable n represents the number of eject-steps.
One step is approximately 2 mm
The maximum number of steps is 255
Normally, this command is placed after a cut command (ESC RS) to partially eject the printout to the customer. Set the number of eject steps so that a good portion of the printout is retained in the presenter module, avoiding that the printout drops to the floor.
Another use of the command is to eject a part of a long document without preceding cut. The reason to do this is to limit the size of the loop build-up in the presenter.
Note • The loop is limited to the value set by ESC f n to avoid paper jam. The default
setting of n=18, gives a loop of just above 0.5 m. When this length has been looped, the printer presents that part of the printout. Then, without cutting the paper, it continues to print the rest of the printout.
Figure 20 • Approximate Settings For Different Eject
Feed, cm n1 Feed, cm n1 Feed, cm n1 Feed, cm n1 Feed, cm n1
1 6 6 36115516692182 2 15 7 40 12 58 17 71 22 85 3 21 8 43 13 62 18 73 23 88 4 27 9 48 14 65 19 76 24 92 5 331052156720792595
EM
19 n1 Hex 25 n1 Decimal
Enforced Clear Presenter
Same function as ENQ but overrides the Retract and Retain parameter (p45) with another presenter behavior. The function of n can be 0 to 255 0-99 ejects while 100-255 retracts (see the description of parameter 45). The command will clear the presenter immediately (with printing synchronization).
<EM><000> Ejects the presented page <EM><100> Retracts the presented page
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Programming
Cut And Present Commands
57
ENQ
05 Hex
5 Decimal
Clear Presenter
Clear the paper-path in the presenter form printouts. For example, to eject a document not removed during the previous print/cut/eject operation. Parameter No. 45 controls how the presenter is cleared.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
58

System Related Commands

System Related Commands
ESC ?
1B 3F Hex 27 63 Decimal
ESC @
1B 40 Hex 27 64 Decimal
ESC & 001
1B 26 01 Hex
27 38 1 decimal
Reset (full)
Restarts the printer with a complete reset. This is the same as power off/on.
Reset (initialize)
Terminates the processing and initializes the control board. The control board is reset to default-values (same as after power ON). Do not use this command as part of a print data command string.
Load Logotype
Stores a logotype bitmap in the flash PROM. The logotype is printed with the ESC g and ESC L commands, see ESC L n1 on page 52 and ESC g n1...n5 on page 52. Also see Logotypes
on page 71.
Important • If the logo width exceeds the print width, the operation is aborted.
ESC & L
1B 26 4C Hex
27 38 76 decimal
ESC & 004
1B 26 04 Hex
27 38 4 decimal
Erase all Logotypes
Erases all logotypes stored in the flash PROM.
Note • This command is only executed if at least one logotype has been loaded.
Store current Parameter Values
Stores the current setting of all parameter values in the setting memory. These parameters are then used as default parameters. Storing takes approximately 4 seconds. The printer activates the presenter motor temporarily to indicate that storing is complete.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Programming
System Related Commands
59
ESC & 000
1B 26 00 hex
27 38 0 decimal
ESC & C
1B 26 43 Hex
27 38 67 decimal
Load Font
This command is used to load a font to the printer flash PROM. The font is placed in the first free address position in the order of load sequence.
A Zebra font-file consists of a header containing data describing the font as well as data for each individual character in the font.
Fonts can be designed with the font editor and loaded or deleted with the software available for free on the Zebra web site. The font loading and deleting commands described here should only be used if you do not work in the Windows environment.
For complete specification of the font format, see Font Loading on page 69.
Note • The available font memory is printed on the self-test printout. A maximum of 8 fonts
can be addressed. Exceeding any of these limits will cause this command to fail.
Erase all Fonts
Erases all fonts stored in the flash PROM.
ESC & D
1B 26 44 Hex 27 38 68 Decimal
ESC & F
1B 26 46 Hex
27 38 70 decimal
Note • This command is only executed if at least one font has been loaded.
Erase Fonts 4 to 7
Erases fonts number 4–7. Fonts 0–3 are not affected by this command.
The operation is complete when the printer resets automatically and activates the presenter motor temporarily. Takes approximately 4 seconds.
Recall Parameter Profile
This command resets the parameters of the printer to factory default.
Temporarily sets all parameters to predefined values that are stored in the printer. To keep the values as default, store them in the flash PROM with command ESC & 4. Unless you save the parameters, a reset command or power OFF/ON will return the parameters to the settings stored in the flash PROM.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
60
System Related Commands
ESC & P n1...n2
1B 26 50 n1...n2 hex 27 38 80 n1...n2 decimal
A number of bytes in the flash PROM hold various parameter values called default parameters. One or several of them can be overridden temporarily with this command.
n1 Parameter number, range 1 -255.
n2 Parameter value.
See Default Parameter Settings on page 74.
The permanently stored parameters will be used again after a printer-reset command or at power ON.
The temporary values can, however, be stored in the flash PROM as permanent values with command ESC & 4.

Set several parameters at once

ESC & P <000> <FromPar><ParCount><Data>
FromPar is the parameter number to start writing and ParCount is the number of bytes being sent. For every byte sent the parameter number is incremented.
Set Parameter Value
ESC NUL
1B 00 Hex
27 0 Decimal
Example • This example sets the first 5 tabs to 5, 10, 15, 20, and 25. (FromPar 15, ParCount
5)
<ESC>&P<000><015><005><005><010><015><020><025>«»
Load Firmware
This command should be used when you integrate firmware loading into your kiosk program.
Note • Utility programs to load firmware into the printer are available from
http://www.zebra.com .
This command should only be used when loading new firmware into the printer. See also
Firmware on page 113
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Status Reporting Commands

See also Status Reporting on page 73.
Note • All status commands are immediate, that is they pass the print queue and is answered
directly.
Programming
Status Reporting Commands
61
ESC ENQ 001
1B 05 01 hex
27 5 1 decimal
Status Enquiry
A status enquiry results in response ACK (06h) if all sensors are clear, but NAK (15h) + code if one or more sensors report fault condition.
Figure 21 • Error Codes
Error code Meaning
ACK OK (printer is operable)
NAK 01h Paper left in presenter module. Attempt to clear the paper path failed.*
NAK 02h Cutter jammed
NAK 03h Out of paper
NAK 04h Printhead lifted
NAK 05h Paper-feed error. No paper detected in presenter although 10 cm has been
printed. Paper might be wound around the platen or, in some way, has been forced above the presenter module.
NAK 06h Temperature error. The printhead temperature has exceeded the 60 °C
maximum limit.
NAK 07h Presenter not running (no feedback from code wheel)
NAK 0Ah Black mark not found
NAK 0Bh Black mark calibration error
NAK 0Ch Index error
NAK 0Dh Checksum error
NAK 0Eh Wrong firmware type or target for firmware loading
NAK 0Fh Firmware cannot start because no firmware is loaded or firmware
checksum is wrong.
NAK 10h Waste bin timed out. If the customer doesn’t take the paper and the
printer clears the presenter due to a timeout, the pending error bit is set and error code NAK 16 is reported.
NAK FFh Undefined error
*. From firmware version 3.00, the printer will retry three times (cut + clear presenter), when failing to clear the presenter.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
62
Status Reporting Commands
Note • Errors 02h, 05h, and FFh are terminal faults that require you to reset the printer before
it will be operable again. The printer automatically recovers from the other error conditions as soon as the error is corrected.
A status enquiry command can only return one status code at a time. If there are two or more simultaneous errors, each error condition should be cleared and the status enquiry repeated in order to get a complete report of all status codes
ESC ENQ 002
1B 05 02 hex
27 5 2 decimal
The host computer cannot be certain that all error conditions have been cleared until an
ACK is
received.
The possible error conditions are reported in the above order.
Note • If you want to read out all status information directly, use ESC ENQ E.
Paper-near-end Enquiry
This command requests a paper-near-end sensor (paper low) status from the printer in a 1-byte format.
Value = (01h) indicates “No paper”
Value = (00h) indicates “Paper present” at the sensor position
Note • The status of the sensor is sampled every time the printout is cut. If three succeeding
samples show "no paper", the status reply changes to 00. This is to prevent false alarm if the side of the paper roll is not clean. If you want the momentary status of the sensor, use ESC ENQ 6 and extract the paper-near-end bit.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Programming
Status Reporting Commands
63
ESC ENQ 004
1B 05 04 hex
27 5 4 decimal
Fonts and Logotype Enquiry
Requests multiple bytes of information regarding loaded fonts and logotypes.
Example • ( = CR LF)
Send ESC ENQ 04d
Read 0:7504 TTPMono 9
1:14618 Arial 9 2: 3: 4: 5: 6: 7: Free font memory:246122 00: 01: 02: 03:14 110 Recycle 04: 05:103 65 Warning 06: 07: 08: 09: 10: 11: 12: 13: 14: 15: 16: Free logotype memory:189512
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
64
Status Reporting Commands
ESC ENQ 006
1B 05 06 hex
27 5 6 decimal
Status Report
Results in a 2-byte response, reflecting the status of each sensor. This command is intended as a go/no go indication. When everything is OK, this status report returns 0.
Note • If no weekend sensor is installed, 64 is returned when everything is OK. If no
weekend or paper-near-end sensors are installed, 64+2=66 is returned when OK.
Figure 22 • Sensor Status
First byte, bit No.: Second byte, bit No.:
7654321076543210
Pending error code*
Print data exists**
Power has been OFF***
-
Error Black mark
Paper at wastebin
-
Buffer overflow
Wastebin fitted
Weekend sensor
Printhead lifted
Cutter not home
Paper at presenter-Paper-near-end****
Mask first reply byte with EDh Mask second reply byte with FBh
Out of paper
Note • Mask away the undefined bits in your application program to avoid having to change
the application, if the future releases starts using them.
* This bit indicates that an error code is available. Use ESC ENQ 1 to
fetch it.
** This bit tells you that there are data in the printer that have not yet been
printed. There are two possible reasons for that:
1) The last command received by the printer was not a command that triggers a printout.
2) The printer is printing
*** When parallel cable is connected, both printer and host computer must
have been off to set this bit. This is because the interface powers the RAM in the printer.
**** This paper-near-end bit differs from the ESC ENQ 2 response, see
Paper-near-end Enquiry on page 62.
Bits 0, 3, and 5 in the first byte are reset when read.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Programming
Status Reporting Commands
65
ESC ENQ 007
1B 05 07 Hex
27 5 7 decimal
ESC ENQ 009
1B 05 09 hex
27 5 9 decimal
Firmware-version Enquiry
Results in a 2-byte response representing the version of the installed firmware.
The first byte represents major versions, and the second byte minor versions.
If no firmware is loaded, the printer will answer with 00h.
Example •
Send ESC ENQ 07d
Read <02h><29h>
That is, a response with the value <01h><29h> indicates version 2.41.
Serial-number Enquiry
Results in an 6-byte response representing the serial number.
Example •
ESC ENQ 010
1B 05 0A hex
27 5 10 decimal
SendESC ENQ 09d
Read00h 00h 02h 2Bh C6h 28h (hex), or 000 000 002 043 198 040 (dec)
Control board revision Enquiry
Results in a 1-byte response representing the control board revision. A minus sign indicates that no revision has been made, while A indicates the first revision, and so on.
Example •
SendESC ENQ 10d
Readn
Where n can be ‘A’ (ASCII) or41h (hex) or 065 (dec)
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
66
Status Reporting Commands
ESC ENQ 011
1B 05 0B hex
27 5 11 decimal
ESC ENQ 012
1B 05 0C hex
27 5 12 decimal
Head temperature Enquiry
Results in a 1-byte response representing the temperature of the Printhead.
Example •
SendESC ENQ 11d
Readn
Where n is a value representing the approximate temperature in Celsius.
Bootware version Enquiry
Results in a 2-byte response representing the version of the installed bootware.
The first byte represents major versions, and the second byte minor versions.
Example •
SendESC ENQ 12d
Read<001><030>
That is, a response with the value <01h><30h> indicates version 1.48.
Note • The TTP 7020 and 7030 does not store boot program in the flash memory so this
query will always be answered with <000><000>.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Programming
Status Reporting Commands
67
ESC ENQ c
1B 05 63 hex
27 5 99 decimal
ESC ENQ P n1
1B 05 50 n1 Hex
27 5 80 n1 Decimal
Device ID Enquiry
Results in a string containing the device ID in the Windows Plug and Play string format. The two first bytes represent the string length.
Example •
SendESC ENQ 99d
Read00d 106d
This indicates that the string is 104 characters (plus two characters
indicating the string length)
Read”MANUFACTURER:Zebra;COMMAND
SET:None;MODEL:TTP7020;CLASS:PRINTER;DESCRIPTION:Ticket Printer TTP7020;”
Note • The string shown here is just an example. Read out the actual string from your printer.
Parameter-setting data Enquiry
This command requests information about the setting of parameter n1, that is, the parameter value stored in flash PROM or any parameter value temporarily set by other ESC commands.
n1= 1 gives the setting of parameter 1, etc.The parameter names are listed
under Summary Of Parameter Settings on page 77 .
n1 = 0 gives a response where the first two bytes specifies the length of data to
come (high-byte, low byte), and followed by a block of data for all parameters in the temporary setup.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
68
Status Reporting Commands
ESC ACK n1
1B 06 n1 hex
27 6 n1 decimal
Acknowledge Marker
n1 One-byte marker. Range 1h to 255h
The "acknowledge marker" n is placed in the command queue and when the execution of commands reaches the marker it is sent back to the host computer. This is an addition to the status commands that pass the queue and are answered immediately when received.
Example •
"Print data" <LF><esc>p<ESC><ACK><01h>
Wait for <01h>
<RS><ESC><ACK><02h>
Wait for <02h>
The printer will send <01h> when <print data> has executed and <02h> when the ejecting has been performed.
Note • You must wait for the acknowledge marker to return before sending any more data to
the printer.
Note • Acknowledge marker cannot be used for events that write to the flash PROM, for
instance font loading. This is because the writing procedure erases the buffer, including the markers, and uses all RAM in the printer.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Font Loading

Programming
Font Loading
69
The printer can store 8 fonts in its flash PROM. The memory available for fonts is printed on
3
the self-test printout. The character size is fixed
, so you must load one font file for each character size you require. The fonts are given font numbers when they are loaded into the printer. The first font is assigned number 0 and the next font 1 etc. up to font 7. Parameter p14 “Font Selection” will determine what font to use when no font selection command has been
received (see Default Parameter Settings on page 74).
You cannot erase a single font, but must erase font 4-7 with command ESC & D
, or all eight
fonts with ESC & C, then reload the fonts you wanted to keep.
Windows software for font generation and management is available on the Zebra web site. If you need to load fonts in a non-Windows environment, use the ESC & NUL command.
The time required for processing the font data that is loaded is typically 15–20 seconds per font, excluding transfer time. During this time, any data sent to the printer will be lost.
Note • The font processing ends with a reset. The presenter motor runs momentarily to
indicate that the printer is ready to be used.
Caution • Loading to the flash PROM will erase the RAM completely since the RAM is
used during the loading process. Any print data residing in RAM will thus be lost.

File Format

A font consists of a header describing the font, then data for every character in the font. The header has to be downloaded even if the font consists of a single character only. Below is a description of the font header.
1 byte Reserved Should always be 0 (zero)
1 byte Reserved Should always be 0 (zero)
1 byte Char. width (X) The number of bytes required for the width of one character,
1 byte Character pitch The maximum width of one character in the set. This value is
1 byte Char. height (Y) The maximum height of one character matrix measured in
27 byte Font name String of characters used to identify the character set.
This will be printed on status printouts. (E.g. Swiss 10 cpi.)
Char_matrix table: 256 records, each containing 3 bytes.
3 byte Char_width (pixels) + Char_Ystart(pixels) + Char_Yheight(pixels)
usually 2 or 3. Range 1 to 8.
used for tab position calculation. Range 1 to 255.
pixels. This is also the minimum line spacing for this character set.
3. Multiple height, and width commands can be used on all fonts.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
A
Char_Ystart
Baseline
Char_sizeX
Char_Yheight
Char_sizeY
Char_width
A
Char_pitch
Char_width
W
Char_pitch
Char_width
g
Char_pitch
Char_width
012
0
4
ROW
COLUMN
Col 0 Col 1
MSB LSB MSB LSB
Col 2
MSB LSB
Row 1
=03H =FFH =80H
70
Font Loading
Char_bitmap data: Bitmap data for all characters that are to be defined.

Character bitmap data:

A character is made up of a bitmap the size of which is:
Char. width (X) * Char. Height (Y) bytes.
The bitmap data consists of bitmap patterns for each character in a character set for which the parameter Char_width in the Char_matrix table is set to a value between 1 and 24. A character that has its Char_width set to zero, is not included in the bitmap data.
The bitmap for one character is then defined according to the following table:
Example • In this example, each row consists of 3 columns equal to 3 bytes.
(COL 0, ROW Ystart) , (COL 1, ROW Ystart) , (COL 2, ROW Ystart)
(COL 0, ROW Ystart+1) , (COL 1, ROW Ystart+1) , (COL 2, Ystart+1)
(COL 0, ROW Ystart+Yheight), (COL 1, ROW Ystart+Yheight ), (COL 2, ROW Ystart+Yheight)
In order to minimize the required storage space, only rows between Ystart and Ystart+Yheight are included in the character bitmap.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Logotypes

X size
Y size
0
7
Byte 0
Up to 16 logotypes can be stored in the flash PROM of the printer. The logotypes can be positioned and printed out with commands ESC g
The exact number of logotypes and their sizes is determined by the total amount of memory used for fonts, logotypes and loaded firmware. Make a test printout to see how much memory is available.

Loading

Windows software that converts black and white BMP bitmap files to logotypes and load them into the printer is available on the Zebra web site. If you need to load logotypes in a non­Windows environment, use the ESC & 1 command.
The time required by the printer to process logotype data, excluding transfer time from the PC, is typically 15 to 20 seconds, per logotype. During this time, any data sent to the printer will be lost.
or ESC L.
Programming
Logotypes
71

File Format

A header containing information about the logotype number, size and logotype name shall define each loaded logotype. Immediately after the header follows the actual bitmap of the logotype.
ESC & 01H <Header><Bitmap>
Header
Byte 0 Logotype number used to identify the logotype when printing.
Byte 1 X size measured in bytes.
Byte 2 Y size measured in pixels.
Byte 3—15 A logotype name that will be printed on test printouts.
Bitmap
The bitmap must have exactly (X size * Y size) number of bytes. 1=black, 0=white dot.
Bit No. 7 in byte 0 represents the top left corner of the logotype.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
72
Logotypes
Printing
To print a logotype you can use two commands, ESC L n1, prints the logotype at the current cursor position, just like any character. ESC g n1 n2n3 n4n5 prints the logotype at a specified X-Y position.
n1 One byte logotype number, (0—15)
n2n3 Two byte X position measured in pixels from the left hand edge of the
print window.
n4n5 Two byte Y position in pixels from top of the page.
These bytes must always be inserted but they are ignored in variable­page-length mode where logotypes are always printed at the current Y­position.
Erasing
All logotypes are erased with the ESC & L command.
Caution • Loading to the flash PROM will erase the RAM completely since the RAM is
used during the loading process. Any print data residing in RAM will thus be lost.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Status Reporting

The printer is equipped with a number of sensors that report the printer status and various error conditions such as out-of-paper, previous printout not removed, etc.
A good practice in unattended printer applications is to check for errors and paper availability before printing.
1. Send a Status Report Query (ESC ENQ 6, see page 64) and check that the answer is "No
errors"
2. If an error is indicated, read out the error message with Status Request (ESC ENQ 1,
page ), and take appropriate actions. Repeat this step until no more error code is available. If weekend sensor signals that paper is below this level, check again after next document is printed. If the sensor still signals a level below the weekend level after three successive print/check cycles, report the condition to the systems supervisor so that he can schedule a service visit to the printer. This three-cycle check is to ensure that dirt on the side of the roll does not cause the alarm.
3. Send a paper-near-end query (ESC ENQ 2, see page 62) to see if the sensor reports low
paper level.
Programming
Status Reporting
73
4. If paper-near-end is indicated, report the condition to the systems supervisor so that he can
schedule a service visit to the printer.
5. Print the printout.
Important • A status reply must be read! Sending a second status query without reading the
reply of the first query may lock the printer.
Note • When using a multitask OS, status queries and responses may not be transferred
immediately from your application to the printer and vice versa. So write your program in such a way that it repeats the query if it gets a timeout or an invalid reply. Good practice is to ask once every 2-3 seconds, five times before giving up.
Note • You should construct your application in such a way so as not to request status while
printing, as this can result in loss of data.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Programming
74

Default Parameter Settings

Default Parameter Settings
Some of the printer settings can be stored in the flash PROM so that they will be used also after power OFF.
The stored parameter settings are printed out on the self-test printout.
The number in front of the function is the parameter number (n) used when setting the parameter with the command ESC & P n v.
You can use the parameter settings pretty much like normal commands. Either send the parameter values with each printout, or set them up once and then send ESC & 4h to store all settings in the flash PROM.
You can always return to factory default settings by sending ESC & F 10, and then storing those settings with ESC & 4h
Note • The parameters can be locked so that no changes are possible. Check parameter 53 on
the self-test printout to find out.
.
Note • If you try to set a parameter to an invalid value, the parameter will be set to the
nearest valid value below.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
6
0 Default
0 Min
47
255 Max
Eject calibration constant (mm)
D
RV
Parameter number
Default value
Range
Description as printed on self test printout
DRV indicates that the
Windows driver overrides setting
SW 02001
How The Parameters Are
Described
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
How The Parameters Are Described
76

Default Value

Default Value
The default values indicated are "factory default settings" you get by sending ESC & F 10. These are not necessarily the settings that your printer was originally delivered with because many printers have customized settings when delivered.
Examples
Command examples are formatted in Courier and typed in the same way as used in the Zebra TTP editor:
<ESC>&P<001><019>
Where <ESC> means the escape character 27 decimal (hex 1B). Numbers between less-than and greater-than characters, for example <015>, means 15 decimal (hex F).
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
How The Parameters Are Described

Summary Of Parameter Settings

Summary Of Parameter Settings
Parameter Description ESC&F <010> Default Page
1 Baud rate 96 (9600 Baud) page 78 2Data bits 8 page 78 3 Parity 0 (No parity) page 78 4 Flow control 2 (Hardware) page 79 5 Disable parallel port signaling 0 (No) page 80 7 Burn time 5 page 81 8 Print speed 17 (75 mm/s) page 81 9 Presenter loop length 10 (32 cm) page 81
10 Pulse control 1 (1 burn pulse) page 82
12 Font attributes 0 (off)
77
13 Line spacing 0 (Auto) page 82 14 Font selection 0 (TTP Mono 9) page 82
15 to 30 Tab stops 4, 8, 12 etc. page 82
33 CR/LF 0 (LF = CR/LF, CR=Ignored) page 83 34 Auto cut after FF 1 (Off) page 83 35 Black mark mode 0 (Off) page 83 36 Document mode 1 (Variable) page 84
37 & 38 Page length, Minimum / fixed / BM 2, 88 (75 mm) page 84
39 Max black mark length 80 (10 mm) page 86
40 Min black mark length 24 (3 mm) page 86 41 & 42 Black mark cut offset 0, 0 (0 mm) page 86 43 & 44 Top margin 0, 0 (Disabled) page 86
45 Presenter mode 0 (Eject) page 87
47 Eject calibration constant 40 page 87
49 Advance before cut (Bottom margin) 1 (Auto) page 88
51 Black mark level 75 page 88
52 Warning level 0 (Off) page 88
56 Max status code 255
Note • When the printer is set up the way you like it to be, you send ESC & 4h, and all
settings will be stored.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
How The Parameters Are Described
78

Serial Interface Set-Up

Serial Interface Set-Up
96 Default
24 Min
1
11 Max
*. The new value is not valid until the parameters are stored and the printer restarted.
Sets the communication speed on the serial interface.
<ESC>&P<001><024> 2400 bps <ESC>&P<001><048> 4800 bps <ESC>&P<001><096> 9600 bps <ESC>&P<001><019> 19200 bps <ESC>&P<001><038> 38400 bps <ESC>&P<001><057> 57600 bps <ESC>&P<001><011> 115200 bps
Baud rate*
2
3
Note • If you set an invalid value, the baud rate will return to the previous value.
8Default 7 Min 8Max
Selects if 7-bit ASCII, or 8-bit, is used on the serial interface.
0Default
0 Min 2Max
Select what parity to use on the serial interface.
Data bits
1
<ESC>&P<002><007> 7-bits (characters 0-127) <ESC>&P<002><008> 8-bits (characters 0-255)
1
Parity
<ESC>&P<003><000> No parity <ESC>&P<003><001> Odd parity <ESC>&P<003><002> Even parity
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
How The Parameters Are Described
Serial Interface Set-Up
79
2Default
0 Min
4
2Max
Flow-control
1
Select what handshaking to use on the serial interface.
<ESC>&P<004><000> No flow control <ESC>&P<004><001> Xon / Xoff * <ESC>&P<004><002> Hardware
*. DO NOT USE if you send any type of binary data like graphics data, status requests etc. Xon / Xoff only works when plain text is sent unidirectional to
the printer. Graphics and status replies may well contain the Xon (11h) and Xoff (13h) characters and will obstruct the communication.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
How The Parameters Are Described
80

Parallel Port Setup

Parallel Port Setup
0Default
0 Min
5
1Max
Pins 12 and 15 on the parallel port signals paper out and error. However, in an unattended kiosk you may not want this because it causes the host computer to stop communicating, and the operating system may display a banner on the kiosk screen.
By disabling the hardware signals, the kiosk software can for example use status commands to find out paper level and alert appropriate personnel when the level is low, then close the kiosk when paper is out.
<ESC>&P<005><000> No, paper out and error signals are not disabled <ESC>&P<005><001> Yes, paper out and error signals are disabled
Note • When enabled, the hardware signal on pin 12 and 15 will block all communication
until the error is corrected. This means that it will be impossible to ask for status.
Disable parallel port signaling
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
How The Parameters Are Described

Print Setup

Print Setup
5Default
1 Min
7
15 Max
*. DRV indicates that, when using Windows, the driver takes over this setting so please set appropriate value in the driver properties/document defaults.
A long burn time gives darker print. On insensitive paper types you may have to increase the burn time to get an acceptable print quality.
Burn time
81
DRV*
17 Default
1 Min
8
17 Max
Max print speed
1
DRV
The main reason to decrease the print speed is to enhance print quality, and to reduce the peak current consumption.
n mm/s
1234567891011121314151617
21 27 32 37 41 45 48 52 55 57 60 63 66 68 71 73 75
Note • Some settings result in printer chassis resonance causing excessive noise and
deteriorated print quality.
15 Default
3 Min
9
255 Max
Presenter Loop length
Limits the maximum loop length. When the set length is reached, the printer ejects part of the printout and continues too print. You use this when you have very limited space for the loop inside the kiosk. Each step represents a 3.2-cm increment.
Setting the parameter to 0 disables the looping and feeds the paper straight out.
<ESC>&P<009><000> Disable the loop <ESC>&P<009><007> 16 cm loop <ESC>&P<009><015> 48 cm loop
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
How The Parameters Are Described
82
Print Setup
1Default
10
0 Min 3Max
Controls what the printer does with buffered data:
<ESC>&P<010><000> 1 burn pulse + history <ESC>&P<010><001> 1 burn pulse <ESC>&P<010><002> 2 burn pulses + history <ESC>&P<010><003> 2 burn pulses
Adding history pulse enhances print quality. Dividing burning into two burn pulses reduces the peak current consumption.
0Default
13
0 Min
30 Max
The line spacing is normally set by the font height. With this parameter you can set a line spacing that is higher that the font height. Line spacing settings lower than the font height will be ignored.
Print head pulse control
Line spacing
14
15 to 30
0Default
0 Min 7Max
-Default
1 Min
255 Max
<ESC>&P<013><030> 30 pixels or font height, whichever is the largest
Font selection
Store which font number is used if no font is specified. Font is selected using Font selection
on page 82 . Selecting an invalid font gives a software error status message (invalid index).
Tab stop
Stores 16 different TAB stop positions. The position is set in increments of 2.5-mm.
Tab position 255 sets a tab stop on the last position of the line. Use this if you want underline or reversed text to extend across the full paper width.
To set all tab stops at once, follow the procedure Set several parameters at once on page 60 .
To move a single tab stop, use the set parameter command <ESC>&P.
Example • This example sets the first tab stop 25 mm from the left margin.
<ESC>&P<015><010>
Default positions are one TAB on each cm; that is parameter values 4, 8, 12 etc.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
How The Parameters Are Described
0Default
33
*. v=0 is suitable for Windows, v=1 for UNIX, v=2 for DOS, and v=4 for Macintosh
0 Min 4Max
CR/LF behavior*
Carriage Return and Line Feed can be interpreted in five different ways to suit different operating systems.
<ESC>&P<033><000> LF = CR/LF CR = Ignored <ESC>&P<033><001> LF = CR/LF CR = CR <ESC>&P<033><002> LF = LF CR = CR <ESC>&P<033><003> LF = LF CR = CR/LF <ESC>&P<033><004> LF = Ignored CR = CR/LF
Note • The character currently interpreted as LF converts text from the input buffer to pixels
on the paper.
Print Setup
83
34
35
1Default
0 Min 2Max
0Default
0 Min 1Max
Auto cut after FF
Decides if the printer should cut after executing an FF command, or if it should just feed the form length.
<ESC>&P<034><000> No cut <ESC>&P<034><001> Cut <ESC>&P<034><002> Forced cut at black mark (cuts directly when a black mark is
detected). This works only if black mark mode is selected (n36=2).
Black mark mode
When enabled, marks on the paper set the form length. Minimum one form length is always fed. If a black mark is found before that, the printer feeds to the next black mark, then cuts and ejects. This ensures that no small paper stripes are cut of and left in the printer. Note that this parameter is used when loading paper and when pressing the FF button. So even if black mark is enabled in the Windows driver and works, parameters for black mark must be set up correctly.
<ESC>&P<035><000> Normal <ESC>&P<035><001> Black mark synchronization enabled
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
How The Parameters Are Described
84
Print Setup
1Default
36
0 Min 2Max
Determines what should control the page length:
<ESC>&P<036><000> Fixed Document Mode. Shorter documents will automatically
<ESC>&P<036><001> Variable Document Mode. The length of the page varies with
<ESC>&P<036><002> Black Mark Mode. Marks on the paper set the form length.
Document mode
DRV
be extended, while longer documents will be divided into several pages of the desired length. Page length will be the length set by parameters 37 and 38
the contents (printouts shorter than the value specified by parameters 37 and 38 will be extended to that length)
Minimum one form length is always fed. If a black mark is found before that, the printer feeds to the next black mark, then cuts and ejects. This ensures that no small paper stripes are cut of and left in the printer.
37 & 38
Note • Max page length in Fixed Document Mode is A5-size, which is 148.5 mm.
2 , 88 Default
2 , 88 Min
255 , 255 Max
Page length
Defines three different things:
1. The minimum length of a page in variable document mode
2. The actual page length in fixed document mode
3. The distance between black marks in black mark mode
One step is 0.125 mm. Settings shorter than 75 mm, will be interpreted as 75 mm.
<ESC>&P<037><005><ESC>&P<038><205>
Set page length to A5 (148.5 mm)
DRV
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Length p37 p38
TEXT
Text text
TEXT
Text text
Page length
(minimum 40 mm)
Page width = applicable print window width
Paper transport
direction
Top margin
(Distance between cut and print line, 9 mm)
marginbottommargintop
widthPaper
bytesinRAMFree
lengthPage
−=1024
mmlinespixellengthPage 10685280160
104
1024114627
==
=
75 mm <002> <088>
100 mm <003> <032>
112 mm <003> <128>
150 mm <002> <176>
200 mm <006> <064>
250 mm <007> <208>
300 mm <009> <096>
How The Parameters Are Described
Figure 23 • Definition of page size
Print Setup
85

Fixed Document Mode

Max fixed document mode page length is depends of the amount of free ram. Make a self-test
printout to check how much is available in your printer. (Depends on firmware version).
Paper length, top, and bottom margins are in pixel lines. Paper width is in bytes or mm. (1 byte = 1 mm.)
Example • If Free RAM on a TTP 70x0/112 is 114627 bytes, page width is 104 mm = 104
bytes, top margin is 20 mm, and bottom margin 10 mm (20 x 8 =160 and 10 x 8 = 80 pixel lines):
If a too large fixed page is specified the printout will be blank from memory full to the cut.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
How The Parameters Are Described
86
Print Setup
80 Default
16 Min
39
160 Max
Specifies the length of the black mark in 0.125-mm steps. Measure the length of the black mark on your paper and enter that value here.
Marks 5 mm longer than this value are interpreted as paper out. The default value of 80 equals 10 mm.
<ESC>&P<039><040> Sets max black mark length to 5 mm.
24 Default
15 Min
40
159 Max
Specifies the minimum length of the black mark in 0.125-mm steps. Shorter marks are ignored. The default value of 24 equals 3 mm.
<ESC>&P<040><036> Sets min black mark length to 4 mm.
BM (black mark) length
Min BM (black mark) length “Garbage Filter”
DRV
DRV
41 & 42
43 & 44
0 , 0 Default
0 , 0 Min
255 , 255 Max
BM (black mark) cut offset
Defines the paper feed between the black mark detection and cut. One step is 0.125 mm.
<ESC>&P<041><001><ESC>&P<042><144> Feeds 50 mm between black mark and
cut.
0 , 0 Default
0 , 0 Min
255 , 255 Max
Top margin
Defines the distance between the top of the paper and the top of the first text line in 0.125 mm steps. The top margin feed is effectuated when the presenter is cleared from the previous page.
0 = disabled top margin. This gives the physical top margin of the printer,
which is 17 mm.
Avoid settings 1 – 16 mm because then the printer must reverse the paper before starting to print, which may cause paper jam, especially at small roll diameters.
DRV
<ESC>&P<043><000><ESC>&P<044><240> Add 30-mm top margin.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
45
0Default
0 Min
230 Max
How The Parameters Are Described
Print Setup
Presenter mode
Sets the function of the presenter. The Retract selections are only valid if a retract option is fitted.
<ESC>&P<045><000> Eject page when new page is printed. (Retract disabled) <ESC>&P<045><003> Eject page when new page is printed. Page not taken after 30s
will be retracted. (Range 1-30, 1 step = 10 s)
<ESC>&P<045><100> Retract page when new page is printed <ESC>&P<045><103> Retract page when new page is printed. Page not taken after 30s
will be retracted. (Range 101-130, 1 step = 10 s)
<ESC>&P<045><200> Do nothing when new page is printed. (Auto-eject and retract
disabled).
<ESC>&P<045><203> Do nothing when new page is printed. Page not taken after 30s
will be retracted. (Range 201-230, 1 step = 10 s)
87
DRV
47
40 Default
0 Min
255 Max
Eject calibration constant
DRV
Sets the eject length of the printout, that is the length of paper that protrudes outside the printer after a cut command. This eject length should be 40-63 mm. Marks on the test printout show max and min eject length.
The default value when loading firmware is 40, but should be set individually from printer to printer. The set value is shown in a line on the test printout.
After sending the command, store the parameters, and wait until the presenter motor buzzes. Then make a self test printout to check if the set eject length is correct.
Example • This example sets parameter 47 to 50 and stores the parameters as default settings
<ESC>&P<047><050> <ESC>&<004>
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
How The Parameters Are Described
88
Print Setup
1Default
49
0 Min 1Max
Selects if the cut command cuts at the position where the paper is at, or if the printer should advance the paper before cutting.
<ESC>&P<049><000> Off <ESC>&P<049><001> Automatic Distance Calculation
"Automatic Distance Calculation" means advancing the paper with the Head-To-Cutter distance (17 mm on the TTP 70x0).
Set to 1 if the printer is used in text mode and 0 if it is used from a driver that takes care of this in the driver.
Note • The paper is advanced before the FF command calculates the page length to see if the
page length is longer than the set minimum length.
Advance before cut (Bottom margin)
DRV
51
52
75 Default
0 Min
255 Max
0Default
0 Min
255 Max
Black mark sensitivity
DRV
This parameter is used by command ESC # to store the calibration of the black mark sensor. Normally there is no need to set this parameter manually.
0 is white and 255 is pitch black (out of paper).
Note • This parameter is not available on printers with hardware revision A of the control
board. The revision is printed on the test printout.
Warning level
Turns on/off indication of Paper near end and Weekend paper lever on the status indicator (1). This affects only the status indicator, not the status enquiries
<ESC>&P<052><000> No indication <ESC>&P<052><001> Paper Near End indication <ESC>&P<052><002> Weekend level indication <ESC>&P<052><003> Paper near end and weekend indication
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
7

Page Setup

02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Page Setup
n39
Black Mark on back of page
n49
n37, n38
Amazingly few discotheques provide jukeboxes.
Voix ambiguë d'un coeur qui au zéphyr préfère les jattes de kiwis. Franz jagt im total verwahrlosten Taxi quer durch Bayern. Flygande bäckasiner söka hwila på mjuka tuvor. Pa's wijze lynx bezag vroom het fikse aquaduct. Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen Walther spillede xylofon. Cantami o diva del pelide Achille l'ira funesta. En god stil må først og fremst være klar. Den må være passende. Aristoteles.
,
. Árvízt r tükörfúrógép ÁRVÍZT R TÜKÖRFÚRÓGÉP. El veloz murciélago hindú comía feliz cardillo y kiwi. La cigüeña tocaba el saxofón detrás del palenque de paja. Viekas kettu punaturkki laiskan koiran takaa kurkki. Za g l ja . Vejam a bruxa da raposa Salta-Pocinhas e o cão feliz que dorme regalado. A rápida raposa marrom ataca o cão preguiçoso. Servez à ce monsieur une bière et des kiwis. Agera vulpe maronie sare peste câinele cel lene .
Съешь ещё этих мягких французских булок да выпей чаю
űő ŰŐ
żółć ęś ą źń
ş
Jackdaws love my big sphinx of quartz. D'fhuascail Íosa, Úrmhac na hÓighe Beannaithe, pór Éava agus Ádhaimh. Kæmi ný öxi hér ykist þjófum nú bæði víl og ádrepa Sævör grét áðan því úlpan var ónýt.
Print direction
Cut
n43, n44
n41, n42
n40
Cut
n37, n38
90

Printable Area

Printable Area
Top margin, bottom margin, page length, and synchronization with preprint are set up with parameters in the printer.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Aligning Preprint And Thermal Print

Cut line
Paper viewed from inner side (opposite to thermal-coating side)
SW95001B
Cut line
Paper
feed
direction
25 mm
Black mark size 5 x 9 mm
75 mm
25 mm
9.1 mm
Punched hole 5 mm
Preprinting not recommended within this zone
The printer can synchronize the cutting of the printout with black-marks printed on the back of the paper. You use this function when you have preprint on the media and you don't want a cut in the middle of that preprint, or text printed on top of the preprint.
The sensor used to detect the black-marks is the same sensor as used for paper end detection. It
is positioned 9 mm from the edge of the paper on the side of the blue release arm, and 25 mm
behind the cutter (as seen from the presenter [output] side of the printer). The sensor accuracy is about ±0.5 mm so avoid designing printouts with too high demands for synchronization.
Page Setup
Aligning Preprint And Thermal Print
91
Figure 24 • Recommended black mark size and position
The sensor triggers on the black-to-white transition of the black-mark, which is when the black print ends (trailing edge).
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Page Setup
92
Aligning Preprint And Thermal Print
Since the same sensor is used for both paper end and black-mark detection, the printer must know the length of the black-mark to avoid signaling end-of-paper when it detects a black­mark. The default setting accepts black-marks in the range 3 –16 mm, and works perfectly with the recommended black-mark length of 5 mm. Marks shorter than 3 mm are interpreted as dirt, and marks longer than 16 mm as out-of-paper. You can change both these values by changing the printer default settings.
Black mark mode is selected by setting parameter 35 to 1, and storing the parameters.
Important • It is essential that you store the parameters in the printer for black mark
synchronization even if you enable black marks in the Windows driver. This is because Windows is not used at paper loading, and feeding with the FF button on the printer.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Parameters Used

Parameter n35 Black Mark
Enables/disables black mark check.
Parameters n37 and n38 - Page Length Minimum
Page Setup
Parameters Used
93
Measure the distance from the trailing edge of one black mark to the trailing edge of the next. The resolution is 0.125 mm so multiply the distance by 8, then calculate the value to enter as n37 and n38.
Example • If the page length is 100mm, (100 x 8) / 256 = 3.125.
n37 is the integer value, that is 3, while n38 is the fraction, 0.125 x 256 = 32
Parameter n39 – Max Black Mark Length
Measure the height of the black mark. The resolution is 0.125 mm so multiply the black mark length (in millimeters) by 8 and enter the value as n39.
Parameter n40 – Min Black Mark Length (Garbage Filter)
This parameter is actually a filter to filter-out garbage on the paper. If a spot is smaller than this value, it will not be regarded as a black mark. 1. About of the black mark length is usually a suitable setting.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Page Setup
Garbage range n40
Printed black mark n39
Valid black mark range (n39 – n40 + 5mm)
5 mm Constant
Out of paper
94
Parameters Used
Garbage, Black Mark and Out of Paper Detection
For every step the paper is feed, the black mark sensor is sampled to detect garbage, black marks or out of paper.
When the printer detects blackness is has to check if it is only garbage;
If… Then…
the paper gets white again within n40 x
it is garbage and the spot is ignored.
0.125 mm
it is still black after n40 x 0.125 mmYes it is probably a black mark.
the paper gets white within an additional
it is a Blackmark
n39-n40 plus 5 mm
The 5-mm is a constant added to make sure that noise on the edge not will interfere with the samples. If it at this point still is still black we have detected out of paper.
Be careful about n40 and n39. If n39 – n40 is too small, then the minimum detection area will be too little. This area should not be less than 2 mm.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
Parameter n41 and n42 –Black Mark Cut Offset
n41 & n42
The actual cut position
Desired cut position
Black mark detected
After the black mark is detected (black to white change) the printer feeds another distance to place the paper in cut position. This distance cannot be negative so placing the black mark too close to the paper edge is better than too far away.
Page Setup
Parameters Used
95
(ESC x n1 n2 is an obsolete command that sets n41 and n42. It is implemented for backward compatibility with old drivers. Set parameters n41 and n42 with the ESC & P n1 n2 command instead.)
FF (Form Feed)
Use FF to print the buffer content, go to the next top of form (black mark), and cut the paper.
ESC Z (Go To Next Top of Form)
Use ESC Z to move the paper to the next top of form. This is practically a Form-Feed without printing and cut. It searches for the next black mark for maximum one page length + black mark length (256 x n37+n38 + n39)/8. An additional length of 20 mm is added to be sure to pass the edge of the next black mark. If there is no black mark within the set distance plus 20 mm, an error is raised.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Page Setup
96
Parameters Used
Example • The commands are used together in the following way:
The following examples are not made for a specific programming language or editor, but can
be implemented with the tools of your choice. The data sent to the printer are marked with
“Send→”.
When setting up the printer:
Send ESC & P 35d 1d Enables black mark sync
Send
ESC & P 37d 4d Sets distance between two black marks
Send
ESC & P 38d 0d n37=4d and n38=0d gives 128 mm
Send
ESC & P 39d 80d Sets max Blackmark to 80 x 0.125 = 10mm
Send
ESC & P 40d 24d Sets max Blackmark to 24 x 0.125 = 3 mm
Send
ESC & P 41d 0d
SendESC & P 42d 200d Sets Blackmark offset to 200 x 0.125 = 25mm
Send
ESC & P 43d 0d
SendESC & P 44d 0d Sets Blackmark top margin to 0mm
Send
ESC & 4d Stores the above parameters as default parameters.
The above sets up and stores the parameters in the flash prom of the printer, so this need only be sent once to the printer when setting it up for Blackmark sync.
Document
Send the text and graphics
At the End Of the Document
SendESC Z Feeds the printout to the next black-mark + the additional feed specified
by the ESC x command.
SendRS Cuts and ejects the printout.
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009

Simple Calibration Process

1. Enable black mark mode by setting parameters n35 to n42 as described on the previous
pages.
2. Load paper with black marks into the printer.
3. Send the ESC # command and wait until the paper stops.
4. If the paper has returned to it's original position, the calibration is finished.
5. If not, it was not possible to distinguish the black mark. Check the n37 and n38 settings
and try again).
6. Save the settings with ESC & 4.
Page Setup
Parameters Used
97
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
Page Setup
98

Black-Mark Sensing from Within Windows

Black-Mark Sensing from Within Windows
In Windows, the printer driver controls when the paper is cut and ejected. Settings in the driver take over form the default parameter settings in the printer.
The settings are available in the Windows Printing Preferences Menu, in the Advanced
Options window. The names of the options boxes differ between driver versions, but the same settings are available:
You set n35 to 1 by setting Black Mark Check:
You set n37, n38 by setting Paper Size:
You set n39 by setting Maximum Black mark:
You set n40 by setting Minimum Blackmark:
You set n41, n42 by setting Cut Position:
Note • When everything is set up correctly and the printer prints as it should; print a page,
then without switching the power off, send the store parameters command ESC & 04h to the printer (for example using the PRTMON.EXE program from http://www.zebra.com) you do this, parameters that the driver uses are stored in the printer as default parameters. This way the printer synchronizes on black mark also when you load paper, if you press the FF button, etc.
True
If no standard paper size is corresponds to the page length you have,
create a new form with that length in the Windows
“Printer Server Properties".
to the length of the black mark on your paper
to the value you want for scrap filter
to the length of transport that you want between black mark and cut.
. If
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
8

Interface

The printer has one standard interface and an optional serial interface. There are no selections to be made, but only one interface can be used at a time. The printer will not function properly if data is received on more than one interface at a time.
Note • If you use the printer through a Windows driver, you need not read the rest of this
chapter.
Caution • Always use Zebra-approved interface cables to avoid excessive EMC
interferences and potentially voiding the printer EMC certifications.
02/11/2009 TTP 7020™/TTP 7030™ Technical Manual P1003636-001
100
Interface

Parallel, TTP 7020

Parallel, TTP 7020
The TTP 7020 parallel port is bi-directional and support Compatibility and Reverse-Nibble modes.
Note • If you intend to use any other mode than Compatibility Mode, we recommend you to
get the documents for the IEEE-1284 standards, and study them thoroughly.
T able 5 • Signal Names for the Parallel Port. Signal Names St arting with "N" are
Active Low Signals
Pin Host
IEEE1284-A
(D-Sub)
1
2-9
10
11
12
13
14
15
16
17
18-25
Direction
Ö
Ö
Õ
Õ
Õ
Õ
Ö
Õ
Ö
Ö
GND
+Ö
Pin Printer
IEEE1248-C
15 nStrobe HostClk
6-13 Data Data
3 nAck PtrClk
1 Busy PtrBusy
5 PError AckDataReq
2 Select Xflag
17 nAutoFd HostBusy
4 nFault nDataAvail
14 nInit nInit
16 nSelectIn IEEE 1284 Active
19-35 Ground Ground
18 Host Logic High
Compatible
Signal Names
Nibble and Byte
Mode Signal Names
P1003636-001 TTP 7020™/TTP 7030™ Technical Manual 02/11/2009
.Õ
36 Peripheral Logic High
Loading...