5.2FUNCTION CODES

All commands start with one of the following control codes (called function codes hereinafter):

LF (0A16), CR (0D16), SO (0E16), SI (0F16), DC2 (1216), DC3 (1316), CAN (1816), ESC (1B16), FS (1C16), DEL (7F16)

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.3CHARACTER 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.11-Byte Character Codes

Used for standard size character printing.

The hexadecimal codes valid as the 1-byte character codes are as shown below:

2016 to FF16 (Some character tables make codes 7F16 and FF16 invalid.)

5.3.22-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

0016 through 2016: 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.

2116 through 7E16: First byte of a JIS Kanji code.

7F16 through FF16: Ignored.

5-5