7-396
KEY
7.18.7 Numerical key input from keyboard (KEY)
KEY
Function
(1) Fetches ASCII data from the 8 points of input (X) designated by , converts it to
hexadecimal values and stores the result in the area starting from the device designated by
.
For example, in a case where the number of digits (n) has been set at 5, and the values "31",
"33", "35", "37" and "39" have been input through X10 to X18 of the input module, the
following will take place:
: Head number of the devices (X) to which a numeral will be input (bits)
n : Number of digits of the numeral to be input (BIN 16 bits)
: Head number of the devices where the input numeral will be stored (BIN 16 bits)
: Number of the bit device to turn ON at the completion of input (bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
(Only X)
–– –– –– ––
n ––
–– –– –– ––
–– ––
Process
High
performance
Redundant
Universal
Basic
Command
KEY
n
S
D1 D2
KEY
S
D1
D2
S
D1
D2
S
D1
Number of digits that are input
5 digits 6 digits 7 digits 8 digits
1 digit
2 digits 3 digits
4 digits
Designation of
the number of
digits to be input
"0" (30 ) to "9" (39 )
HH
"A" (41 ) to "F" (46 )
H H
b12
b8
b11
b7
b4 b0
b3
Strobe signal
Input module
D1
n
b15
D1
D1
S
S
S
S
S
S
S
S
S
+1
+2
+1
+2
+3
+4
+5
+6
+7
+8
5
D11
3
H
5
H
7
H
9
H
0
H
0
H
0
H
1
H
D12
b15 b12
b8
b11
b7 b4 b0b3
5
" 1 3 5 7 9 "
(31
H
)(33
H
)(35
H
)(37
H
)(39
H
)
Strobe signal
Input module
D10
Number of digits
of input data D0
X10
X11
X12
X13
X14
X15
X16
X17
X18
The first input value