19
CR(0DH) : This command prints the data in the print b uffer and feeds one line. If a LF is sent
immediately after CR, it will be ignored to avoid double printing.
ESC ! n(1BH,21H,n) : Set s the print mode according to the following table. n is a single byte in
which e ach bit sets the printing function. Note t hat underline cannot be used with a horizontal
tab and any combination of double height and width can be used. Default is n=0.
Bit Off/On Hex Decim
al
Function
0,1,
2
--- --- --- Undefined
3
Off 00 0 Emphasized mode
off
Off 00 0 Double-height off
4 On 10 16 Double-height on
Off 00 0 Double-width off
5
On 20 32 Double-width on
6 --- --- --- Undefined
Off 00 0 Underline mode off
7 On 80 128 Underline mode on
ESC @(1BH,40H) : Initialize the pr inter. Clears the print buffer and resets the printer to default
values.
ESC R n(1BH,52H,n) : Selects the international character set form the following table
n Character set
0U.S.A.
1 France
2 Germany
3U.K.
4 Denmark I
5 Sweden
6Italy
7Spain
8 Japan
9Norway
10 Denmark II
ESC d n(1BH,64H,n) : Prints the data in the print buffer and feed n lines.
ESC v(1BH,76H) : The current printer status is transmitted to the host upon receipt of this
command. The printer transmits one byte of data to the host indicating the status of the paper
out detector. It takes the form of a single byte which is fixed at 0(to indicate paper in) for printer.
The Byte is sent regardless of the CTS handshaking signal.
ESC { n(1BH,7BH,n) : Inverted print command. If n=1 then printing will be is inverted and text
will be printed from right to left. For normal printing n=0. The default mode is set by the
programmed param eters in the printer.
ESC C n(1BH,43H,n) : Set form length. When used in conjunction with the form feed
command(0ch), the printer will feed n lines. NOTE THAT IF n=0,THEN THERE WILL BE N O
LINE FEED.