Esc sp n, Esc d n – Bematech MP-4000 TH Programmer's Manual User Manual

Page 66

Advertising
background image

MP-4000 TH POS Printer Rev.1.4

Programmer’s

Manual

22-aug-2007
Firmware Release: 1.5

66

4.3 Horizontal positioning

HT


[Function]

Horizontal

tab.


[Format]

ASCII

HT

Hexadecimal

09

Decimal 9


[Description]

Moves the print position to the next horizontal tab position.


[Details]

• This command is ignored unless the next horizontal tab position has
been set.

• Horizontal tab positions are set with ESC D.


ESC SP n


[Function]

Set right-side character spacing.


[Format]

ASCII

ESC

SP

n

Hexadecimal

1B 20 n

Decimal 27

32

n


[Description]

Sets the character spacing for the right side of the character to [n ×
horizontal or vertical motion units].


ESC D n

1

...n

k

NUL


[Function]

Sets horizontal tab positions.


[Format]

ASCII

ESC

D

n

1

...n

k

NUL

Hexadecimal

1B 44 n

1

...n

k

00

Decimal 27

68

n

1

...n

k

0


[Description]

Sets horizontal tab positions.
n specifies the column number for setting a horizontal tab position
from the beginning of the line.
k indicates the total number of horizontal tab positions to be set.
• When setting n = 8, the print position is moved to column 9 by
sending HT.
• Up to 32 tab positions (0 ≤ k ≤ 32) can be set. Data exceeding 32 tab
positions is processed as normal data.
• Transmit [n]k in ascending order and place a NUL code 0 at the end.
• ESC D NUL cancels all horizontal tab positions.


Advertising
This manual is related to the following products: