PSB No:
Page: 10 of 14
ESC ( t nl n2 dl .d2 d3 (Assign Character Tabie)
ESC f t nl n7 dl d2 d3 is the command for assigning character tables where n1, n2, dl,d2,andd3arevariables. CurrenUy,variabknl,n2andd3MlJSTbenl=3, n2=0, and d3=0. Variable dl 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 valuesford areO,1,2,and3(seeTabtel below). Variabled2isanurnbar corresponding to a registered table. lhii 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 MOW).
1 | dl | t SeIectabIeTabIe | # |
|
|
|
|
| |||||
I |
|
|
|
| 1 |
|
|
|
|
|
| ||
0 | IO |
| Iwic |
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| I | 3 | IPC95O(Intemationa0 | I | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 1
|
|
|
|
|
II 9 I |
|
| I | |
|
| Table2 |
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 (PC950) to Selectable Table 1 (PC437). In order to print the Q character (ASCII 245), the command ESC t 1 must be sent. In the Basic programming language, the sequence would be as follows:
t.PRtNT CHR$(27);“CT);CHR$(3);CHR$(O);CHR$(l);CHR$(3);CHR$(O); LPRINTCHR$(27);7’;CHR$(l);
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 thii reason, only the above Registered Tables are available on