0309
TTPM2 Technical Specification
17
7 COMMAND
SET
The command set is designed in accordance with industry standards and is enhanced
with functions unique to this product. The command language uses only printable ASCII
characters for easy adaptation to any host system.
NOTE!
– This chapter is only a summary. See the ” Installation and Programming Man-
ual” for full details.
7.1 Syntax
•
A command string always starts with an exclamation mark (ASCII 33 or HEX 21) serv-
ing as command identifier.
•
The characters immediately following the ! (21H) is the actual command to the printer.
The command consists of 1—3 characters followed, when applicable, by a sub com-
mand, formatting commands, and data separated by space characters as shown in
Figure 7.
•
Carriage Return and Line Feed end each command.
Command identifier
Command (1 to 3 characters)
Sub command
Formatting commands
separated by spaces
Data enclosed in
quotation marks
Space character
(ASCII 32 or HEX 20)
Only used with some commands
Graphical data starts directly without any quotation mark
and ends after the specified number of bytes
New line = CR LF
(ASCII 13 10
or HEX 0D 0A)
SW97119
1
1
1
2
2
1
Figure 7. Command syntax