2. PRINTER FUNCTIONS
identification) if it has not been given confirmation that the host is ready to receive data.
• This command is carried out once the data has been processed in the reception
buffer. There may therefore be a delay between the moment in which the command is
received and that in which the data is transmitted, depending on the status of the
reception buffer.
[Default]
[Reference]
[Example]
$
1
D
$
5
0
x
y
[Name]
Set horizontal and vertical motion units.
[Format]
ASCII
Hex
Decimal 29
[Range]
x = 100, 200
y = 100, 200
[Description]
Sets the horizontal and vertical motion units at 1/x inches and 1/y inches, respectively.
When x is set at 0, the default setting value is used.
When y is set at 0, the default setting value is used.
[Notes]
• This command set the ESC/POS emulation and initialize the default values again.
• The horizontal direction is perpendicular to the paper feed direction.
• This command does not affect the previously specified values.
• The calculated result from combining this command with others is truncated to the
minimum value of the mechanical pitch or an exact multiple of that value.
[Default]
x = 200, y = 200
[Reference]
$1B $24
[Example]
$
1
D
$
5
E
t r
m
[Name]
Execute macro.
[Format]
ASCII
Hex
Decimal 29
0 ≤ r, t ≤ 255
[Range]
0 ≤ m ≤ 1
[Description]
Executes a macro.
• rspecifies the number of times to execute the macro.
• t specifies the waiting time for executing the macro.
The waiting time is t × 100 msec. for every macro execution.
• m specifies macro executing mode:
When the LSB of m = 0, the macro executes r times continuously at the interval
specified t.
When the LSB of m = 1, after waiting for the period specified by t, the LED indicator
blinks and the printer waits for the FEED button to be pressed. After the button is
pressed, the printer executes the macro once. The printer repeats the operation r times.
• This command lasts for a period of (t × 100 msec.) after a macro is executed by t.
[Notes]
• If this command is received while a macro is being defined, the macro definition is
aborted and the definitions cleared.
• If the macro is not defined or if r is 0, nothing happens.
GS
P
x
y
1D
50
x
80
x
y
GS
^
r
t
1D
5E
r
94
r
t
2-51
y
m
t
m
m
TG1260/2460
Need help?
Do you have a question about the TG1260 series and is the answer not in the manual?