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 #850 background imageLoading...
Page #850 background image
3. Instructions
812
CS/CJ/NSJ Series Instructions Reference Manual (W474)
D2: Key Input Word
Bits 00 to 10 of D2 indicate key inputs. When one of the keys on the keypad (0 to 9) has been pressed,
the corresponding bit of D2 (0 to 9) is turned ON. Bit 10 of D2 will be ON while any key is being
pressed.
Note TKY(211) does not require a system word, unlike other I/O instructions such as HKY(212).
z Operand Specifications
Flags
Function
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 D1 and D1+1. In addition, each time
that a key is pressed, the corresponding bit in D2 (0 to 9) will be turned ON and remains ON until
another key is pressed. Bit 10 of D2 will be ON while any key is being pressed and OFF when no key is
being pressed.
z 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 diagram.
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
I
OK OK OK OK OK OK OK OK OK OK ---
OK
--- OK --- --- --- ---D1 ---
D2 OK
Name Label Operation
Error Flag P_ER OFF
0123456789101112131415
−−−−−
D
2
0
1
2
3
4
5
9
8
7
6
ON when any
key is pressed.
ON when the
corresponding key is
pressed. (Remains on
until another key is
pressed.)
ON when the
corresponding key is
pressed. (Remains on
until another key is
pressed.)
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

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