
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 167 -
6.2.2 Data Input Control Variable (#8502)
#8502 : Data input control variable
#8503 : Numeric data variable
#8504 : Address data variable
#8508 : Character string variable
By setting the following values in data input control variable #8502,
the input of numeric data, address data, and character string is
controlled.
#8502 = 0 : No data input
= 1 : Input of numeric data
= 2 : Input of address data and numeric data
= 3 : Input of character strings
(1) No data input (#8502 = 0)
Nothing is displayed on the data input line, and no data can be
input.
(2) Input of numeric data (#8502 = 1)
"NUM=" is displayed on the key input line, and numeric data
can be input. The input numeric data can be read from numeric
data variable #8503. By setting bit 6 (NNUM) of compile
parameter (No. 9006) to 1, NUM= can be hidden.
(3) Input of address data and numeric data (#8502 = 2)
"ADR=" is displayed first on the key input line, and address data
can be input. When address data has been input, NUM= is then
displayed to enable numeric data to be input.
The input address data and numeric data can be read from
address data variable #8504 and numeric data variable #8503,
respectively. The addresses that can be input and their
corresponding values of variable #8504 are given below.
A: 1B: 2C: 3D: 4E: 5F: 6
G : 7 H : 8 I : 9 J : 10 K : 11 L : 12
M : 13 N : 14 O : 15 P : 16 Q : 17 R : 18
S : 19 T : 20 U : 21 V : 22 W : 23 X : 24
Y : 25 Z : 26
(4) Input of character strings (#8502 = 3)
Nothing is displayed on the key input line, but character data can
be input. The input characters can be read from character string
variable #8508 in the order in which they are input. The data that
can be read is ASCII codes. After the last character is read,
<null> is read. The maximum allowable number of characters in
a character string is 73.
A prompt statement can be displayed on the data input line,
using the G280 command.
When a command key that causes command key input variable #8501
to be set to a non-zero value is input, the key input line returns to its
initial state. Then, the input numeric data, address data, and character
data can be read from the numeric data variable, address data variable,
and character string variable, respectively. When neither numeric data
or address data is input, the values of variables #8503 and #8504 are
<null>. The numeric data variable and the address data variable retain
their values until input is made again.