RD-KT247 thermal printers
30 / 61
str[1] = 0x6C;
str[2] = 3;//
SendDataToPrinter (str, 3); // the left position is set to the width of 3 English characters from the
left margin
ESC
Q n
[Name]
set the right margin
[Type] ASCII
:
ESC
Q n
Decimal:
27
81 n
Hex:
1B
51 n
[Scope]
0 ≤n ≤ 32
[Explanation]
The right margin is the number of characters, which isn’t printed on the
right side of the printing paper.
[Comment]
•
If the printing position is outside the printable area, the command is ignored.
•
The width of the character includes the default character width of the character spacing
[Example]
unsigned char str[4];
str[0] = 0x1B;
str[1] = 0x51;
str[2] = 3;//
SendDataToPrinter (str, 3); //
set the area of three characters’ width to the unprintable
area on the right side
ESC 1
n
[Name]
set the line spacing
[Type] ASCII
:
ESC
1 n
Decimal:
27
49 n