Seiko Instruments DPU-30 Printer User Manual


 
5-5
5.2 FUNCTION CODES
All commands start with one of the following control codes (called function codes hereinafter):
LF (0A
16
), CR (0D
16
), SO (0E
16
), SI (0F
16
), DC2 (12
16
), DC3 (13
16
), CAN (18
16
), ESC (1B
16
),
FS (1C
16
), DEL (7F
16
)
Some function codes form a command by itself and others are followed by parameters and/or image
data.
The number of bytes configuring a command differs from command to command. The shortest
commands consist of 1-byte and the longest, some hundred bytes.
5.3 CHARACTER CODES
This section describes the character codes in detail.
The character codes are classified into two groups: 1-byte character codes and 2-byte character
codes. The 1-byte character codes are used to print standard-size characters, whereas the 2-byte
character codes print Kanji, user-defined characters.
In Mode 1 and Mode 2, the printer uses only the 1-byte character codes.
The following subsections describe the 1-byte and 2-byte character codes individually.
5.3.1 1-Byte Character Codes
Used for standard size character printing.
The hexadecimal codes valid as the 1-byte character codes are as shown below:
20
16
to FF
16
(Some character tables make codes 7F
16
and FF
16
invalid.)
5.3.2 2-Byte Character Codes
The 2-byte character codes are invalid in mode 1 and 2. The 2-byte character codes are used to
print Kanji, and user-defined characters when in the Kanji mode.
The first byte
00
16
through 20
16
: Function codes are processed as function codes (See 5.2 FUNCTION
CONDES). All the other codes are ignored.
If the second-byte code is received along with a Kanji mode clear
command, the next received data is processed as a 1-byte character
code.
21
16
through 7E
16
: First byte of a JIS Kanji code.
7F
16
through FF
16
: Ignored.