![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030987.webp)
947
Basic I/O Unit Instructions
Section 3-23
Description
TKY(211) reads numeric data from input word I, which is allocated to a ten-
key keypad connected to an Input Unit, and stores up to 8 digits of BCD data
in register words D
1
and D
1
+1. In addition, each time that a key is pressed,
the corresponding bit in D
2
(0 to 9) will be turned ON and remains ON until
another key is pressed. Bit 10 of D
2
will be ON while any key is being pressed
and OFF when no key is being pressed.
The two-word register in D
1
and D
1
+1 operates as an 8-digit shift register.
When a key is pressed on the ten-key keypad, the corresponding BCD digit is
shifted into the least significant digit of D
1
. The other digits of D
1
, D
1
+1 are
shifted left and the most significant digit of D
1
+1 is lost.
When executed, TKY(211) begins reading the key input data from the first
cycle, regardless of the point at which the last instruction was stopped.
When one of the keypad keys is being pressed, input from the other keys is
disabled.
There is no restriction on the number of times that TKY(211) can appear in
the program (unlike the C200HX/HG/HE and CQM1H Series).
External Connections
Connect the ten-key keypad so that the switches for keys 0 through 9 are
input to contacts 0 through 9 of the Input Unit, as shown in the following dia-
gram.
The Input Unit must be a DC Input Unit or High-density Input Unit with at least
16 inputs and the Input Unit cannot be mounted in a SYSMAC BUS Remote
I/O Rack.
Index Registers
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
I
D
1
D
2
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
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...