PSB No: P-0082
Page:
14 of 14
C n1
. . .
is the command for printing control codes as data where
and
are variables and .
and
tell the printer
next
codes are to be
interpreted as characters instead of control codes”.
command is used primarily
to print displayable characters such as ASCII values 0 through 31 in Registered Tables
1 through which are normally used as
control codes (LF, FF,
ESC, etc.)
T
O
determine the values for and
perform the following steps.
1. Determine how many ASCII codes will be sent sequentially immediately
following and
2 Using long
divide the quantity of ASCII codes that will be sent
sequentially immediately following and
by
3. The remainder in the quotient is the value for n1.
4.
The
number in the quotient is the value for
EXAMPLE
1. The symbols for the
suits of a card deck (hearts, diamonds, clubs,
and spades and are to be printed. These are each separate
ASCII codes (ASCII codes 2 3.4, and 5 when using the PC437 Character
table).
2
0 with a remainder of 4.
3.
In the Basic programming language, the command would look like this.
Thii command, as listed in the line above, will cause the printer to print the symbols
for the different suits of a card deck (hearts, diamonds, clubs, and spades 4,
and
Another example of using the ESC ( command is illustrated in the
explanation of the ESC ( t (Assign Character Table) command.