948
Basic I/O Unit Instructions
Section 3-23
Timing Chart
Flags
Precautions
TKY(211) will not operate correctly if I/O refreshing is not performed Input Unit
connected to the ten-key keypad after TKY(211) is executed. Consequently,
set the input time constant for the Input Units used for the data line input word
to a value that is shorter than the cycle time, or do not connect the ten-key
keypad to the following Units.
• Basic I/O Units or High-density I/O Units mounted in a SYSMAC BUS
Remote I/O Slave Rack
• Communications Slaves (DeviceNet or CompoBus/S Slaves)
Example
In this example, TKY(211) reads key inputs from a ten-key keypad and stores
the inputs in CIO 200 and CIO 201. The ten-key keypad is connected to
CIO 0100 (allocated to a CS1W-ID211 16-point DC Input Unit).
3-23-7 HEXADECIMAL KEY INPUT – HKY(212)
Purpose
Reads numeric data from a hexadecimal keypad connected to an Input Unit
and Output Unit and stores up to 8 digits of hexadecimal data in the specified
words.
This instruction is supported only by CS/CJ-series CPU Unit Ver. 2.0 or later.
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
I
to
D
2
Input from 10-key
ON if a key is pressed.
"1" key input
"0" key input
"2" key input
"9" key input
Turn ON flags corre-
sponding to 10-key
inputs (The flags re-
main ON until the
next input.)
Before
execution
Name
Label
Operation
Error Flag
ER
OFF
I
D
1
D
2
TKY(211)
0100
0200
D00000
P_On
Always ON Flag
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...