background image

46

TTPM2 Installation and Programming Manual

September, 99

3.  Encode and print the ticket with the !P command.

The ticket will be ejected to the operator when correctly encoded and printed. In case of
unsuccessful encoding, the single ticket is cancelled

1

 and a new single-ticket form has to

be inserted into the applicable document entry. A blinking yellow indicator prompts this.

8.5 

Ejecting the ticket

If you want to eject the ticket without modifying the encoding or adding new print after
reading the magnetic stripe, use an applicable eject command:

!E 

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 TTPM2 Front Load 2.

                                                     

1

 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. Cancelled tickets can be redirected to the optional front load waste bin by inserting an @ character in the string to be

encoded on the stripe, see page 35.

Содержание TTPM2

Страница 1: ...Publ No 00759 000 Ed E TTPM2 Ticket Printer Encoder Installation and Programming Manual SW95045 ...

Страница 2: ... 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 ...

Страница 3: ...r 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 ticke...

Страница 4: ... 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 R...

Страница 5: ... 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 ...

Страница 6: ...sm 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 ...

Страница 7: ...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...

Страница 8: ...ounting 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 me...

Страница 9: ...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 5 V 2 Ground for 5...

Страница 10: ...nted 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 ...

Страница 11: ...00 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 o...

Страница 12: ...spenser 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 a...

Страница 13: ...ter 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...

Страница 14: ...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 docu...

Страница 15: ...2 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...

Страница 16: ...ndicate 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 vi...

Страница 17: ...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 ope...

Страница 18: ...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 c...

Страница 19: ...rints 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 ba...

Страница 20: ... 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 ...

Страница 21: ...re given with syntax explanations as well as commented examples 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 4 2 10 Initialization after power OFF To initialize the printer after power ON you just send a prin...

Страница 22: ...or units with dual consecutive tracks 1 L2 Selects upper rear document entry and waits if paper is out for units with dual consecutive tracks 1 L3 Loads document through front entry L4 Ejects document through front entry L5 Transports document to waste bin only for printers with front load 2 L17 Selects lower rear document entry and signals paper out for units with dual consecutive tracks 1 L18 Se...

Страница 23: ...n ISO format from track 3 I Defines data to be encoded in ISO format on track 3 J Defines data to be encoded in ISO format on track 1 K Defines data to be encoded in Hex format on track 1 or 3 as applicable M Defines data to be encoded in ISO format on track 2 or center track N Defines data to be encoded in hexadecimal format on track 2 or center track N Same as N but reverses the bit order O Read...

Страница 24: ...es for one ticket The number given is the number of additional tries i e P 1 means one normal attempt plus one retry Default is 1 which is the value used if no digit is present Q Write transaction string Q writes a string with up tp 15 ASCII characters to a buffer memory in the printer Example After the ticket has been correctly encoded printed the string is copied to a buffer in the battery backe...

Страница 25: ...eived 5 2 Document entry related commands E Eject through rear document entry This command ejects through the rear document entry any document positioned in the active position for encoding or after decoding See page 44 for definition of active standby ticket position L1 Select lower rear document entry dual entry printers only Selects lower rear document entry and feed the leading document in the...

Страница 26: ... codes to the host computer Error code Error NAK B No document is inserted within 60 seconds Command L3 is abandoned NAK C A document is inserted and immediately retracted NAK D A document is inserted but the TTPM2 is blocked paper jam NAK E Paper jam in the input feeder during an L3 command A front loaded document resting in active position can be processed using one of the fol lowing alternative...

Страница 27: ... and signal paper out only dual entry printers Same function as L2 but when ticket loading fails the printer sends an error code NAK 1 It is then up to the system to determine if paper should be loaded from the lower document entry instead 5 3 Print related commands F is the general command for formatting the ticket print F type data The parameters are used as follows F Indicates that this is the ...

Страница 28: ...or font 1 Must be set to 1 for all other fonts height width Specifies the height and width expansion of characters to be printed The height range is 1 16 times the default value The width range is 1 16 for fonts 1 and 4 and 1 3 for fonts 2 and 3 See font samples on page 19 font Selects the font text appearance Fonts 1 2 3 and 4 apply Font 2 and 3 can only be North oriented Fonts 1 and 4 can be set...

Страница 29: ... be rounded off to be di visible by 8 as a graphic block has to start at the first bit in a byte ypos Vertical starting position in pixels for the upper left corner of the graphics block 1 Not used for graphics printing Must be set to 1 height Height in pixel lines of the graphic block The length of the ticket de termines maximum height For an 86 mm ticket the maximum height is approximately 500 p...

Страница 30: ...2 8 4 2 1 1 6 1 byte F G N 140 140 1 1 7 1 10H 38H 7CH FEH 7CH 38H 10H 10 H 10 H 38 H 38 H 7C H 7C H FE H 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 Notepad A utility program called Swecoin TTPM editor can help you conv...

Страница 31: ...eter information C Indicates bar code mode orientation Indicates print orientation Can be north N east E south S or west W xpos Starting position pixel for the upper left hand corner of the first code bar in the string Automatically rounded off to be divisible by 8 first bit in a byte ypos Starting position pixel for the upper left hand corner of the first code bar narrow bar Width of narrow code ...

Страница 32: ...nt on cancelled ticket The TTPM2 can cancel a ticket after an unsuccessful magnetic encoding The feature relates to the read after write function 1 When the message has been encoded the TTPM2 reads and compares the magnetically encoded message with the original mes sage string If the comparison is negative a second attempt to encode read the same ticket is done If also this attempt is negative the...

Страница 33: ...e 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 Setting attempts 2 results is one striped ticket first unsuccessful attempt and the superimposed text for the second unsuccess...

Страница 34: ...nters X X Track 2 or center track X X Track 3 only on track 2 3 printers X X BPI 210 210 210 75 75 Coding ISO 7811 X X X HEX X X Message length ASCII digits 30H to 3FH 123 37 ASCII alphanumeric 20H to 5FH 79 HEX 0 to F 123 50 No of sync zeros before code start Auto Auto 15 Auto 6 Automatic start stop and check digits X X X Read command D3 D1 Not available D O Figure 22 This figure shows which char...

Страница 35: ...puter The command then returns the ticket to active position D1 Reads and decodes ISO format data from track 1 of a ticket in active position and transmits the data to the host computer The command then returns the ticket to ac tive position D3 Reads decodes and transmits ISO track 3 position data O Reads and transmits bit by bit data from ISO track position 2 or center track of a ticket in the ac...

Страница 36: ...d NAK E is sent 5 4 5 Magnetic encoding retries See Canceling a ticket on page 32 6 TTPM2 START UP The TTPM2 is equipped with battery backed up memory All print field definitions are re tained even when the printer power is switched OFF To enable the TTPM2 to synchronize itself to the incoming data after power up either after a usual power ON or after a power failure the printer has to receive eit...

Страница 37: ... 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 Assume that you want to print a document with the following layout and the number 123456789 to be encoded on ISO track 2 or centre track Figure 23 Printout example To achieve this the following data have to be sent to the printer 43 563 ...

Страница 38: ...cally added by the TTPM2 Encodes and prints the document The F definitions are now stored in the printer If another document with the same text and layout shall be printed but with another magnetic data string then only the following commands need be sent to the printer This sequence will encode a ticket with a different number on the magnetic stripe but will produce a print picture with the same ...

Страница 39: ...nt The information shall be placed at the same position on all documents Consider the following example Figure 24 Printout example This has been slightly changed from the previous example The seat number 15 changes for every document printed and encoded while the rest of the information re mains the same To achieve this the following command sequence has to be sent to the TTPM2 1 2 3 4 3 7 ...

Страница 40: ...able text field defined above 0000015 is the data string to be encoded on the magnetic stripe M in structs the printer to use track 2 and ISO code the message with a density of 75 bits inch To print and encode a document with the seat number 16 all we have to do is to send the following to the printer This will then produce the following printout Figure 25 Printout example This Demonstration Show ...

Страница 41: ...ï ï ï ï 42 8 þ þ þ þ ü ü ü ü ý ý ý ý Definitions of fields ï ï ï ï or variable information þ þ þ þ ü ü ü ü 92 ï ï ï ï 3 ý ý ý ý Variable information ï ï ï ï þ þ þ þ 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 ...

Страница 42: ...anual September 99 If you need to print a ticket for the show in Gothenburg at another date and time the fol lowing data will have to be sent to the printer 3 The data results in the following ticket being printed Figure 27 Printout example ...

Страница 43: ...een printing text oriented in the North direction The printer is capable of printing in four directions NOTE Fonts 2 and 3 can only be printed in North orientation The following example prints text oriented in all four directions 43 6 03 6 6 14 4 3 Figure 28 Printout example ...

Страница 44: ... use of the single ticket handling is to process a ticket several times For example if you issue a return train ticket Stockholm to Oslo and back to Stockholm you can add print and re encode the magnetic stripe when the first part of the journey is made 1 Use the applicable decode command to read the previously encoded ticket informa tion 2 The data is transmitted to the host computer and the tick...

Страница 45: ...nds apply for the single ticket in active position D Read and decode track 2 or center track With front load option track 2 or centre track is read and the data stored in memory when the ticket is entered through the front entry D only reads the data from memory without moving the ticket D1 Read and decode track 1 D3 Read and decode track 3 O Read data from track 2 or center track and transmit dat...

Страница 46: ...If you want to eject the ticket without modifying the encoding or adding new print after reading the magnetic stripe use an applicable eject command E 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 TTPM2 Front Load 2 1 The number of encoding retries as well as the text to be printed on cancelled tick...

Страница 47: ...r write The TTPM2 makes a second attempt to en code and read the ticket During that attempt the red indicator will go out For each unsuccessful attempt the red indicator lights up again If a single ticket operation is in progress the red indicator stays ON until a new ticket is inserted and successfully processed Also refer to the previously described procedures regarding the yellow and green indi...

Страница 48: ... wrong with the 24V supply 7 Paper jam when executing the P command 8 Magnetic encoding on track 2 or center track failed 9 Magnetic encoding on track 1 or 3 failed A Not possible to read magnetic information with D command B No document inserted within time limit following an L3 command front load C Document inserted front load but immediately retracted D Document inserted through front load is b...

Страница 49: ...rd ý DCT ý CD200 ý Test 8þ OFF þ OFF þ ON þ ON þ Standard Consecutive lower track single ticket upper track DCT Dual Consecutive Track formerly called SGA CD200 Card dispenser mode Test Swecoin production test setting not to be used IMPORTANT DIP switches 7 and 8 are factory set and MUST NOT be changed The switch settings must fit the hardware of the different models Recommendation Use RTS CTS har...

Страница 50: ...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 Adapters with 25 pole D sub connector at the PC end of the cable are commercially available ...

Страница 51: ...eet or exceed the ANSI 3 11 specification Smoothness Max 75 Sheffield units Properties Same as fax grade 3 Top coating The thermo sensitive surface of the document stock can be provided with a protective UV or moisture proofing top coating Preprint Tickets can be preprinted on one or both sides Ink for thermo sensitive side Laser printer approved ink with out whiteners Ink for magnetic stripe side...

Страница 52: ...andard coercivities available on request If a ticket is perforated for stub separation for example the perforation shall not infringe on the magnetic track to prevent interference with magnetically encoded data 12 4 Ticket dimensions and perforation Stock format Gapped or non gapped consecutive form tickets Fanfold or roll Sheet cut single tickets for manual or dispenser loading Document standard ...

Страница 53: ...max SW95044B Stub perforation if applicable L 85 6 standard as per ISO 7810 L 110 0 customer special 6 mm Perforation not allowed within this 6 mm wide area Magnetic code must not cross optional perforation Track 1 Track 2 Track 3 Magnetic stripe 8 46 8 97 8 46 8 97 Max 2 54 Max 5 66 Min 11 76 12 1 12 52 15 32 15 82 Min 19 05 Track locations according to ISO 7811 4 and 7811 5 Figure 30 Gapped tick...

Страница 54: ...0 L 110 0 customer special 6 mm Perforation not allowed within this 6 mm wide area 7 0 mm 15 82 min 1 0 Magnetic code must not cross optional perforation SW95044D Figure 32 Both gapped and non gapped tickets with center track can be used in printers ordered with center track option 12 4 1 Tickets with 45 cut corners Some applications are using tickets with cut corners without radius These tickets ...

Страница 55: ...essage instead of ISO code Thus you can compensate for the lost synchronization zeroes by adding additional synchronization zeroes in the beginning of the message 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 ...

Страница 56: ...Dual track printer PROMs are marked FW907 234 where 907 indicates dual track and 234 indicates revision 2 34 From firmware version 2 70 all firmware is 906 xxx and you select single track dual track or 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...

Страница 57: ... the cutter This prevents a ticket from being accidentally cut but en ables the cutter to be reset in the event of a failure or after maintenance 2 19 The new command O has been added This command reads track 2 of the magnetic stripe and reports the result by sending up to 240 characters 0 or 1 representing the bits encoded on the track No decoding is made by the TTPM This command is useful if a c...

Страница 58: ... I that correctly en codes track 3 according to the ISO 7811 format Reading can be done with command D 3 DCT SGA version Handling has been modified slightly to prevent paper jam It is also possible to use the printer with only one of the tracks loaded with pa per The self test however uses only the lower input 2 30 This version is only released for the standard version STD and corrects a bug which...

Страница 59: ...outines have been made A paper jam during encoding no longer causes the printer to loose data 2 34 Some types of long tickets caused paper jam if the magnetic encoding failed This is corrected by not allowing the long ticket to enter under the print head before checking the magnetic code 2 35 Filter included making it possible to use tickets with holes 2 36 L3 also supports tickets with holes L3 s...

Страница 60: ... memory when loading the ticket Previously a separate read move ment was required when D command read data to host computer Support for Dallas 80C320 microprocessor on the control board Specifying text graphics or bar code printing outside the valid co ordinates makes the processor enter a loop with strange behaviour of lamps paper feed and cutting motors Thus be very careful when you specify the ...

Страница 61: ... of course not compatible with the 80C320 and will in fact stop dead if any of the 80C320 special codes are used This is what happened to us The older processors labelled 80C32 works fine since they use the origi nal chip But the new upgraded ones also marked 80C32 and coming from the same manufacturer do not The problem is overcome by carefully encapsulating any 80C320 code that is executed only ...

Страница 62: ...d Islandic characters added Restrictions Same as 906 290 3 20 Added commands Q U V and N New magnetic encoding attributes added Only dual track version 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 ...

Страница 63: ...es 35 Front entry 15 Rear entry 14 Stock 49 Document entry commands 22 24 E EAN13 29 Eject document Into waste bin 25 Through upper rear document entry 24 Via front document entry 25 Encoding attributes 33 Error codes 46 Error handling 45 F Fanfold ticket paper input tray 11 Firmware history 54 Font 26 Format Bar code 29 Graphics printing 27 Print field type size position orientation 25 Print on c...

Страница 64: ...Cancel 33 Reading and decoding 33 Reset 13 RTS CTS 47 S Select document entry Lower rear 24 Lower rear and signal paper out 25 Upper rear 24 Upper rear and signal paper out 25 Serial interface connector 7 Sheet cut tickets 15 Single ticket handling 42 Slurry 50 Start up 34 Status request 23 Immediate 23 Stock format 50 Stop bit 47 Summary of commands 22 Syncronization zeros 32 Syntax 18 System com...

Отзывы: