
34
Programming
Printing and Encoding Capability Overview
01/06/2009 TTPM3 Installation and Programming Manual P1003642-001
Triggering a Printout
Putting text, graphics, bar and magnetic codes on the ticket as described above only builds an
image of the ticket in the printer memory. To actually print something on a ticket, you must
send a print command:
!P↵
Every received ”!P CR LF” prints one ticket. (If the printer is configured for dual consecutive
entries, you must also send a select document entry command, see Syntax on page 31.)
Command Acknowledgment
Ticket issuing is automatically acknowledged by the TTPM3 by sending an ACK (06h) to the
host computer after a successful read-after-write of the encoded magnetic information.
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; Error Codes and Status Reporting on page 86.
Additional Commands
In addition to the command that specifies the print, there are a number of other commands
used for functions such as:
• Clearing of the TTPM3 buffer
• Selection of document entry
• Decoding of documents
• Generation of status requests
All applicable commands are listed in the following pages. Detailed descriptions of the
software commands are given with syntax explanations as well as commented examples.
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. In high resolution mode, the ticket image is 384x727
pixels for an 86 mm ticket, and 384x935 pixels for a 110mm ticket.
Note • ACK/NAK must be enabled through parameter n5, see parameter 5 on page 79.
Note • Make sure not to print data outside this area when you use the !F command.
If you do, you write in parts of the memory that are used for other functions in the printer,
and the result is totally unpredictable.
Kommentare zu diesen Handbüchern