
6. FUNCTIONS OF THE MACRO
EXECUTOR
B–61803E–1/10
PROGRAMMING
106
(1) Key-input control variable #8501
You can read out the key input with #8501. The following is the
correspondence of the key input and #8501.
Display unit with seven soft keys
Key input Value Key input Value
PAGE.DOWN 1 SOFT FUNCTION KEY LEFT 11
PAGE UP 2 SOFT FUNCTION KEY 1 12
CURSOR DOWN 3 SOFT FUNCTION KEY 2 13
CURSOR UP 4 SOFT FUNCTION KEY 3 14
ALTER 5 SOFT FUNCTION KEY 4 15
INSERT 6 SOFT FUNCTION KEY 5 16
DELETE 7 SOFT FUNCTION KEY RIGHT 17
INPUT 8
RESET 10
CURSOR RIGHT 18
CURSOR LEFT 19
Display unit with twelve soft keys
The soft function keys follows:
The other keys are the same as seven softy keys.
Key input Value Key input Value
SOFT FUNCTION KEY LEFT 20 SOFT FUNCTION KEY 1 21
SOFT FUNCTION KEY 2 22 SOFT FUNCTION KEY 3 23
SOFT FUNCTION KEY 4 24 SOFT FUNCTION KEY 5 25
SOFT FUNCTION KEY 6 26 SOFT FUNCTION KEY 7 27
SOFT FUNCTION KEY 8 28 SOFT FUNCTION KEY 9 29
SOFT FUNCTION KEY 10 30 SOFT FUNCTION KEY RIGHT 31
When there is no key input, the #8501 value is 0.
Once there is a key input, #8501 holds its value till it is input with the
macro statement, and the following key inputs will be ignored. When
#8501 is input, the status gets ready to accept the key input and #8501
will be 0.
It is impossible to write a value into #8501.
(2) Data input control variable #8502, numerical data variable #8503,
address data variable #8504
Control the input of numeric data and address data by setting the
following values to #8502.
#8502 = 0 ...No data input
= 1 ... Input of numeric data
= 2 ...Input of address data and numeric data
= 3... Expanded data input control
When #8502 is 0, nothing will be displayed on the data input line and
it will be impossible to input data, either.
When #8502 is 1, NUM will be displayed on the data input line and
input of numeric data will be possible. When #8502 is 2, ADRS will
be displayed on the data input line. After address data is input, NUM
is displayed and it is possible to input the numeric data. #8502 value
is 0 at switching on the power.
6.11
KEY–INPUT AND
DATA–INPUT
CONTROL