20
TTPM2 Installation and Programming Manual
September, 99
4.2.5
Positioning data on the ticket
Items to be printed are placed within
frames. You position the frame by
defining the X and Y coordinate of
the upper left corner, and the ori-
entation of the frame. The frame is
then automatically sized to the
contents you put in it (character
size, No. of characters, graphics
size, and other data for the item to
be printed).
Frames can overlap each other.
You can for instance print text on
top of graphics.
4.2.6
Triggering a printout
Putting text, graphics, bar and mag-
netic codes on the ticket as de-
scribed above only builds an image
of the ticket in the printer memory.
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
acknowledgment
Data strings received by the TTPM2 are automatically acknowledged by the TTPM2
sending an 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).
NOTE!
– ACK/NAK must be enabled through dipswitch settings, see page 49.
Figure 17. Coordinates on the ticket