Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 812

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Basic I/O Unit Instructions
3-22-4 TEN KEY INPUT – TKY(211)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
Reads numeric data from a ten-key keypad and stores up to 8 digits of BCD
data in the specified words.
A Unit with 10 inputs or more is required for this instruction.
TKY(211)
I
I: Input word
D
: First register word
D
1
1
D
: Key input word
D
2
2
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
Not allowed
OK
I: Input Word (Data Line Inputs)
Specify the input word allocated to the Input Unit and connect the ten-key key-
pad's 0 to 9 data lines to the Input Unit as shown in the following diagram.
15
14
13
12
11
10
9
8
7
I
9
8
7
6
D
: First Register Word
1
Specifies the leading word address where the ten-key keypad's numeric input
(up to 8 digits) will be stored.
15
12 11
8
D
1
Digit 4
Digit 3
15
12 11
8
D
+1
1
Digit 8
Digit 7
Step program areas
Subroutines
OK
6
5
4
3
2
1
0
0
1
2
Bits 00 to 09 correspond
3
to keys 0 to 9.
4
5
7
4
3
0
Digit 2
Digit 1
7
4
3
0
Digit 6
Digit 5
Section 3-22
TKY(211)
@TKY(211)
Not supported.
Interrupt tasks
Not allowed
779

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents