therein are owned by ZIH Corp. Unauthorized reproduction of this manual or the software and/or firmware in the
printer may result in imprisonment of up to one year and fines of up to $10,000 (17 U.S.C.506). Copyright violators
may be subject to civil liability.
This product may contain ZPL
®
, ZPL II®, and ZebraLink™ programs; Element Energy Equalizer® Circuit; E3®; and
ZebraLink and all product names and numbers are trademarks, and Zebra, the Zebra logo, ZPL, ZPL II, Element
Energy Equalizer Circuit, and E
3
Circuit are registered trademarks of ZIH Corp. All rights reserved worldwide.
All other brand names, product names, or trademarks belong to their respective holders. For additional trademark
information, please see “Trademarks” on the product CD.
Proprietary Statement This manual contains proprietary information of Zebra Technologies Corporation and its
subsidiaries (“Zebra Technologies”). It is intended solely for the information and use of parties operating and
maintaining the equipment described herein. Such proprietary information may not be used, reproduced, or disclosed
to any other parties for any other purpose without the express, written permission of Zebra Technologies.
Product Improvements Continuous improvement of products is a policy of Zebra Technologies. All
specifications and designs are subject to change without notice.
Liability Disclaimer Zebra Technologies takes steps to ensure that its published Engineering specifications and
manuals are correct; however, errors do occur. Zebra Technologies reserves the right to correct any such errors and
disclaims liability resulting therefrom.
Limitation of Liability In no event shall Zebra Technologies or anyone else involved in the creation, production,
or delivery of the accompanying product (including hardware and software) be liable for any damages whatsoever
(including, without limitation, consequential damages including loss of business profits, business interruption, or loss
of business information) arising out of the use of, the results of use of, or inability to use such product, even if Zebra
Technologies has been advised of the possibility of such damages. Some jurisdictions do not allow the exclusion or
limitation of incidental or consequential damages, so the above limitation or exclusion may not apply to you.
This manual contains the information required to install the TTP7020 and TTP7030 printers
and to run them from a host computer such as a PC.
1
Introduction
Updating
Programming on page 33 gives the applicable control codes and escape sequences supported
by the printer processor firmware.
Other chapters of the manual contain information about the printer error codes,
communications-parameters, test print functions, specifications, replacement parts, etc.
This manual will be updated as, from time to time, printer functions and features may be added
or amended. You will always find the latest edition on our web site (http://www.zebra.com
If you require functions not found in the manual edition at your disposal, you are welcome to
consult one of our representatives for information.
The TTP 7020 and TTP 7030 are kiosk printers using direct thermal printing. The print speed
is up to 75 mm per second.
The printers have integrated control boards. TTP 7020 communicates with the host computer
through an IEEE-1284 bi-directional parallel port, while TTP 7030 uses the USB interface.
Both TTP 7020 and TTP 7030 can be equipped with an optional serial port.
Figure 1 • Printer Exterior, Rear View
Printer drivers for Linux and Microsoft Windows™ are available, and the printer is compatible
with the Plug and Play standard. It is also possible to address the printer directly from the
kiosk software without using drivers.
The loop generating presenter mechanism handles documents of various lengths. It holds the
printout until printed, then cuts and presents the complete printout to the customer. The retractand-retain version of the printer can retract uncollected printouts into a wastebasket inside the
kiosk.
A flip-up print module gives the operator access to the paper path, and print head, for
maintenance purposes.
All measurements are in mm. Measurements in parentheses arefor TTP 70x0/112.
SW98056
81
91
84.5 (116.5)
128.5 (160.5)
1
.
5
86.0
148.8
104.0
76.0
19.0
Top view
12.0
26.0
16.0
4.2 (4x)
All measurements are in mm. Measurements in parentheses are for TTP 70x0/112.
SW98056
81
91
84.5 (116.5)
128.5 (160.5)
1.
5
86.0
148.8
104.0
76.0
19.0
Top vie w
16
Installation Considerations
Installation Considerations
The TTP 70x0 printer should be installed in some kind of enclosure such as a self-service
kiosk. The illustration below gives an example of a printer-mounting shelf. See also Printer
dimensions on page 110. 3D solid models and outline drawings for CAD are available on
http://www.zebra.com
Figure 3 • Example of a Simple Shelf for Fastening a Standard Printer
.
Additional space is required for paper loading and paper jam removal. Consider mounting the
printer on a movable platform so that the printer can be maintained outside the kiosk
enclosure.
Preventing ESD and earth currents from affecting the printer operation requires proper
connection of the printer chassis to protective earth through a mounting platform or through a
separate earth conductor.
Ambient Light
There is an optical sensor just inside the paper exit at the front of the printer.
To ensure proper printer operation, design the printer enclosure so that it prevents direct
sunlight or light from indoor lamps from reaching the sensor through the paper exit.
b. Hold the feed-forward button depressed while powering ON the printer.
c. Keep the button depressed until printing starts.
This produces a printout showing the firmware program version and date,
control board revision number and serial number, name of loaded fonts and
logotypes, and the parameter settings.
d. Each successive press of the button will produce a test printout.
e. Switch the printer OFF and ON again to exit self-test mode.
No
a. Lift the printhead.
b. Press and hold the FF-button while lowering the printhead, and keep it
pressed until after the auto-load is completed.
c. Release the button.
A self-test printout will be printed.
Note • this feature was introduced in firmware version 2.44b.
Printer drivers for Linux and most versions of Microsoft Windows™, are available on the
Zebra web site http://www.zebra.com
number. Please follow the installation instructions that accompany the drivers.
Status Monitoring through Windows
Status can be fetched from a language monitor (70x0MON.DLL) that is installed into
Windows with the driver. Documentation of the language monitor is available on the drivers’
page on the Zebra web site.
If you want to monitor status through the language monitor, make sure that the printer is
selected as default printer, and that bi-directional support is enabled in the port section of the
driver settings.
Note • On TTP 7020, parameter p5 should be set to 1 to make status replies possible when
paper is out. See Parallel Port Setup on page 80.
. See Ordering Numbers on page 131 for ordering
Driver Settings
The looks of the dialogue boxes vary between driver versions, but essentially the same settings
can be made.
You start with the Printing Preferences window. Here you find the portrait/landscape setting,
and an advanced button.
Page based gives the page size set in the Paper
Size setting (in server preferences, forms). Roll
based saves paper by cutting after the last print
on the page.
—
—
Only applicable on retract and retain versions of
the printer. Retract page in presenter when a new
page is printed, and retract uncollected pages
after xx seconds.
“Cut per page” give three pages when a 3-page
document is printed, while “Cut per document”
give one long page with all information printed
on it.
—
Hold Page After Print
•On
•Off
ON means that the following page is a multipage document and is not printed until the
customer takes the already printed page.
Paper Advance is advanced before cut, that is,
bottom margin.
This eject is roughly in 2 mm-steps. See the
description of the eject-command (run presenter)
on page.
Paper reverse is reverse before print, and reduces
the 190 mm top margin with the value entered
here. So a setting of 10 gives 190 – 10 = 10 mm
top margin.
Important • Avoid settings above 10.
When black marks are used to synchronize cut,
set page type to roll based to avoid conflicting
page definitions.
Scaling
•10-400% (100%)
For example, scaling to 99% can be used when
you need to print forms with fixed page length
that otherwise would not fit on a page.
Optical weekend sensor.
Adjustment range equals
approximately 30 to 150 m
of paper
Optical paper-near-end
sensor. Activated when a
couple of meters of paper
remain.
SW98052
Lock screw
26
Paper Level Sensors
Paper Level Sensors
The printer has inputs for one paper-near-end sensor, and one weekend sensor.
The paper-near-end sensor alerts the system when a couple of meters of paper remain on the
roll. The purpose of this sensor is to get an early alert so that you can replace the paper roll in
time in remotely located kiosks.
Figure 9 • Sensors on 200 mm Roll Holder
The weekend sensor should alert when the remaining paper does not last over a weekend. A
reason to use this sensor is that it is more expensive to get a service technician out on a
weekend or holiday than it is to replace the roll before it is totally empty.
The Zebra 110 mm and 150 mm paper roll holders are equipped with paper-near-end sensors,
while the 200 mm roll holders have both paper-near-end and weekend sensors.
When installing the Zebra roll holder just connect the cable from the roll holder to connector
J1 at the back of the printer. See Figure 1, Printer Exterior, Rear View , on page 11.
If you use custom designed roll holders, connect the sensors according to Figure 10, Paper-
There are two completely different ways of setting up the printout: Text oriented and driver
oriented style.
Text orientedThe printout can be seen as the page of a simple word processor. You
send text and graphics to the printer, which prints the information in the
same sequence as the data is received. Design features are limited to the
font stored in the flash PROM of the printer.
It is possible to select a fixed page length. If you do that, text and
logotypes can also be printed in landscape orientation.
There are two text cursors, one for portrait, and one for landscape. The
start positions of the cursors are the upper left corner for the portrait
cursor, and the upper left corner for the landscape cursor, see Ticket
Styles on page 34. You can switch between these cursors at any time; the
cursor will retain its last position on the ticket.
Driver orientedAll TTP 70x0 printers can print documents through a driver. When a
Windows driver is used, you can use any Windows program to design
the ticket with text, graphics, bar codes or whatever you want to print
and in any orientation you want.
The Windows driver issues all the necessary commands. By setting up
printing preferences in the driver you select how the printer should cut
and present the printout.
The commands in this section are grouped after what they do, and these groups are sorted in a
theoretical usage sequence. It starts with commands for specifying the printed page — through
text-and-graphics commands — to cut-and-present commands. System and status commands
are presented at the end.
Page Setup
Page setup is now done with parameters instead of dedicated commands. This makes it
possible to store the setup in the non-volatile parameter memory. To minimize doubling of
functions the page setup commands have been removed from this manual. The parameters to
use are described under Printable Area on page 90.
Black Mark (Top-Of-Form) Commands
See also Aligning Preprint And Thermal Print on page 91.
ESC #
1B 23 n1Hex
27 35 n1decimal
ESC Z
1B 5A Hex
27 90 Decimal
Calibrate Blackmark Sensor
Looks for a black mark, measures the contrast of the mark and sets parameter n51 to a suitable
value for the detected voltage, then reverses to the start position.
To make the calibration permanent, send ESC & 4h, store parameter values.
Important • Be sure to first set up the length of the black mark and the distance between two
black marks in the parameter setup.
ESC # is available in hardware revision B or higher.
Go to next Top of Form
In black mark mode,
an ESC Zstarts looking for a black mark at the current position and
continues for one page length. If no black mark is found, bit 3 in status byte 1 is set to 1 and
the printer will report NAK 0A on the next status query.
When black mark mode is disabled, ESC Z will perform a form feed without cut (disregarding
the setting of parameter 34).
Text received by the printer is printed with the currently selected font and font attributes. Text
exceeding the page width is wrapped with the line spacing selected.
Programming
Text Commands
39
ESC o n1
1B 6F n1hex
27 111 n1decimal
ESC N n1
1B 4E n1hex
27 78 n1decimal
Text and Logotype Orientation
Changes the orientation of text and logotypes.
n = 0Gives portrait orientation
n = 1Gives landscape orientation
Portrait and landscape can be mixed on the same printout. There are two cursors, one for
portrait and one for landscape. The cursor always starts at the top left corner of the document.
Looking at the paper when it exits the printer, the portrait cursor is at the top left corner of the
printout, moving to the right as text is typed, while the landscape cursor is at the top right
corner, moving downwards.
Note • Landscape orientation can only be used with fixed document mode.
n = 1Increases the character width to 2 times the basic character width.
n = 2Increases the character width to 3 times the basic character width etc.
n = 0Resets the character width to the basic character width.
In combination with variable character height (ESC h n), give highly legible characters
depending on the font to which the command has been applied.
Different fonts and widths can be mixed on the same print line.
ESC t n1...n5data
1B 74 n1...n5datahex
27 116 n1...n5datadecimal
Prints a text string at the specified X-Y position. The string will use the formatting set by font,
reversed, width, height, bold, italics, and underline commands.
n1n2Two byte definition of the X print position (in pixels).
Text Width
Print Text at XY
n3n4Two byte definition of the Y print position (in pixels).
n5The number of characters in the string.
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.
After the string has been printed, the cursor will return to the position it had before the string
command was issued.
Note • The ESC t command clears any text preceding it on the same line. Commands will
not be cleared.
Note • The Y print-position only works if fixed page length is used. Start a page by
specifying page length for example <ESC>C<004><160>
Moves the print-position one step to the left. Backspace can be used to combine characters.
For instance to print a Ø, send text commands O BS / to the printer, and the slash will
overprint the O.
Only one backspace can be used at a time. Excessive backspaces will be ignored.
43
CAN
18 hex
CR
0D hex
13 decimal
LF
0A hex
10 decimal
Cancel
Cancels text and attributes sent before the CAN command on the same line.
Commands, are not cancelled.
Carriage Return
By default, carriage return is ignored.
By changing the default settings, you can:
1. Interpret is as CR which returns print position to beginning of line without line feed.
2. Interpret CR as CR/LF which inserts line space as specified by the line spacing setting
(see parameter p13), and returns the print position to beginning of the line.
See “Carriage return and line feed behavior” under CR/LF behavior on page 83.
Linefeed
Linefeed is interpreted as CR/LF by default. This inserts line spaces as specified by the line
spacing setting (see parameter p13), and returns the print position to beginning of the line. LF
also converts text from the input buffer to pixel lines and stores them in the line buffer, ready
to be printed.
By changing the default settings, you can:
1. Interpret LF as Linefeed. This inserts line space as specified by the line spacing setting (see
parameter 13 on page 82), without returning the print position to the beginning of the line.
Executes the number of linefeeds as defined by variable n1. The length of each line feed is
determined by the default value for selected font (see parameter 13 on page 82).
The print position is returned to the beginning of the line. Any text on the line is lost. To avoid
losing text, send an LF before sending ESC d n.
Form Feed
Prints data from the input buffer and feeds the paper to the top of the next page.
In fixed document length (FORM-mode) this command prints data in the input buffer and
feeds the paper to the top of next page.
In variable document length mode FF advances to the minimum page length. If the printout
already is longer than the minimum page length, FF does not feed the paper at all.
In black-mark mode, the FF command looks for a black mark, see ESC Z
If "Auto cut" is set to 1 (see Auto cut after FF on page 83), FF effect form-feed, cut, and eject.
HT
09 hex
9 decimal
Note • Use parameter p37 and p38 to define page length.
Horizontal Tabulation
Shifts the current print position to the next Tab position.
TTP 7020 and TTP 7030 can print EAN 8, EAN 13, EAN128, UPC, 2-of-5 Interleaved, ISBN,
Code39 and Code128 barcodes with it’s standard firmware. A special firmware is available
where the barcodes are replaced with the PDF 417 2D barcode. See Firmwar e on page 113,
and PDF417 command.
Example • The example below will print an EAN barcode with height = 10 mm, 15 mm in
Bar codes can only be printed in portrait mode unless Fixed Document Mode is selected with
parameter n36.
The command reserves an information field as a bar code field. The command also identifies
the type, number of digits, and the configuration of bars to be placed in the bar code field.
n1Specifies the bar code field No. (0—15). Bar code fields may be
n2n3Sets the X coordinate of the bar code field origin (n2 is the higher-order
n4n5Must be specified but the values are discarded by the printer.
n6Specifies the number of bar code digits, but is ignored by the printer.
n7n8Specifies the height of the bars.
n9Specifies the type of bar code. The following types are supported.
n9 = 0EAN 8 or 13 (auto detect). The printer calculates the necessary check
Barcode field Specify
specified in any order.
and n3 the lower-order byte).
n2 and n3 must be 1-byte hexadecimal or decimal numbers. The values
must not place the bar code outside the total pixel count that can be
handled by the printer.
digit.
n9 = 1UPC
b9 = 22/5 Interleaved (even number of characters must be sent)
n9 = 3ISBN
n9 = 4Code128 (Start data string with C2h to encode EAN128)
n9 = 6Code39
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
In 80 mm printers, the line length is 72 bytes and in 112 mm printers it is 104 bytes.
ESC b n1...n5data
1B 62 n1...n5Datahex
27 98 n1...n5Datadecimal
Prints a black & white Windows bitmap (BMP-file) at the specified X-Y position. The bit-map
must be a complete uncompressed Windows bitmap where the data starts with BM. Max size
is limited to the free RAM printed on the self-test printout.
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 0h) prints the image in portrait orientation, while
selecting the vertical mode (with ESC o 1h) prints the image in landscape orientation.
Note • The Y print-position and horizontal/vertical orientation only works if fixed page
length is used.
Print Bitmap at XY-position
.
ESC s n1 data
1B 73 n1DataHex
27 115 n1DataDecimal
Send dot-line, 203 dpi
Sends one line of dot data. This command is used to build images, one dot line at a time by the
printer driver and should not be combined with text commands.
nDetermines the number of bytes. Range: 1-255.
<data>1 – x bytes, where x is the printhead width in bytes. The printhead width
is in the spec. of the printer.
Example • 80 mm printers use 72 bytes
Example • 112 mm printers use 104 bytes
Caution • Always send the No. of bytes that you specify!
If more than the specified No. of bytes are received, the rest of the bytes will be interpreted
as text or commands. This can cause any kind of problems in the printer as graphics data
can contain any hex value. If you specify less data then the actual printhead width, the
printer will fill the rest of the dot line with spaces.
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 start position
n3n4Two byte definition of the Y start position
n5n6Two byte definition of the X stop position (must be larger than n1n2)
n7n8Two byte definition of the Y stop position (must be larger than n3n4)
stored in the flash PROM. See also Logotypes on page 71.
n1One-byte logotype identification No. (0—15)
n2n3Two-byte definition of desired print position in X-direction measured
from left-hand edge of the page (see Printable Area on page 90 regarding
definition of “page”). X-direction is perpendicular to the paper transport
direction.
n4n5Two-byte definition of desired print position in Y-direction. In variable
document mode the Y-position is ignored. The resolution is 0.125mm in
both X and Y directions
Print Logotype at Current Position
Prints a customized logotype stored in the flash PROM at the position of the cursor. The
bottom line of the logotype is positioned at the baseline of the text on the line. If the logotype
is higher than the text, the line spacing is increased.
See also Logotypes on page 71.
nOne-byte logotype identification No. (0—15)
2. For logotype loading, see ESC & 001 on page 58.
This command makes the printer print the contents of the line buffer.
Text is converted from text to pixel lines and stored in the line buffer when an LF is received.
If the line buffer is empty when ESC p is received, nothing is printed.
Text to be printed <LF><ESC>p prints "Text to be printed" on the paper.
Printout is effected automatically at:
Cut (RS and ESC RS)
Form feed(FF)
Clear presenter (ENQ)
Run presenter (ESC FF n)
Print buffer full
Press on FF-button
Print Self-test Printout
This command makes the printer generate a self-test page based on the current parameter
settings and print that page. The parameter values printed are the ones currently being used.
They can differ from Power-ON default values if for example a printout from Windows has
been done before ESC P is sent to the printer. To make a self test printout with the Power-ON
default settings, power up the printer with the FF button pressed.
n = 0 Gives standard self-test printout.
n = 1 Gives a character set printout using the font selected by parameter p14.
ESC J n1
1B 4A n1hex
27 74 n1decimal
*. DO NOT use ESC J n, ESC j n, or ESC Q n in fixed page mode
Paper Advance*
The value n represents the number of dot lines the paper is to be transported forwards. Range:
1–255.
A dot line is 0.125 mm, and 255 dot lines equal approximately 32 mm.
Effects a paper cut-off and an eject through the presenter module. The RS command
automatically gives the eject length of 50 mm in addition to the factor stored in parameter p47.
If the printout length is too short, paper-feed is added until the minimum printout length (set by
parameters 37 and 38) is reached, before execution of the Cut command.
Note • The cut position is 17 mm before the print line. This makes the last 5 lines on a page
end up in the beginning of the next page. To get the cut after the text, Please set parameter 49
to auto.
You can also use <RS> together with the paper advance command:
<ESC>J<160><RS>
Gives a cut & eject after
the last text line.
Cut only, no Eject
Effects paper cut-off only.
Eject can be effected with the ESC FF n command (see Eject (run presenter) on page 56).
To avoid thin strips of paper in the printer, multiple cut commands without paper feed inbetween will not be performed. If the printout length is too short, paper-feed is added until the
minimum printout length is reached, before execution of the cut command.
See Also Note on cut position for the <RS> command above.
Note • Use the cut command if you want full control over the printer from your system. But
remember that you also must add commands to feed to the correct cut position and eject the
paper so that the customer can get hold of it.
Note • Top margin settings that moves the paper counts as paper feed.
ESC FF ejects the document through the presenter module. Variable n represents the number
of eject-steps.
One step is approximately 2 mm
The maximum number of steps is 255
Normally, this command is placed after a cut command (ESC RS) to partially eject the
printout to the customer. Set the number of eject steps so that a good portion of the printout is
retained in the presenter module, avoiding that the printout drops to the floor.
Another use of the command is to eject a part of a long document without preceding cut. The
reason to do this is to limit the size of the loop build-up in the presenter.
Note • The loop is limited to the value set by ESC f n to avoid paper jam. The default
setting of n=18, gives a loop of just above 0.5 m. When this length has been looped, the
printer presents that part of the printout. Then, without cutting the paper, it continues to print
the rest of the printout.
Figure 20 • Approximate Settings For Different Eject
Same function as ENQ but overrides the Retract and Retain parameter (p45) with another
presenter behavior. The function of n can be 0 to 255 0-99 ejects while 100-255 retracts (see
the description of parameter 45). The command will clear the presenter immediately (with
printing synchronization).
<EM><000>Ejects the presented page
<EM><100>Retracts the presented page
Clear the paper-path in the presenter form printouts. For example, to eject a document not
removed during the previous print/cut/eject operation. Parameter No. 45 controls how the
presenter is cleared.
Restarts the printer with a complete reset. This is the same as power off/on.
Reset (initialize)
Terminates the processing and initializes the control board. The control board is reset to
default-values (same as after power ON). Do not use this command as part of a print data
command string.
Load Logotype
Stores a logotype bitmap in the flash PROM. The logotype is printed with the ESC g and ESC
L commands, see ESC L n1 on page 52 and ESC g n1...n5 on page 52. Also see Logotypes
on page 71.
Important • If the logo width exceeds the print width, the operation is aborted.
ESC & L
1B 26 4C Hex
27 38 76 decimal
ESC & 004
1B 26 04 Hex
27 38 4 decimal
Erase all Logotypes
Erases all logotypes stored in the flash PROM.
Note • This command is only executed if at least one logotype has been loaded.
Store current Parameter Values
Stores the current setting of all parameter values in the setting memory. These parameters are
then used as default parameters. Storing takes approximately 4 seconds. The printer activates
the presenter motor temporarily to indicate that storing is complete.
This command is used to load a font to the printer flash PROM. The font is placed in the first
free address position in the order of load sequence.
A Zebra font-file consists of a header containing data describing the font as well as data for
each individual character in the font.
Fonts can be designed with the font editor and loaded or deleted with the software available for
free on the Zebra web site. The font loading and deleting commands described here should
only be used if you do not work in the Windows environment.
For complete specification of the font format, see Font Loading on page 69.
Note • The available font memory is printed on the self-test printout. A maximum of 8 fonts
can be addressed. Exceeding any of these limits will cause this command to fail.
Erase all Fonts
Erases all fonts stored in the flash PROM.
ESC & D
1B 26 44 Hex
27 38 68 Decimal
ESC & F
1B 26 46Hex
27 38 70decimal
Note • This command is only executed if at least one font has been loaded.
Erase Fonts 4 to 7
Erases fonts number 4–7. Fonts 0–3 are not affected by this command.
The operation is complete when the printer resets automatically and activates the presenter
motor temporarily. Takes approximately 4 seconds.
Recall Parameter Profile
This command resets the parameters of the printer to factory default.
Temporarily sets all parameters to predefined values that are stored in the printer. To keep the
values as default, store them in the flash PROM with command ESC & 4.
Unless you save the parameters, a reset command or power OFF/ON will return the
parameters to the settings stored in the flash PROM.
A number of bytes in the flash PROM hold various parameter values called default
parameters. One or several of them can be overridden temporarily with this command.
n1 Parameter number, range 1 -255.
n2 Parameter value.
See Default Parameter Settings on page 74.
The permanently stored parameters will be used again after a printer-reset command or at
power ON.
The temporary values can, however, be stored in the flash PROM as permanent values with
command ESC & 4.
Set several parameters at once
ESC & P <000> <FromPar><ParCount><Data>
FromPar is the parameter number to start writing and ParCount is the number of bytes being
sent. For every byte sent the parameter number is incremented.
Set Parameter Value
ESC NUL
1B 00 Hex
27 0 Decimal
Example • This example sets the first 5 tabs to 5, 10, 15, 20, and 25. (FromPar 15, ParCount
5)
<ESC>&P<000><015><005><005><010><015><020><025>«»
Load Firmware
This command should be used when you integrate firmware loading into your kiosk program.
Note • Utility programs to load firmware into the printer are available from
http://www.zebra.com .
This command should only be used when loading new firmware into the printer. See also
Note • Errors 02h, 05h, and FFh are terminal faults that require you to reset the printer before
it will be operable again. The printer automatically recovers from the other error conditions
as soon as the error is corrected.
A status enquiry command can only return one status code at a time. If there are two or more
simultaneous errors, each error condition should be cleared and the status enquiry repeated in
order to get a complete report of all status codes
ESC ENQ 002
1B 05 02 hex
27 5 2 decimal
The host computer cannot be certain that all error conditions have been cleared until an
ACK is
received.
The possible error conditions are reported in the above order.
Note • If you want to read out all status information directly, use ESC ENQ E.
Paper-near-end Enquiry
This command requests a paper-near-end sensor (paper low) status from the printer in a 1-byte
format.
Value = (01h) indicates “No paper”
Value = (00h) indicates “Paper present” at the sensor position
Note • The status of the sensor is sampled every time the printout is cut. If three succeeding
samples show "no paper", the status reply changes to 00. This is to prevent false alarm if the
side of the paper roll is not clean. If you want the momentary status of the sensor, use ESC ENQ 6 and extract the paper-near-end bit.
Results in a 2-byte response, reflecting the status of each sensor. This command is intended as
a go/no go indication. When everything is OK, this status report returns 0.
Note • If no weekend sensor is installed, 64 is returned when everything is OK. If no
weekend or paper-near-end sensors are installed, 64+2=66 is returned when OK.
Figure 22 • Sensor Status
First byte, bit No.:Second byte, bit No.:
7654321076543210
Pending error code*
Print data exists**
Power has been OFF***
-
Error Black mark
Paper at wastebin
-
Buffer overflow
Wastebin fitted
Weekend sensor
Printhead lifted
Cutter not home
Paper at presenter-Paper-near-end****
Mask first reply byte with EDhMask second reply byte with FBh
Out of paper
Note • Mask away the undefined bits in your application program to avoid having to change
the application, if the future releases starts using them.
* This bit indicates that an error code is available. Use ESC ENQ 1 to
fetch it.
**This bit tells you that there are data in the printer that have not yet been
printed. There are two possible reasons for that:
1) The last command received by the printer was not a command that
triggers a printout.
2) The printer is printing
***When parallel cable is connected, both printer and host computer must
have been off to set this bit. This is because the interface powers the
RAM in the printer.
****This paper-near-end bit differs from the ESC ENQ 2 response, see
Paper-near-end Enquiry on page 62.
Bits 0, 3, and 5 in the first byte are reset when read.
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 10d
Read←n
Where n can be ‘A’ (ASCII) or41h (hex) or 065 (dec)
Note • The string shown here is just an example. Read out the actual string from your printer.
Parameter-setting data Enquiry
This command requests information about the setting of parameter n1, that is, the parameter
value stored in flash PROM or any parameter value temporarily set by other ESC commands.
n1= 1 gives the setting of parameter 1, etc.The parameter names are listed
under Summary Of Parameter Settings on page 77 .
n1 = 0 gives a response where the first two bytes specifies the length of data to
come (high-byte, low byte), and followed by a block of data for all
parameters in the temporary setup.
The "acknowledge marker" n is placed in the command queue and when the execution of
commands reaches the marker it is sent back to the host computer. This is an addition to the
status commands that pass the queue and are answered immediately when received.
Example •
"Print data" <LF><esc>p<ESC><ACK><01h>
Wait for <01h>
<RS><ESC><ACK><02h>
Wait for <02h>
The printer will send <01h> when <print data> has executed and <02h> when the ejecting
has been performed.
Note • You must wait for the acknowledge marker to return before sending any more data to
the printer.
Note • Acknowledge marker cannot be used for events that write to the flash PROM, for
instance font loading. This is because the writing procedure erases the buffer, including the
markers, and uses all RAM in the printer.
The printer can store 8 fonts in its flash PROM. The memory available for fonts is printed on
3
the self-test printout. The character size is fixed
, so you must load one font file for each
character size you require. The fonts are given font numbers when they are loaded into the
printer. The first font is assigned number 0 and the next font 1 etc. up to font 7. Parameter p14
“Font Selection” will determine what font to use when no font selection command has been
received (see Default Parameter Settings on page 74).
You cannot erase a single font, but must erase font 4-7 with command ESC & D
, or all eight
fonts with ESC & C, then reload the fonts you wanted to keep.
Windows software for font generation and management is available on the Zebra web site. If
you need to load fonts in a non-Windows environment, use the ESC & NUL command.
The time required for processing the font data that is loaded is typically 15–20 seconds per
font, excluding transfer time. During this time, any data sent to the printer will be lost.
Note • The font processing ends with a reset. The presenter motor runs momentarily to
indicate that the printer is ready to be used.
Caution • Loading to the flash PROM will erase the RAM completely since the RAM is
used during the loading process. Any print data residing in RAM will thus be lost.
File Format
A font consists of a header describing the font, then data for every character in the font. The
header has to be downloaded even if the font consists of a single character only. Below is a
description of the font header.
1 byteReservedShould always be 0 (zero)
1 byteReservedShould always be 0 (zero)
1 byteChar. width (X)The number of bytes required for the width of one character,
1 byteCharacter pitchThe maximum width of one character in the set. This value is
1 byteChar. height (Y) The maximum height of one character matrix measured in
27 byteFont nameString of characters used to identify the character set.
This will be printed on status printouts. (E.g. Swiss 10 cpi.)
Char_matrix table: 256 records, each containing 3 bytes.
Char_bitmap data: Bitmap data for all characters that are to be defined.
Character bitmap data:
A character is made up of a bitmap the size of which is:
Char. width (X) * Char. Height (Y) bytes.
The bitmap data consists of bitmap patterns for each character in a character set for which the
parameter Char_width in the Char_matrix table is set to a value between 1 and 24. A character
that has its Char_width set to zero, is not included in the bitmap data.
The bitmap for one character is then defined according to the following table:
Example • In this example, each row consists of 3 columns equal to 3 bytes.
Up to 16 logotypes can be stored in the flash PROM of the printer. The logotypes can
be positioned and printed out with commands ESC g
The exact number of logotypes and their sizes is determined by the total amount of memory
used for fonts, logotypes and loaded firmware. Make a test printout to see how much memory
is available.
Loading
Windows software that converts black and white BMP bitmap files to logotypes and load them
into the printer is available on the Zebra web site. If you need to load logotypes in a 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.
or ESC L.
Programming
Logotypes
71
File Format
A header containing information about the logotype number, size and logotype name shall
define each loaded logotype. Immediately after the header follows the actual bitmap of the
logotype.
ESC & 01H <Header><Bitmap>
Header
Byte 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.
Bitmap
The bitmap must have exactly (X size * Y size) number of bytes. 1=black, 0=white dot.
Bit No. 7 in byte 0 represents the top left corner of the logotype.
To print a logotype you can use two commands, ESC L n1, prints the logotype at the current
cursor position, just like any character. ESC g n1 n2n3 n4n5 prints the logotype at a
specified X-Y position.
n1One byte logotype number, (0—15)
n2n3Two 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 variablepage-length mode where logotypes are always printed at the current Yposition.
Erasing
All logotypes are erased with the ESC & L command.
Caution • Loading to the flash PROM will erase the RAM completely since the RAM is
used during the loading process. Any print data residing in RAM will thus be lost.
The printer is equipped with a number of sensors that report the printer status and various error
conditions such as out-of-paper, previous printout not removed, etc.
A good practice in unattended printer applications is to check for errors and paper availability
before printing.
1. Send a Status Report Query (ESC ENQ 6, see page 64) and check that the answer is "No
errors"
2. If an error is indicated, read out the error message with Status Request (ESC ENQ 1,
page ), and take appropriate actions. Repeat this step until no more error code is available.
If weekend sensor signals that paper is below this level, check again after next document
is printed. If the sensor still signals a level below the weekend level after three successive
print/check cycles, report the condition to the systems supervisor so that he can schedule a
service visit to the printer. This three-cycle check is to ensure that dirt on the side of the
roll does not cause the alarm.
3. Send a paper-near-end query (ESC ENQ 2, see page 62) to see if the sensor reports low
paper level.
Programming
Status Reporting
73
4. If paper-near-end is indicated, report the condition to the systems supervisor so that he can
schedule a service visit to the printer.
5. Print the printout.
Important • A status reply must be read! Sending a second status query without reading the
reply of the first query may lock the printer.
Note • When using a multitask OS, status queries and responses may not be transferred
immediately from your application to the printer and vice versa. So write your program in
such a way that it repeats the query if it gets a timeout or an invalid reply. Good practice is to
ask once every 2-3 seconds, five times before giving up.
Note • You should construct your application in such a way so as not to request status while
Some of the printer settings can be stored in the flash PROM so that they will be used also
after power OFF.
The stored parameter settings are printed out on the self-test printout.
The number in front of the function is the parameter number (n) used when setting the
parameter with the command ESC & P n v.
You can use the parameter settings pretty much like normal commands. Either send the
parameter values with each printout, or set them up once and then send ESC & 4h to store all
settings in the flash PROM.
You can always return to factory default settings by sending ESC & F 10, and then storing
those settings with ESC & 4h
Note • The parameters can be locked so that no changes are possible. Check parameter 53 on
the self-test printout to find out.
.
Note • If you try to set a parameter to an invalid value, the parameter will be set to the
The default values indicated are "factory default settings" you get by sending
ESC & F 10. These are not necessarily the settings that your printer was originally delivered
with because many printers have customized settings when delivered.
Examples
Command examples are formatted in Courier and typed in the same way as used in the
Zebra TTP editor:
<ESC>&P<001><019>
Where <ESC> means the escape character 27 decimal (hex 1B). Numbers between less-than
and greater-than characters, for example <015>, means 15 decimal (hex F).
Select what handshaking to use on the serial interface.
<ESC>&P<004><000>No flow control
<ESC>&P<004><001>Xon / Xoff *
<ESC>&P<004><002>Hardware
*. DO NOT USE if you send any type of binary data like graphics data, status requests etc.
Xon / Xoff only works when plain text is sent unidirectional to
the printer. Graphics and
status replies may well contain the Xon (11h) and Xoff (13h) characters and will obstruct
the communication.
Pins 12 and 15 on the parallel port signals paper out and error. However, in an unattended
kiosk you may not want this because it causes the host computer to stop communicating, and
the operating system may display a banner on the kiosk screen.
By disabling the hardware signals, the kiosk software can for example use status commands to
find out paper level and alert appropriate personnel when the level is low, then close the kiosk
when paper is out.
<ESC>&P<005><000>No, paper out and error signals are not disabled
<ESC>&P<005><001>Yes, paper out and error signals are disabled
Note • When enabled, the hardware signal on pin 12 and 15 will block all communication
until the error is corrected. This means that it will be impossible to ask for status.
*. DRV indicates that, when using Windows, the driver takes over this setting so please set appropriate value in the driver
properties/document defaults.
A long burn time gives darker print. On insensitive paper types you may have to increase the
burn time to get an acceptable print quality.
Burn time
81
DRV*
17 Default
1 Min
8
17 Max
Max print speed
1
DRV
The main reason to decrease the print speed is to enhance print quality, and to reduce the peak
current consumption.
n
mm/s
1234567891011121314151617
21 273237 4145 485255 576063 6668 717375
Note • Some settings result in printer chassis resonance causing excessive noise and
deteriorated print quality.
15 Default
3 Min
9
255 Max
Presenter Loop length
Limits the maximum loop length. When the set length is reached, the printer ejects part of the
printout and continues too print. You use this when you have very limited space for the loop
inside the kiosk. Each step represents a 3.2-cm increment.
Setting the parameter to 0 disables the looping and feeds the paper straight out.
<ESC>&P<009><000>Disable the loop
<ESC>&P<009><007>16 cm loop
<ESC>&P<009><015>48 cm loop
Controls what the printer does with buffered data:
<ESC>&P<010><000>1 burn pulse + history
<ESC>&P<010><001>1 burn pulse
<ESC>&P<010><002>2 burn pulses + history
<ESC>&P<010><003>2 burn pulses
Adding history pulse enhances print quality. Dividing burning into two burn pulses reduces the
peak current consumption.
0Default
13
0 Min
30 Max
The line spacing is normally set by the font height. With this parameter you can set a line
spacing that is higher that the font height. Line spacing settings lower than the font height will
be ignored.
Print head pulse control
Line spacing
14
15 to 30
0Default
0 Min
7Max
-Default
1 Min
255 Max
<ESC>&P<013><030>30 pixels or font height, whichever is the largest
Font selection
Store which font number is used if no font is specified. Font is selected using Font selection
on page 82 . Selecting an invalid font gives a software error status message (invalid index).
Tab stop
Stores 16 different TAB stop positions. The position is set in increments of 2.5-mm.
Tab position 255 sets a tab stop on the last position of the line. Use this if you want underline
or reversed text to extend across the full paper width.
To set all tab stops at once, follow the procedure Set several parameters at once on page 60 .
To move a single tab stop, use the set parameter command <ESC>&P.
Example • This example sets the first tab stop 25 mm from the left margin.
<ESC>&P<015><010>
Default positions are one TAB on each cm; that is parameter values 4, 8, 12 etc.
Note • The character currently interpreted as LF converts text from the input buffer to pixels
on the paper.
Print Setup
83
34
35
1Default
0 Min
2Max
0Default
0 Min
1Max
Auto cut after FF
Decides if the printer should cut after executing an FF command, or if it should just feed the
form length.
<ESC>&P<034><000>No cut
<ESC>&P<034><001>Cut
<ESC>&P<034><002>Forced cut at black mark (cuts directly when a black mark is
detected). This works only if black mark mode is selected
(n36=2).
Black mark mode
When enabled, marks on the paper set the form length. Minimum one form length is always
fed. If a black mark is found before that, the printer feeds to the next black mark, then cuts and
ejects. This ensures that no small paper stripes are cut of and left in the printer. Note that this
parameter is used when loading paper and when pressing the FF button. So even if black mark
is enabled in the Windows driver and works, parameters for black mark must be set up
correctly.
<ESC>&P<035><000>Normal
<ESC>&P<035><001>Black mark synchronization enabled
<ESC>&P<036><000>Fixed Document Mode. Shorter documents will automatically
<ESC>&P<036><001>Variable Document Mode. The length of the page varies with
<ESC>&P<036><002>Black Mark Mode. Marks on the paper set the form length.
Document mode
DRV
be extended, while longer documents will be divided into
several pages of the desired length. Page length will be the
length set by parameters 37 and 38
the contents (printouts shorter than the value specified by
parameters 37 and 38 will be extended to that length)
Minimum one form length is always fed. If a black mark is
found before that, the printer feeds to the next black mark, then
cuts and ejects. This ensures that no small paper stripes are cut
of and left in the printer.
37 & 38
Note • Max page length in Fixed Document Mode is A5-size, which is 148.5 mm.
2 , 88Default
2 , 88Min
255 , 255 Max
Page length
Defines three different things:
1. The minimum length of a page in variable document mode
2. The actual page length in fixed document mode
3. The distance between black marks in black mark mode
One step is 0.125 mm. Settings shorter than 75 mm, will be interpreted as 75 mm.
Specifies the length of the black mark in 0.125-mm steps. Measure the length of the black
mark on your paper and enter that value here.
Marks 5 mm longer than this value are interpreted as paper out. The default value of 80 equals
10 mm.
<ESC>&P<039><040>Sets max black mark length to 5 mm.
24 Default
15 Min
40
159 Max
Specifies the minimum length of the black mark in 0.125-mm steps. Shorter marks are
ignored. The default value of 24 equals 3 mm.
<ESC>&P<040><036>Sets min black mark length to 4 mm.
BM (black mark) length
Min BM (black mark) length “Garbage Filter”
DRV
DRV
41 & 42
43 & 44
0 , 0Default
0 , 0Min
255 , 255 Max
BM (black mark) cut offset
Defines the paper feed between the black mark detection and cut. One step is 0.125 mm.
<ESC>&P<041><001><ESC>&P<042><144>Feeds 50 mm between black mark and
cut.
0 , 0Default
0 , 0Min
255 , 255 Max
Top margin
Defines the distance between the top of the paper and the top of the first text line in 0.125 mm
steps. The top margin feed is effectuated when the presenter is cleared from the previous page.
0 =disabled top margin. This gives the physical top margin of the printer,
which is 17 mm.
Avoid settings 1 – 16 mm because then the printer must reverse the paper before starting to
print, which may cause paper jam, especially at small roll diameters.
DRV
<ESC>&P<043><000><ESC>&P<044><240>Add 30-mm top margin.
Sets the function of the presenter. The Retract selections are only valid if a retract option is
fitted.
<ESC>&P<045><000>Eject page when new page is printed. (Retract disabled)
<ESC>&P<045><003>Eject page when new page is printed. Page not taken after 30s
will be retracted. (Range 1-30, 1 step = 10 s)
<ESC>&P<045><100>Retract page when new page is printed
<ESC>&P<045><103>Retract page when new page is printed. Page not taken after 30s
will be retracted. (Range 101-130, 1 step = 10 s)
<ESC>&P<045><200>Do nothing when new page is printed. (Auto-eject and retract
disabled).
<ESC>&P<045><203>Do nothing when new page is printed. Page not taken after 30s
will be retracted. (Range 201-230, 1 step = 10 s)
87
DRV
47
40 Default
0 Min
255 Max
Eject calibration constant
DRV
Sets the eject length of the printout, that is the length of paper that protrudes outside the printer
after a cut command. This eject length should be 40-63 mm. Marks on the test printout show
max and min eject length.
The default value when loading firmware is 40, but should be set individually from printer to
printer. The set value is shown in a line on the test printout.
After sending the command, store the parameters, and wait until the presenter motor buzzes.
Then make a self test printout to check if the set eject length is correct.
Example • This example sets parameter 47 to 50 and stores the parameters as default settings
"Automatic Distance Calculation" means advancing the paper with the Head-To-Cutter
distance (17 mm on the TTP 70x0).
Set to 1 if the printer is used in text mode and 0 if it is used from a driver that takes care of this
in the driver.
Note • The paper is advanced before the FF command calculates the page length to see if the
page length is longer than the set minimum length.
Advance before cut (Bottom margin)
DRV
51
52
75 Default
0 Min
255 Max
0Default
0 Min
255 Max
Black mark sensitivity
DRV
This parameter is used by command ESC # to store the calibration of the black mark sensor.
Normally there is no need to set this parameter manually.
0 is white and 255 is pitch black (out of paper).
Note • This parameter is not available on printers with hardware revision A of the control
board. The revision is printed on the test printout.
Warning level
Turns on/off indication of Paper near end and Weekend paper lever on the status indicator (1).
This affects only the status indicator, not the status enquiries
<ESC>&P<052><000>No indication
<ESC>&P<052><001>Paper Near End indication
<ESC>&P<052><002>Weekend level indication
<ESC>&P<052><003>Paper near end and weekend indication
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
90
Printable Area
Printable Area
Top margin, bottom margin, page length, and synchronization with preprint are set up with
parameters in the printer.
Paper viewed from
inner side (opposite
to thermal-coating side)
SW95001B
Cut line
Paper
feed
direction
25 mm
Black mark size 5 x 9 mm
75 mm
25 mm
9.1 mm
Punched hole 5 mm
Preprinting not
recommended
within this zone
The printer can synchronize the cutting of the printout with black-marks printed on the back of
the paper. You use this function when you have preprint on the media and you don't want a cut
in the middle of that preprint, or text printed on top of the preprint.
The sensor used to detect the black-marks is the same sensor as used for paper end detection. It
is positioned 9 mm from the edge of the paper on the side of the blue release arm, and 25 mm
behind the cutter (as seen from the presenter [output] side of the printer). The sensor accuracy
is about ±0.5 mm so avoid designing printouts with too high demands for synchronization.
Page Setup
Aligning Preprint And Thermal Print
91
Figure 24 • Recommended black mark size and position
The sensor triggers on the black-to-white transition of the black-mark, which is when the black
print ends (trailing edge).
Since the same sensor is used for both paper end and black-mark detection, the printer must
know the length of the black-mark to avoid signaling end-of-paper when it detects a blackmark. The default setting accepts black-marks in the range 3 –16 mm, and works perfectly
with the recommended black-mark length of 5 mm. Marks shorter than 3 mm are interpreted
as dirt, and marks longer than 16 mm as out-of-paper. You can change both these values by
changing the printer default settings.
Black mark mode is selected by setting parameter 35 to 1, and storing the parameters.
Important • It is essential that you store the parameters in the printer for black mark
synchronization even if you enable black marks in the Windows driver. This is because
Windows is not used at paper loading, and feeding with the FF button on the printer.
Measure the distance from the trailing edge of one black mark to the trailing edge of the next.
The resolution is 0.125 mm so multiply the distance by 8, then calculate the value to enter as
n37 and n38.
Example • If the page length is 100mm, (100 x 8) / 256 = 3.125.
n37 is the integer value, that is 3, while
n38 is the fraction, 0.125 x 256 = 32
Parameter n39 – Max Black Mark Length
Measure the height of the black mark. The resolution is 0.125 mm so multiply the black mark
length (in millimeters) by 8 and enter the value as n39.
Parameter n40 – Min Black Mark Length (Garbage Filter)
This parameter is actually a filter to filter-out garbage on the paper. If a spot is smaller than this
value, it will not be regarded as a black mark. 1. About ⅓ of the black mark length is usually a
suitable setting.
For every step the paper is feed, the black mark sensor is sampled to detect garbage, black
marks or out of paper.
When the printer detects blackness is has to check if it is only garbage;
If…Then…
the paper gets white again within n40 x
it is garbage and the spot is ignored.
0.125 mm
it is still black after n40 x 0.125 mmYesit is probably a black mark.
the paper gets white within an additional
it is a Blackmark
n39-n40 plus 5 mm
The 5-mm is a constant added to make sure that noise on the edge not will interfere with the
samples. If it at this point still is still black we have detected out of paper.
Be careful about n40 and n39. If n39 – n40 is too small, then the minimum detection area will
be too little. This area should not be less than 2 mm.
After the black mark is detected (black to white change) the printer feeds another distance to
place the paper in cut position. This distance cannot be negative so placing the black mark too
close to the paper edge is better than too far away.
Page Setup
Parameters Used
95
(ESC x n1 n2 is an obsolete command that sets n41 and n42. It is implemented for backward
compatibility with old drivers. Set parameters n41 and n42 with the
ESC & P n1 n2 command instead.)
FF (Form Feed)
Use FF to print the buffer content, go to the next top of form (black mark), and cut the paper.
ESC Z (Go To Next Top of Form)
Use ESC Z to move the paper to the next top of form. This is practically a Form-Feed without
printing and cut. It searches for the next black mark for maximum one page length + black
mark length (256 x n37+n38 + n39)/8. An additional length of 20 mm is added to be sure to
pass the edge of the next black mark. If there is no black mark within the set distance plus
20 mm, an error is raised.
Example • The commands are used together in the following way:
The following examples are not made for a specific programming language or editor, but can
be implemented with the tools of your choice. The data sent to the printer are marked with
“Send→”.
When setting up the printer:
Send→ ESC & P 35d 1dEnables black mark sync
Send
→ ESC & P 37d 4dSets distance between two black marks
Send
→ ESC & P 38d 0dn37=4d and n38=0d gives 128 mm
Send
→ ESC & P 39d 80dSets max Blackmark to 80 x 0.125 = 10mm
Send
→ ESC & P 40d 24dSets max Blackmark to 24 x 0.125 = 3 mm
Send
→ ESC & P 41d 0d
Send→ ESC & P 42d 200dSets Blackmark offset to 200 x 0.125 = 25mm
Send
→ ESC & P 43d 0d
Send→ ESC & P 44d 0dSets Blackmark top margin to 0mm
Send
→ ESC & 4dStores the above parameters as default parameters.
The above sets up and stores the parameters in the flash prom of the printer, so this need only
be sent once to the printer when setting it up for Blackmark sync.
Document
Send→the text and graphics
At the End Of the Document
Send→ESC ZFeeds the printout to the next black-mark + the additional feed specified
In Windows, the printer driver controls when the paper is cut and ejected. Settings in the driver
take over form the default parameter settings in the printer.
The settings are available in the Windows Printing Preferences Menu, in the Advanced
Options window. The names of the options boxes differ between driver versions, but the same
settings are available:
You set n35 to 1 by setting Black
Mark Check:
You set n37, n38 by setting Paper
Size:
You set n39 by setting Maximum
Black mark:
You set n40 by setting Minimum
Blackmark:
You set n41, n42 by setting Cut
Position:
Note • When everything is set up correctly and the printer prints as it should; print a page,
then without switching the power off, send the store parameters command ESC & 04h to the
printer (for example using the PRTMON.EXE program from http://www.zebra.com)
you do this, parameters that the driver uses are stored in the printer as default parameters.
This way the printer synchronizes on black mark also when you load paper, if you press the
FF button, etc.
True
If no standard paper size is corresponds to the page
length you have,
create a new form with that length in the Windows
“Printer Server Properties".
to the length of the black mark on your paper
to the value you want for scrap filter
to the length of transport that you want between black
mark and cut.
The printer has one standard interface and an optional serial interface. There are no selections
to be made, but only one interface can be used at a time. The printer will not function properly
if data is received on more than one interface at a time.
Note • If you use the printer through a Windows driver, you need not read the rest of this
chapter.
Caution • Always use Zebra-approved interface cables to avoid excessive EMC
interferences and potentially voiding the printer EMC certifications.