User's Manual
Control Code Definitions
Chapter
—
5
82
6820 Series 80-Column Printer User’s Manual
Multi-Byte Character Sets
DBCS and SBCS can mix when printing a report. This mixture is referred
to as a Multi-Byte Character Set (MBCS). When a DBCS is selected, the
characters from the SBCS codepage currently selected are used for render-
ing character codes and control codes from 0 to 127. Codes above 127
(that fall within the range of lead-in bytes for the selected character set)
treat the byte that follows as a trailing byte for that character set. Other-
wise, for character codes above 128, the character code from the selected
SBCS is printed. NFT00950.MOD (BIG 5 DBCS) does not allow the
MBCS mode. For this character set, only control codes from 0–31 are
treated as single byte characters when they are not proceeded by a lead-in
byte. All escape sequence character strings are treated as SBCS.
Codepage Selection
Multiple codepages can be present in printer font memory at one time.
OneSBCSandoneDBCScodepagecanbeselectedastheactivecode-
pages at any time for MBCS mode. The active codepage can be changed at
any time by substituting the appropriate value into n1 and n2 from the
International Character Sets table on the next page.
Format
Decimal Hex ASCII
27 82 n0 n1 n2 1B 52 n0 n1 n2 ESC “R” n0 n1 n2
where n0 is 255, n1 isthehighbyteofcodepagetoselect,andn2 is the
lowbyteofcodepagetoselect.
Select National Character Set
By default, codepage 0 is selected by the printer at reset. T he following es-
cape sequence may b e used to select international character support, and is
only allowed for codepage 0. All other codepages use direct character code
mapping to select the appropriate font for rendering.
Format
Decimal Hex ASCII
27 82 n 1B 52 n ESC “R” n
where n is 0–14 and is the country code, as shown in the International
Character Sets table on the next page. The default value for n is zero
(USA).
A full 256 character set is not provided for these sets. There are 64 interna-
tional characters stored in ROM: 32 in Roman and 32 in Italic. They are
stored as codes 0–31 and 128–255. These codes are normally not accessi-
ble.
However, the E SC
“
R” command makes these codes available, but only 12
characters at a time. These 12 characters are available in these positions of
the A SCII character table: 35, 36, 64, 91, 92, 93, 94, 96, 123, 124, 125,
and 126, as shown in the International Character Sets table on the next
page.