23
20) Feed switch enable/disable:<< ESC c 5 n >>
Code
: [1B ] h + [63] h + [35] h + n
* [00
≤
n
≤
FF] h
Changes the FEED switch valid or invalid.
* “n” is only valid for LSB(b0)
* “n” bit has a following meanings
b0 Description
0
enable FEED switch
1
disable FEED switch
Default value of “n” is [00] h.
21) Print and “n” line feed:<< ESC d n >>
Code
: [1B] h + [64] h + n
* [00
≤
n
≤
FF] h
Prints the data in the print buffer and feeds paper by “n” lines.
* Beginning of a line is a print start position.
* If there is print data remained, line feed is activated for the same height of
character.
22) Character code table select:<< ESC t n >>
Code
: [1B] h + [74]h + n
* [00
≤
n
≤
01]h
Selects either Japan code table or non-Japan code table.
Explanation : “n” value has following meaning.
n(Hex)
character code table
00
Non-Japan character code table
01
Japan character code table
The default value of “n” is [S2-2] for DIP SW.
23) Printer status transmission
:<< ESC v >>
Code
: [1B] h + [76] h
Sends current printer status
* Status to be transmitted consist of 1 byte and the content is explained in the chart
below.
Value
bit Functions
0 1
0 Paper near end
Paper present
Near end
1 Head open
Normal
Head open
2 Paper end
Paper present
No paper
3 Head temp. abnormal
Normal
Temp. high
4
5
6 Paper out sensor
No paper
Paper exists
7
Enclosure
open
Normal
Open
* Regarding DTR/DSR control, only one byte is transmitted after confirmation that
the host is able to receive data, that is DSR signal is in SPACE status. For
XON/OFF control, one byte is transmitted without confirmation of DSR signal
status.
* For DTR/DSR control, if host is not in a receivable status, it waits until host can
receive data.