Specifications
49
Command Reference
Print Related Commands
03/05/2009 TTPM2™ Installation and Programming Manual P1003645-001
Canceling a Ticket
The TTPM2 can cancel a ticket after an unsuccessful magnetic encoding. The feature relates to
the read-after-write function
6
. When the <message> has been encoded, the TTPM2 reads and
compares the magnetically encoded message with the original <message> string. If the
comparison is negative, a second attempt to encode/read the same ticket is done. If also this
attempt is negative, the ticket is cancelled. The magnetic stripe is erased and stripes are printed
across the ticket (see figure below).
By default the TTPM2 attempts to encode three tickets. The desired number of attempts, as
well as the text used to indicate the cancellation, is programmable through a subcommand to
the !F command as follows:
!F M <orientation> <xpos> <ypos> <attempts> <height> <width> <font> <”text”>
All parameters must be specified.
The syntax is identical to !F T with the exception of the parameters <”text”> and <attempts>.
Text must be a text string. Variables cannot be used with !F M.
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.
Setting <attempts> = 2 results is one striped ticket (first unsuccessful attempt) and the
superimposed text for the second unsuccessfully attempted ticket and so on.
It is also possible to set how many times the printer should try to verify each ticket by adding a
single digit after the !P command. This is described in the !P command description.
All parameters in this command are stored in battery backed-up memory and remain in effect
until overwritten.
The following command string produces the tickets illustrated below at 2 unsuccessful
encoding attempts:
!F M N 20 200 2 8 8 1 "VOID"
Example • Code 2-of-5 example
!F C N 100 410 5 2 2 2 "123456"
Note • Code 2-of-5 must have an even number of digits.
!F M Format print on cancelled ticket
6. Inserting an asterisk (*) in the data string to be encoded disables the read after write feature, see Introduction
on page 7.