P-touch Template Manual/ Command Reference

Table Of Contents
P-touch Template 2.0 Command Reference
- 72 -
8. Setting and Retrieving Command Details
ESC iXa1 Retrieve non-printed text strings
ASCII: ESC i X a 1 01h 00h 01h
Hexadecimal: 1B 69 58 61 31 01 00 01
Parameters
None
Description
Retrieves the specified non-printed text string.
2- to 22-byte data is returned from the printer. (Varies depending on the length of the text string)
[1,2]:
nh1 nh2 (number of characters) nh1+(nh2*256)
[3 and later]:
Text string
The retrieved value is a value specified by a static command.
Example
When ABCDis specified as the non-printed text string:
The following command is sent to the printer.
Code: ESC i X a 1 01h 00h 01h
(1Bh 69h 58h 61h 31h 01h 00h 01h)
Returned value: 04h 00h A B C D
(04h 00h 41h 42h 43h 44h)