RD-KT247 thermal printers
19 / 61
3.2 Command Details
ESC @
[Name]
To initialize the printer
[Type] ASCII
:
ESC
@
Decimal:
27
64
Hex:
1B
40
[Explanation]
Clear the data in the print buffer, and reset the printing parameters to the
current printer default parameters.
[Note]
•
The data in the receive buffer is not cleared.
[Example]
unsigned char str[2];
str[0] = 0x1B;
str[1] = 0x40;
SendDataToPrinter(str,2);
LF
[Name] print and
feed line
[Type] ASCII
:
LF
Decimal:
10
Hex:
0A
[Explanation] Print the data in the print buffer and feed one line
[Note] The command sets the print position to the beginning of the line
[Example]
unsigned char str[2];
str[0] = 0x0A;//
或
str[0] = ‘\n’
SendDataToPrinter(str,1);
CR