The functions of the user defined keys can be changed freely by the user. For
example, when the
�
key is depressed,
LIST_
is displayed on the LCD. However, in order to execute this command, you
must depress the RETURN key. Let's change the
[E!J
key, so that when it is
depressed, it will automatically execute the LIST command. Type,
KEY$(4)
= "lstLIST" +
Now, try the
[E!l
key. This time, the LIST command is executed without
depressing the RETURN key. Let's look at the KEY$ funtion in detail.
KEY$(4)
="1st LIST"+
CHR$(13)
'-.,.-
'-v-' '-v-'
'-
l
j 1
L
Control code for carriage return
Key number
Command
Characters displayed on the LCD
The KEY$ function is as shown above. The argument of the KEY$ function is
the number of the user defined key. The first three characters of the character
string enclosed in double quotation marks are displayed at the bottom of the
LCD when the CONSOLE command is executed to display which user defined
keys are set with which commands. The rest of the characters constitute a
command, and are displayed at the cursor position on the LCD when the user
defined key is depressed. The CHR$(13) is the control code for carriage return.
When this is omitted, you must
[f!l
as before to execute the LIST
command.
The definition of the KEY$ function can be confirmed by using the
PRINT command.
PRINT KEY$(4)
The user defined keys can be set not only with often used commands, but also
with often used statements or numeric values.
65
Summary of Contents for X-07
Page 1: ......
Page 2: ......
Page 8: ...1 Learning how to operate the X 07 2 Special functions and peripheral devices 3 Reference m ...
Page 10: ...Learmng how to operate the X 07 ...
Page 11: ...2 ...
Page 63: ......
Page 64: ......
Page 107: ...00 ...
Page 108: ......
Page 145: ...136 Instructions Others BEEP MOTOR REM Functions ABS FIX HEX INT SGN START TAB ...
Page 146: ......
Page 147: ......
Page 149: ......