Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 823

Table of Contents

Advertisement

TKY
Instruction
TEN KEY INPUT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
I
Input word
D1
First register word
D2
Key input word
I: Input Word (Data Line Inputs)
Specify the input word allocated to the Input Unit and connect the ten-key keypad's 0 to 9 data lines to
the Input Unit as shown in the following diagram.
15
14
13
12
11
10
I
9
8
7
6
D1: First Register Word
Specifies the leading word address where the ten-key keypad's numeric input (up to 8 digits) will be
stored.
15
12 11
D
1
Digit 4
15
12 11
D
+1
1
Digit 8
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
TKY
@TKY
Block program areas
Step program areas
Not allowed
OK
Description
9
8
7
6
5
4
3
2
1
0
8
7
4
3
0
Digit 2
Digit 3
Digit 1
8
7
4
3
0
Digit 6
Digit 7
Digit 5
Function
code
Reads numeric data from a ten-key keypad con-
211
nected to an Input Unit and stores up to 8 digits of
BCD data in the specified words.
TKY
TKY(211)
I: Input word
I
D1: First register word
D1
D2: Key input word
D2
Subroutines
OK
Data type
UINT
UDINT
UINT
0
1
2
Bits 00 to 09 correspond
3
to keys 0 to 9.
4
5
3. Instructions
Function
SFC action or
Interrupt tasks
transition programs
Not allowed
OK
Size
1
2
1
3
785

Advertisement

Table of Contents
loading

Table of Contents