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.
How the parameters are described ...............56 Summary of parameter settings ..............57 Parameter Reference ..................59 7 Error codes and Status reporting ................65 Status ......................65 Security additions ..................65 Errors......................66 Extended acknowledgement .................67 8 Maintenance ........................68 Fault finding....................68 Cleaning the print head .................69 0705 TTPM3 Printer/Encoder–Technical Manual...
To register as a subscriber, either visit our web site http://www.swecoin.se to fill in your subscription request, or send 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):...
1.1 Document printing TTPM3 uses the direct thermal printing technique and can print the entire surface of the ticket with text, bar codes, or graphics, or any combination hereof. Text block position and orientation is software programmable as is the character size.
Installation INSTALLATION The TTPM3 comes as desktop printer, or as an OEM printer mechanism for kiosk applications. Control panel Power switch Input 2 (upper) Input 1 (lower) Ticket output Power inlet (24V) Interface connector Figure 1. Desktop printer Printhead-open lever...
3. Connect a serial cable between the COM port of the host computer and the serial input of the TTPM3 printer. For pin assignment, see page 70. 4. Turn on the printer. The blue and green indicators should light up.
Page 8
2.1.2 Testing If you want to test the printer through the network you can use the SwcSockTerm.exe utility program that allows you to send command scripts and binary files to the printer. TTPM3 Printer/Encoder–Technical Manual 0705...
Page 9
3. Hook the tray onto the screws and tighten them 4. Press tray downwards so it is securely fastened Hook tray onto Screws and tighten Fit output nozzle SW97105 R3 Figure 3. Installing an output tray or nozzle 0705 TTPM3 Printer/Encoder–Technical Manual...
Installation 2.2 Installing an OEM printer mechanism The TTPM3 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 11
Installation With Swecoin power supplies, just connect the cable from the power supply to J5. If you use another type of power supply unit, 24 V cables are available from Swecoin AB, order No. 01370-000. Should you make cables of your own, connect the voltages according to the following illustration.
OFF and ON to exit self test mode. Keyboard Figure 6. Indicators and pushbuttons 3.2 Paper loading The yellow indicator indicates paper out. Press the center button to eject remaining tickets if you want to replace paper stock before paper is out. TTPM3 Printer/Encoder–Technical Manual 0705...
Page 13
The ticket stock should be oriented with the magnetic stripe down to the left as seen from the front of the TTPM3. It is good practice to place the pile of fanfold tickets at a distance of at least one ticket length behind, and straight out from the printer.
Power OFF and back ON again, the TTPM2 is operational but any ticket information previously sent to the unit is lost. You can also power OFF the printer and turn the feed rolls manually to remove the blocking ticket. TTPM3 Printer/Encoder–Technical Manual 0705...
POWER FAILURE CLEANUP If “Clear ticket path at startup” is enabled (parameter 8), TTPM3 tries to find out if a ticket is in the ticket path at any other location than at the top of form position at power ON. If it finds a ticket, it destroys the magnetic encoding, prints VOID on it and outputs the ticket.
TTPM3 prior to a power failure or power OFF. NOTE! – Please remember that the TTPM3 has to receive either the !C or !P command, after power up. All other commands and data will be ignored until !C or !P has been received.
Page 17
3.6.2 Inserting a single ticket In the standard TTPM3, 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.
Page 18
Read data from track 2 (or center track) and transmit data to host. No decoding takes place in the TTPM3. A one is transmitted as ASCII 1, and a zero as ASCII 0. After reading the stripe, the ticket is automatically returned to active position waiting for either an eject-command for a command sequence for printing or encoding (or both) followed by !P for processing of that command string.
Page 19
Ejects the ticket through the upper rear document entry. !L4 Ejects the ticket through the front entry. !L5 Ejects the ticket to the waste bin of the TTPM3 Front Load 3. 0705 TTPM3 Printer/Encoder–Technical Manual...
To initialize the printer after power ON you just send a clear command (!C) and the printer is ready for use. NOTE! – If no clear command has been received, the first !P after power ON initializes the printer. No ticket is produced from the data sent before this !P. TTPM3 Printer/Encoder–Technical Manual 0705...
“Clear all” command is received, so you only have to download graphics once. Remember, when creating graphics for the TTPM3 printer, that the pixels are not square, but has a height/width ratio of 1.32:1 in normal mode and 0.88:1 in high resolution mode.
If no encoding command and data are sent to the TTPM3, the ACK is still sent (read- after-write verifies that no data is encoded). Some other commands are also acknowledged; see “Error Codes and Status reporting”...
Page 23
4.3.9 Ticket memory The TTPM3 printer has 128k of RAM. This memory is used as input buffer and storage for the ticket image before being printed out. The memory is cleared at power off. In normal resolution mode, the ticket image is 384x512 pixels for an 86 mm ticket, and 384x656 pixels for a 110mm ticket.
, means 1 and <001><019> 19 decimal. When the numbers indicate a hex value, h is appended to the number <01h><13h> EXAMPLE: are four different ways of expressing the character A. <065> <65d> <41h> TTPM3 Printer/Encoder–Technical Manual 0705...
Selects lower rear document entry and signals if paper is out !L 17 Selects upper rear document entry and signals if paper is out !L 18 Sets timeout for retract function !L1, !L2, !L17 or !L18 must be selected when configured for dual document entries 0705 TTPM3 Printer/Encoder–Technical Manual...
Page 26
!H C Erase all Fonts !H C E Load Logotype !H L Erase all Logotypes !H L E See note about Ticket memory on page 23. Grayed commands are obsolete, or not yet implemented (firmware version 5.12) TTPM3 Printer/Encoder–Technical Manual 0705...
This command takes no parameter. All definitions are cleared. Stored layout is erased. Subsequent !C ’s are ignored. The !C command is also used to initialize TTPM3 after a power ON. Auto-clear can be used to clear the memory between tickets instead of using !C . Auto- clear executes faster than !C .
33 83 Decimal The TTPM3 responds by sending two bytes to the host computer. Byte 1 indicates the status of the various TTPM3 sensors according to the following table. Byte 2 reports the temperature of the thermal print head and is only used internally in the TTPM3.
Status request, DIP-switch settings 21 53 20 44 33 83 32 68 Decimal The TTPM3 responds with one byte containing 1 bit for each switch. 1 = on, 0 = off. Bit 7 Dip switch No: 8 !S R Power has been off?
Status request, immediate Decimal The TTPM3 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 immediately after receipt, whereas the !S command is effected in sequence when received.
33 70 32 65 Decimal TTPM3 has two feed motors, one for encoding and one for printing. This command sets the start-frequency and the top speed of each motor. NOTE1! – This command should not be used! Suitable speed is selected by Swecoin and set as default parameters in the firmware.
This command lifts the print head for a specified time, to permit document insertion through the TTPM3 front document entry/exit. At 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 entry, see page 16 for entry definition.
Issuing a second read command will move the tickets over the read head and back to make a new read from the ticket. On error, the TTPM3 sends the following error codes to the host computer: Error code...
Retracts the ticket and sends NAK F if it has not been taken within 20 seconds 4.6.3 Print related commands INTRODUCTION !F is the general command for formatting the ticket print. !F<type> <data> The parameters are used as follows: Indicates that this is the start of a print field definition TTPM3 Printer/Encoder–Technical Manual 0705...
<"text"> Text to be printed enclosed in quotes (" "). Example of a command for text: !F T N 150 150 1 1 1 1 "Text"↵ 0705 TTPM3 Printer/Encoder–Technical Manual...
33 70 32 71 32 n1...n8 Decimal TTPM3 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 TTPM3 printer, that the pixels are not square but have a height/width ratio of 1.32:1 or 0.88:1 depending on resolution setting.
Page 37
10H 38H 7CH FEH 7CH 38H 10H SW97123 Figure 14. Converting graphics to TTPM3 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 Notepad: !F G N 140 140 1 7 1 1 •8|þ|8•...
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 TTPM3 printer automatically reduces the print speed by approx. 50% when printing tickets with east and west oriented bar codes.
Page 39
A space (blank) has to be inserted between the type parameter and the data string. bar code data This is a block of data to be converted by the TTPM3 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.
Attempts are the number of tickets the TTPM3 should attempt to encode. If <attempts> is set to 1, the TTPM3 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.
Page 41
Programming Figure 16. Indication of 1st and 2nd unsuccessful read-after-write 0705 TTPM3 Printer/Encoder–Technical Manual...
These are added automatically by the printer, so do not add those to the string. Example: !B 1 000000000000000FF1234567890ABCDEF99<CR><LF> In the above example we have 15 leading zeroes, FF as a start sentinel and 99 as stop sentinel. TTPM3 Printer/Encoder–Technical Manual 0705...
Reads and transmits bit-by-bit data, from ISO track position 1, to the host !O 1 computer. No decoding takes place in the TTPM3. A one is transmitted as ASCII 1, and a zero as ASCII 0. !O 2 Same as !O1 but reads and decodes ISO track 2 (or center track)
Page 44
3. When the message has been received, the TTPM3 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 TTPM3 will be returned.
Page 45
!M 1234567890123456789012345678901234567 |↵ after encoding this track !P↵ !C↵ !J ON TRACK 1 YOU CAN ENCODE UP TO 79 ASCII ALPHANUMERICAL CHARACTERS AND DIGITS↵ F T N 50 140 1 1 1 3 "HiCo Test"↵ !P↵ 0705 TTPM3 Printer/Encoder–Technical Manual...
Page 46
011101 > 011110 Character not defined in Standards 011111 Stop Character (End Sentinel) 100000 Character not defined in Standards 100001 100010 100011 100100 100101 100110 100111 101000 101001 101010 101011 101100 101101 101110 101111 110000 110001 TTPM3 Printer/Encoder–Technical Manual 0705...
Page 47
Stop Character (End Sentinel) Mag Code = the four LSB of (ASCII value - 48), parity bit is added by printer. Sending !M 12345 to the printer results in encoding of 00000;12345?000000 This results in: 0000000000000000000000001011000100100011010001011111 on the stripe. 0705 TTPM3 Printer/Encoder–Technical Manual...
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 cutter to indicate that storing is complete. TTPM3 Printer/Encoder–Technical Manual 0705...
21 48 20 53 33 72 32 83 decimal A utility program for loading firmware is available on the Swecoin web site (The TTP Editor). If you want to make remote upgrading of firmware possible though your ticketing system you should implement the command.
33 72 32 67 decimal Loads and stores an SWF-font into the flash prom of the TTPM3. A character set loaded gets the next free character set number. So character sets must be loaded in the order that you want them.
!F L LOADING Windows software that converts black and white BMP bitmap files to logotypes and load them into the printer is available on the Swecoin web site. If you need to load logotypes in a non-Windows environment, use the command.
The command language will be explained in detail with the following examples. NOTE! – These examples work with a TTPM3 set up for single-entry. If your printer is set up for dual entries you must insert an entry selection command, !L1 or !L2, on a separate line before the !P command.
Page 53
(read-after-write) NOTE! – For ISO encoding, start, stop and check digits, as well as synchronization zeroes are automatically added by the TTPM3. Encodes and prints the document The "!F" definitions are now stored in the printer. If another document with...
Page 54
!F T E 190 250 1 1 1 1 ”In" E = East !F T S 170 350 1 1 1 1 "Four" S = South !F T W 120 330 1 1 1 1 "Directions" W = West Figure 18. Printout example TTPM3 Printer/Encoder–Technical Manual 0705...
Ticket Examples Text attributes TTPM3 does not handle word processor-like text attributes. You can reverse text, and you can make bold text according to the procedure described below. Bold and reversed cannot be combined. Printing Bold text 5.1.1 Bold text is created by repeating the text you want bold, but with new coordinates: !F T E 370 087 10 02 01 1 "This text is normal"...
Swecoin TTP editor: !H P 1 11<CR><LF> Where means the carriage return character 12 decimal (hex 0C). Numbers <CR> between less-than and greater-than characters, for example , means 1 and <001><015> 15 decimal (hex 1 and 13). TTPM3 Printer/Encoder–Technical Manual 0705...
Steps after which the print motor is started for long tickets Feed to cut long tickets NOTE! – When the printer is set up the way you like it to be, you send: , and all settings will be stored. !H S 0705 TTPM3 Printer/Encoder–Technical Manual...
Page 58
Now the printer will return to default settings above, or if the printer is customized, the settings agreed on with that customer. REMOTE The printer returns to factory default settings if you send: !H P 0 0<CR><LF> !H S<CR><LF> Power OFF/ON TTPM3 Printer/Encoder–Technical Manual 0705...
DO NOT USE. If you send any type of binary data like graphics data, status requests etc. Xon / Xoff only work 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. 0705 TTPM3 Printer/Encoder–Technical Manual...
Page 60
Clear ticket path at startup 0 Min 1 Max When enabled the printer looks for tickets in the printer at power on and voids any ticket found. Enables auto clear at startup !H P 8 1 TTPM3 Printer/Encoder–Technical Manual 0705...
Page 61
Sets 4000 steps/second !H P 11 400 NOTE1! — Some settings result in printer chassis resonance causing increased noise and deteriorated print quality NOTE2! — When long tickets are used the encoding speed must be reduced to 350 0705 TTPM3 Printer/Encoder–Technical Manual...
Page 62
Sets how many times a ticket should be encoded/verified before being erased and voided when the verification fails. Makes five encoding attempts per ticket before giving up and erasing and !H P 15 5 voiding the ticket. NOTE! — See also TTPM3 Printer/Encoder–Technical Manual 0705...
Page 63
0 Min 10 Max Attempts are the number of tickets the TTPM3 should attempt to encode when verification fails. If set to 1, one ticket is encoded and if verification fails the stripe is erased, VOID printer on the ticket and an error code sent to the system.
Page 64
Long ticket length 0 Min 255 Max This parameter adjusts the transition between short and long ticket. CAUTION! — Do not change unless you are told by Swecoin Technical Support to do so. 10 Default Top Margin, short ticket 0 Min...
Error codes and Status reporting ERROR CODES AND STATUS REPORTING The host computer uses the TTPM3 status reporting to determine if the print cycle has been completed or not. If not, error codes help determine what went wrong. 7.1 Status When executing the print command !P , the printer confirms that the magnetic code is has been written and verified by sending an ”...
Critical error. This is issued when the printer must be turned off, error condition cleared, then turned off again. NOTE! – For TTPM3 to send ACK, or NAK + error codes, the DIP-switch 6 on the TTPM3 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.
Adjust print contrast, see page 60. • Strange characters or graphics Might be caused by erroneous data sent from the host. printed, or any kind of strange Check validity of transferred data. printer behavior. Table 2. Faultfinding TTPM3 Printer/Encoder–Technical Manual 0705...
NOTE! — The connector that must be short circuited with a jumper during program loading is located close to the power connector. If you have a desktop version of the TTPM3, a hole in the bottom of the cover gives access for the jumper. 0705...
Use a 9-pin serial cable to connect the TTPM3 printer to the host computer. Such a cable is available from Swecoin. Part number 10825-000. The cable is 1.5 m long with 9-pole D-sub connectors at both ends (PC and TTPM3).
Specifications 9.2 Document stock The TTPM3 printers are produced and calibrated for, and tested with the customer’s ticket stock. To ensure accurate ticket issuing, we do require 100 tickets of the customer ticket stock for each ordered printer. 9.2.1 Ticket base material Type of paper Ricoh 150UT 240µ, Mitsubishi TF 2475, and Tyco Sharkskin...
Page 72
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 TTPM3 Coercivity Adjustable between 300 and 3500 Oersted...
Page 73
Sheet-cut (single) tickets for manual or dispenser loading. Perforation cut direction Perforation and cutting of ticket material must be done from the thermally sensitive side of the paper. TTPM3 accepted sizes: - Ticket width 54 mm ±0.2 mm - Ticket length 85.6 ±...
Page 74
Equal distance between tabs according to Figure 21. L= 85.6 (standard as per ISO 7810) L= 110 – 150(customer special) R 3.18mm Tabs L ± 0.25 Figure 21. Non gapped tickets (for printers with burst separator) TTPM3 Printer/Encoder–Technical Manual 0705...
Page 75
Some applications are using tickets with cut corners without radius. These tickets are not within the specifications for use in the TTPM3 printer series. The effect will be that the ticket detection point moves about 1.3 mm, not only causing incorrect cut but also erroneous placement of the magnetic code.
Fetch the firmware from the Swecoin web site http://www.swecoin.se. Instructions how to load firmware using the Swecoin TTP Editor are bundled with the firmware.
Page 77
Specifications 9.3.2 Firmware history Functions and features are being added from time to time affecting the firmware in the TTPM3. The following table lists the changes of general interest. FW revision Change 4.60 First firmware version released to a customer 0705 TTPM3 Printer/Encoder–Technical Manual...
Need help?
Do you have a question about the TTPM3 and is the answer not in the manual?
Questions and answers