Olivetti 900X Operating Instructions Manual page 45

Electronic typewriter
Table of Contents

Advertisement

11.3.2 Transmission of Character and Printer f unction Control Codes
1) Character transmission
2) ASCI I and U S A control codes
39
Note.
Although fundamentally the same, there are various dialects of the BAS IC
language. As an example, some BAS I C languages use the command
" P R I NT # 1 " to order the printer to print . Others use the command L P R I NT
for the same thing, and yet others offer the user both commands. Chec k
your computer manual for the proper form to be used for your computer.
Another distinction to be aware of is the difference between commands
and codes. In the example given below, the command is the " L P R I NT"
section while the codes are the " C H R$(65)" and " CHR$(&H4 1 )" following
it.
Before you run a program, reset the typewriter by ho lding down the Half
Space Key and pressing the " R " Key This clears any programs previously
set in the t ypewriter
The following are two examples of codes used to print the letter " A " and the
control function E SC with your typewriter.
Any one of three coding methods can be used for character transmission;
enclosing the character(s) in quotes (in which case the co m p uter computes
the coding automatically) , and the use of either decimal or hexadecimal
coding The proper coding is determined through the use of the table in
Items 11. 4 and 11. 5 and in the manner shown at the end of I tem 11. 5.
1)
L P R I NT " A "
2 )
L P R I NT CHR$(65)
3)
L P R I NT C H R$(& H4 1 )
Note that any of the characters shown in the tables in Items 1 1. 4 and 11. 5
can be printed using the above methods.
Control codes are used to control the formatting, printing, carr iage
movements, paper feed, and other functions of the typewriter when it
pr ints. The control codes are usua l l y combined t ogether to form a
sequence of two or more codes and are generally preceded by the ESC
code. The E S C code informs the typewriter during pr int ing that the codes
following it are special funct i on codes even though the value
may be the same as a char@.cter code
Character data
.. Decimal oata
. .. . .. . ..... Hexadec i mal data
of
the code
.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents