7-360
7.17 Other Instructions
7.17.7 Numeric input from keyboard
KEY
7.17.7
Numeric input from keyboard
KEY
*1: Specify the array in which X is set as a device for global label.
Function
(1) Fetches ASCII data from the 8 points of input (X) specified for
, converts it to hexadecimal
values and stores the result to
and the following devices.
KEY
indicates the following instruction.
KEY
Input argument,
EN:
Executing condition
:Bit
s:
Device of (X) to which a numeral is input
:Array of bit (0..8)
n:
Number of numeric digits to be input
:ANY16
Output argument,
ENO:
Execution result
:Bit
d1:
Input numeral
:Array of ANY16 (0..2)
d2:
Bit device number to be turned ON at the input completion
:Bit
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
(X only)
*1
−
−
−
−
n
−
−
−
−
−
−
−
Universal
UD
High
Performance
Structured ladder
ST
KEY
EN
ENO
s
d1
n
d2
KEY
(EN,
s
,
n
, d1, d2);
ENO:=
s
d1
d2
s
d1
N
um
b
er
of
di
g
i
ts
that
are
i
nput
5 di
g
i
ts
6 di
g
i
ts
7 di
g
i
ts
8 di
g
i
ts
1 di
g
i
t
2 di
g
i
ts
3 di
g
i
ts
4 di
g
i
ts
S
pec
i
f
i
cat
i
on
of
the
num
b
er
of
di
g
i
ts
to
b
e
i
nput
"0" (30 )
to
"9" (39 )
H
H
"A" (41 )
to
"F" (46 )
H
H
b12
b8
b11
b7
b4
b0
b3
S
tro
b
e
s
i
gna
l
I
nput
mo
d
u
l
e
d1
n
b15
d1
d1
s
s
s
s
s
s
s
s
s
+1
+2
+1
+2
+3
+4
+5
+6
+7
+8
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......