Specifications
[Description] Select the device to which the host computer sends data, using n as follows:
n Function
1 Printer enabled
2 Printer disabled
3 Printer enabled
[Notes] • When the printer is disabled, it ignores all transmitted data until the printer is enabled
through this command.
[Default] n = 1
[Reference]
[Example]
$1B $40
Printers: KPM150
[Name] Initialize printer
[Format] ASCII ESC @
Hex 1B 40
Decimal 27 64
[Description] Clears the data in the print buffer and resets the printer mode to that in effect when power
was turned on.
[Notes]
[Default]
[Reference]
[Example]
$1B $44 [n1...nk] $00
Printers: KPM150
[Name] Set horizontal tab position
[Format] ASCII ESC D n1...nk NUL
Hex 1B 44 n1...nk 00
Decimal 27 68 n1...nk 0
[Range] 1 ≤ n ≤ 255
0 ≤ k ≤ 32
[Description] Sets horizontal tab positions
• n specifi es the column number for setting a horizontal tab position calculated from the
beginning of the line.
• k indicates the total number of horizontal tab positions to be set.
[Notes] • The horizontal tab position is stored as a value of [character width x n] measured from
the beginning of the line. The character width includes the right-side character spacing
and double-width characters are set with twice the width of normal characters.
• This command cancels previous tab settings.
• When setting n = 8, the print position is moved to column 9 sending $09.
• Up to 32 tab positions ( k = 32) can be set. Data exceeding 32 tab positions is processed
as normal data.
• Send [ n ] k in ascending order and place a 0 NUL code at the end. When [ n ] k is less
than or equal to the preceding value [ n ] k-1, the setting is complete and the data which
follows is processed as normal data.
• $1B $44 00 cancels all horizontal tab positions.
• The previously specifi ed horizontal tab position does not change, even if the character
width is modifi ed.
[Default] Default tab positions are set at intervals of 8 characters (columns 9, 17, 25, …) for Font
A when the right-side character spacing is 0.
ESC/POS™ Emulation
16 Command Reference