
6. FUNCTIONS OF THE MACRO
EXECUTOR
B–62093E–1/02
PROGRAMMING
88
(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.
Table 6.10 Display unit with 9″CRT
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
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.
When the key–input control variable #8501 is key–input to the value
other than 0, the data input line will return to the initial state. It is
possible to read out the input numeric value and address with the
numeric data variable #8503 and the address data variable #8504
respectively. The following is the correspondence of the input
address and #8504.
6.10
KEY–INPUT AND
DATA–INPUT
CONTROL