System related commands ................24 Document-entry related commands ............. 25 Print related commands................27 Magnetic encoding- and decoding-related commands......... 34 6 TTPM2 start-up ......................36 7 Document examples ....................37 8 Single-ticket handling....................44 Overview ....................... 44 Inserting a single ticket ................. 45 Read and decode ..................
Page 4
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):...
See also ”Magnetic encoding- and decoding-related commands” on page 34. 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.
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...
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.
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.
Page 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:...
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.
Page 11
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 September, 99 TTPM2 Installation and Programming Manual...
Page 12
(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.
Figure 9. Indicators and pushbuttons 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 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.
Page 15
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.
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.
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. September, 99 TTPM2 Installation and Programming Manual...
HEX 0D 0A) (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 SW97119 Figure 15. Command syntax TTPM2 Installation and Programming Manual September, 99...
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.
Page 20
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).
Page 21
4.2.9 Ticket memory The TTPM2 printer has 128k of nonvolatile RAM (lithium battery backup, with approxi- mately 7 years battery life). This memory stores the entire ticket so you can continue after power OFF, without having to reload the data.
!F C Print bar code !F M Specifies No. of retries + cancellation text to be printed if encoding fails !L1, !L2, !L17 or !L18 must be selected on units with dual document entries TTPM2 Installation and Programming Manual September, 99...
Page 23
Defines data to be encoded in hexadecimal format on track 2 (or center track) Same as !N but reverses the bit order Reads data in hexadecimal format from track 2 (or center track) September, 99 TTPM2 Installation and Programming Manual...
The Print command can also be used to initialize the TTPM2 after power OFF (as an al- ternative to !C) in order to save any ticket layout stored in the TTPM2. See also page 21, and 36.
Reads the string stored by !Q from the memory in the printer. Status request, immediate The TTPM2 responds by sending the same 1 byte response to the host computer as is sent as byte 1 in response to the !S command. The ENQ command is effected immedi- ately after receipt, whereas the !S command is effected in sequence when received.
Page 26
This command lifts the print head for a specified time, to permit document insertion through the TTPM2 front document entry/exit. A the same time, any document in active position is retracted. The document inserted in the front document input/exit is loaded into the printer and placed in active position in the upper track, see page 44 for track definition.
Specifies the type of the field T = Text G = Graphics M = Ticket cancellation definitions (See page 32) C = Bar code <data> Depends on the type of field specified. See the following pages. September, 99 TTPM2 Installation and Programming Manual...
Page 28
↵ ↵ ↵ ↵ ! " # " # $ & ' $ Introduced in firmware version 3.2 TTPM2 Installation and Programming Manual September, 99...
Page 29
!F G Format graphics for printing TTPM2 can print bit map graphics. Graphic images are stored in the fixed memory area and will therefore be repeated on every ticket until the next !C command is received. Remember, when creating graphics for the TTPM2 printer, that the pixels are not square but have a height/width ratio of 1.32:1.
Page 30
10H 38H 7CH FEH 7CH 38H 10H SW97123 Figure 19. Converting graphics to TTPM2 format. Note that the appearance on your screen depends on the editor you use to write your program. A file for downloading and printing the above graphics will look like this, in Windows...
Page 31
Bar code printing can be used as ticket data carrier instead of, or in addition to, magnetic encoding. NOTE! – To produce sharp code bars, the TTPM2 printer automatically reduces the print speed by approx. 50% when printing tickets with east and west oriented bar codes.
Page 32
This is a block of data to be converted by the TTPM2 and printed in bar code form in accordance with the parameters identified. For available characters and data string formats, please refer to the specific type of bar code.
Page 33
Attempts are the number of tickets the TTPM2 should attempt to encode. If <attempts> is set to 1, the TTPM2 will make only one attempt (plus the automatic second attempt on the same ticket) to encode the ticket. If this fails, <text> will be superimposed on the ticket that is now being printed.
Figure 22. This figure shows which characters can be coded with the different coding formats Note! — With HiCo encoding, only one track at a time can be used for encoding or read- ing. TTPM2 Installation and Programming Manual September, 99...
Page 35
3. When the message has been received, the TTPM2 calculates the checksum and compares it to the checksum appended to the message. If they are identical, an ACK is returned, otherwise a NAK followed by the checksum calculated by the TTPM2 will be returned.
TTPM2 prior to a power failure or power OFF. NOTE! Please remember that the TTPM2 has to receive either the !C or !P command, or both, after power up. All other commands and data will be ignored.
The command language will be explained in detail with the following examples. NOTE! – These examples are for single-track TTPM2 printers. If you have a dual track printer you must insert a !L1 command on a separate line before the !P command.
Page 38
(read-after-write) NOTE! – For ISO encoding, start, stop and check digits, as well as synchronization ze- roes are automatically added by the TTPM2. Encodes and prints the document The "!F" definitions are now stored in the printer. If another document with...
Page 40
This Demonstration Show will, of course, be held at many different locations and at differ- ent dates and times. It is therefore necessary to define variable information print fields for seat number, place, date, and time. TTPM2 Installation and Programming Manual September, 99...
Page 41
We have now defined six fixed text strings and four variable fields to be sent to the printer. The variables will be assigned in the order they were defined. The following ticket will then be produced. Figure 26. Printout example September, 99 TTPM2 Installation and Programming Manual...
Page 42
= . < + = # / + # . . # . . The data results in the following ticket being printed: Figure 27. Printout example TTPM2 Installation and Programming Manual September, 99...
SINGLE-TICKET HANDLING Overview The TTPM2 comes with one of two different single-ticket-handling systems: upper rear entry load (standard), and front load (optional). In both cases, the upper document track of the printer is used for the single-tickets. This means that single-ticket processing restricts the use of fanfold ticket stock to the lower track.
Inserting a single ticket In the standard TTPM2, inserting a single-ticket into the upper rear document entry, will trigger the single ticket loading process. In front load printers, the application program must issue the command !L3 to trigger the single ticket loading.
Ejects the ticket through the front entry. Ejects the ticket to the waste bin of the TTPM2 Front Load 2. The number of encoding retries, as well as the text to be printed on cancelled tickets, can be set with the !F M command. See page 32.
ERROR HANDLING The green indicator lights up at power ON. Should it fail to light up, switch the TTPM2 OFF and back ON again. If the green indicator is still OFF, check your power connection both in the TTPM2 and in the wall outlet. Also check your main power supply fuse.
NOTE! – For TTPM2 to send ACK, or NAK + error codes, the DIP-switch 6 on the TTPM2 control board must be set to ON. Position OFF places the unit in a silent mode preventing these codes from being transmitted to the host computer.
XON/XOFF or RTS/CTS (DIP-switch 5). 11.3 Communications port The following table shows how to connect the TTPM2 to the serial port of a PC compati- ble computer. TTPM2 (9 pole D-sub) PC (25 pole D-sub) PC (9 pole D-sub)
Communications cable Use a 9-pin serial cable to connect the TTPM2 printer to the. Such a cable is available from Swecoin. Part number 90-9825-000. The cable is 1.5 m long with 9-pole D-sub connectors at both ends (PC and TTPM2).
DOCUMENT STOCK The TTPM2 printers are produced and calibrated for, and tested with the customers ticket stock. To ensure accurate ticket issuing, we do require 100 tickets of the customer ticket stock for each ordered printer. 12.1 Ticket base material...
CAUTION! – In case of slurry, care must be taken to avoid excess slurry material and abrasive particles that may cause unduly high degree of wear on the magnetic recording and read heads in the TTPM2 Coercivity Low: 300 Oersted...
Page 53
L= 85.6 (standard as per ISO 7810) L= 110.0 (customer special) Track 3 Magnetic stripe Track 2 Track 1 Track locations according to ISO 7811/4 and 7811/5 SW95044B Figure 30. Gapped tickets (for printers with cutter) September, 99 TTPM2 Installation and Programming Manual...
Page 54
Some applications are using tickets with cut corners without radius. These tickets are not within the specifications for use in the TTPM2 printer series. The effect will be that the ticket detection point moves about 1.3 mm, not only causing incorrect cut but also erro- neous placement of the magnetic code.
Page 55
However, note that HEX en- coded tickets are normally not readable in standard ISO-card readers. Figure 33. Ticket position is erroneously detected with 45° corners September, 99 TTPM2 Installation and Programming Manual...
CD version with the dip-switches on the control board. Notice that further FW revisions may have been introduced since the issue of this edition of the TTPM2 Installation and Programming Manual. An up-to-date list of FW revisions can be read at the Swecoin web site at http://www.swecoin.se.
Page 57
No decoding is made by the TTPM. This command is useful if a card has been encoded with an equipment that does not follow the ISO standard, or by the TTPM2 using the command !N. •...
Page 58
Paper is automatically positioned at power on. 2.32 The timeout for the !L3 command is increased. The printer will automatically try to eject a ticket stuck in the machine during the !L3 command. TTPM2 Installation and Programming Manual September, 99...
Page 59
FW revision Change 2.33 The data string sent to the TTPM2 to encode track 2 (!M) can now have a check- sum digit added to it. This checksum will then be compared by the TTPM2 before encoding which guarantees that the magnetic code data is correctly received. See page 35.
Page 60
Thus, be very careful when you specify the print areas. Fortunately, you will discover this problem already during the design and testing of the application software. To recover from the error situation, clean the TTPM2 from any remaining paper particles and perform a "warm start" by holding all three operator control push buttons pressed while you power ON the unit.
Page 61
57600 baud is selected. Transmission speed 19200 baud can now be selected. Restrictions The transmission rate 57600-baud can still not be used. It is not possible to read track No. 2 on 110-mm long tickets inserted through the optional front load mechanism. September, 99 TTPM2 Installation and Programming Manual...
Page 62
Does not accept ticket data without track selection command. !L1, !L2, !L17, or !L18 must always be sent prior to every !P command. Signals NAK 1 to indicate error and discards the received data. Restrictions Same as 906-290 TTPM2 Installation and Programming Manual September, 99...
Need help?
Do you have a question about the TTPM2 and is the answer not in the manual?
Questions and answers