EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #851 background imageLoading...
Page #851 background image
813
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Basic I/O Unit Instructions
3
TKY
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.
z Timing Chart
Precaution
• I/O refreshing must be performed with the I/O Unit connected to the ten-key pad after each TKY(211)
instruction is executed. If the cycle time is short, operation may not be correct depending on the
ON/OFF response time of the I/O Unit. If necessary, use an I/O Unit with a short ON/OFF response
time or use the minimum cycle time function to adjust the cycle time. 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)
• The two-word register in D1 and D1+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 D1. The
other digits of D1, D1+1 are shifted left and the most significant digit of D1+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).
Example Programming
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 100 (allocated to a CS1W-ID211 16-point DC Input
Unit).
00000000
00000001
00000010
00000102
00001029
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
corresponding to
10-key inputs (The
flags remain ON
until the next input.)
Before
execution
I
D
1
D2
TKY(211)
100
200
D0
P_On
Always ON Flag

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals