7-399
KEY
1
2
3
4
6
6
7
8
7.18 Other instructions
7.18.7 Numerical key input from keyboard (KEY)
Program Example
(1) The following program fetches data of the 5 or fewer digits from the numerical key pad
connected to X20 to X28, and stores it to the area starting from D0 when X0 is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
Clears the previous input data
Sets the number of digits to be input
Resets the data input completion fag
Step Instruction Device
X20
X21
X22
X23
X24
X25
X26
X27
(Strobe signal)
Input module
b15
b12
b0b3b7 b4b8b11
5
2
H
3
H
4
H
5
H
0
H
1
H
0
H
0
H
D0
D1
D2
X28
Numerical keypad
"
"
1 2
3
4
5