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
】
, which is in italics. And the
s 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.
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
Summary of Contents for RD-FH8C7
Page 41: ...B character set 1 and 2 C International standard ASCII ...
Page 43: ......