
Programming
Software Command Syntax
48
P1003640-002 TTP 2100 Technical Manual 09/28/2009
Prints a text string at the specified XY position. The string is formatted based on the current
active formatting attributes except for alignment.
After the data has been printed, the cursor will return to the position it had before the print text.
Moves the print-position one step to the left. Backspace can be used to combine characters.
For instance to print a Ø, send text commands O BS / to the printer, and the slash will
overprint the O.
The print position can only be moved one step to the left. Multiple backspaces in succession
are ignored.
Cancels text and attributes sent before the CAN command on the same line.
Commands are not cancelled.
ESC t n1...n5 data
Print Text at XY
1B 74 n1...n5 data hex
27 116 n1...n5 data decimal
n1n2 Two byte definition of the X print position (in pixels).
n3n4 Two byte definition of the Y print position (in pixels).
n5 The number of characters in the string. To avoid having to count characters
you can set n5 to 00h (null) and then terminate the text string with null.
data The text string. If text string length is specified with n5, the length must be
exactly the number of characters specified, otherwise the printer will stop,
waiting for more characters. Data that extends off the edge of the printable
area will not be wrapped to the next line.
Note • The Y coordinate will be ignored if the printer is in variable document mode (n36=1).
Note • ESC t clears the text buffer each time it is used, destroying any unprinted text on the
same line. Commands will not be cleared.
BS
Backspace
08 Hex
8 Decimal
CAN
Cancel
18 hex
24 decimal
Kommentare zu diesen Handbüchern