24
TTPM2 Installation and Programming Manual
September, 99
5 COMMAND
REFERENCE
5.1
System related commands
!C
Clear all
This command takes no parameter. All definitions are cleared. Stored layout is erased.
Subsequent !C’s are ignored.
The command is also used to initialize the TTPM2 after a power ON. If existing print layout
shall be saved, !P shall be used for printer initialization. See TTPM2 Start-Up, page 36.
!P
This command effects both the encoding, printing, cutting and ejecting of a ticket.
Printing follows a successful encoding. The magnetic code and print information, as well
as cut and eject behavior, must first be defined using the applicable commands.
The Print command can also be used to initialize the TTPM2 after power OFF (as an al-
ternative to !C) in order to save any ticket layout stored in the TTPM2. See also page 21,
and 36.
Adding a single digit after the !P makes it possible to set the maximum number of encod-
ing retries 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 backed up RAM. This buffer can be read by the !V-command.
The transaction string is committed at the precise point where a useable ticket has been
produced. The only way to reset a transaction string is to successfully print another use-
able ticket that was initiated with !Q. Loss of power or a reset or any other instruction
leaves the string intact.
!S
Status request
The TTPM2 responds by sending two bytes to the host computer. Byte 1 indicates the
status of the various TTPM2 sensors according to the following table. Byte 2 reports the
temperature of the thermal print head and is only used internally in the TTPM2.
Bit
Sensor
Value ”1”
Value ”0”
0
Lower rear document entry
Paper present
No paper
1
Upper rear document entry
Paper present
No paper