September, 99
TTPM2 Installation and Programming Manual
45
•
Update the magnetic stripe with correct information about used areas if the ticket
should be used further.
8.2
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. The yellow indicator on the printer will blink to indicate that the appli-
cation program wants the operator to insert a single ticket. When a ticket is inserted, the
loading process starts. To speed up ticket handling, the magnetic code of track two is
read and placed in memory when loading the ticket from the front load option. !D will read
track two data from memory without having to move the ticket.
The single ticket loading process will retract the fanfold ticket stock in the lower document
entry to a standby position, and position the single ticket in the active position of the up-
per track.
The subsequent command string automatically processes the operation on the single-
ticket form.
8.3
Read and decode
The following read (and decode) commands 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 data to host. No decoding.
The !D, !D1 and !D3 commands decode the information and scans for an end character
(?). If found, the string is sent to the host computer in ASCII format. The start character is
not included, but the stop character (?) and the checksum are transmitted. If no number is
found, or if it does not comply with the ISO standard, a NAK+A is transmitted.
In either case, the ticket is automatically returned to active position, ready for encod-
ing/printing or ejecting. After the read operation, the single ticket is again placed in active
position waiting for either an eject command for a command sequence for printing or en-
coding (or both) followed by !P for processing of that command string.
8.4
Encode and print
1. Encode a new or modified string on the magnetic stripe. Use any of the magnetic en-
coding commands !I, !J, !K, !M, !N, !N+, or !O depending on what tracks are available
in your printer, and what encoding you want. See page 34.
2. Format the new print using the !F command described on page 28.