therein are owned by ZIH Corp. and Zebra’s licensors. 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.
ZebraLink, Element Energy Equalizer, E
head graphic, ZPL and ZPL II 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 Corporation.
Product Improvements Continuous improvement of products is a policy of Zebra Technologies Corporation.
All specifications and designs are subject to change without notice.
®
, ZPL II®, and ZebraLink™ programs; Element Energy Equalizer™ Circuit; E3™;
3
and all product names and numbers are trademarks, and Zebra, the Zebra
Liability Disclaimer Zebra Technologies Corporation takes steps to ensure that its published Engineering
specifications and manuals are correct; however, errors do occur. Zebra Technologies Corporation reserves the right
to correct any such errors and disclaims liability resulting therefrom.
Limitation of Liability In no event shall Zebra Technologies Corporation 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 Corporation 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.
This manual will be updated as, from time to time, printer functions and features may be added
or amended. You will always find the most recent edition on our web site at www.zebra.com.
If you require functions not found in this manual edition, please contact Technical Support for
your region or the Zebra partner the printer was purchased from.
09/14/2009TTP 2000 Technical ManualP1002902-002
About This Document
8
Contacts
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
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 Training
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 Corporation
475 Half Day Road, Suite 500
Lincolnshire, IL 60069 USA
T: +1 847 634 6700
Toll-free +1 866 230 9494
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.,
The TTP 2000 series are kiosk printers for 58 to 82.5 mm paper using direct thermal printing.
All models feature an integrated guillotine cutter, control board, and a looping presenter with a
built-in retract-and-retain function. The print speed is up to 150 mm per second and the
presenting speed 300 mm per second to ensure high throughput.
The print head can easily be opened to give the operator access to the paper path and print head
for maintenance purposes.
Figure 1 • Principle of Operation
09/14/2009TTP 2000 Technical ManualP1002902-002
Product Presentation
10
The communication interface of the control board differs between the versions of TTP 2000:
TTP 2010TTP 2020TTP 2030
InterfaceSerialParallelUSB
A printer driver for Microsoft Windows™ is available, and the USB and Parallel version of the
printer is compatible with the Plug and Play standard.
The printer’s control command language makes it easier to print directly from the kiosk
software without using a driver.
P1002902-002TTP 2000 Technical Manual09/14/2009
Product Presentation
Print
Cut
Present
Printout
Store printout
in loop
Retract to wastebasket
Print
Cut
Present
Retract
Looping Presenter
Looping Presenter
Figure 2 • Looping Presenter
The TTP 2000 series printers feature a looping presenter mechanism with a built-in retract-and-retain
function. The following illustrations provide an overview of the functionality of the various stages of printer
operation.
•It handles documents of various lengths by
storing the printed paper in a loop.
11
•It holds the printout until fully printed and cut
before presenting the completed printout to
the customer.
•A portion of the printout is presented. When
the customer takes the receipt, the printer
detects the motion of the paper and issues the
rest of the receipt.
•The retract-and-retain function can retract
uncollected printouts and drop them in a
wastebasket inside the kiosk. Retracts are
reported to the driver so any remaining data
for that printout can be deleted.
09/14/2009TTP 2000 Technical ManualP1002902-002
Product Presentation
Feed Button
Status Indicator
Power Indicator
Printhead lock/
cutter protection
Interface
Connector
Power
Connector
Paper low
Connector
Print Head
lock/cutter guard
F
e
e
d
P
o
w
e
r
S
t
a
t
u
s
R
12
Controls
Controls
Figure 3 • Rear View
The Feed button and indicators are duplicated on both sides of the printer so that they are
easily accessible regardless of how the printer is installed.
Feed Button
The | blue Feed button has several functions:
• Press and release 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.
• On printer with firmware 3.83 and higher, press and hold Feed for three seconds while
turning on the power, or press and hold Feed just after closing the print head, will print a
self-test printout.
• On printers with old firmware, lower than version 3.83, press and hold Feed while turning
on the printer or press and hold Feed just after closing the print head, to print a self-test
printout (See Making a Self-Test Printout on page 26).
P1002902-002TTP 2000 Technical Manual09/14/2009
• Press and hold Feed while closing the print head and the printer will enter top of form
sensor calibration mode (see Black Mark Calibration Process on page 103).
Power Indicator
When the ● green power indicator is illuminated, a 24V supply is connected to the printer.
Status Indicator
The ● orange status indicator has several functions:
• ON constantly — the printer is operational
• Flash, flash, pause, flash, flash— is the warning-code for paper low.
The warning-code is reset automatically when the condition causing it is removed. This
behavior can be enabled by setting parameter 52 (Warning Level) to 001.
• Flashes rapidly — indicates error. Press and hold the Feed button and the number of
flashes will reflect the status-code.
10Black mark not found (on media load)
11Black mark calibration error
Fast flashesChecksum error at firmware loading
Steady lightWrong firmware type
1Presenter jam, paper cannot be ejected / retracted
2Cutter cannot return to home position
3Out of paper
4Print Head lifted
5Paper feed error (under head)
6Temp error, print head is above 60°C
7Paper jam during present
8Paper jam during retract
Product Presentation
Controls
13
Status codes are reset when:
• the conditions causing them are removed
• the printer is power cycled (turned off/on)
• the print head is lifted and then lowered to clear a paper jam.
The TTP 2000 printers require a paper guide for proper operation. This paper guide allows the
printer to be configured for use with 58, 60, 80, or 82.5 mm width media. The printer senses
which paper guide is fitted and adjusts to it automatically. The TTP 2000 printers are delivered
without paper guide fitted.
1. Select the paper guide you want to install.
Note • Evaluation kits contain all sizes of paper guide that are available. For regular
volume deliveries, the appropriate guide must be ordered separately. The printer will not
operate properly without a guide.
2. Open the print head by pushing green print head lock plate towards the rear of the printer
and lifting up the print head, see Figure 22, Opening the Print head, on page 32.
3. Loosen the screw on the backplate of the printer. Insert the T-shaped tab of the printer
guide into the T-hole and fasten the screw.
4. Close the print head.
Figure 4 • Fitting a Paper Guide
P1002902-002TTP 2000 Technical Manual09/14/2009
Installation Considerations
Horizontal
Screen
Screen
Vertical
The TTP 2000 printer is designed to be installed in an enclosure such as a self-service kiosk.
Caution • NEVER use screws that go into the printer more than 4 mm! Longer screws will
damage the electronics inside.
Orientation
The TTP 2000 can be installed horizontally or vertically. Vertical installation is suitable for
narrow kiosk designs. The printer can be programmed to present the receipt from either of the
two output paths, retract and standard. The standard output becomes the retract, and the retract
output feeds the printout to the customer.
The printer can be installed in different orientations. Set parameter n57 to the appropriate
setting and the printer adapts to its new orientation. Refer to System on page 96 for more
information.
Installation
Installation Considerations
17
Figure 5 • Orientation Options for Installation
Note • In vertical mode the printer does not loop the paper but stores it hanging down, then
cuts and ejects vertically when the printout is ready.
09/14/2009TTP 2000 Technical ManualP1002902-002
Installation
Retract
exit
Printout exit
Optional
quick-fit
hubs
Standard exit
18
Installation Considerations
Quick-Fit Hubs
Figure 6 • Front, Bottom View
The printer attaches to the kiosk using two screws or slides into place using the optional quickfit hubs.
Caution • NEVER use screws that go into the printer more than 4 mm! This will damage
the electronics inside.
P1002902-002TTP 2000 Technical Manual09/14/2009
Using a Zebra Roll Holder
Roll holders for the TTP 2000 series printers can accomodate 58, 60, 80, or 82.5 mm width
media.
Zebra roll holders offer a number of paper roll positions including behind and below the
printer, ensuring quick and easy installation in a wide range of self-service kiosks. One
example is the Wall Mount roll holder shown below with the quick-fit hub kit which allows
you to easily attach or remove the printer from the roll holder. See Chapter 10 for more
detailed information on Zebra roll holders available for the TTP 2000 series printers.
Figure 7 • Wall Mounted Roll Holder
Installation
Using a Zebra Roll Holder
19
09/14/2009TTP 2000 Technical ManualP1002902-002
Installation
20 mm
Paper width
+ 10 mm
44 mm
10 mm
∅
12 mm
∅
6.5 mm
10 mm
90.8 mm
132 mm
156 mm
Leaf spring
01473-000
∅
11 m m
10 mm
1
.
5
m
m
Add material for corner radius
Min. 100 mm
Center
10 mm
20
Using a Zebra Roll Holder
Design Your Own Mounting
The illustration below gives an example of a printer-mounting shelf. See Figure 33, Printer
Dimensions (Measurements), on page 125, and the 3D solid models and outline drawings for
CAD that are available on http://www.zebra.com.
Figure 8 • Example of a Simple Shelf For Fastening a Standard Printer Using
Quick-fit Hubs and a Leaf Spring Retainer (Order No. 01473-000)
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 printer
enclosure.
Note • The paper entry angle must be set properly to avoid paper jams in the presenter. Refer
to Paper on page 121 for the specification.
Caution • NEVER use screws that go into the printer more than 4 mm! This will damage
the electronics inside.
P1002902-002TTP 2000 Technical Manual09/14/2009
Electrostatic Discharges and Earth Currents
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 20 mm behind 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
21
09/14/2009TTP 2000 Technical ManualP1002902-002
Installation
+5
+5
Paper-low
sensor
2
3
1
J10
PL SENSE
SW97081F
200 ohm
100 pF
Paper roll
New
Near
end
Roll holder shaft
Gray = Connection
inside printer
Paper low
connector
22
Installing a Paper-Low Sensor (Optional)
Installing a Paper-Low Sensor (Optional)
A paper-low sensor alerts the system when a certain length of paper remains 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.
All paper roll holders supplied by Zebra can be equipped with paper-low sensors. Mount the
paper-low sensor to the roll holder and connect the cable to the paper-low connector at the
back of the printer.
Figure 9 • Paper-low Sensor Connection
Figure 10 • Location of Paper-low Connector
P1002902-002TTP 2000 Technical Manual09/14/2009
Connecting to the Computer
Interface
connector
Caution • Using a non-approved cable with the printer may void the FCC and other EMC
approvals of the printer.
Figure 11 • Location of interface connector
Installation
Connecting to the Computer
23
Connecting the TTP 2010
Connect the printer to the serial port of the computer using Zebra serial cable, Part Number
10825-000. This cable is configured to work properly with our serial printers.
Figure 12 • Serial Interface Cable 10825-000
Connecting the TTP 2020
Connect the printer to the parallel port of the computer using Zebra parallel cables, Part
Number 01366-000 or 01366-090. These cables are configured to work properly with our
parallel printers.
09/14/2009TTP 2000 Technical ManualP1002902-002
Installation
24
Connecting to the Computer
Note • The printer end of the cable should have an IEEE-1284 type C, 36-pole mini
Centronics, with clip latches, see Parallel, TTP 2020 on page 111 for pin assignment.
Figure 13 • IEEE-1284 Cable with Type A and Type C Connectors
Connecting the TTP 2030
Connect the printer to the USB port of the computer. A suitable cable is available from Zebra,
Part Number 105850-028.
Figure 14 • USB Cable with Type A and Type B Connectors
P1002902-002TTP 2000 Technical Manual09/14/2009
Connecting the Power
Power
Connector
Use the appropriate Zebra power supply (see Figure 41 on page 132 and Figure 42
on page 132 for illustration and part number).
Figure 15 • Location of Power Connector
Installation
Connecting the Power
25
1.
Caution • Connecting the printer to an incorrect voltage can result in electric shock
and damage to the printer.
On power supplies with line voltage selector, make sure it is set to your local line
voltage.
2.
Caution • Never hot connect the 24V cable. This will cause damage to the printer
electronics or the power supply.
Connect the cable from the power supply to the power connector on the back of the
printer.
3.
Connect the power cable to the line outlet.
4. Turn ON the power.
Table 1 • Current Consumption
Mode58-60 mm paper width80 – 82.5 mm paper width
Idle150 mA150 mA
Standard text printing2 A average3 A average
All black printing6 A8.5 A
09/14/2009TTP 2000 Technical ManualP1002902-002
Installation
26
Making a Self-Test Printout
Making a Self-Test Printout
A Self-Test Printout provides a printout showing information specific to the printer, including:
• Firmware version
• Control board (PCA) revision
• Paper width
• Serial number
• Installed fonts and logotypes
• Parameter settings
• Barcode support
To make a Self-Test Printout:
1. Enter Self-Test Mode using one of the following methods:
If…Then…
the printer has firmware
version 3.83 or higher
the printer has firmware lower
than version 3.83
Press and hold the Feed button for 3 seconds.
a. Press and hold the Feed button just after closing the
print head.
b. See Figure 16. Press and hold the Feed button (1)
while turning on the power (2) to the printer.
c. Hold down the Feed button until printing starts.
Each successive time the Feed button is pressed
will produce an additional Self-Test printout until
Self-Test Mode is exited.
d. Exit Self-Test Mode by power cycling the printer
(turning the power off then on again). If the power
switch is not easily accessible, open and close the
print head.
P1002902-002TTP 2000 Technical Manual09/14/2009
Making a Self-Test Printout
1
0
Self-test
Figure 16 • Locate the Feed Button and On/Off Switch
Installation
27
09/14/2009TTP 2000 Technical ManualP1002902-002
Installation
www.zebra.com
TTP 2030 Kiosk Printer
Logotype No. 0
28
Customizing the Self-Test Printout
Customizing the Self-Test Printout
The self test printout starts with a text line and a Zebra logotype. This logotype is a printout of
the logotype stored in position 0. To customize self-test printouts, delete all logotypes and
store a custom logotype in position 0. Refer to Logotypes on page 74 for more information.
Figure 17 • Logotype No. 0 is printed on the self test printout.
Installing a Printer Driver
A printer driver for Microsoft Windows™ is available on the Zebra web site
http://www.zebra.com. Please follow the installation instructions that accompany the drivers
and refer to the Kiosk Driver Reference Guide, Part No. P1006873-001, available on
www.zebra.com for detailed driver information.
P1002902-002TTP 2000 Technical Manual09/14/2009
4
Operation
09/14/2009TTP 2000 Technical ManualP1002902-002
Operation
Temperature-sensitive
coating
SW96074C
1
SW96075C
2
Glue or similar
substance
30
Installing a Paper Roll
Installing a Paper Roll
1. Turn the new paper roll as shown in Figure 18. The paper should be inserted into the
printer with the temperature-sensitive side up.
Figure 18 • Paper Roll Orientation
2. Tear off a full turn of the paper from the new paper roll.
Caution • This is important since the outer end of the paper is usually fixed to the roll with
glue or other adhesive substance that might cause a paper jam or print head damage.
Figure 19 • Tear Off a Full Turn from the New Paper Roll
3. Make sure the printer is turned ON.
P1002902-002TTP 2000 Technical Manual09/14/2009
Operation
90º
Thermal side (top)
Cut off at
a 85º-95º
angle
Installing a Paper Roll
4. Cut the paper at a suitable angle. See Figure 20.
Figure 20 • Suitable Paper Edge for Auto Load
Important • The paper sensor for 58 mm and 60 mm paper is at the same side as the interface
connector, while the sensor for 80 mm and 82.5 mm paper is on the power connector side. 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.
31
Figure 21 • Insert the New Paper
09/14/2009TTP 2000 Technical ManualP1002902-002
Operation
p
32
Clearing Paper Jams
Clearing Paper Jams
Should a paper jam occur, follow the procedure below:
1. Open the print head by pressing the green release lever toward the rear of the printer.
2. Lift the print head.
Figure 22 • Opening the Print head
3. Remove all jammed paper and make sure the paper path is clear before closing the print
head.
Figure 23 • Remove Jammed Paper
P1002902-002TTP 2000 Technical Manual09/14/2009
5
Programming
There are two ways of generating a printout with the TTP 2000 printer: using the KPL Control
Language or using a printer driver.
KPL Control
Language
Printer DriverAll TTP 2000 printers can print documents through a driver. When a Windows driver is
When operating in this mode, you have direct control over what the printer does using
KPL command sequences. The printer has two operation modes you can choose from.
In variable page mode, the printer can act as a simple word processor, printing text that it
receives. It can also print some types of barcodes and basic graphics in this mode. The
selection of fonts and barcode types that are available are limited to what is stored in the
flash PROM and the firmware of the printer. In this mode, information is printed in the
same sequence as it is received.
In fixed page mode, you can place rotated text, barcodes, images, and ruled lines. This
mode provides more flexibility than variable page mode, but is limited by available
printer memory. Printout elements can be specified in any order. You instruct the printer
when your layout is complete, and it is all printed at once.
Selection of the mode is controlled by the setting of parameter n36. (Refer to Document
Mode on page 89 for more information about parameter n36)
Use the Zebra Toolbox (available from zebra.com) to easily build text oriented designs.
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. When using a driver, printout
is not limited by printer memory.
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.
09/14/2009TTP 2000 Technical ManualP1002902-002
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 t e xt
text text
text text
text text
text text
Text text text text text text text text text text
KPL Control
LanguageText 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 24 • Printout Styles
P1002902-002TTP 2000 Technical Manual09/14/2009
How the Commands are Described
Description of command
Mnemonic
Decimal representation of command
Hex representation of command
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. represent values that you specify to control how the command behaves. These are
different for each command and are explained in the text that follows each command
description.
Examples
Command examples are formatted in Courier and typed in the same way as used in the
Zebra Toolbox:
Where <ESC> means the escape character 27 (hexadecimal 1B). Numbers between less-than
and greater-than characters, for example <1><19>, means 1 and 19 decimal. When the
numbers indicate a hex value, a leading h and then a space is placed before the hex value
(<h 1><h 13>).
<ESC>&P<1><19>
09/14/2009TTP 2000 Technical ManualP1002902-002
Example • <65>, <h 41> and A are three different ways of expressing the character A.
Programming
36
How the Commands are Described
Two-Byte Character Definitions
Some commands and parameters are used with a two-byte value definition because the internal
structure of the printer's firmware limits access to values greater than 255.
To represent values greater than 255 in this two-byte format, divide the value by 256. The
whole number (quotient) is the value of the leading byte and the remainder (modulo) is the
value of the trailing byte.
Example • To represent 731 in two-byte notation, divide 731 by 256.
:
731 ÷ 256 = 2 with a remainder of 219 (2 x 256 + 219 = 731)
Therefore, the two-byte representation of 731 is <2><219>.
P1002902-002TTP 2000 Technical Manual09/14/2009
Summary of Control Codes & Escape Sequences
Summary of Control Codes & Escape Sequences
Table 2 • Control Codes and Escape Sequences in Alphabetical Order
Programming
37
CommandHexDecimalFunction
ESC #1B 2327 35Calibrate TOF Sensorpage 39
ESC Z1B 5A 27 90 Go to next Top of Formpage 39
ESC o n11B 6F n1 27 111 n1 Text and logotype orientation page 40
ESC N n11B 4E n127 78 n1Align Textpage 40
BS 08 8 Backspacepage 44
CAN 18 24 Cancelpage 44
CR 0D 13 Carriage returnpage 44
EM n 19 n125 n1Enforced Clear Presenterpage 57
ENQ 05 5 Clear Presenterpage 58
ESC ACK n1 1B 06 n127 6 n1Acknowledge Markerpage 70
ESC |1B 7C n1…nx27 124 n1…nxBarcode printpage 49
ESC ! n11B 21 n127 33 n1Select Fontpage 41
ESC & 01B 26 00 27 38 0 Load Fontpage 60
ESC & 11B 26 01 27 38 1 Load Logotypepage 59
ESC & 41B 26 04 27 38 4 Store current Parameter Valuespage 59
ESC & C1B 26 43 27 38 67 Erase all Fontspage 60
Note • In all responses from the printer the most significant byte (MSB) is transmitted first
P1002902-002TTP 2000 Technical Manual09/14/2009
Software Command Syntax
The commands in this section are grouped according to 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.
Black Mark (Top-of-Form) Commands
See also Aligning Preprint and Thermal Print on page 101.
Programming
Software Command Syntax
39
ESC #
1B 23Hex
27 35Decimal
ESC Z
1B 5A Hex
27 90 Decimal
Calibrate TOF Sensor
When the printer is not in black mark mode, the calibration measures the out of paper level
(parameter 58) and the whiteness of the paper.
In black mark mode it also determines if it should trigger on black marks or holes, then
measures the contrast of the mark and distance between marks, then sets parameters n37 -n40,
n51, n57 bit 3, and n58 to suitable values for the analyzed ticket.
To make the calibration permanent, send <ESC>&<4>, store parameter values.
Note • If black mark calibrations fails, the printer will indicate error code 11 by blinking 11
times when you hold the Feed button pressed, and by answering NAK 11 to the status
enquiry.
Go to Next Top of Form
In black mark mode,
an ESC Zstarts looking for a black mark at the current position and
continues to search for the page length (as defined by n37 and n38) plus the mark height (as
defined by n39) plus 10 mm. If no black mark is found, bit 3 in byte one in the ENQ 6 response
is set to 1 and the printer will report NAK 10 on the next ENQ 1 or ENQ E query.
When black mark mode is disabled, ESC Z will perform a form feed.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
40
Software Command Syntax
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.
ESC o n1
1B 6F n1 hex
27 111 n1 decimal
ESC N n1
1B 4E n1hex
27 78 n1decimal
Text and Logotype Orientation
Changes the orientation of text and logotypes.
n1 = 0Gives portrait orientation
n1 = 1Gives landscape orientation
n1 = 2Gives upside down portrait orientation
n1 = 3Gives upside down landscape orientation
Portrait and landscape or upside down portrait and upside down 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 • The upside-down orientations (n1 = 2 and n1 = 3) were introduced in firmware version
3.27g. They can only be used with Fixed Document mode.
Align Text
Changes the alignment of text and logotypes printed with ESC L on the current line; on
subsequent lines, it defaults back to Left align. The alignment can be changed multiple times
per text line.
n1 = 0Left
n1 = 1Center
n1 = 2Right
P1002902-002TTP 2000 Technical Manual09/14/2009
Programming
Software Command Syntax
41
ESC ! n1
1B 21 n1hex
27 33 n1decimal
Select Font
This command selects one of the printer’s eight installed fonts. The font design depends on
which fonts have been loaded into the printer’s flash PROM. Make a test printout to see which
fonts are available in your printer.
n1 = 0Normal font (font 0)
n1 = 1Font 1
n1 = 2Font 2
n1 = 3Font 3
n1 = 4Font 4
n1 = 5Font 5
n1 = 6Font 6
n1 = 7Font 7
Note • For information on loading fonts, see Font Loading on page 71.
This command performs the same function as setting parameter n14, Font Selection. Refer to
Font Selection on page 86 for more information.
ESC B n1
1B 42 n1Hex
27 66 n1decimal
If a line of text is too long to be printed due to the font, position, print width, or any other
factor, the text line will be automatically wrapped. If the wrapping occurs, any alignment
command is canceled. Different fonts can be used on the same line.
Selecting an empty font location will set bit 4 of byte 1 in the ENQ 6 response to 1. The printer
will also return a NAK 12 on the next ENQ 1 enquiry. This NAK 12 is a one-time error that
will clear after read.
Note • If more than 379 characters are sent to the printer before an LF, the text buffer is
printed automatically. Each font or text style change consumes two bytes in this buffer. The
text is formatted based on the formatting commands as they were received.
Bold
Bold command works best with normal character width. With higher widths, the effect of bold
becomes less pronounced. The Bold command can be applied to single characters, words, or
text lines.
Bold remains in effect until deactivated or until the printer is reset.
a
n1 = 0Turns OFF bold (Normal)
n1 = 1Turns ON bold
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
42
Software Command Syntax
ESC i n1
1B 69 n1Hex
27 105 n1decimal
ESC T n1
1B 54 n1Hex
27 84 n1decimal
Italics
The Italics command works best with normal character width and height. At other values, the
output can become pixelated. The Italics command can be applied to single characters, words,
or text lines.
Italics remains in effect until deactivated or until the printer is reset.
n1 = 0Turns OFF Italics (Normal)
n1 = 1Turns ON Italics
Reverse Text and Background
Selects normal black text on a white background or reversed white text on a black background.
This command remains in effect until deactivated or until the printer is reset. Single characters,
words, or complete text can be reversed.
n1 = 0Gives normal print, black on white
n1 = 1Gives reversed print, white on black
ESC u n1
1B 75 n1hex
27 117 n1decimal
ESC h n1
1B 68 n1hex
27 104 n1decimal
Note • Reverse text and underline invert the print data. This means that the order in which
the commands are issued affect the printout if the text overlaps, such as in the case of italics.
Underline
n1 = 0Turns OFF underline
n1 = 1..7Turns ON a 1–7 pixel thick underline
Characters, single words, or complete text lines can be underlined.
Text Height
This command scales the height of the text printed by a factor of up to 16x. The valid range of
values is 0 to 15.
n1 = 0Resets the character height to the base character height
n1 = 1...15Increases the character height to 2...16 times the base character height.
In combination with variable character width (<ESC>w<n1>), give highly legible characters
depending on the font to which the command has been applied.
Different heights can be mixed on the same print line.
P1002902-002TTP 2000 Technical Manual09/14/2009
Programming
Software Command Syntax
43
ESC w n1
1B 77 n1hex
27 119 n1decimal
This command scales the width of the text printed by a factor of up to 8x. The valid range of
values is 0 to 7.
n1 = 0Resets the character width to the base character width
n1 = 1...7Increases the character width to 2...8 times the base character width.
In combination with variable character height (<ESC>w<n1>), give highly legible characters
depending on the font to which the command has been applied.
Different widths can be mixed on the same print line.
Important • Use of the multiple width function when printing barcodes is not recommended
as the text data may become illegible.
ESC t n1...n5 data
1B 74 n1...n5datahex
27 116 n1...n5data decimal
Prints a text string at the specified XY position. The string is formatted based on the current
active formatting attributes except for alignment.
Text Width
Print Text at XY
n1n2Two byte definition of the X print position (in pixels).
n3n4Two byte definition of the Y print position (in pixels).
n5The 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.
dataThe 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. Data that extends off the edge of the printable
area will not be wrapped to the next line.
After the data has been printed, the cursor will return to the position it had before the print text.
Note • The Y coordinate will be ignored if the printer is in variable document mode (n36=1).
Note • <ESC>t clears the text buffer each time it is used, destroying any unprinted text on
the same line. Commands will not be cleared.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
44
Software Command Syntax
BS
08 Hex
8 Decimal
CAN
18 hex
24 decimal
CR
0D hex
13 decimal
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.
The print position can only be moved one step to the left. Multiple backspaces in succession
are ignored.
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.
Parameter n33 (CR/LF Behavior) can be changed so the printer interpretes <CR> as follows:
LF
0A hex
10 decimal
• Interpret it as <CR>, returning the print position to beginning of line without line feed.
• Interpret <CR> as <CR><LF>, inserting line space as specified by the line spacing setting
(see parameter n13), and returning the print position to beginning of the line.
See CR/LF Behavior on page 88.
Linefeed
Linefeed is interpreted as <CR><LF> by default. This inserts line spacing as specified by the
line spacing setting (see parameter n13), and returns the print position to beginning of the line.
<LF> also converts text from the text buffer to pixel lines and stores them in the line buffer,
ready to be printed.
By changing the default settings, you can:
• Interpret <LF> as Linefeed. This inserts line space as specified by the line spacing setting
(see parameter n13), without returning the print position to the beginning of the line.
• Ignore <LF>.
See CR/LF Behavior on page 88.
P1002902-002TTP 2000 Technical Manual09/14/2009
Programming
Software Command Syntax
45
ESC d n1
1B 64 n1hex
27 100 n1decimal
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 or the line spacing setting specified by n13,
whichever is greater (refer to parameter Line Spacing on page 86).
If an <LF> has not yet been sent to convert the text buffer to the line buffer, the lines printed
by <ESC>d are copies of that line. Following this, the print position is returned to the
beginning of the line.
Form Feed
Prints data from the text buffer and feeds the paper to the top of the next page.
In fixed document length mode (n36 = 0) this command prints data in the text buffer and feeds
the paper to the top of next page.
In variable document length modem, <FF> advances to the minimum page length as specified
by n37 and n38. If the printout already is longer than the minimum page length, <FF> does
not feed any additional paper.
In black-mark mode, the <FF> command looks for a black mark, see <ESC>Z.
HT
09 hex
9 decimal
If Auto Cut (n34) is set to 1 (see Auto Cut after FF on page 88), FF effects form-feed, cut, and
eject.
Note • Use Parameters n37 and n38 — Page Length Minimum on page 104 to define page
length.
Horizontal Tabulation
Shifts the current print position to the next Tab position.
Set tab positions with parameters n15 to n30. Refer to Tab Stop on page 87.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
46
Software Command Syntax
Barcode Commands
TTP 2000 can print EAN 8, EAN 13, UPC, 2-of-5 Interleaved, ISBN, Code39, Code128, and
EAN128 barcodes with its standard firmware. A special firmware is available where some of
the 1D barcodes are replaced with the PDF 417 2D barcodes. See Firmware on page 116, and
Barcode print (PDF 417) on page 49.
Figure 25 • Samples of Barcodes
Example • This example will print an EAN barcode with height = 10 mm, 15 mm in from
Bar codes can only be printed in portrait mode unless Fixed Document Mode is selected. See
Parameter n36 — Document Mode on page 104.
n1Specifies the bar code field number. The valid range is 0 – 15. Bar code fields may
n2n3Specifies the X coordinate of the bar code field origin (n2 is the higher order byte
n4n5Specifies the Y coordinate of the bar code field origin (n4 is the high order byte and
n6Must be specified but is not used.
Barcode field Specify
be specified in any order.
and n3 the low order byte).
n2 and n3 are one byte numbers. Refer to Two-Byte Character Definitions
on page 36 for more information about two byte values. Values that place the
barcode outside the printable area may cause the barcode to be partially printed and
be unreadable.
n5 is the low order byte).
n4 and n5 are one byte numbers. Refer to Two-Byte Character Definitions
on page 36 for more information about two byte values. Values that place the
barcode outside the printable area may cause the barcode to be partially printed and
be unreadable.
n7n8Specifies the height of the bars in pixels (n7 is the high order byte and n8 is the low
order byte).
n9Specifies the type of bar code. The following types are supported.
n9 = 0 EAN 8 or 13 (auto detect). The printer calculates the necessary check 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
n10Specifies the thickness of the narrow bar 0=1 pixel, 1=2 pixel, and so on.
n11Specifies the wide-bar-to-narrow-bar ratio. Only used in Code 39 and 2-of-5
interleaved where different ratios are allowed
This 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.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
48
Software Command Syntax
Code 128 / EAN128
The following codes select function codes in Code 128:
Name Dec Hex
FNC1 193 C1h
FNC2194C2h
FNC3 195C3h
FNC4 196 C4h .
Starting the data string with FNC1 generates an EAN128 code.
Note • By default, the printer will print barcodes with human readable characters. To avoid
this behavior, load the font 1x1.swf to the PROM and select that font with <ESC>!<n1>
before you specify the barcode. After the <ESC>BW command, you can return to the normal
font. This font is available in the Toolbox application.
ESC BW n1 n2...nx NUL
1B42 57n1nxHex
027066 087 n1nxDecimal
Writes data to the bar code field reserved by the ESC BS command.
n1Specifies the barcode field number. The valid range is 0 - 15. This number must
be the same number used to specify the field using the <ESC>BS command.
Fields can be specified in any order but other values than 0 to 15 are ignored.
n2 . . . nxSpecifies bar code data bytes. Up to 80 bytes may be specified.
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.
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 located 15 mm to
Clears the bar code field reserved by command <ESC>BS.
nSpecifies which bar code field to clear. The range is 0 to 15. The fields may be
ESC |n1 nx
1B7Cn1nx Hex
027124 n1nx Decimal
This command positions and prints a PDF 417 2D barcode.
Note • PDF 417 requires special firmware in the printer. See Firmware on page 116.
n1Specifies the type of bar code. The following types are supported:
n1 = 5PDF417
n2n3Specifies the X-coordinate of the bar code field origin. n2 is the most
n4n5Specifies the Y-coordinate of the bar code field origin. The Y-coordinate is
Barcode Clear
.
cleared in any order.
Barcode print (PDF 417)
significant byte (MSB). n3 is the least significant byte (LSB).
discarded in variable document mode. n4 is the most significant byte (MSB).
n5 is the least significant byte. (LSB).
n6
Rows of barcode data. The valid range is 0 for automatic row calculation or
3-90 to specify the number of rows.
n7
Columns of barcode data. The valid range is 0 for automatic column
calculation or 1-30 to specify the number of columns.
n8Specifies the error correction level for the PDF417 barcode. The valid range is
0 for automatic calculation or 1-9 to specify an error level (ErrorLevel 0 to
ErrorLevel 8, respectively).
n9Specifies in pixels the height of each row of the barcode.
n10Specifies the scaling factor of the barcode
n11n12Specifies the length of the data to follow.
Both n11 and n12 are specified as 0. The data field (n13...nx) is terminated by
a null.
If n11 and n12 are non-zero, they specify the length of the n13...nx data that
follows. The valid range for this parameter is 0 (which species the null
terminated behavior) and 1 to 2710. Even when using the null terminated
behavior, you cannot specify more than 2710 bytes (not including the
terminating null).
n13...nxByte data to be encoded. Data must be null-terminated if n11 and n12 are 0 or
must be the length specified by n11 and n12 otherwise.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
50
Software Command Syntax
Example • To print Zebra as a PDF 417 barcode, send the following to the printer:
This example will print a barcode that looks like this:
P1002902-002TTP 2000 Technical Manual09/14/2009
Graphics Commands
Programming
Software Command Syntax
51
ESC b n1...n5data
1B 62 n1...n5Datahex
27 98 n1...n5Datadecimal
Prints a black & white (1-bit color depth) Windows bitmap (BMP-file) at the specified X-Y
position. The bitmap must be a complete uncompressed Windows bitmap where the data starts
with BM. The maximum bitmap size is limited to the free RAM printed on the self-test
printout.
n1Always 0
n2n3Two byte definition of the X print position (in pixels).
n4n5Two byte definition of the Y print position (in pixels).
dataBitmap 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<0>) prints the image in portrait orientation, while
selecting the vertical mode (with <ESC>o<1>) prints the image in landscape orientation.
Note • The Y print-position and horizontal/vertical orientation only works if Fixed
Document Mode is set. See
Print Bitmap at XY-position
Parameter n36 — Document Mode on page 104.
ESC s n1 data
1B 73 n1DataHex
27 115 n1DataDecimal
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.
Caution • Always send the number of bytes that you specify with n1.
If you transmit more data than the number of bytes specified by n1, the rest of the bytes will
be interpreted as text or commands. This can cause numerous problems in the printer as
graphics data can contain any hex value..
Send dot-line, 203 dpi
n1Determines the number of bytes. Range: 1-255.
<data> 1 – x bytes, where x is the paper width in bytes. The paper width is set by
parameter n48. If n48 is set to 0 (automatic width), 58 mm and 60 mm printers will
use 54 bytes, while 80 mm and 82.5 mm printers use 72 bytes. The maximum
width setting is 80 bytes.
If you specify more bytes in n1 than the paper width of the printer, the additional
bytes are discarded. If you specify less bytes in n1 than the paper width of the
printer, the printer will fill the remaining portion of the dot line with blank pixels.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
<ESC>r<0><0><0><0><1><193><0><24><3>
X start Y start
X stopY stop
Fill:
0=black
1=fine
2=medium
3=coarse
SW99006B
52
Software Command Syntax
ESC r n1...n9
1B 72 n1...n9hex
27 114 n1...n9decimal
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.
n1n2Two byte definition of the X print position to start the ruler line (in pixels)
n3n4Two byte definition of the Y print position to start the ruler line (in pixels)
n5n6Two byte definition of the X print position to stop the ruler line (in pixels). This
n7n9Two byte definition of the Y print position to stop the ruler line (in pixels). This
n9Specifies the fill pattern. The valid range is 0 to 3. 0 is black and 1-3 are various
Note • The Y print-position and horizontal/vertical orientation only works if Fixed
Document Mode is set. See
Print Ruler Line
value must be larger than the X start position.
value my be larger than the Y start position.
checkered patterns. Values out of range are interpreted as 0.
Parameter n36 — Document Mode on page 104.
Figure 26 • Printout with Checkered Ruler Line
P1002902-002TTP 2000 Technical Manual09/14/2009
Programming
Software Command Syntax
53
ESC g n1...n5
1B 67 n1...n5hex
27 103 n1...n5decimal
ESC L n1
1B 4C n1Hex
27 76 n1Decimal
Print Logotype
Prints a customized logotype stored in the flash PROM. See also Logotypes on page 74.
n1One-byte logotype identification number. The valid range is 0 to 15.
n2n3Two byte definition of the X print position to place the upper left corner of the
logotype (in pixels). If the logotype extends outside the printable area, it will
be clipped.
n4n5Two byte definition of the Y print position to place the upper left corner of the
logotype (in pixels). If the logotype extends outside the printable area, it will
be clipped.
Note • The Y print position and horizontal/vertical orientation only works if Fixed
Document Mode is set. Refer to Document Mode on page 89 for more information.
Note • For information about logotype loading, refer to ESC & 1 on page 59.
Print Logotype at Current Position
Prints a customized logotype stored in the flash PROM at the position of the cursor. The
bottom edge of the logotype is positioned at the baseline of the text on the line. If the logotype
is taller than the text, the line spacing is increased as necessary.
n1One-byte logotype identification number. The valid range is 0 to 15.
Note • When using ESC L, the logotype is added to the text buffer, so a text printing
command such as LF or FF must be used to generate the printout.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
54
Software Command Syntax
Print Commands
ESC p
1B 70 Hex
27 112 Decimal
ESC P n1
1B 50 n1Hex
27 80 n1decimal
Print
This command makes the printer print the contents of the line buffer.
Text is converted to image data 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 occurs automatically at:
Cut <RS> and <ESC><RS>
Form feed<FF>
Clear presenter <ENQ>
Run presenter <ESC><FF><n1>
Text or line buffer full
When the FF button is pressed
Print Self-test Printout
ESC J n1
1B 4A n1hex
27 74 n1decimal
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 has been made by a
driver before <ESC>P is sent to the printer.
For more information, refer to Making a Self-Test Printout on page 26.
n1 = 0 Gives standard self-test printout.
n1 = 1 Gives a character set printout using the font selected by parameter n14.
Paper Advance
The value n1 represents the number of dot lines the paper is to be transported forward. The
valid range is 1 to 255.
A dot line is 0.125 mm, and 255 dot lines equal approximately 32 mm.
Important • Using paper feeding command (<ESC>J, <ESC>j, and <ESC>Q) when
operating in fixed page mode (n36 = 0) causes the fixed page to be printed and then the feed
operation occurs. To create white space without generating a printout of the fixed page, use
<LF>.
P1002902-002TTP 2000 Technical Manual09/14/2009
Programming
Software Command Syntax
55
ESC j n1
1B 6A n1hex
27 106 n1decimal
ESC Q n1 n2
1B 51 n1hex
1B 81 n1Decimal
Paper Reverse
The value n1 represents the number of dot lines the paper is to be transported backwards. The
valid range is 0 to 255.
A dot line is 0.125 mm, and 255 dot lines equal approximately 32 mm.
Caution • NEVER reverse more than 7 mm (n1 = 56) at top of page! Theplaten can lose
grip on the media, which can fall out of the printer.
Important • Using paper feeding command (<ESC>J, <ESC>j, and <ESC>Q) when
operating in fixed page mode (n36 = 0) causes the fixed page to be printed and then the feed
operation occurs. To create white space without generating a printout of the fixed page, use
<LF>.
Quick Advance
The value n1 n2 represents high byte and low byte of the number of dot lines the paper is to be
transported forward. Minimum value is 1, and maximum value is 32767.
A dot line is 0.125 mm, and 32767 dot lines equal approximately 4.1 m.
Important • Using paper feeding command (<ESC>J, <ESC>j, and <ESC>Q) when
operating in fixed page mode (n36 = 0) causes the fixed page to be printed and then the feed
operation occurs. To create white space without generating a printout of the fixed page, use
<LF>.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
56
Software Command Syntax
Cut And Present Commands
Important • The printer does not receive data while cut and present commands are executed.
RS
1E Hex
30 Decimal
ESC RS
1B 1E Hex
27 30 Decimal
Cut and Eject
The paper is cut and ejected through the presenter module. The <RS> command automatically
gives the eject length of 50 mm in addition to the amount specified by parameter n47.
If the printout length is less than the minimum page length (75 mm or the value specified by
n37 and n38, whichever is greater), paper is fed until the minimum printout length is reached
before execution of any cut command.
Note • The cut position is 9 mm after the print line. This makes the last 72 dot lines of the
previous page end up on the beginning of the next page. To have the printer position the cut
after these dot lines, set parameter n49 = 1 (Advance before cut to automatic distance
calculation). The auto advance function also adds an additional 16 dot lines (2 mm) of feed
due to the width of the cutter blade.
If you prefer to set n49 to 0 (off), you can use a paper advance command to perform the same
task:
<ESC>J<88><RS>
This will position the cut 16 dot lines (2 mm) after the end of the print data.
Cut Only, No Eject
<ESC><RS> causes the paper to be cut but performs no eject operation.
Eject can be effected with the <ESC><FF>
<n> command (see Eject (Run Presenter)
on page 57).
To avoid thin strips of paper in the printer, multiple cut commands without paper feed inbetween will not be performed. If the printout length is less than the minimum page length
(75 mm or the value specified by n37 and n38, whichever is greater), paper is fed until the
minimum printout length is reached before execution of any cut command.
Also, refer to the note in <RS> concerning the cut position with regard to the print line.
Text to be printed<CR><LF>
<ESC><RS>
<ESC><FF><30>
will print “Text to be printed” and cut and then eject 30 mm.
Note • Use the Cut Only command if you want full control over the printer from your
system. When using <ESC><RS>, you must add commands to feed to the correct cut
position (if n49 is not set to 1) and commands to eject the paper so that the customer can
retrieve the printout.
P1002902-002TTP 2000 Technical Manual09/14/2009
Programming
Kiosk
wall
n47
Eject n
Printer
Eject n mm’s
Software Command Syntax
57
US
1Fhex
031decimal
ESC FF n
1B 0C n1hex
27 12 n1decimal
Partial Cut (Unit Separate)
Prints a dotted line, a pair of scissors, and partially cuts the paper from both edges towards the
center to make it easier to tear off the paper. This command causes all data in the image buffer
to be printed and generates the printout of a fixed page when n36 = 0.
The length of the partial cut can be set with parameter n60. Refer to Partial Cut Length
on page 97 for more information.
Eject (Run Presenter)
<ESC><FF><n> ejects the document through the presenter module. Variable n represents the
eject-length in millimeters. The setting of parameter n47 is always added to the value of n.
EM n
19 n1Hex
25 n1Decimal
The valid range for n is 1 to 127. The range 128-255 is reserved for future use.
Place this command after a cut command (<ESC><RS>) to partially eject the printout to the
customer. Set the eject length so that the customer sees that the printout comes out of the kiosk
wall. The pull detector gives motorized eject of the rest of the printout when the customer
begins to pull the paper.
Note • The cut and eject command <RS>, automatically ejects 50 mm in addition to the
amount stored in parameter n47.
Enforced Clear Presenter
<EM><n> functions the same as <ENQ> but overrides the Retract and Retain parameter (n45)
with another presenter behavior. The valid range of n is 0 to 255. Values of 0 - 99 cause the
printer to eject the paper as with ENQ. Values of 100 - 255 cause paper retraction (refer to
Presenter Mode on page 92 for more information). The command will clear the presenter
immediately with printing synchronization.
<EM><0>Ejects the presented page
<EM><100>Retracts the presented page
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
58
Software Command Syntax
ENQ
05 Hex
5 Decimal
ESC f n
1B 66 n1Hex
27 102 n1decimal
Clear Presenter
<ENQ> clears the paper path of the presenter of printouts. This command completely ejects a
document that has not been removed during the print/cut/eject operation. Parameter n45
controls the behavior of this command (refer to Presenter Mode on page 92 for more
information). If n45 is 0 - 99 or 201 - 255, this command causes a full eject of the media. If
n45 is 100 - 199, it causes a full retraction of the media. For example, to eject a document not
removed during the previous print/cut/eject operation. Parameter No. 45 controls how the
presenter is cleared.
Presenter Loop ON/ OFF/ Max Length
<ESC>f<n> is used to limit the height of the loop formed in the presenter module during
printing. If your kiosk design does not have space above the printer to store the loop, it may be
desirable to change the height of the loop that forms, or disable it entirely. When the maximum
loop length is reached, the printer will begin presenting the media while continuing to
maintain the selected loop length.
n specifies distance that the loop will extend upwards from the printer in centimeters. For
example, if you specify a value of 5, the loop will not be allowed to exceed 5cm from the top
of the printer. A value of 0 disables the looping action of the presenter and media is fed out
directly.
Using this command has the exact same effect as setting paramter n9. Refer to Presenter Loop
Length on page 86 for more information.
Important • This command is obsolete and may disappear from future firmware releases. It
is recommended that you use parameter n9 instead of this command to set the loop length..
P1002902-002TTP 2000 Technical Manual09/14/2009
System Related Commands
Programming
Software Command Syntax
59
ESC ?
1B 3F Hex
27 63 Decimal
ESC @
1B 40 Hex
27 64 Decimal
ESC & 1
1B 26 01 Hex
27 38 1 decimal
Reset (Full)
<ESC>? restarts the printer with a complete reset. During this operation, all buffers are
purged, all memory is cleared, and stored parameters are reloaded. USB printers will go off the
bus during execution of this command and will reconnect when the reset is complete. After
issuing this command, wait approximately 3 seconds for the printer to reset before issuing data
to the printer.
Reset (Initialize)
<ESC>@ terminates command processing and reinitializes the control board. All parameters
are set to power on values and all buffers are purged. After issuing this command, wait
approximately 3 seconds for the printer to reset before issuing data to the printer.
Load Logotype
<ESC>&<1> stores a logotype bitmap in the flash PROM. The logotype is stored to flash
memory and the printer is reset. The logotype can then be printed with <ESC>g and <ESC>L
commands, see ESC g n1...n5 on page 53 and ESC L n1 on page 53. Also see Logotypes
on page 74. The printer indicates that storage is complete by operating the presenter motor for
a short period of time.
ESC & L
1B 26 4C Hex
27 38 76 decimal
ESC & 4
1B 26 04 Hex
27 38 4 decimal
Note • The Toolbox application can be used to load new firmware.
Erase All Logotypes
<ESC>&<L> erases all logotypes stored in the flash PROM. The printer indicates that erasure
is complete by operating the presenter motor for a short period of time.
Store Current Parameter Values
<ESC>&<4> stores the current setting of all parameter values in the printer’s flash memory.
These parameters are then used as default power on parameters. Storing the parameters to flash
memory takes approximately 4 seconds, during which time the printer cannot communicate.
The printer indicates that storage is complete by operating the presenter motor for a short
period of time.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
60
Software Command Syntax
ESC & 0
1B 26 00 hex
27 38 0 decimal
Load Font
<ESC>&<0> is used to load a font to the printer flash PROM. The font is placed in the first
free position. The printer indicates that storage is complete by operating the presenter motor
for a short period of time. The font position is determined by the order that the fonts are loaded
into the printer.
A kiosk printer 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 FastFont application included with Toolbox and can be loaded
or deleted using the Toolbox application. The fonts loaded are not used by the Windows driver,
so it is not necessary to load fonts into the printer to use the Windows driver.
For complete specification of the font format, refer to Font Loading on page 71.
Note • The available font memory is printed on the self-test printout. A maximum of 8 fonts
may be loaded (numbered 0 to 7). If you attempt to load a font that is larger than available
memory or attempt to load more than 8 fonts, the font loading command will not load the
font.
Note • The Toolbox application can be used to load new firmware.
ESC & C
1B 26 43 Hex
27 38 67 decimal
ESC & D
1B 26 44 Hex
27 38 68 decimal
ESC & F
1B 26 46hex
27 38 70decimal
Erase all Fonts
<ESC>&C erases all fonts stored in the flash PROM. The printer indicates that erasure is
complete by operating the presenter motor for a short period of time.
Erase Fonts 4 to 7
<ESC>&D erases the fonts in positions 4–7. Fonts in positions 0–3 are not affected by this
command.
The font position is determined by the order that the fonts are loaded into the printer. This
command can take up to 20 seconds to execute.
Reset Parameter Profile
<ESC>&F temporarily sets all parameters to predefined default values that are stored in the
firmware. To make the default values permanent, store them in the EEPROM with command
<ESC>&<4>.
Unless the parameters are stored, a reset command or power cycle will return the parameters to
the settings stored in the EEPROM.
P1002902-002TTP 2000 Technical Manual09/14/2009
Programming
Software Command Syntax
61
ESC & P n1...n2
1B 26 50 n1...n2hex
27 38 80 n1...n2decimal
The printer stores its configuration settings in an EEPROM. When the printer is powered on,
the values are loaded from the EEPROM. Using this command, a parameter value can be
temporarily overridden. The value can later be made permanent with the <ESC>&<4>
command. Permanently stored values are loaded after a printer reset or at power on.
n1 Parameter number, range 1 -255.
n2 Parameter value. Refer to Default Parameter Settings on page 79 for
information about the valid range for each parameter number.
Set several parameters at once
You can use this command to set multiple parameters at once. The format for this option is as
follows:
<ESC>&P<0><n2><n3><data>
When operating in this mode, specify a value of 0 for n1, the first parameter you want to set for
n2, and the number of parameters to set for n3, followed immediately by the parameter data.
To set parameters that extend over a range in which the parameter number is not defined,
specify 0 for the parameters that do not exist. For example, to set n4 to n7, you must provide
all four parameters in data even though n6 does not exist.
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. (n2 = 5, n3 = 5)
<ESC>&P<0><15><5><5><10><15><20><25>
Store parameters permanently by sending <ESC>&<4>.
Load Firmware
This command should be used when you integrate firmware loading into your kiosk program.
After transmitting this command, send the firmware binary file. If the firmware is the proper
version for the printer and the firmware checksum is valid, the firmware is then programmed
into the printer's flash memory. This process can take up to 60 seconds and the printer will
reset when the process is complete.
Note • The Toolbox application can be used to load new firmware.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
62
Software Command Syntax
Status Reporting Commands
Important • All status commands except for the acknowledge marker are immediate. This
means that these commands bypass the print queue and are answered as soon as they possibly
can be.
Status codes are reset when:
• the conditions causing them are removed
• the printer is power cycled (turned off/on)
• the print head is lifted and then lowered to clear a paper jam.
ESC ENQ 1
1B 05 01 Hex
27 5 1 decimal
Status Enquiry
<ESC><ENQ><1> issues a status enquiry that results in response ACK (06 hex) if there are no
errors, or NAK (15 hex) and a byte indicating an error if one or more sensors report some
condition.
Table 3 • Status Codes
Status codeMeaning
ACKOK (printer is operable)
NAK 1Paper left in presenter module. Attempt to clear the paper path failed.
NAK 2Cutter jammed
NAK 3Out of paper
NAK 4Print Head lifted
NAK 5Paper-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 6Temperature error. The print head temperature has exceeded the 60 °C maximum limit.
NAK 7Presenter not running
NAK 8Paper jam during retract
NAK 0ABlack mark not found
NAK 0BBlack mark calibration error
NAK 0CIndex error
NAK 0DChecksum error
NAK 0EWrong firmware type or target for firmware loading
NAK 0FFirmware cannot start because no firmware is loaded or firmware checksum is wrong.
NAK 10Retract function 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 10h is reported.
Note • Errors 0B, 0C, and 10 are one-time errors that clear once they are read.
P1002902-002TTP 2000 Technical Manual09/14/2009
Programming
Software Command Syntax
Important • Errors 2 and 5 are terminal faults that require you to reset the printer before it
will be operable again. A reset means that any data in the buffer is lost.
The printer automatically recovers from the other conditions as soon as the condition is
corrected.
<ESC><ENQ><1> can only return one status code at a time. If there are two or more
simultaneous conditions, each condition should be cleared and the status enquiry repeated in
order to get a complete report of all status codes.
The host computer cannot be certain that all conditions have been cleared until an ACK is
received.
In the case of multiple error conditions, the one with the lowest number is reported.
Note • To read out all status information at once, use <ESC><ENQ>E.
63
ESC ENQ 2
1B 05 02 hex
27 5 2 decimal
Paper-near-end Enquiry
This command requests a paper-near-end sensor (paper low) status from the printer in a 1-byte
format.
Value = 1 indicates ”No paper”
Value = 0indicates ”Paper present” at the sensor position
Note • The status of the sensor is sampled every time the printout is cut. If three successive
samples show that there is no paper present at the sensor, the status reply changes to 1. This is
to prevent false readings if the side of the paper roll is not clean. If you want instantaneous
status of the sensor, use <ESC><ENQ><6> and examine the paper near end bit.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
64
Software Command Syntax
ESC ENQ 4
1B 05 04 hex
27 5 4 decimal
Fonts and Logotype Enquiry
<ESC><ENQ><4> requests information regarding loaded fonts and logotypes. This command
does not return information about the length of the structure, so you must read all the data up
to the last <CR><LF>.
<ESC><ENQ><5> returns a 2-byte response, reflecting the status of all virtual sensors.
Virtual sensors maintain their functionality in all configurations of this printer, while physical
sensors reported by <ESC><ENQ><6> may signal differently depending on installation
factors such as vertical or horizontal installation.
The same physical sensor can give several virtual statuses depending on when the sensor is
activated in the print cycle.
The first byte of the response is reserved for future use.
Second Byte:
76543210Bit
Sensor 1, Paper before head
Sensor 2, Black mark
Sensor 3, Paper after head
Sensor 4, loop ready
Sensor 5, presenter
Sensor 6, retract ready
Sensor 7, in retract
Sensor 8, at bin
Figure 27 • Physical-to-Virtual Sensor Mapping
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
66
Software Command Syntax
ESC ENQ 6
1B 05 06 hex
27 5 6 decimal
Status Report
Important • <ESC><ENQ><6> is for compatibility with older printers. Please use
<ESC><ENQ><5> in new applications.
Results in a 2-byte response, reflecting the status of each sensor. This command is intended as
a go/no go indication.
First Byte:
76543210Bit
Do not use!
-
Do not use!
Error black mark
-
Power has been OFF***
Print data exists**
Status code available*
Second Byte:
76543210Bit
Out of paper
Paper-near-end****
-
Paper at presenter
Cutter stuck
Print Head lifted
-
Retract unit mounted
Note • Mask away the undefined bits in your application program to avoid having to change
the application, if future firmware releases starts using them.
Mask first reply byte with E8h, Mask second reply byte with BBh
Table 4 • Sensor Status
* This bit indicates that a status code is available. Use ESC
ENQ 1 or ESC ENQ E
to fetch it.
**This bit tells you that there is data in the printer that has 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 63 .
Bit 4 and 5 in the first byte are reset when read.
P1002902-002TTP 2000 Technical Manual09/14/2009
Programming
Software Command Syntax
67
ESC ENQ 7
1B 05 07 Hex
27 5 7 decimal
ESC ENQ 9
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 0.
Example •
Send→ <ESC><ENQ><7>
Read← 02 29 (hex)
That is, a response with the value 02 29 (hex) indicates version 2.41.
Control Board Serial Number Enquiry
Results in a 6-byte response representing the serial number of the printer’s control board.
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 •
Send→<ESC><ENQ><10>
Read←n Where n can be ‘A’ (ASCII) or 41 (hex) or 65 (dec)
Head Temperature Enquiry
Results in a 1-byte response representing the temperature of the Print Head.
Example •
Send→<ESC><ENQ><11>
Read←n Where n is a value representing the approximate temperature in Celsius.
The answer is a signed byte (two's complement). If bit 7 is 1 than it’s a negative value, invert
all bits and add 1 to get the value.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
68
Software Command Syntax
ESC ENQ 12
1B 05 0C hex
27 5 12 decimal
ESC ENQ c
1B 05 63 hex
27 5 99 decimal
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 •
Send→<ESC><ENQ><12>
Read←01 30 (hex)
That is, a response with the value 01 30 (hex) indicates version 1.48.
Note • TTP 2000 does not store the bootware in the printer so this query will always return
<0><0>.
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 •
Send→<ESC><ENQ>c
Read←0—106 (decimal) This indicates that the string is 104 characters (plus two characters
indicating the string length)
P1002902-002TTP 2000 Technical Manual09/14/2009
Programming
Software Command Syntax
69
ESC ENQ E
1B 05 45 hex
27 5 69 decimal
Read Extended Status
Extended status is status from the printer together with devices connected to the I2C options-
2
bus available in some Zebra printers (the TTP 2000 series does not have any I
C bus so these
parts of the command are superfluous). The short message protocol gives replies up to 255
bytes. Other protocols may be defined in the future. Protocols are described in separate
documents.
<ESC><ENQ>E results in a variable length reply
:
n1 Protocol version, 11 (hex) = Short Message Protocol
n2Protocol length in bytes
n3-n255Data specified by the protocol
Short message status examples
Example 1 • Out of paper presenter Jam, and shutter open error.
110701052083872181Hex
Status code 1 (shutter device)
Device Shutter
Status code 7 (printer device)
Status code 3 (printer device)
Device local host (printer)
Tag message length (bytes)
Tag ID: Status messages
Protocol Length in bytes
Protocol SM, version 1 (short message)
Example 2 • No errors in any device.
ESC ENQ P n1
1B 05 50 n1Hex
27 5 80 n1Decimal
This command requests information about the setting of parameter n1, that is, the parameter
value stored in EEPROM or any parameter value temporarily set by other ESC commands.
n1= 1 gives the setting of parameter 1, etc. The parameter names are listed in “Serial
n1 = 0 gives a response where the first two bytes specifies the length of data to come, and
11020100He
x
Tag message length (bytes)
Tag ID: Status messages
Protocol Length in bytes
Protocol SM, version 1 (short message)
Parameter-Setting Data Enquiry
interface set-up” under Summary of Parameter Settings on page 81.
then follows a block of data for all parameters in the temporary setup.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
70
Software Command Syntax
ESC ACK n1
1B 06 n1hex
27 6 n1decimal
Acknowledge Marker
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.
n1 = One-byte marker. Range 1 to 255
Example •
Print data" <LF><ESC>p<ESC><ACK><1>
Wait for <1>
<RS><ESC><ACK><2>
Wait f o r <2>
The printer will send <1> when <print data> has executed and <2> when the ejecting
has been performed.
Important • 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.
P1002902-002TTP 2000 Technical Manual09/14/2009
Font Loading
The printer can store 8 fonts in its flash PROM. The memory available for fonts is printed on
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 Print Setup on page 85).
Note • Multiple height and width commands can be used on all fonts.
Programming
Font Loading
71
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.
09/14/2009TTP 2000 Technical ManualP1002902-002
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
72
Font Loading
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.
This will be printed on status printouts. (For example, Swiss 10 cpi.)
1 byteReservedShould always be 0 (zero)
1 byteChar. width (X)The number of bytes required for the width of one character, usually 2 or 3.
Range 1 to 8.
1 byteCharacter pitchThe maximum width of one character in the set. This value is used for tab
position calculation. Range 1 to 255.
1 byteChar. height (Y) The maximum height of one character matrix measured in pixels. This is also the
minimum line spacing for this character set.
27 byteFont nameString of characters used to identify the character set.
This field can also contain the name of the code page the font is generated with.
This is done with NUL separator between the font name and the code page name.
Then, the entire field should be padded with NUL up to 27 bytes.
Char_bitmap data: Bitmap data for all characters that are to be defined.
P1002902-002TTP 2000 Technical Manual09/14/2009
Character Bitmap Data
012
0
4
ROW
COLUMN
Col 0Col 1
MSBLSB MSBLSB
Col 2
MSBLSB
Row 1
=03H=FFH=80H
A character is made up of a bitmap the size of which is:
Char. width (X) * Char. Height (Y) bytes.
Programming
Font Loading
73
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.
In order to minimize the required storage space, only rows between Ystart and Ystart+Yheight
are included in the character bitmap.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
74
Logotypes
Logotypes
Loading
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 or <ESC>L.
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.
Note • Logotype No. 0 is printed in the top of the self test printout, so this can be used to
customize the self test printout.
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 nonWindows 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.
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>&<1><Header><Bitmap>
Header
Byte 0Logotype number used to identify the logotype when printing.
Byte 1X size measured in bytes.
Byte 2Y size measured in pixels.
Byte 3—15A logotype name that will be printed on test printouts.
P1002902-002TTP 2000 Technical Manual09/14/2009
Bitmap
X size
Y size
0
7
Byte 0
Printing
Programming
Logotypes
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.
To print a logotype you can use two commands. <ESC>L<n> prints the logotype at the
current cursor position, just like any character. <ESC>g<n1><n2><n3><n4><n5> prints
the logotype at a specified X-Y position.
75
Erasing
n1One byte logotype number, (0—15)
n2n3 Two byte X position measured in pixels from the left hand edge of the print window.
n4n5Two 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.
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 be lost.
09/14/2009TTP 2000 Technical ManualP1002902-002
Programming
Retract exit when horizontal
Printout exit when vertical
Paper entry
Cutter
Paper low
Printout exit when horiz.
Retract exit when vert.
Cutter home sensor
Paper-out/black-mark
Waste when horizontal
Presenter
Waste when vertical
76
Status Reporting
Status Reporting
The printer is equipped with a number of sensors that report the printer status and various
conditions such as out-of-paper, previous printout not removed, etc.
Figure 28 • Sensor Placement in the Printer
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 Status Report on page 66) and check
that the answer is "No errors"
2. If “Status codes available” is indicated, read out the status message with Status Request
(<ESC><ENQ><1>, see Status Enquiry on page 62), and take appropriate actions.
3. Send a paper-near-end query (<ESC><ENQ><2>, see Paper-near-end Enquiry
on page 63) to see if the sensor reports low paper level.
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.
P1002902-002TTP 2000 Technical Manual09/14/2009
Programming
Status Reporting
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 ten seconds, five times before giving up.
Note • You should construct your application in such a way so as not to request status while
Some of the printer settings can be stored in an EEPROM 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>&<4> to store
all settings in the EEPROM.
You can always return to factory default settings by sending <ESC>&<F>, and then storing
those settings with <ESC>&<4>
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.
.
09/14/2009TTP 2000 Technical ManualP1002902-002
Default Parameter Settings
Parameter number
Default value
Description
Range
Burn Time
5
20 Default
16 Min
31 Max
DRV
DRV indicates that the
Windows driver overrides setting
80
How the Parameters are Described
How the Parameters are Described
Default Value
The default values indicated are "factory default settings" you get by sending
<ESC>&<F>. 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 Toolbox:
Where <ESC> means the escape character 27 decimal (hex 1B). Numbers between less-than
and greater-than characters, for example <1><15>, means 1 and 15 decimal (hex 1 and F).
Note • Parameter settings can be permanently stored with <ESC>&<4>.
Select what handshaking to use on the serial interface.
<ESC>&P<4><0>No flow control
<ESC>&P<4><1>Xon / Xoff
<ESC>&P<4><2>Hardware
Default Parameter Settings
Summary of Parameter Settings
83
Important • DO NOT USE Xon/Xoff 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 (11 hex) and Xoff (13 hex) characters
and will obstruct the communication.
09/14/2009TTP 2000 Technical Manual P1002902-002
Default Parameter Settings
84
Parallel Port Setup
Parallel Port Setup
1Default
0 Min
5
1Max
Pins 12 and 15 on the parallel port signal 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 warning or error message 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<5><0>Paper out and error signals are active and enabled.
<ESC>&P<5><1>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
P1002902-002TTP 2000 Technical Manual09/14/2009
Print Setup
9Default
1 Min
7
15 Max
Note • 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.
Caution • Set the Burn Time to the lowest value that provides good print quality. Burn Time
set too high could cause unreadable text or barcodes..
19 Default
1 Min
8
19 Max
The main reason to decrease the print speed is to enhance print quality, and to reduce average
current consumption.
Important • Some settings result in printer chassis resonance causing increased noise and
deteriorated print quality. If this occurs, increase the print speed.
To print in cold weather, please measure the temperature inside the kiosk and set the Print
Speed and Presenter Speed according to temperature:
Temperature n8 n31
–10°C19150
–15°C19140
–20°C19120
–30°C1170
Note • These readings are just guidelines based on the motor specifications; there is no
guarantee that the printer will operate at the indicated temperatures.
09/14/2009TTP 2000 Technical Manual P1002902-002
Default Parameter Settings
86
Print Setup
15 Default
3 Min
9
255 Max
3 Default
3 Min
10
7 Max
Presenter Loop Length
Limits the maximum loop length. When the set length is reached, the printer ejects part of the
printout and continues to 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<9><0>Disable the loop
<ESC>&P<9><5>16 cm loop
<ESC>&P<9><15>48 cm loop
Caution • 3 and 7 are the only allowed settings, do not set anything else!
Line Spacing
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.
<ESC>&P<13><30>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 the "Select Font
" command <ESC>!<n>. Selecting an invalid font gives a software error status message
(invalid index).
P1002902-002TTP 2000 Technical Manual09/14/2009
15 to 30
180 Default
31
255 Max
1 Min
Default Parameter Settings
Print Setup
-Default
1 Min
255 Max
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 61.
To move a single tab stop, use the set parameter command <ESC>&P.
Example •
<ESC>&P<15><10> Set the first tab stop 25 mm from the left margin.
Default positions are one TAB on each cm; that is parameter values 4, 8, 12 etc.
Presenter Speed
87
Sets the speed at which the paper is ejected / retracted.
1 = 10 steps/s, so the default 180 means 1800 steps/s. Do not exceed the default setting, as this
may cause the motor to stall.
To print in cold weather conditions, please measure the temperature inside the kiosk and set
the speed according to the temperature:
Temperature n8 n31
–10°C19150
–15°C19140
–20°C19120
–30°C1170
Note • These readings are just guidelines based on the motor specifications; there is no
guarantee that the printer will operate at the indicated temperatures.
09/14/2009TTP 2000 Technical Manual P1002902-002
Default Parameter Settings
88
Print Setup
0Default
0 Min
33
4Max
CR/LF Behavior
Note • v=0 is suitable for Windows, v=1 for UNIX and Mac OS X, v=2 for DOS, and v=4
for Macintosh Classic.
Carriage Return and Line Feed can be interpreted in five different ways to suit different
operating systems.
Note • The character currently interpreted as LF converts text from the input buffer to pixels
on the paper. If no such character has been received after 379 characters, a linefeed is inserted
automatically.
34
35
1Default
0 Min
1Max
1Default
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<34><0>No cut
<ESC>&P<34><1>Cut
Black Mark Sync
Selects if the cut should be synchronized or not:
<ESC>&P<35><0>No synchronization
<ESC>&P<35><1>Cuts will be synchronized with black
marks/gaps
This parameter also determines the function of auto sensor calibration:
If black mar/gap sync is enabled, the auto calibration will set: n37-n40, n57 bit 3, and n58.
If set to zero, only the BM level n51 and out of paper level n58 will be set.
P1002902-002TTP 2000 Technical Manual09/14/2009
36
1Default
0 Min
2Max
Default Parameter Settings
Print Setup
Document Mode
Determines what should control the page length:
<ESC>&P<36><0>Fixed Document Mode. Shorter documents will automatically
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.
<ESC>&P<36><1>Variable Document Mode. The length of the page varies with
the contents (printouts shorter than the value specified by
parameters 37 and 38 will be extended to that length).
<ESC>&P<36><2>Black Mark Mode. 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 strips are cut of
and left in the printer.
Note • Max page length in Fixed Document Mode is about 140 mm , see Fixed Document
Mode on page 91.
89
DRV
09/14/2009TTP 2000 Technical Manual P1002902-002
Default Parameter Settings
SW97063-R5
TEXT
Text text
TEXT
Text text
Page length
(minimum 70) mm
Page width =
applicable print
window width
Paper transport
direction
Top m arg i n
(Distance between cut and print line, 9 mm)
90
Print Setup
37 & 38
255 , 255 Max
2 , 88Default
2 , 48Min
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 70 mm will be interpreted as 70 mm.
<ESC>&P<37><6><ESC>&P<38><64>Set page length to 200 mm.
Figure 29 • Definition of Page Size
Lengthp37p38
70 mm<2><48>
DRV
75 mm<2><88>
100 mm<3><32>
150 mm<4><176>
200 mm<6><64>
250 mm<7><208>
300 mm<9><96>
P1002902-002TTP 2000 Technical Manual09/14/2009
Fixed Document Mode
marginbottommargintop
widthPaper
bytesinRAMFree
lengthPage−−
−=1024
mmlinespixellengthPage147118080160
80
1024114627
==−−
−
=
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 2000 is 114627 bytes, print width is 80 mm = 80 bytes, top margin is
20 mm, and bottom margin 10 mm (20 x 8 =160 and 10 x 8 = 80 pixel lines):
Default Parameter Settings
Print Setup
91
39
40
80 Default
1 Min
160 Max
24 Default
1 Min
159 Max
If a too large fixed page is specified the printout will be blank from memory full to the cut.
BM (black mark) length
DRV
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<39><40>Sets max black mark length to 5 mm.
Min BM (black mark) length “Garbage Filter”
DRV
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<40><32>Sets min black mark length to 4 mm.
This parameter is a filter to filter-out pre-print or marks on the paper. If pre-print is smaller
than this value, it will not be regarded as a black mark. About 1/3 of the black mark length is
usually a suitable setting.
09/14/2009TTP 2000 Technical Manual P1002902-002
Default Parameter Settings
92
Print Setup
41 & 42
43 & 44
255 , 255 Max
255 , 255 Max
0 , 0Defa ult
0 , 0Min
Bm (Black Mark) Cut Offset
Defines the paper feed between the black mark detection and cut. One step is 0.125 mm.
<ESC>&P<41><0><ESC>&P<42><0>Auto offset, places the cut in the
middle of the black mark.
<ESC>&P<41><0><ESC>&P<42><1>Places the cut at the physical distance
between the black-mark sensor and
the cutter. This means the distance
between the cut and the black mark is
25 mm.
<ESC>&P<41><1><ESC>&P<42><144>Feeds 50 mm between trailing edge
of the black mark and cut.
0 , 0Defa ult
0 , 0Min
Top Margin (mm)
Defines the distance between the cut in Black mark mode and the top of the first text line in
0.125 mm steps.
DRV
45
0Default
0 Min
230 Max
0 = disabled top margin. This gives the physical top margin of the printer, which is 9 mm.
Setting that give a margin shorter than 9mm will be extended to 9mm. This parameter can only
be used to extend the margin, not reduce it.
<ESC>&P<43><0><ESC>&P<44><240>Add 30-mm top margin.
Presenter Mode
Sets the function of the presenter.
<ESC>&P<45><0>Eject page when new page is printed. (Retract disabled)
<ESC>&P<45><3>Eject page when new page is printed. Page not taken after 30s
will be retracted. (Range 1-30, 1 step = 10 s)
<ESC>&P<45><100>Retract page when new page is printed
<ESC>&P<45><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<45><200>Do nothing when new page is printed. (Auto-eject and retract
disabled).
<ESC>&P<45><203>Do nothing when new page is printed. Page not taken after 30s
will be retracted. (Range 201-230, 1 step = 10 s)
P1002902-002TTP 2000 Technical Manual09/14/2009
46
Kiosk
wall
n47
Eject n
Printer
0Default
0 Min
255 Max
Default Parameter Settings
Print Setup
Cut Position Calibration
Calibrates the cut position. The value is a signed byte.
A change of 1 moves the cut 1/8 of a mm more than normal.
A change of –1 moves the cut 1/8 of a mm less than normal. -1 is entered as 256-1=255
The positive range is 1-127. The negative range is 128-255.
This parameter can be individually set for each printer and is not affected by the driver or reset
commands. It is used to compensate for differences in sensor position in production. After
moving or replacing the TOF-sensor, the calibration may have to be done again.
<ESC>&P<46><0>The cut is placed at the center of the sensor’s image of the
black-mark.
<ESC>&P<46><8>The paper is fed 1 mm extra before being cut.
<ESC>&P<46><248>The paper is fed 1 mm less before being cut.
93
47
0Default
0 Min
255 Max
Note • The cut is not 100% repetitive because the paper may be closer to the sensor for one
ticket than it is for the next. So do not expect a perfect synchronization between perforation
and cut.
It is better to cut slightly after a perforation than before because cutting before perforation
leaves a flap that is pushed through the printer and that may cause paper jam.
Wall Compensation (mm)
DRV
When the printout is printed and cut, the presenter ejects 50 mm of the page so that the
customer can take it. If the kiosk wall is thick, or if you just want a longer part of the printout
to be visible, this parameter adds extra eject length.
<ESC>&P<47><50>Adds 50 mm extra eject = 100 mm in total.
09/14/2009TTP 2000 Technical Manual P1002902-002
Default Parameter Settings
94
Print Setup
0Default
0 & 20 Min
48
80 Max
1Default
0 Min
49
1Max
Paper Width (mm)
DRV
Sets the width of the paper loaded into the printer. The range is 20 to 80 mm. This can also be
used to get left and right margins, for instance if you load 80 paper but set the paper width to
60 mm you get a 10 mm margin on both sides of the page.
Note • The page width is not changed until the parameters are stored in the EEPROM with
the command <ESC>&<4>
. So you cannot change paper width within a page.
.
<ESC>&P<48><0><ESC>&<4>Sets width detection by sensor (54 or 72 mm)
<ESC>&P<48><60><ESC>&<4>Sets 60 mm print width
Note • It is recommended that a print width narrower than the actual paper loaded in the
printer is used to ensure that the print always remains visible.
Advance Before Cut
DRV
51
75 Default
0 Min
255 Max
Selects if the cut command cuts at the position where the paper is at, or if the printer should
advance the paper before cutting.
Note • "Automatic Distance Calculation" means advancing the paper with the Head-To-
Cutter distance (9 mm on the TTP 2000).
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.
Black Mark Sensitivity
This parameter is set automatically when you run the “Caibrating the TOF sensor procedure”
(manually or using ESC #). Normally there is no need to set this parameter manually.
0 is white and 255 is pitch black (out of paper).
P1002902-002TTP 2000 Technical Manual09/14/2009
52
53
56
0Default
0 Min
255 Max
0Default
0 Min
1Max
255 Default
0 Min
255 Max
Default Parameter Settings
Print Setup
Warning Level
Turns on/off indication of Paper near end level on the status indicator. This affects only the
status indicator, not the status enquiries
<
ESC>&P<52><0>No indication
<ESC>&P<52><1>Paper Near End indication
Lock Parameters
You can lock the parameters so that they cannot be changed by the <ESC>&P command.
<ESC>&P<53><0>Unlocked
<ESC>&P<53><1>Locked
Max Status Code
95
This will control the highest status code that is reported by <ESC><ENQ><6> and
<ESC><ENQ><1> (Pending-status-code bit). You use this if your kiosk software is not
written so it masks away unknown status messages.
Example •
If you want the TTP 2000 to be compatible with software written for TTP 1020, set
parameter 56 to 6h and error codes 7 and up will not be reported.
09/14/2009TTP 2000 Technical Manual P1002902-002
Default Parameter Settings
96
Print Setup
255 Default
0 Min
57
255 Max
System
The system parameter will control up to eight system components in the printer.
The bits specified so far are these:
Bit 0 Clear presenter at reset
Bit 1 Pull detector
Bit 2 Horizontal
Bit 3 Standard BM
Note • This parameter is set automatically when you run the
“Calibrating the TOF sensor procedure” (manually or using ESC #).
Bit 4 Disable USB reconnect
Note • If reconnect is enabled, the PC will not be able to go to sleep
mode.
Setting a bit to 1 enables the function and setting it to 0 disables it.
DRV
58
0Default
0 Min
255 Max
Important • If the function of a bit is not specified, it must always be set to 1.
Example •
<ESC>&P<57><254> Presenter will not be cleared at power ON and reset
<ESC>&P<57><253> The pull detector is disabled
<ESC>&P<57><252> The presenter will not be cleared at power ON and reset and the
pull detector is disabled
<ESC>&P<57><251> The printer is set to vertical mode, that is the retract output and the
normal output are swapped.
<ESC>&P<57><239> The printer will monitor USB heartbeat (SOF tokens), and thus try
to reconnect if they disappear.
<ESC>&P<57><255> The printer is reset to normal behavior
Out-of-Paper Level
Sets the level at which the TOF sensor detects out of paper. The out-of-paper level may differ
from the black-mark level on label stock where the foil opacity indicates top of form.
This parameter is set automatically when you run the “Calibrating the TOF sensor procedure”
(manually or using ESC #).
P1002902-002TTP 2000 Technical Manual09/14/2009
59
0Default
0 Min
1Max
Default Parameter Settings
Print Setup
USB Vendor Class
Switches identity of the device from Printer Class (7 hex) to Vendor Class (FF hex).
Use this parameter to communicate with a USB printer in Linux without installing a driver.
Note • After switching into Vendor Class, you must reconnect the USB cable.
The vendor class parameter is normally 0, which sets the TTP2030 to be a Printer Class
device. If you set it to 1, the TTP 2030 will be a Vendor Class device, which means it will not
require a driver but will appear as a file in Linux. You can then communicate with the printer
by writing data to or reading from that file.
Caution • When not set to “Printer Class”, no programs that rely on the Windows printer
driver will be able to communicate with the printer, and thus not be able to reset the
parameter to Printer Class again.
97
60
10 Default
1 Min
40 Max
To reset the printer back to Printer Class:
1. Power OFF the printer.
2. Disconnect the USB cable.
3. Open the print head and remove any paper.
4. Leave the print head open, press and hold the Feed button, and power ON the printer.
5. Connect the USB cable.
6. Save parameter settings using <ESC>&<4>.
Partial Cut Length
Sets the length of the partial cuts in mm from the edges of the paper (the blade cuts from the
paper edges towards the middle).
The paper width parameter n48 is used to specify the edges of the paper so the printer knows
where to start to cut. If parameter n48 is set to auto width, the guide fitted to the printer
determines the print width and thus also the start position for the partial cut.
Caution • A too large partial cut may cause problems with the presenter, so stay with the
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.
Zag 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
Page setup
Printable Area
Printable Area
Top margin, bottom margin, page length, and synchronization with preprint are set up with
parameters in the printer.
P1002902-002TTP 2000 Technical Manual09/14/2009
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.