Swecoin TTPM2 Assembly instructions

Publ No.: 00759-000 Ed. E
TTPM2 Ticket Printer/Encoder
Installation and Programming Manual
SW95045

2 TTPM2 Installation and Programming Manual September, 99
Related manuals
TTPM2 Technical Specification, 00759-000
(old number: 38-1111-00)
TTPM2 Service Manual, 00693-000
(old numbers: 38-1141-00, SWC-00693)
The Service Manual covers the following subjects:
•Functional description
•Maintenance
•Spare parts
This is a publication of Swecoin AB
Box 545, SE-192 05 Sollentuna, Sweden
Phone int. +46 8 623 45 60
nat. 08 623 45 60
Fax int. +46 8 62345 69
nat. 08 623 45 69
www http://www.swecoin.se
© SWECOIN AB 1995
All rights reserved. Reproduction in whole or in parts is pro-
hibited 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 AB disclaims any liability resulting from the
use of this information and reserves the right to make
changes without notice.
Fifth edition, September 1999
Printed in Sweden
This edition of the manual is based on firmware 906-320
and control board 2448-901.

September, 99 TTPM2 Installation and Programming Manual 3
CONTENTS
1Introduction .................................................................................................................. 5
1.1 Document printing........................................................................................... 5
1.2 Magnetic encoding.......................................................................................... 5
1.3 Document handling......................................................................................... 5
2 Installation .................................................................................................................... 6
2.1 Installing a stand-alone printer ....................................................................... 7
2.2 Installing an OEM printer mechanism............................................................. 8
2.3 Installing accessories.................................................................................... 10
3 Operation .................................................................................................................... 13
3.1 Operator controls .......................................................................................... 13
3.2 General reset ................................................................................................ 13
3.3 Paper loading................................................................................................ 14
3.4 Paper jam removal........................................................................................ 16
3.5 Self test mode/ticket repeat mode ................................................................ 17
4 Command set ............................................................................................................. 18
4.1 Syntax ........................................................................................................... 18
4.2 Printing and encoding capability overview.................................................... 19
4.3 Summary of commands................................................................................ 22
5 Command Reference ................................................................................................. 24
5.1 System related commands ........................................................................... 24
5.2 Document-entry related commands ............................................................. 25
5.3 Print related commands................................................................................ 27
5.4 Magnetic encoding- and decoding-related commands................................. 34
6 TTPM2 start-up ........................................................................................................... 36
7 Document examples .................................................................................................. 37
8 Single-ticket handling................................................................................................ 44
8.1 Overview ....................................................................................................... 44
8.2 Inserting a single ticket ................................................................................. 45
8.3 Read and decode ......................................................................................... 45
8.4 Encode and print........................................................................................... 45
8.5 Ejecting the ticket.......................................................................................... 46
9 Error handling ............................................................................................................ 47
10 Error codes ................................................................................................................. 48

4 TTPM2 Installation and Programming Manual September, 99
11 Interface description.................................................................................................. 49
11.1 DIP switches ................................................................................................. 49
11.2 Communications protocol ............................................................................. 49
11.3 Communications port.................................................................................... 49
11.4 Communications cable ................................................................................. 50
12 Document stock ......................................................................................................... 51
12.1 Ticket base material...................................................................................... 51
12.2 Coating and preprint ..................................................................................... 51
12.3 Magnetic media ............................................................................................ 52
12.4 Ticket dimensions and perforation................................................................ 52
13 Firmware history ........................................................................................................ 56
14 Index ............................................................................................................................ 63
REGISTER NOW!
If you wish to stay informed of product changes, manual updates etc., you are wel-
come to subscribe to our bulletin service.
To register as a subscriber, either visit our web site www.swecoin.se to fill in your sub-
scription request, or send an e-mail to bulletins@swecoin.se. Enter the text Subscribe
bulletins as the subject. Do not enter any text in the message area.
Registration date (for your own records):
REVISION HISTORY
Edition E, major changes
•Information on fixed spacing with command !F T modified.
•New commands !Q, !U, !V and !N+ described
•Magnetic encoding attributes changed
•Firmware history updated.

September, 99 TTPM2 Installation and Programming Manual 5
1 INTRODUCTION
This document describes installation and operation of TTPM2 Ticket Printer/Encoder,
which creates credit-card-wide documents with magnetic encoding and thermal printing.
1.1 Document printing
TTPM2 uses the direct thermal printing technique and can print the entire thermosensitive
surface of the document with text or graphics, or both. Text block position and orientation
is software programmable as is the character size.
A text block can be identified as either fixed information which is stored in the unit until an
”All Clear” software command is sent, or as variable information, automatically erased as
soon as printing of the document has been completed. This feature allows printing from a
data file containing the variable data information.
EAN-13 and Code 39 bar codes can be generated and printed.
1.2 Magnetic encoding
Two magnetic tracks can be encoded: Either with standard low coercivity recording, or
optional “household-magnet proof” high coercivity recording.
Track combinations ISO track 2 at 75 BPI (Bits Per Inch), and ISO track 3 at 210 BPI
ISO track 1 at 210 BPI, and ISO track 2 at 75 BPI
Center track at 75 or 210 BPI
Naturally, the TTPM2 can be used for encoding on a single track only.
Encoding in ISO standard format, or in hexadecimal format, is software selectable. Read-
after-write is automatically performed. Software selectable decode functions are avail-
able.
See also ”Magnetic encoding- and decoding-related commands” on page 34.
1.3 Document handling
A standard TTPM2 printer has one document entry for fanfold ticket stock, and one entry
for single tickets. The printer can be ordered in Dual Consecutive Track (DCT) version
with both upper and lower document entries designed for fanfold ticket stock.
There are two optional front load alternatives designated front load 1 and front load 2.
Both make it possible to load single tickets through the ticket exit, which replaces the up-
per single ticket entry at the rear of the printer.
In addition to this, front load 2 has a waste bin function for redirecting used or invalid tick-
ets to a waste bin, thus preventing useless tickets being presented to the customer.
An external card dispenser that can be added to the printer handles sheet cut tickets and
cards. The card dispenser can hold about 200 tickets depending on the thickness of
them.

6 TTPM2 Installation and Programming Manual September, 99
2 INSTALLATION
The TTPM2 comes as stand-alone printer with a cover and a built-in power supply and, or
as an OEM printer mechanism for kiosk applications.
Pushbuttons and indicators
Document exit
Optional front load mechanism
SW95065C
Figure 1. Front view, stand-alone printer, and OEM printer mechanism
Upper document entry
Lower
document entry
Power ON/OFF
switch
Fuse
holder
Power
cable
receptacle
Power connector
RS 232 interface connector
SW95065D
Figure 2. Rear view, stand-alone printer, and OEM printer mechanism

September, 99 TTPM2 Installation and Programming Manual 7
2.1 Installing a stand-alone printer
1. Verify that the supply voltage range stated on the type plate is suitable for your local
line voltage.
2. Connect the printer to a line outlet with safety ground. The ground potential should be
the same as for the host computer. If ground potentials differ, use a short distance
modem between the computer and the printer.
3. Turn on the printer. The green indicator should light up.
4. Press the front button. The green indicator starts flashing and the yellow indicator
lights up, indicating ”Out of Paper”.
5. Turn the tickets so that the magnetic stripe is on the left side facing downwards, as
seen from the front of the printer.
6. Insert tickets in the lower document entry. The printer feeds the tickets forward and
cuts and ejects one ticket
7. Turn off the host computer and the printer. Connect a serial cable between the COM
port of the host computer and the serial input of the TTPM2 printer. The printer is
ready for use.
Figure 3. RS232 serial interface connector pin assignment
SW97101C
Pin 6
Pin 1
Pin Function
2 RXD (Receive data)
3 TXD (Transmit data)
4 DTR (Data terminal ready)
5 Ground
7 RTS (Request to send)
8 CTS (Clear to send)

8 TTPM2 Installation and Programming Manual September, 99
2.2 Installing an OEM printer mechanism
The TTPM2 OEM printer mechanism should be installed in some kind of enclosure such
as a self-service kiosk.
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.
Troublefree printer operation also requires the printer’s optical sensors to be shielded
from ambient light.
Additional space is required for paper stocking and paper jam. Consider mounting the
printer on a movable platform so that the printer can be maintained outside the printer
enclosure.
Figure 4. Dimension drawing for printer mechanism. All measurements are in mm
The printer mechanism requires +5 Vdc, 0.3 A and + 24 Vdc 2 A continuous, 6 A peak.
This is fed to the printer through J5 on the control board.

September, 99 TTPM2 Installation and Programming Manual 9
With Swecoin power supplies, just connect the cable from the power supply to J5.
If you use another type of power supply, connect the voltages according to the following
table. At the TTPM2 end of the cable, use a Molex 22-01-2065 connector housing and six
Molex 08-50-0032 contact springs:
Figure 5. Power supply connector pin assignment
NOTE! – Both the 5 V and 24 V ground, as well as the chassis of the printer, must be
connected to ground potential (safety ground).
After fastening the printer, proceed with the installation instructions for stand-alone printer
on page 6.
Pin Voltage
1+5V
2 Ground (for 5 V)
3 +24 V
4 +24 V
5 Ground (for 24 V)
6 Ground (for 24 V)

10 TTPM2 Installation and Programming Manual September, 99
2.3 Installing accessories
2.3.1 Output tray
The output tray collects the printed and coded tickets in a neat stack. Use the tray if you
intend to print many tickets at a time.
1. Loosen the two screws at the front of the TTPM2 case. Never loosen more than
5 turns or the nut plate will fall down inside the printer!
2. Hook the tray on to the two screws
3. Tighten the screws
SW97105
Figure 6. Installing the output tray

September, 99 TTPM2 Installation and Programming Manual 11
2.3.2 Fanfold ticket paper input tray
This optional input tray holds ticket paper for one- or two- document-entry applications.
The capacity is between 125 and 300 tickets for each entry (depending on ticket stock
thickness).
1. Position the input tray on the table behind the printer. Make sure the tray engages
properly with the hook above the lower document entry.
2. Put the pile of fanfold paper on the tray and load the paper into the printer. Never add
more than a 5-cm pile at a time. Otherwise the paper will not feed correctly.
SW97106
Figure 7. Installing the optional input tray

12 TTPM2 Installation and Programming Manual September, 99
2.3.3 Card dispenser
The TTPM2 model with card dispenser is fully assembled by Swecoin. Both the TTPM2
and the card dispenser are mounted on a common base plate (not shown). The dispenser
is connected to the TTPM2 control board and the serial interface is moved to the back of
the card dispenser by means of an extension cable.
Follow the procedure ”Installing a stand-alone printer” on page 7, and ”Loading sheet-cut
tickets in optional card dispenser” on page 15.
SW97118A
Card dispenser
Figure 8. A stand-alone TTPM2 printer equipped with card dispenser. The OEM printer mechanism
can also be equipped with card dispenser.

September, 99 TTPM2 Installation and Programming Manual 13
3 OPERATION
3.1 Operator controls
Green indicator
Fixed:
Blinking:
Flickering:
Temporarily OFF:
Power ON & printer ready.
Insert ticket.
Receiving data.
Commands are executed.
Yellow Indicator
Fixed: Out of paper.
Blinking: Print command
received, but out of paper.
Red indicator
Error, turn OFF
and ON the printer
to clear.
Front pushbutton
1.Cuts and ejects a ticket .
2. Press and hold at power ON to enter
self test mode. Press again to encode
and print one ticket. The printout
shows current firmware version. Turn
printer OFF and ON to exit self test
mode.
Center pushbutton
Ejects any document in
the selected ticket track.
(Same as when an !E
command is received.)
Rear pushbutton
Press and hold at power ON to turn on paper
jam clearing mode. Press front button to
advance ticket forward and middle button to
retract ticket backwards. Turn printer OFF
and ON to exit paper jam clearing mode.
SW97108
1
Figure 9. Indicators and pushbuttons
3.2 General reset
A general reset of the TTPM2, restoring all parameters to their default value, is effected if
all three pushbuttons are kept depressed at power ON. All three indicators will light but
nothing else will happen. At this point, the power has to be turned OFF and ON once
more. The TTPM2 is then reset.
1
1Do not hold the front button depressed! Doing so will result in erroneously cut tickets often resulting in paper jam.

14 TTPM2 Installation and Programming Manual September, 99
3.3 Paper loading
The yellow indicator indicates paper out.
Press the center button to eject remaining tickets if you want to replace paper stock be-
fore paper is out.
3.3.1 Paper stock positioning
The ticket stock should be oriented with the magnetic stripe down to the left as seen from
the front of the TTPM2. The pile of fanfold tickets should be placed at a distance of at
least one ticket length behind the printer.
SW97116
> One ticket length
90°
Figure 10. Positioning the ticket stock
3.3.2 Loading through rear document entries
Insert the ticket stock into the desired document entry. When the input sensor detects the
ticket this will be pulled into the active position. Fanfold ticket stock is usually loaded in
the lower document entry, and single tickets in the upper document entry. On printers
with two fanfold tracks, you may also use fanfold tickets in the upper document entry.
Magnetic stripe
Lower document entry
Upper document entry
SW97113
Figure 11. Position of the magnetic stripe when loading paper

September, 99 TTPM2 Installation and Programming Manual 15
3.3.3 Loading through front document entry (optional)
Insert a single ticket into the document entry with the magnetic stripe facing down to the
left, as seen from the front of the printer. When an !L3 command has been received and
the input sensor detects the ticket, this will be pulled into the active position of the upper
rear document entry.
Magnetic stripe
SW97114
Figure 12. Position of the magnetic stripe at front load
3.3.4 Loading sheet-cut tickets in optional card dispenser
The card dispenser is factory adjusted to a specific card thickness, usually 0.18 mm to
0.25 mm as indicated on a label on the dispenser. Using thicker or thinner tickets will
cause paper jam.
The ticket stock should be oriented with the magnetic stripe down to the left as seen from
the front of the TTPM2. Put the paperweight on top of the ticket pile, press the rear push
button to load a ticket and the printer is ready.
SW97118
Paper weight
Tickets
Card dispenser
Magnetic stripe
Figure 13. Loading tickets in the card dispenser.

16 TTPM2 Installation and Programming Manual September, 99
3.4 Paper jam removal
Open the TTPM2 cover to locate and remove the ticket that is stuck in the mechanism.
Use the following procedure:
3.4.1 Select paper jam clearing mode
1. Power OFF.
2. Push and hold the rear pushbutton while turning ON the power. The red indicator
shows a steady light to indicate paper jam clearing mode.
3.4.2 Tickets stuck in input module
Press and hold the center push button to eject the ticket towards the rear of the unit.
3.4.3 Tickets stuck in output module
Press and hold the front push button to eject the ticket towards the front of the unit.
3.4.4 Exit paper jam clearing mode
Power OFF and back ON again, the TTPM2 is operational but any ticket information pre-
viously sent to the unit is lost.
You can also power OFF the printer and turn the feed rolls manually to remove the
blocking ticket.
Figure 14. Paper path.

September, 99 TTPM2 Installation and Programming Manual 17
3.5 Self test mode/ticket repeat mode
3.5.1 Self test
1. Press and hold the front pushbutton at power ON to enter self-test mode.
2. Press again to encode and print one ticket. The printout shows current firmware ver-
sion.
3. Turn printer OFF and ON to exit self-test mode.
3.5.2 Repeat fixed print
1. Start self-test mode as described above.
2. Download the ticket data to the printer, and print one ticket. The data must only con-
tain fixed text, fixed encoding data, and graphics.
3. Press the front button once and an exact copy of the first ticket will be printed. This will
be repeated each time that the front button is pressed.
4. Turn printer OFF and ON to return to normal operation.
NOTE! — Do not hold the front button depressed! Doing so will result in erroneously cut
tickets often resulting in paper jam.

18 TTPM2 Installation and Programming Manual September, 99
4 COMMAND SET
The command set is designed in accordance with industry standards and is enhanced
with functions unique to this product. The command language uses only printable ASCII
characters for easy adaptation to any host system.
4.1 Syntax
•A command string always starts with an exclamation mark (ASCII 33 or HEX 21)
serving as command identifier.
•The characters immediately following the “!” (21H) form the actual command to the
printer. The command consists of 1–3 characters and is followed, when applicable, by
a sub command, formatting commands, and data separated by space characters as
shown in Figure 15.
•Carriage Return and Line Feed end each command.
Command identifier
Command (1 to 3 characters)
Sub command
Formatting commands
separated by spaces
Data enclosed in
quotation marks
Space character
(ASCII 32 or HEX 20)
Only used with some commands
Graphical data starts directly without any quotation mark
and ends after the specified number of bytes
New line = CR LF
(ASCII 13 10
or HEX 0D 0A)
SW97119
1
1
1
2
2
1
Figure 15. Command syntax

September, 99 TTPM2 Installation and Programming Manual 19
4.2 Printing and encoding capability overview
4.2.1 Text
It is possible to print text in four fonts, in four orienta-
tions, and in 16 different sizes.
Text is divided into two categories:
•Fixed text that is repeated on following tickets
•Variable text that is deleted immediately after
printing
Fixed text is normally used for headers etc. as well
as for establishing printing parameters for the vari-
able information.
Variable text is used for names, seating numbers,
departure times, dates, etc.
4.2.2 Graphics
Bitmap graphics, such as logotypes, prints in the
size and orientation in which they where down-
loaded. Graphics print on all following tickets until a
”Clear all” command is received, so you only have to
download graphics once.
Remember, when creating graphics for the TTPM2
printer, that the pixels are not square, but has a
height/width ratio of 1.32:1.
4.2.3 Bar codes
Bar code data fed to the printer are converted to an
EAN13 or a Code39 bar code. The bar code prints
on all subsequent tickets until a ”Clear all” command
is received, or until new bar code data with the same coordinates and type is received.
4.2.4 Magnetic codes
Messages can be magnetically encoded on a stripe at the back of the ticket. The mes-
sage can be between 37 and 107 characters long depending on the coding standard and
density you select.
Figure 16. Font examples

20 TTPM2 Installation and Programming Manual September, 99
4.2.5 Positioning data on the ticket
Items to be printed are placed within
frames. You position the frame by
defining the X and Y coordinate of
the upper left corner, and the ori-
entation of the frame. The frame is
then automatically sized to the
contents you put in it (character
size, No. of characters, graphics
size, and other data for the item to
be printed).
Frames can overlap each other.
You can for instance print text on
top of graphics.
4.2.6 Triggering a printout
Putting text, graphics, bar and mag-
netic codes on the ticket as de-
scribed above only builds an image
of the ticket in the printer memory.
To actually print something on a
ticket, you must send a print com-
mand:
↵
↵↵
↵
Every received ”!P CR LF” prints
one ticket. (On dual document entry
printers you must also send a select
document entry command, see page 25.)
If you have variable text on your tickets, the data to be printed in the variables must pre-
cede the !P. If two variables are used for instance, a print command could look like this:
↵
↵↵
↵
↵
↵↵
↵
↵
↵↵
↵
4.2.7 Command acknowledgment
Data strings received by the TTPM2 are automatically acknowledged by the TTPM2
sending an ACK to the host computer. The acknowledgment is initiated by a successful
read-after-write of the encoded magnetic information.
If no encoding command and data are sent to the TTPM2, the ACK is still sent (read-
after-write verifies that no data is encoded).
NOTE! – ACK/NAK must be enabled through dipswitch settings, see page 49.
Figure 17. Coordinates on the ticket
Other manuals for TTPM2
3
Table of contents
Other Swecoin Printer manuals

Swecoin
Swecoin TTP 101 User manual

Swecoin
Swecoin TTP 2000 User manual

Swecoin
Swecoin TTP 5250 User manual

Swecoin
Swecoin TTP 5000 User manual

Swecoin
Swecoin TTPM2 Manual

Swecoin
Swecoin TTP 10X0 User manual

Swecoin
Swecoin TTP 101 User manual

Swecoin
Swecoin TTPM2 User manual

Swecoin
Swecoin TTP 101 User manual

Swecoin
Swecoin TTP 5000 User manual