779
Basic I/O Unit Instructions Section 3-22
3-22-4 TEN KEY INPUT – TKY(211)
Purpose Reads numeric data from a ten-key keypad and stores up to 8 digits of BCD
data in the specified words.
A Unit with 10 inputs or more is required for this instruction.
Ladder Symbol
Variations
Applicable Program Areas
Operands I: Input Word (Data Line Inputs)
Specify the input word allocated to the Input Unit and connect the ten-key key-
pad’s 0 to 9 data lines to the Input Unit as shown in the following diagram.
D
1
: First Register Word
Specifies the leading word address where the ten-key keypad’s numeric input
(up to 8 digits) will be stored.
TKY(211)
I
D
1
D2
I: Input word
D
1: First register word
D
2: Key input word
Variations Executed Each Cycle for ON Condition TKY(211)
Executed Once for Upward Differentiation @TKY(211)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
Not allowed OK OK Not allowed
0123456789101112131415
−−−−−−
I
0
1
2
3
4
5
9
8
7
6
Bits 00 to 09 correspond
to keys 0 to 9.
D1
815 1211 0347
D1+1
815 1211 0347
Digit 1
Digit 2
Digit 3
Digit 4
Digit 5
Digit 6
Digit 7
Digit 8