7-362
7.17 Other Instructions
7.17.7 Numeric input from keyboard
KEY
(5) The digits for the numbers actually fetched to
will be stored to the device specified for
,
and the ASCII code data input to
+1 and
+2 are converted to hexadecimal BIN values,
and stored.
(6) The number of digits that can be specified for n is from 1 to 8.
(7) Fetching of the input data is completed when any of the inputs shown below has been made.
At the completion, the bit device specified for
is turned ON.
• When the number of digits specified for n has been input
• When the "0DH" code has been input
For example, the operations at the location specified if n 5 will be as indicated below.
If input processing is to be performed for a second time, it is necessary to clear the number
of digits input and the input data stored in
, and turn OFF the specified device at the user
program.
If
is not cleared and
not turned OFF, the next input processing cannot be performed.
d1
d1
d1
d1
31
H
33
H
35
H
37
H
39
H
0 0 1 3
0 0 0 0
2
0 1 3 5
0 0 0 0
3
1 3 5 7
0 0 0 0
4
3 5 7 9
0 0 0 1
5
0 0 0 1
0 0 0 0
1
E
xecut
i
on
comman
d
C
on
di
t
i
on
contact
for
the
execut
i
on
of
KEY i
nstruct
i
on
S
tro
b
e
s
i
gna
l (
8)
ASCII
co
d
e
i
nput
(
to
7)
s
d1
s
s
d1
d1
1
2
d2
W
hen
the
spec
i
f
i
e
d
num
b
er
of
di
g
i
ts
are
i
nput
W
hen
0
D
co
d
e
i
s
i
nput
H
31
H
42
H
35
H
37
H
39
H
0 0 1
B
0 0 0 0
2
0 1
B
5
0 0 0 0
3
1
B
5 7
0 0 0 0
4
B
5 7 9
0 0 0 1
5
0 0 0 1
0 0 0 0
1
E
xecut
i
on
comman
d
S
tro
b
e
s
i
gna
l
(
+8)
+1
+2
Process
i
ng
comp
l
ete
d (
)
ASCII
co
d
e
i
nput
(
to
+7)
31
H
42
H
35
H
0
D
H
0 0 1
B
0 0 0 0
2
0 1
B
5
0 0 0 0
3
0 1
B
5
0 0 0 0
3
0 0 0 1
0 0 0 0
1
E
xecut
i
on
comman
d
S
tro
b
e
s
i
gna
l
(
+8)
Process
i
ng
comp
l
ete
d (
)
ASCII
co
d
e
i
nput
(
to
+7)
s
d1
d2
s
s
d1
d1
s
s
s
d1
d2
d1
d1
+1
+2
d1
d1
d2
Содержание 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: ......