PSB No: P-0082
Page:
10
of
14
ESC ( t n1 n2 d1 d2 d3 (Assign Character Table)
ESC (t n1 n2 d1 d2 d3 is the command for assigning character tables where n1, n2,
d1,d2, and d3 are variables. Currently, variables, n1, n2 and d3 MUST be n1=3,
n2=0, and d3=0. Variable d1 is a number corresponding to one of the four tables
selectable with the ESC t n command. This is the table that will be replaced. Valid
values for d1 are 0,1,2, and 3 (see Table 1 below). Variable d2 is a number
corresponding to a registered table. This is the table that will replace the table
indicated by Variable d1. Valid Values for d2 are 0, 1,3,7,8, and 9 (see Table 2
below).
Table 1
Table 2
After using the ESC ( t command, the ESC t n command MUST be sent to select the
table before printing from the new table. For example, the command ESC ( t 3 0 1 3
0 is sent (assign Registered Table 3 (PC850) to Selectable Table 1 (PC437). In order
to print the character (ASCII 245), the command ESC t 1 must be sent. In the Basic
programming language, the sequence would be as follows:
LPRINT CHR$(27);“(T);CHR$(3);CHR$(0);CHR$(1);CHR$(3);CHR$(0);
LPRINT CHR$(27);"t";CHR$(1);
LPRINT CHR$(245)
Some ESC/P2 documentation may illustrate as many as 22 different Registered
Tables. The Registered Tables are a part of the character set, therefore, they are
contained in the Character Generator ROM. The CG ROM differs based upon the
destination country. For this reason, only the above Registered Tables are available
on LQ-570, LQ-1070, LQ-870 and LQ-1170 printers sold for the U.S. market. Foreign
Character Generator ROMs ARE NOT available in the United States. The following