435
Advanced I/O Instructions
Section 5-31
Hardware
Prepare a 10-key keypad, and connect it so that the switches for numeric keys
0 through 9 are input to points 0 through 9 as shown in the following diagram.
Either the input terminals on the CPU Unit or the inputs on a DC Input Unit
with 16 or more input points can be used.
Using the Instruction
If the input word for connecting the 10-key keypad is specified for IW, then
operation will proceed as shown below when the program is executed.
Note
1.
While one key is being pressed, input from other keys will not be accepted.
1
3
5
7
9
11
13
15
COM
0
2
4
6
8
10
12
14
COM
ID212
0 V
0
9
DC Input Unit
10-key
TKY(18)
IW
D
1
D
2
IW: Input word
D
1
: First register word
D
2
: Key input word
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
2
0
0
0
0
1
0
2
9
D
1
+1
D
1
(1)
(2)
(3)
(4)
(1)
(2)
(3)
(4)
00
01
02
09
00
01
02
09
10
to
IW
to
Input from 10-key
Turn ON flags corre-
sponding to 10-key
inputs (The flags re-
main ON until the
next input.)
ON if a key is pressed.
D
2
Before
execution
"1" key input
"0" key input
"2" key input
"9" key input
Содержание SYSMAC CQM1H Series
Страница 3: ...iv...
Страница 5: ...vi...
Страница 9: ......
Страница 11: ......
Страница 15: ...xvi...
Страница 87: ...62 Calculating with Signed Binary Data Section 1 7...
Страница 169: ...144 Serial Communications Board Section 2 6...
Страница 537: ......
Страница 565: ......
Страница 569: ......
Страница 573: ......
Страница 577: ......