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
, 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
@
Summary of Contents for RD-FH5C7
Page 57: ...C International standard ASCII ...
Page 60: ......