RD-KT247 thermal printers
18 / 61
GS F
Select mode
GS Q
Set horizontal printing position for the bar code
GS k
Print the bar code(s)
ESC X
Magnify characters
GS h
Select bar code’s height
GS w
Select bar code’s width
GS B
To allow/ban white reverse printing mode
ESC l
To set the printing position
ESC r d n
To adjust the depth of thermal printing
FS 2
To set character rotation Printing
FS r
To select
the
superscript and subscript
This chapter describes the commands of controlling the printer to print. Format specification is as
follows:
【
COMMAND
】
+
【
parameter
】
1)
【
COMMAND
】
is the command, and consists of the escape character and command characters. But
a small number of single-byte commands don’t have the escape character.
2)
【
parameter
】
is the parameter, which is in italics. And the parameters are not numeric characters,
but the value of the character.
All the examples in this chapter are compiled in C language. The ‘
SendDataToPrinter
’ function is virtual
function. And require developers to write according to the actual situation of the mainframe.
This function is defined as follows:
SendDataToPrinter(unsigned char *buffer, unsigned int len)
Illustration: send the data to the printer
Unsigned char *buf
//
Print data command
Unsigned int len
//
Data length. Unit: byte.