str[1] = 0x24;
str[2] = 32;//
SendDataToPrinter (str, 3); // Set the absolute position to 32 horizontal dot pitch from
the left margin
ESC l n
[Name]
set the left margin
[Type]
ASCII
:
ESC
1
n
Decimal: 27 108 n
Hex: 1B 6C n
[Scope]
0 ≤n ≤ 32
[Explanation]
The left margin is the number of characters, which isn’t printed on the left side of the
printing paper.
The distance from the beginning of the line to the printing position is the width of n English
characters.
[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] = 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
Summary of Contents for RD-FH8C7
Page 41: ...B character set 1 and 2 C International standard ASCII ...
Page 43: ......