![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268985.webp)
946
Basic I/O Unit Instructions
Section 3-23
3-23-6 TEN KEY INPUT – TKY(211)
Purpose
Reads numeric data from a ten-key keypad connected to an Input Unit and
stores up to 8 digits of BCD data in the specified words.
This instruction is supported only by CS/CJ-series CPU Unit Ver. 2.0 or later.
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.
D
2
: Key Input Word
Bits 00 to 10 of D
2
indicate key inputs. When one of the keys on the keypad (0
to 9) has been pressed, the corresponding bit of D
2
(0 to 9) is turned ON. Bit
10 of D
2
will be ON while any key is being pressed.
TKY(211)
I
D
1
D
2
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
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
−
−
−
−
−
−
I
0
1
2
3
4
5
9
8
7
6
Bits 00 to 09 correspond
to keys 0 to 9.
D
1
8
15
12 11
0
3
4
7
D
1
+1
8
15
12 11
0
3
4
7
Digit 1
Digit 2
Digit 3
Digit 4
Digit 5
Digit 6
Digit 7
Digit 8
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...