Swecoin TTP 10X0 User manual

TTP 10X0 Kiosk/receipt printer
Technical Manual
Publ. No.: 01707-000, Ed. F++January 28, 2004

2 TTP 10X0 Kiosk/receipt printer – Technical Manual 0401
Acknowledgments
Adobe and Acrobat are trademarks of Adobe Systems
Incorporated
Windows and Windows NT are trademarks of Microsoft
Corporation
This is a publication of Swecoin AB
Box 322, SE-192 30 Sollentuna, Sweden
Phone +46 8 623 45 60
Fax +46 8 594 709 89
E-mail [email protected]
Web site http://www.swecoin.se
© SWECOIN AB 1998, 2004
All rights reserved. Reproduction in whole or in parts is prohib-
ited without written consent of the copyright owner. We have
taken great care to ensure that the information in this manual
is correct and complete. However, if you discover any errors
or omissions, or if you wish to make suggestions for
improvements, you are welcome to send your comments to
us. SWECOIN disclaims any liability resulting from the use of
this information and reserves the right to make changes
without notice.
Edition F, January 2004
Printed in Sweden

0401 TTP 10X0 Kiosk Printer – Technical Manual 3
CONTENTS
1. Introduction...................................................................................................................5
About this manual......................................................................................................5
Updating ....................................................................................................................5
2. Product presentation ...................................................................................................6
Status indicator..........................................................................................................7
Feed-forward (FF) button ..........................................................................................7
3. Installation.....................................................................................................................8
Installation considerations .........................................................................................8
Connecting to the computer ......................................................................................9
Connecting the power..............................................................................................11
Making a test printout ..............................................................................................11
Installing a Windows printer driver ..........................................................................11
Installing a paper-near-end sensor (option) ............................................................12
Installing an output nozzle (option)..........................................................................12
4. Operation.....................................................................................................................13
Installing a paper roll ...............................................................................................13
Clearing paper jams ................................................................................................14
Self-test printout ......................................................................................................15
Hex-dump mode ......................................................................................................15
5. Programming ..............................................................................................................16
Summary of control codes & escape sequences ....................................................17
Software command syntax ......................................................................................19
Status reporting .......................................................................................................41
Default parameter setting for firmware up to version 2.00 ......................................41
Default parameter setting, Firmware 2.10 and up...................................................44
Windows WIN32 API calls.......................................................................................47
6. Aligning preprint and thermal print ..........................................................................49
Commands used with the black-mark .....................................................................49
Black-mark sensing from within "Windows" ............................................................51
7. Interfaces.....................................................................................................................53
Parallel interface (TTP 1020) ..................................................................................53
Serial (TTP 1030) ....................................................................................................58
USB (TTP 1030) ......................................................................................................59

4 TTP 10X0 Kiosk Printer – Technical Manual 0401
8. Specifications .............................................................................................................60
Print data .................................................................................................................60
Text modes (non-Windows applications) ................................................................60
Basic character set ..................................................................................................61
Paper handling ........................................................................................................63
Printer dimensions...................................................................................................64
Environmental conditions ........................................................................................65
Standards, licenses, etc. .........................................................................................65
Miscellaneous..........................................................................................................65
Paper specification ..................................................................................................66
Ordering number list ................................................................................................67
9. Maintenance ................................................................................................................70
Fault finding .............................................................................................................70
Cleaning the print head ...........................................................................................71
Disassembly ............................................................................................................72
Replacement parts ..................................................................................................75
Circuit diagrams, TTP 1020.....................................................................................84
Circuit diagrams, TTP 1030.....................................................................................88
Firmware..................................................................................................................92
REVISION HISTORY
Edition C, major changes
Revision history updated to 2.00. TTP 1030 information added. Text mode commands
added
Edition D, major changes
• Status reporting for ESC ENQ 2 corrected
Edition E, major changes
• Indicator blink codes added
• New default parameter list added for firmware versions 2.10 and higher
• New command ESC & 6 added
• Replacement parts section expanded
• Circuit diagrams added
Edition F, major changes
Revision history updated to 2.30. Commands ESC B, ESC N, ESC I, ESC P added.
Parameter n49 added
Paper specification changed

0401 TTP 10X0 Kiosk Printer – Technical Manual 5
1. INTRODUCTION
About this manual
This manual contains the information required to install the printer and to run it from a
host computer such as a PC.
The programming chapter on page 16 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 of the parallel interface,
etc.
Updating
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.swecoin.se). You can order printed copies of the current manual by e-mail,
fax, or phone.
If you require functions not found in the manual edition at your disposal, you are welcome
to consult one of our representatives for information.

6 TTP 10X0 Kiosk Printer – Technical Manual 0401
2. PRODUCT PRESENTATION
Cutter module
(inside)
Print module
(inside)
Presenter
module
Control board
(inside)
SW98015
Paper-near-end
sensor
(J10)
(optional)
connector
Power connector (J5)
Interface
connector(s)
Paper release lever
Feed-forward button
5V indicator
(voltage generated
on controlboard)
24V Indicator
Status indicator
Figure 1. Printer exterior, rear view
The TTP 10X0 is a kiosk/receipt printer using direct thermal printing. The print speed is
up to 100 mm per second.
The printer has an integrated control board. The TTP 1020 communicates with the host
computer through an IEEE-1284 bi-directional parallel port. The TTP 1030 communicates
with the host computer through an RS-232 serial interface or an USB port. Drivers are
available for Windows 95/98 and NT4, 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 Windows.
The loop generating presenter mechanism handles documents of various lengths. It
holds the receipt until printed, then cuts and presents the complete receipt to the
customer. A flip-up printer mechanism gives the operator access to the paper path, and
print head, for maintenance purposes.

0401 TTP 10X0 Kiosk Printer – Technical Manual 7
Status indicator
The yellow status indicator has several functions:
ON constantly — the printer is operational
Blinks, pauses, blinks — indicates non-severe error. The number of blinks reflects
the error code:
1 Presenter jam
2 Cutter stuck
3 No paper at head
4 Head up
5 Paper-feed error
6 Temp error
Flashes rapidly — indicates severe error. The printer must be reset to be operable
again. Hold down the feed-forward button and the number of blinks will reflect the
error code.
Feed-forward (FF) button
When you insert the paper through the paper entry the printer will feed it forward, cut and
eject a receipt, then switch to on-line mode. Use the feed-forward button if you want to
advance the paper forward further.
To feed paper:
1. Press and hold the button, paper-feed starts.
2. Release the button to stop paper feed.
You can also use the feed-forward button to print a self-test receipt. See page 15.

8 TTP 10X0 Kiosk Printer – Technical Manual 0401
3. INSTALLATION
Installation considerations
The TTP 10X0 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 64.
20 mm
68 mm
44 mm
10 mm
∅
12 mm
∅
6.5 mm
10 mm
90.8 mm
132 mm
156 mm
Leaf spring
∅
11 mm
10 mm
1.5 mm
Add material for corner radius
Min. 100 mm
Center
Figure 2. Example of a simple shelf for fastening a standard printer (without output nozzle and roll holder),
using keyholes and a leaf spring retainer
Additional space is required for paper replenishment and paper jam removal. Consider
mounting the printer on a movable platform so that the printer can be maintained outside
the printer enclosure.

0401 TTP 10X0 Kiosk Printer – Technical Manual 9
Electrostatic discharges, and earth currents
Preventing ESD and earth currents from affecting the printer operation requires proper
connection of the printer chassis to protective earth through a mounting platform or
through a separate earth conductor.
Ambient light
There is an optical sensor just inside the paper exit at the front of the printer.
To ensure proper printer operation, design the printer enclosure so that it prevents direct
sunlight or light from indoor lamps from reaching the sensor through the paper exit.
Connecting to the computer
TTP 1020
Connect the printer to the parallel port of the computer to be used.
Connector J7 is an IEEE-1284 type C, 36-pole mini Centronics, with clip latches. See
Table 11 for pin assignment of J7.
Use only certified cables marked IEEE-1284. See page 67 for Swecoin ordering number.
You can also use commercially available cables such as AMP 158393-3.
Figure 3. IEEE-1284 cable with type A and type C connectors

10 TTP 10X0 Kiosk Printer – Technical Manual 0401
TTP 1030
USING THE USB INTERFACE
Connect the printer to the USB port of the computer, or the USB hub to be used. USB
connectors are recognized by the following symbol: .
Connector J7 is a 4-pin USB type B connector. See Table 14 for pin assignment.
A suitable cable is available from Swecoin, see page 67 for ordering number. You can
also use commercially available cables such as AMP 621775-4.
Figure 4. USB cable with type A and type B connectors
USING THE SERIAL INTERFACE
Connect a null modem cable between J 6 on the printer and the computer to be used.
A suitable cable is available from Swecoin, see page 67 for ordering number.
Printer
PC
Female
5GNDGND5
2RxDRxD2
3TxDTxD3
9RIRI9
1DCDDCD1
8CTSCTS8
7RTSRTS7
4DTRDTR4
6DSRDSR6
5
9
4
8
3
7
2
6
1
Female
5
9
4
8
3
7
2
6
1
Figure 5. Serial interface cable. To be able to connect the cable in any direction, make symmetrical cables.

0401 TTP 10X0 Kiosk Printer – Technical Manual 11
Connecting the power
With Swecoin power supply (01035-014):
1. Make sure the line voltage selector on the power supply is set to your local line
voltage.
2. Connect the cable from the power supply to J5.
3. Connect the power cable to the line outlet.
4. Turn ON the power supply.
If you use another type of power supply, connect the voltages according to the following
table. At the printer end of the cable, use an AMP Mate-N-Lok connector housing and two
contact-sockets:
Pin Function
1 +24 Vdc
2 GND
AMP No. 350777-1 AMP No. 350689-1
Table 1. Power connection
Print mode Current
Idle 150 mA
Standard text printing 4.5 A average
All black printing 6A
Table 2. Current consumption
Making a test printout
You can make a self-test printout if you want to verify that the printer operates correctly.
See "Self-test printout" on page 15.
Installing a Windows printer driver
Printer drivers for most versions of Microsoft Windows™ are available on the Swecoin
web site www.swecoin.se, or on diskette from Swecoin. See page 2 for address. Please
follow the installation instructions that accompany the drivers.

12 TTP 10X0 Kiosk Printer – Technical Manual 0401
Installing a paper-near-end sensor (option)
A paper-near-end 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.
Paper roll holders supplied by Swecoin are equipped with paper-near-end sensors. Just
connect the cable to connector J10 at the back of the printer; see Figure 1 on page 6.
+5
+5
Paper-near-
end sensor
2
3
1
J10
PL SENSE
SW97081A
180 ohm
0.1 uF
Paper roll
Sharp
GP2S40
New
Near
end
Roll holder shaft
Figure 6. Paper-near end sensor connection
Installing an output nozzle (option)
An optional black, plastic output nozzle makes it easier to get a good-looking bridge
between the printer and the kiosk housing. See "Options" on page 67.
Fasten it with four screws in the printer front according to the drawing below.
44.6
17.2
27
22.2
16.3
15
35
34
64
17
M3x10 screws, 2 pcs
M3 nuts, 2 pcs
Lock with Loctite 242
M3x5 screws, 2 pcs
Lock with Loctite 242
SW98036
All measurements are in mm
Figure 7. Measurements drawing of output nozzle

0401 TTP 10X0 Kiosk Printer – Technical Manual 13
4. OPERATION
Installing a paper roll
1. Turn the new paper roll as shown. The paper should be inserted into the printer with
the temperature-sensitive side up.
Figure 8. Turn the paper roll so that the paper leaves the roll from the top
2. Tear off approximately 0.5 m from the new paper roll.
CAUTION!
This is important since the outer end of the paper is usually fixed to the roll with some
type of glue or self-adhesive substance that might otherwise cause paper jam or
even print head damage.
Figure 9. Tear off 0.5 m from the new paper roll
3. Make sure the printer is turned ON.

14 TTP 10X0 Kiosk Printer – Technical Manual 0401
4. Insert the paper through the opening at the back of the printer. The printer will now
feed, cut and eject a receipt, and then automatically go on-line.
Figure 10. Insert the new paper
Clearing paper jams
Should a paper jam occur, follow the procedure below:
1. Tear off the paper close to the paper roll.
2. Flip back the printer mechanism.
Figure 11. Flip the printer mechanism open

0401 TTP 10X0 Kiosk Printer – Technical Manual 15
3. Lift the print head by pushing the paper release lever towards the paper entry.
4. Remove any paper trash by gently pulling the paper forwards, out of the printer.
Figure 12. Remove paper jam
Self-test printout
1. Switch OFF the power.
2. Hold the feed-forward button depressed while powering ON the printer. Keep the
button depressed for at least 5 seconds.
This produces a printout showing the firmware program version and date, hardware
revision number, serial number of the control board, name of the font used on the test
printout and the burn time used by the print head.
3. Each successive press of the button will produce a test printout.
4. Switch the printer OFF and ON again to exit self-test mode.
Hex-dump mode
When faultfinding the system, a printout of all data transferred to the printer in invaluable.
(Added in firmware version 2.10)
1. Switch the power OFF.
2. Lift the print head by pushing the paper release lever towards the paper entry.
3. Hold the feed-forward button depressed while powering ON the printer. Keep the
button depressed for at least 5 seconds.
4. Release the form-feed button.
The printer is now in a HEX-dump mode and all on-line communication is printed in both
HEX format and ASCII character format. The printed lines are 8 characters long, each
representation printed using character set 0.
If the last line to be printed in HEX mode contains fewer than 8 characters, the line is not
automatically printed. A short press on the feed-forward button will print the last,
incomplete line.
Exit from HEX dump mode by switching the power OFF.

16 TTP 10X0 Kiosk Printer – Technical Manual 0401
5. PROGRAMMING
There are two completely different ways of setting up the receipt: Text oriented and driver
oriented style.
Text oriented
The receipt 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 PROM of the printer.
Text and graphics can also be printed 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 Figure 13. You can switch between these cursors at any time,
the cursor will retain its last position on the ticket.
Driver oriented
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. Only the cut-and-present and
black-mark commands need to be specified by the programmer.
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.
Text
text
text text text text
text text text text
text
1 234567 890128
Bar codes can be added.
Text text
text text
text text
text text
text text
Text text text text text text text text text text
Tex t 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
Figure 13. Ticket styles

0401 TTP 10X0 Kiosk Printer – Technical Manual 17
Summary of control codes & escape sequences
You need not use the programming commands when you print through a Windows printer
driver.
NOTE! – Text commands where added in firmware release 2.00.
Command Hex Decimal Function Page
BS 08 008 Backspace 25
CAN 18 024 Cancel 25
CR 0D 013 Carriage return 25
ENQ 05 005 Clear presenter 32
ESC ACK n 1B 06 n 027 006 Set acknowledge marker 40
ESC ! n 1B 21 n 027 033 Select font 23
ESC & 4 1B 26 04 027 038 004 Store current parameter values in
flash PROM 34
ESC & 6 n 1B 26 06 n 027 038 006 n Calibrate eject length 34
ESC & F n 1B 26 46 027 038 070 Recall parameter profile n 34
ESC & P n v 1B 26 50 n v 027 038 080 n v Set parameter values 35
ESC ? 1B 3F 027 063 Reset (full) 34
ESC @ 1B 40 027 064 Reset (initialize) 34
ESC 3 n 1B 33 n 027 051 Line spacing 26
ESC b 0 x1 x2 y1 y2 1B 62 n… 027 098 n… Print bitmap at XY position 28
ESC B n 1B 42 n 027 066 n Bold ON/OFF 23
ESC BC 1B 42 43 027 066 067 Barcode Clear 27
ESC BS n1-n11 1B 42 54 n1-n11 027 066 084 n… Barcode Specify 27
ESC BW n1…nn 1B 42 57 n1-nn 027 066 087 n… Barcode Write 27
ESC c n 1B 63 n 027 099 n Variable page length ON/OFF 20
ESC C n1 n2 1B 43 n1n2 027 067 n1 n2 Page length 19
ESC d n 1B 64 n 027 100 n Make n line feeds 26
ESC ENQ 01 1B 05 01 027 005 001 Status enquiry, general 36
ESC ENQ 02 1B 05 02 027 005 002 Paper-near-end enquiry 36
ESC ENQ 04 1B 05 04 027 005 004 Fonts and logotype enquiry 37
ESC ENQ 06 1B 05 06 027 005 006 Status report 38
ESC ENQ 07 1B 05 07 027 005 007 Firmware version enquiry 38
ESC ENQ 09 1B 05 09 027 005 009 Serial number enquiry 39
ESC ENQ 10 1B 05 0A 027 005 010 Control board revision enquiry 39
ESC ENQ 11 1B 05 0B 027 005 011 Head temperature enquiry 39
ESC ENQ 99 1B 05 63 027 005 099 Request device ID 39
ESC ENQ P n 1B 05 50 027 005 080 Parameter setting data enquiry 40
ESC f n 1B 66 n 027 102 n Presenter loop ON/OFF/length 33
ESC F n1..nx NUL 1B 46 n1...nx 00 027 070 n...nx 000 Set horizontal tabs 26

18 TTP 10X0 Kiosk Printer – Technical Manual 0401
Command Hex Decimal Function Page
ESC FF n 1B 0C n 027 012 n Eject (run presenter) 32
ESC h n 1B 68 n 027 104 n Set multiple-height print 26
ESC i n 1B 69 n 027 105 n Italics ON/OFF 23
ESC J n 1B 4A n 027 074 n Paper advance 30
ESC j n 1B 6A n 027 106 n Paper reverse 30
ESC M n1 n2 1B 4D n1n2 027 077 n1 n2 Black mark definition 21
ESC N n 1B 4E n 027 078 n Text alignment 26
ESC NUL 1B 00 027 000 Load firmware 35
ESC o n 1B 6F 027 111 Text orientation 22
ESC p 1B 70 027 112 Print 30
ESC q n 1B 71 n 027 113 n Print contrast adjustment 31
ESC r 1B 72 027 114 Print ruler line 29
ESC RS 1B 1E 027 030 Cut only, no eject 32
ESC s n 1B 73 n 027 115 n Send dot line 28
ESC S n1 n2 1B 53 n1 n2 027 083 n1 n2 Send graphics data 28
ESC t n 1B 74 n 027 116 n Print text at XY position 24
ESC T n 1B 54 n 027 084 n Reversed text ON/OFF 23
ESC u n 1B 75 n 027 117 n Underline ON/OFF 23
ESC w n 1B 77 n 027 119 n Set multiple-width print 24
ESC V n 1B 56 n 027 086 n Print speed adjustment 31
ESC X n1 n2 1B 58 n1 n2 027 088 n1 n2 Sense black-mark position 21
ESC x n1 n2 1B 78 n1 n2 027 120 n1 n2 Set internal black-mark counter 21
ESC Z 1B 5A 027 090 Go to next top of form 21
FF 0C 012 Form feed 26
HT 09 009 Horizontal tabulation 26
LF 0A 010 Linefeed 25
RS 1E 030 Cut and eject paper 32
US 1F 031 Partial cut 32
Table 3. Control codes & escape sequences in alphabetical order
NOTE! – In all responses from the printer the most
significant byte (MSB) is transmitted first.

0401 TTP 10X0 Kiosk Printer – Technical Manual 19
Software command syntax
The commands in this section are grouped after what they do, and these groups are
sorted in a theoretical usage sequence. It starts with commands for specifying the printed
page — through text-and-graphics commands — to cut-and-present commands. System
and status commands are presented at the end.
1.1.1 Page setup commands
ESC C n1 n2
1B 43 n1 n2 hex
027 067 n1 n2 decimal Set fixed page length
NOTE! — Use this command when you want a fixed page length,
and when you want to print landscape text and graphics. Shorter
tickets will automatically be extended, while longer tickets will be
divided into several tickets of the desired length.
SW97063-R2
TEXT
Text text
TEXT
Text text
Page length
(minimum 75 mm)
Page width =
applicable print
window width
Paper transport
direction
Top margin (Distance between cut and print line, 17 mm)
Figure 14. Definition of page size
Sets the fixed page length expressed as a number of 0.125-mm pixel line-feeds. Form
feed is effected with the normal cut/eject command RS, or the FF command.
NOTE! — Do not use fixed page length less than 75 mm (n1 = 2, n2 = 88)
• For the ESC C n1 n2 setting to apply, variable page length must be OFF. ESC c 0
turns OFF variable page length.
• Fixed page length settings, shorter than the minimum page length as defined by
default parameter settings, will automatically be adjusted to the default value.
NOTE! — To enable fixed page length you must also use ESC c 0,
see next page

20 TTP 10X0 Kiosk Printer – Technical Manual 0401
Example:
Length Command n1 n2 Length Command n1 n2
75 mm ESC C <002> <088>
155 mm ESC C <004> <216>
80 mm ESC C <002> <128>
160 mm ESC C <005> <000>
85 mm ESC C <002> <168>
165 mm ESC C <005> <040>
90 mm ESC C <002> <208>
170 mm ESC C <005> <080>
95 mm ESC C <002> <248>
175 mm ESC C <005> <120>
100 mm ESC C <003> <032>
180 mm ESC C <005> <160>
105 mm ESC C <003> <072>
185 mm ESC C <005> <200>
110 mm ESC C <003> <112>
190 mm ESC C <005> <240>
115 mm ESC C <003> <152>
195 mm ESC C <006> <024>
120 mm ESC C <003> <192>
200 mm ESC C <006> <064>
125 mm ESC C <003> <232>
205 mm ESC C <006> <104>
130 mm ESC C <004> <016>
210 mm ESC C <006> <144>
135 mm ESC C <004> <056>
215 mm ESC C <006> <184>
140 mm ESC C <004> <096>
220 mm ESC C <006> <224>
145 mm ESC C <004> <136>
225 mm ESC C <007> <008>
150 mm ESC C <004> <176>
230 mm ESC C <007> <048>
Table 4. Example of page length commands
ESC c n
1B 63 n hex
027 099 n decimal
Variable page length ON /OFF
n = 0 OFF Automatic form feed if the printed page length exceeds the length set
by ESC C n1 n2.
n = 1 ON Selects continuous print mode ( no auto FF). See also “Default
parameter settings”.
Table of contents
Other Swecoin Printer manuals

Swecoin
Swecoin TTPM3 User manual

Swecoin
Swecoin TTP 2000 User manual

Swecoin
Swecoin TTPM2 Assembly instructions

Swecoin
Swecoin TTP 101 User manual

Swecoin
Swecoin TTP 5000 User manual

Swecoin
Swecoin TTP 101 User manual

Swecoin
Swecoin TTP 5250 User manual

Swecoin
Swecoin TTP 5250 User manual

Swecoin
Swecoin TTPM2 Manual

Swecoin
Swecoin TTP 2000 User manual